1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ConfigurePaidApps-BHoYMU4F.js","assets/AppPublishHelper-BaWkxjox.js","assets/AppPublishHelper-dzYDB9LD.css","assets/CelebrateProgress-Bwg34fK8.js","assets/PublishConfetti-cfhvpOx7.js","assets/PasteTeamInformation-D_SLtkAU.js","assets/PublishPasteField-CkgUkfZU.js","assets/app-publishing-CXU6-QGS.js","assets/PasteKeyId-DvGPUmID.js","assets/UploadNotificationKey-BbpphDA_.js","assets/InputUpload-CdgHN1Jh.js","assets/firebase-CZKXbanP.js","assets/InputUpload-DfPQBmNf.css","assets/useActiveApp-BphKcE3R.js","assets/NameApiKey-cU6IdUdx.js","assets/4-name-api-key-DPrFkpyV.js","assets/InsertKeyData-6GgJgXQs.js","assets/ProcessingAppleAccountKeys-BadU8zQq.js","assets/FirstDetails-PY81F8u7.js","assets/IconUpload-JGNbCq5x.js","assets/index-MomlIcUP.js","assets/firebase.upload-B_J8JI0F.js","assets/ThirdDetails-BW0x1Qe5.js","assets/apppublishing-BD4VeSqF.js","assets/FourthDetails-BvgiABIp.js","assets/DetailsOverview-CnJkhO1C.js","assets/AppRequirementsAndLegal-8R2KqU6B.js","assets/CelebrationScreen-DMuETs5R.js","assets/AppSubscriptionIndicator-HjYMbDCK.js","assets/index-Dzf5VF34.js","assets/datetime.helper-Hzb_Va8Y.js","assets/AppOverviewPage-nv2CZ3Xe.js","assets/index-nnbh5Sac.js","assets/AppStatusBadge-DUzV1AeD.js","assets/AppServicesPage-Cr6RJcTQ.js","assets/ChakraDatePicker-BsF3YQvp.js","assets/ChakraDatePicker-BuqMdKp-.css","assets/Header-BuC96mfm.js","assets/user-eIfUhilH.js","assets/SignupPhoneNumberInput-D0ZDWHWu.js","assets/SignupPhoneNumberInput-DpsRipQV.css","assets/index-BQV7j_5u.js","assets/index-vLJvXAYP.css","assets/EmailPreviewModal-DX6bAlX1.js","assets/purify.es-D1KCXlL6.js","assets/AppuserPricing-D5pgcloc.js","assets/index-CNrxiJc1.js","assets/yup-B69u1v35.js","assets/tabs-DLo-8rA_.js","assets/switch-C6RIDTZo.js","assets/AppStorefrontEditor-BB4LE5e6.js","assets/AppDashboard-B-MUjaXX.js","assets/AppDashboard-D6PnL8W7.css","assets/MetricsDashboard-CO_fgkd-.js","assets/AdminSettings-BUvAXcck.js","assets/AccountForm-Ce83Ycbu.js","assets/AiPromptBuilderPage-dWXFPo2-.js","assets/WorkflowsPage-B8kaFBuj.js","assets/AppServicesModal-lWMH8qS7.js","assets/native-select-B1qblcBO.js","assets/WorkflowsPage-C5ap-Sga.css","assets/SettingsPortal-CNBnLcpW.js","assets/MarketingDashboard-D_KIfiEA.js","assets/fonts-jsRzgOO7.css"])))=>i.map(i=>d[i]); 2function Yz(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(n,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>n[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();var Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qxe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var iy={exports:{}},Fd={};var zw;function Kz(){if(zw)return Fd;zw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:n,key:u,ref:o!==void 0?o:null,props:l}}return Fd.Fragment=t,Fd.jsx=r,Fd.jsxs=r,Fd}var Uw;function Xz(){return Uw||(Uw=1,iy.exports=Kz()),iy.exports}var p=Xz();function rP(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jz=rP(function(e){return Qz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ay={exports:{}},rt={};var Vw;function Zz(){if(Vw)return rt;Vw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),E=Symbol.iterator;function T(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function I(H,se,be){this.props=H,this.context=se,this.refs=w,this.updater=be||C}I.prototype.isReactComponent={},I.prototype.setState=function(H,se){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,se,"setState")},I.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function P(){}P.prototype=I.prototype;function q(H,se,be){this.props=H,this.context=se,this.refs=w,this.updater=be||C}var D=q.prototype=new P;D.constructor=q,R(D,I.prototype),D.isPureReactComponent=!0;var O=Array.isArray;function N(){}var V={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function W(H,se,be){var Ce=be.ref;return{$$typeof:e,type:H,key:se,ref:Ce!==void 0?Ce:null,props:be}}function G(H,se){return W(H.type,se,H.props)}function B(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function L(H){var se={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(be){return se[be]})}var z=/\/+/g;function ee(H,se){return typeof H=="object"&&H!==null&&H.key!=null?L(""+H.key):se.toString(36)}function te(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(N,N):(H.status="pending",H.then(function(se){H.status==="pending"&&(H.status="fulfilled",H.value=se)},function(se){H.status==="pending"&&(H.status="rejected",H.reason=se)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function Y(H,se,be,Ce,Le){var Be=typeof H;(Be==="undefined"||Be==="boolean")&&(H=null);var tt=!1;if(H===null)tt=!0;else switch(Be){case"bigint":case"string":case"number":tt=!0;break;case"object":switch(H.$$typeof){case e:case t:tt=!0;break;case b:return tt=H._init,Y(tt(H._payload),se,be,Ce,Le)}}if(tt)return Le=Le(H),tt=Ce===""?"."+ee(H,0):Ce,O(Le)?(be="",tt!=null&&(be=tt.replace(z,"$&/")+"/"),Y(Le,se,be,"",function(Qe){return Qe}
2)):Le!=null&&(B(Le)&&(Le=G(Le,be+(Le.key==null||H&&H.key===Le.key?"":(""+Le.key).replace(z,"$&/")+"/")+tt)),se.push(Le)),1;tt=0;var Ae=Ce===""?".":Ce+":";if(O(H))for(var ye=0;ye<H.length;ye++)Ce=H[ye],Be=Ae+ee(Ce,ye),tt+=Y(Ce,se,be,Be,Le);else if(ye=T(H),typeof ye=="function")for(H=ye.call(H),ye=0;!(Ce=H.next()).done;)Ce=Ce.value,Be=Ae+ee(Ce,ye++),tt+=Y(Ce,se,be,Be,Le);else if(Be==="object"){if(typeof H.then=="function")return Y(te(H),se,be,Ce,Le);throw se=String(H),Error("Objects are not valid as a React child (found: "+(se==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":se)+"). If you meant to render a collection of children, use an array instead.")}return tt}function ie(H,se,be){if(H==null)return H;var Ce=[],Le=0;return Y(H,Ce,"","",function(Be){return se.call(be,Be,Le++)}),Ce}function me(H){if(H._status===-1){var se=H._result;se=se(),se.then(function(be){(H._status===0||H._status===-1)&&(H._status=1,H._result=be)},function(be){(H._status===0||H._status===-1)&&(H._status=2,H._result=be)}),H._status===-1&&(H._status=0,H._result=se)}if(H._status===1)return H._result.default;throw H._result}var Se=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var se=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(se))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)},we={map:ie,forEach:function(H,se,be){ie(H,function(){se.apply(this,arguments)},be)},count:function(H){var se=0;return ie(H,function(){se++}),se},toArray:function(H){return ie(H,function(se){return se})||[]},only:function(H){if(!B(H))throw Error("React.Children.only expected to receive a single React element child.");return H}};return rt.Activity=x,rt.Children=we,rt.Component=I,rt.Fragment=r,rt.Profiler=o,rt.PureComponent=q,rt.StrictMode=n,rt.Suspense=h,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,rt.__COMPILER_RUNTIME={__proto__:null,c:function(H){return V.H.useMemoCache(H)}},rt.cache=function(H){return function(){return H.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(H,se,be){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var Ce=R({},H.props),Le=H.key;if(se!=null)for(Be in se.key!==void 0&&(Le=""+se.key),se)!J.call(se,Be)||Be==="key"||Be==="__self"||Be==="__source"||Be==="ref"&&se.ref===void 0||(Ce[Be]=se[Be]);var Be=arguments.length-2;if(Be===1)Ce.children=be;else if(1<Be){for(var tt=Array(Be),Ae=0;Ae<Be;Ae++)tt[Ae]=arguments[Ae+2];Ce.children=tt}return W(H.type,Le,Ce)},rt.createContext=function(H){return H={$$typeof:u,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:l,_context:H},H},rt.createElement=function(H,se,be){var Ce,Le={},Be=null;if(se!=null)for(Ce in se.key!==void 0&&(Be=""+se.key),se)J.call(se,Ce)&&Ce!=="key"&&Ce!=="__self"&&Ce!=="__source"&&(Le[Ce]=se[Ce]);var tt=arguments.length-2;if(tt===1)Le.children=be;else if(1<tt){for(var Ae=Array(tt),ye=0;ye<tt;ye++)Ae[ye]=arguments[ye+2];Le.children=Ae}if(H&&H.defaultProps)for(Ce in tt=H.defaultProps,tt)Le[Ce]===void 0&&(Le[Ce]=tt[Ce]);return W(H,Be,Le)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(H){return{$$typeof:f,render:H}},rt.isValidElement=B,rt.lazy=function(H){return{$$typeof:b,_payload:{_status:-1,_result:H},_init:me}},rt.memo=function(H,se){return{$$typeof:m,type:H,compare:se===void 0?null:se}},rt.startTransition=function(H){var se=V.T,be={};V.T=be;try{var Ce=H(),Le=V.S;Le!==null&&Le(be,Ce),typeof Ce=="object"&&Ce!==null&&typeof Ce.then=="function"&&Ce.then(N,Se)}catch(Be){Se(Be)}finally{se!==null&&be.types!==null&&(se.types=be.types),V.T=se}},rt.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},rt.use=function(H){return V.H.use(H)},rt.useActionState=function(H,se,be){return V.H.useActionState(H,se,be)},rt.useCallback=function(H,se){return V.H.useCallback(H,se)},rt.useContext=function(H){return V.H.useContext(H)},rt.useDebugValue=function(){},rt.useDeferredValue=function(H,se){return V.H.useDeferredValue(H,se)},rt.useEffect=function(H,se){return V.H.useEffect(H,se)},rt.useEffectEvent=function(H){return V.H.useEffectEvent(H)},rt.useId=function(){return V.H.useId()},rt.useImperativeHandle=function(H,se,be){return V.H.useImperativeHandle(H,se,be)},rt.useInsertionEffect=function(H,se){return V.H.useInsertionEffect(H,se)},rt.useLayoutEffect=function(H,se){return V.H.useLayoutEffect(H,se)},rt.useMemo=function(H,se){return V.H.useMemo(H,se)},rt.useOptimistic=function(H,se){return V.H.useOptimistic(H,se)},rt.useReducer=function(H,se,be){return V.H.useReducer(H,se,be)},rt.useRef=function(H){return V.H.useRef(H)},rt.useState=function(H){return V.H.useState(H)},rt.useSyncExternalStore=function(H,se,be){return V.H.useSyncExternalStore(H,se,be)},rt.useTransition=function(){return V.H.useTransition()},rt.version="19.2.5",rt}var Fw;function g2(){return Fw||(Fw=1,ay.exports=Zz()),ay.exports}var S=g2();const Pe=Fl(S),$w=Yz({__proto__:null,default:Pe},[S]);function e9(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function t9(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var r9=(function(){function e(r){var n=this;this._insertTag=function(o){var l;n.tags.length===0?n.insertionPoint?l=n.insertionPoint.nextSibling:n.prepend?l=n.container.firstChild:l=n.before:l=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,l),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepe
2nd,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(t9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=e9(o);try{l.insertRule(n,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),fn="-ms-",Wm="-moz-",wt="-webkit-",nP="comm",b2="rule",v2="decl",n9="@import",iP="@keyframes",i9="@layer",a9=Math.abs,jg=String.fromCharCode,o9=Object.assign;function s9(e,t){return sn(e,0)^45?(((t<<2^sn(e,0))<<2^sn(e,1))<<2^sn(e,2))<<2^sn(e,3):0}function aP(e){return e.trim()}function l9(e,t){return(e=t.exec(e))?e[0]:e}function _t(e,t,r){return e.replace(t,r)}function k1(e,t){return e.indexOf(t)}function sn(e,t){return e.charCodeAt(t)|0}function If(e,t,r){return e.slice(t,r)}function Pa(e){return e.length}function y2(e){return e.length}function zh(e,t){return t.push(e),e}function c9(e,t){return e.map(t).join("")}var Lg=1,su=1,oP=0,ti=0,Dr=0,vu="";function zg(e,t,r,n,o,l,u){return{value:e,root:t,parent:r,type:n,props:o,children:l,line:Lg,column:su,length:u,return:""}}function $d(e,t){return o9(zg("",null,null,"",null,null,0),e,{length:-e.length},t)}function u9(){return Dr}function d9(){return Dr=ti>0?sn(vu,--ti):0,su--,Dr===10&&(su=1,Lg--),Dr}function vi(){return Dr=ti<oP?sn(vu,ti++):0,su++,Dr===10&&(su=1,Lg++),Dr}function ja(){return sn(vu,ti)}function mm(){return ti}function Gf(e,t){return If(vu,e,t)}function qf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sP(e){return Lg=su=1,oP=Pa(vu=e),ti=0,[]}function lP(e){return vu="",e}function gm(e){return aP(Gf(ti-1,N1(e===91?e+2:e===40?e+1:e)))}function f9(e){for(;(Dr=ja())&&Dr<33;)vi();return qf(e)>2||qf(Dr)>3?"":" "}function p9(e,t){for(;--t&&vi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return Gf(e,mm()+(t<6&&ja()==32&&vi()==32))}function N1(e){for(;vi();)switch(Dr){case e:return ti;case 34:case 39:e!==34&&e!==39&&N1(Dr);break;case 40:e===41&&N1(e);break;case 92:vi();break}return ti}function h9(e,t){for(;vi()&&e+Dr!==57;)if(e+Dr===84&&ja()===47)break;return"/*"+Gf(t,ti-1)+"*"+jg(e===47?e:vi())}function m9(e){for(;!qf(ja());)vi();return Gf(e,ti)}function g9(e){return lP(bm("",null,null,null,[""],e=sP(e),0,[0],e))}function bm(e,t,r,n,o,l,u,f,h){for(var m=0,b=0,x=u,E=0,T=0,C=0,R=1,w=1,I=1,P=0,q="",D=o,O=l,N=n,V=q;w;)switch(C=P,P=vi()){case 40:if(C!=108&&sn(V,x-1)==58){k1(V+=_t(gm(P),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:V+=gm(P);break;case 9:case 10:case 13:case 32:V+=f9(C);break;case 92:V+=p9(mm()-1,7);continue;case 47:switch(ja()){case 42:case 47:zh(b9(h9(vi(),mm()),t,r),h);break;default:V+="/"}break;case 123*R:f[m++]=Pa(V)*I;case 125*R:case 59:case 0:switch(P){case 0:case 125:w=0;case 59+b:I==-1&&(V=_t(V,/\f/g,"")),T>0&&Pa(V)-x&&zh(T>32?Hw(V+";",n,r,x-1):Hw(_t(V," ","")+";",n,r,x-2),h);break;case 59:V+=";";default:if(zh(N=Bw(V,t,r,m,b,o,f,q,D=[],O=[],x),l),P===123)if(b===0)bm(V,t,N,N,D,l,x,f,O);else switch(E===99&&sn(V,3)===110?100:E){case 100:case 108:case 109:case 115:bm(e,N,N,n&&zh(Bw(e,N,N,0,0,o,f,q,o,D=[],x),O),o,O,x,f,n?D:O);break;default:bm(V,N,N,N,[""],O,0,f,O)}}m=b=T=0,R=I=1,q=V="",x=u;break;case 58:x=1+Pa(V),T=C;default:if(R<1){if(P==123)--R;else if(P==125&&R++==0&&d9()==125)continue}switch(V+=jg(P),P*R){case 38:I=b>0?1:(V+="\f",-1);break;case 44:f[m++]=(Pa(V)-1)*I,I=1;break;case 64:ja()===45&&(V+=gm(vi())),E=ja(),b=x=Pa(q=V+=m9(mm())),P++;break;case 45:C===45&&Pa(V)==2&&(R=0)}}return l}function Bw(e,t,r,n,o,l,u,f,h,m,b){for(var x=o-1,E=o===0?l:[""],T=y2(E),C=0,R=0,w=0;C<n;++C)for(var I=0,P=If(e,x+1,x=a9(R=u[C])),q=e;I<T;++I)(q=aP(R>0?E[I]+" "+P:_t(P,/&\f/g,E[I])))&&(h[w++]=q);return zg(e,t,r,o===0?b2:f,h,m,b)}function b9(e,t,r){return zg(e,t,r,nP,jg(u9()),If(e,2,-2),0)}function Hw(e,t,r,n){return zg(e,t,r,v2,If(e,0,n),If(e,n+1,-1),n)}function ru(e,t){for(var r="",n=y2(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function v9(e,t,r,n){switch(e.type){case i9:if(e.children.length)break;case n9:case v2:return e.return=e.return||e.value;case nP:return"";case iP:return e.return=e.value+"{"+ru(e.children,n)+"}";case b2:e.value=e.props.join(",")}return Pa(r=ru(e.children,n))?e.return=e.value+"{"+r+"}":""}function y9(e){var t=y2(e);return function(r,n,o,l){for(var u="",f=0;f<t;f++)u+=e[f](r,n,o,l)||"";return u}}function x9(e){return function(t){t.root||(t=t.return)&&e(t)}}var S9=function(t,r,n){for(var o=0,l=0;o=l,l=ja(),o===38&&l===12&&(r[n]=1),!qf(l);)vi();return Gf(t,ti)},E9=function(t,r){var n=-1,o=44;do switch(qf(o)){case 0:o===38&&ja()===12&&(r[n]=1),t[n]+=S9(ti-1,r,n);break;case 2:t[n]+=gm(o);break;case 4:if(o===44){t[++n]=ja()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=jg(o)}while(o=vi());return t},A9=function(t,r){return lP(E9(sP(t),r))},Gw=new WeakMap,R9=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Gw.get(n))&&!o){Gw.set(t,!0);for(var l=[],u=A9(r,l),f=n.props,h=0,m=0;h<u.length;h++)for(var b=0;b<f.length;b++,m++)t.props[m]=l[h]?u[h].replace(/&\f/g,f[b]):f[b]+" "+u[h]}}},C9=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function cP(e,t){switch(s9(e,t)){case 5103:return wt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wt+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+Wm+e+fn+e+e;case 6828:case 4268:return wt+e+fn+e+e;case 6165:return wt+e+fn+"flex-"+e+e;case 5187:return wt+e+_t(e,/(\w+).+(:[^]+)/,wt+"box-$1$2"+fn+"flex-$1$2")+e;case 5443:return wt+e+fn+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return wt+e+fn+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return wt+e+fn+_t(e,"shrink","negative")+e;case 5292:return wt+e+fn+_t(e,"basis","preferred-size")+e;case 6060:return wt+"box-"+_t(e,"-grow","")+wt+e+fn+_t(e,"grow","positive")+e;case 4554:return wt+_t(e,/([^-])(transform)/g,"$1"+wt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,wt+"$1"),/(image-set)/,wt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,wt+"box-pack:$3"+fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,wt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pa(e)-1-t>6)switch(sn(e,t+1)){case 109:if(sn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+Wm+(sn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~k1(e,"stretch")?cP(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(sn(e,t+1)!==115)break;case 6444:switch(sn(e,Pa(e)-3-(~k1(e,"!important")&&10))){case 107:return _t(e,":",":"+wt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(sn(e,14)===45?"inline-":"")+"box$3$1"+wt+"$2$3$1"+fn+"$2box$3")+e}break;case 5936:switch(sn(e,t+11)){case 114:return wt+e+fn+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+fn+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+fn+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+fn+e+e}return e}var T9=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case v2:t.return=cP(t.value,t.length);break;case iP:return ru([$d(t,{value:_t(t.value,"@","@"+wt)})],o);case b2:if(t.length)return c9(t.props,function(l){switch(l9(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ru([$d(t,{props:[_t(l,/:(read-\w+)/,":"+Wm+"$1")]})],o);case"::placeholder":return ru([$d(t,{props:[_t(l,/:(plac\w+)/,":"+wt+"input-$1")]}),$d(t,{props:[_t(l,/:(plac\w+)/,":"+Wm+"$1")]}),$d(t,{props:[_t(l,/:(plac\w+)/,fn+"input-$1")]})],o)}return""})}},w9=[T9],_9=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(R){var w=R.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var o=t.stylisPlugins||w9,l={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(R){for(var w=R.getAttribute("data-emotion").split(" "),I=1;I<w.length;I++)l[w[I]]=!0;f.push(R)});var h,m=[R9,C9];{var b,x=[v9,x9(function(R){b.insert(R)})],E=y9(m.concat(o,x)),T=function(w){return ru(g9(w),E)};h=function(w,I,P,q){b=P,T(w?w+"{"+I.styles+"}":I.styles),q&&(C.inserted[I.name]=!0)}}var C={key:r,sheet:new r9({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:h};return C.sheet.hydrate(f),C},oy={exports:{}},Ot={};var Ww;function O9(){if(Ww)return Ot;Ww=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function q(O){if(typeof O=="object"&&O!==null){var N=O.$$typeof;switch(N){case t:switch(O=O.type,O){case h:case m:case n:case l:case o:case x:return O;default:switch(O=O&&O.$$typeof,O){case f:case b:case C:case T:case u:return O;default:return N}}case r:return N}}}function D(O){return q(O)===m}return Ot.AsyncMode=h,Ot.ConcurrentMode=m,Ot.ContextConsumer=f,Ot.ContextProvider=u,Ot.Element=t,Ot.ForwardRef=b,Ot.Fragment=n,Ot.Lazy=C,Ot.Memo=T,Ot.Portal=r,Ot.Profiler=l,Ot.StrictMode=o,Ot.Suspense=x,Ot.isAsyncMode=function(O){return D(O)||q(O)===
2h},Ot.isConcurrentMode=D,Ot.isContextConsumer=function(O){return q(O)===f},Ot.isContextProvider=function(O){return q(O)===u},Ot.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ot.isForwardRef=function(O){return q(O)===b},Ot.isFragment=function(O){return q(O)===n},Ot.isLazy=function(O){return q(O)===C},Ot.isMemo=function(O){return q(O)===T},Ot.isPortal=function(O){return q(O)===r},Ot.isProfiler=function(O){return q(O)===l},Ot.isStrictMode=function(O){return q(O)===o},Ot.isSuspense=function(O){return q(O)===x},Ot.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===m||O===l||O===o||O===x||O===E||typeof O=="object"&&O!==null&&(O.$$typeof===C||O.$$typeof===T||O.$$typeof===u||O.$$typeof===f||O.$$typeof===b||O.$$typeof===w||O.$$typeof===I||O.$$typeof===P||O.$$typeof===R)},Ot.typeOf=q,Ot}var Yw;function I9(){return Yw||(Yw=1,oy.exports=O9()),oy.exports}var sy,Kw;function q9(){if(Kw)return sy;Kw=1;var e=I9(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=n,l[e.Memo]=o;function u(C){return e.isMemo(C)?o:l[C.$$typeof]||t}var f=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,E=Object.prototype;function T(C,R,w){if(typeof R!="string"){if(E){var I=x(R);I&&I!==E&&T(C,I,w)}var P=h(R);m&&(P=P.concat(m(R)));for(var q=u(C),D=u(R),O=0;O<P.length;++O){var N=P[O];if(!r[N]&&!(w&&w[N])&&!(D&&D[N])&&!(q&&q[N])){var V=b(R,N);try{f(C,N,V)}catch{}}}}return C}return sy=T,sy}q9();var P9=!0;function uP(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var x2=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||P9===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},S2=function(t,r,n){x2(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var l=r;do t.insert(r===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function k9(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var N9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},D9=/[A-Z]|^ms/g,M9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dP=function(t){return t.charCodeAt(1)===45},Xw=function(t){return t!=null&&typeof t!="boolean"},ly=rP(function(e){return dP(e)?e:e.replace(D9,"-$&").toLowerCase()}),Qw=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(M9,function(n,o,l){return ka={name:o,styles:l,next:ka},o})}return N9[t]!==1&&!dP(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pf(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ka={name:o.name,styles:o.styles,next:ka},o.name;var l=r;if(l.styles!==void 0){var u=l.next;if(u!==void 0)for(;u!==void 0;)ka={name:u.name,styles:u.styles,next:ka},u=u.next;var f=l.styles+";";return f}return j9(e,t,r)}case"function":{if(e!==void 0){var h=ka,m=r(e);return ka=h,Pf(e,t,m)}break}}var b=r;if(t==null)return b;var x=t[b];return x!==void 0?x:b}function j9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Pf(e,t,r[o])+";";else for(var l in r){var u=r[l];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?n+=l+"{"+t[f]+"}":Xw(f)&&(n+=ly(l)+":"+Qw(l,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)Xw(u[h])&&(n+=ly(l)+":"+Qw(l,u[h])+";");else{var m=Pf(e,t,u);switch(l){case"animation":case"animationName":{n+=ly(l)+":"+m+";";break}default:n+=l+"{"+m+"}"}}}return n}var Jw=/label:\s*([^\s;{]+)\s*(;|$)/g,ka;function E2(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ka=void 0;var l=e[0];if(l==null||l.raw===void 0)n=!1,o+=Pf(r,t,l);else{var u=l;o+=u[0]}for(var f=1;f<e.length;f++)if(o+=Pf(r,t,e[f]),n){var h=l;o+=h[f]}Jw.lastIndex=0;for(var m="",b;(b=Jw.exec(o))!==null;)m+="-"+b[1];var x=k9(o)+m;return{name:x,styles:o,next:ka}}var L9=function(t){return t()},fP=$w.useInsertionEffect?$w.useInsertionEffect:!1,pP=fP||L9,Zw=fP||S.useLayoutEffect,hP=S.createContext(typeof HTMLElement<"u"?_9({key:"css"}):null);hP.Provider;var A2=function(t){return S.forwardRef(function(r,n){var o=S.useContext(hP);return t(r,o,n)})},R2=S.createContext({}),C2={}.hasOwnProperty,D1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",z9=function(t,r){var n={};for(var o in r)C2.call(r,o)&&(n[o]=r[o]);return n[D1]=t,n},U9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return x2(r,n,o),pP(function(){return S2(r,n,o)}),null},V9=A2(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[D1],l=[n],u="";typeof e.className=="string"?u=uP(t.registered,l,e.className):e.className!=null&&(u=e.className+" ");var f=E2(l,void 0,S.useContext(R2));u+=t.key+"-"+f.name;var h={};for(var m in e)C2.call(e,m)&&m!=="css"&&m!==D1&&(h[m]=e[m]);return h.className=u,r&&(h.ref=r),S.createElement(S.Fragment,null,S.createElement(U9,{cache:t,serialized:f,isStringTag:typeof o=="str
2ing"}),S.createElement(o,h))}),F9=V9,e_=function(t,r){var n=arguments;if(r==null||!C2.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,l=new Array(o);l[0]=F9,l[1]=z9(t,r);for(var u=2;u<o;u++)l[u]=n[u];return S.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(e_||(e_={}));var t_=A2(function(e,t){var r=e.styles,n=E2([r],void 0,S.useContext(R2)),o=S.useRef();return Zw(function(){var l=t.key+"-global",u=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+l+" "+n.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",l),u.hydrate([h])),o.current=[u,f],function(){u.flush()}},[t]),Zw(function(){var l=o.current,u=l[0],f=l[1];if(f){l[1]=!1;return}if(n.next!==void 0&&S2(t,n.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}t.insert("",n,u,!1)},[t,n.name]),null});function $9(...e){return function(...r){e.forEach(n=>n?.(...r))}}const B9=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),H9=/^on[A-Z]/;function kf(...e){let t={};for(let r of e){for(let n in t){if(H9.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=$9(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=B9(t[n],r[n]);continue}if(n==="style"){t[n]=Object.assign({},t[n]??{},r[n]??{});continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}const G9=parseInt(S.version.split(".")[0],10),W9=G9>=19;function cy(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Y9(...e){const t=e.filter(r=>r!=null);if(W9){const r=new Map;return n=>(t.forEach(o=>{const l=cy(o,n);l&&r.set(o,l)}),()=>{t.forEach(o=>{const l=r.get(o);l&&typeof l=="function"?l():cy(o,null)}),r.clear()})}else return r=>{t.forEach(n=>{cy(n,r)})}}function Wf(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const Xn=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),xi=e=>typeof e=="string",T2=e=>typeof e=="function",cn=(...e)=>{const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(!xi(n))continue;const o=n.trim();o&&t.push(o)}return t.join(" ")};function K9(e){return e.default||e}function X9(e){const t=S.version;return!xi(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const w2=(...e)=>{const t=e.reduce((r,n)=>(n?.forEach(o=>r.add(o)),r),new Set([]));return Array.from(t)};function Q9(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function xf(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:l,defaultValue:u}=e,f=S.createContext(u);f.displayName=t;function h(){const m=S.useContext(f);if(!m&&r){const b=new Error(l??Q9(n,o));throw b.name="ContextError",Error.captureStackTrace?.(b,h),b}return m}return[f.Provider,h,f]}const[J9,Ug]=xf({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function M1(e){const{value:t,children:r}=e;return p.jsxs(J9,{value:t,children:[!t._config.disableLayers&&p.jsx(t_,{styles:t.layers.atRule}),p.jsx(t_,{styles:t._global}),r]})}const Z9=(e,t)=>{const r={},n={},o=Object.keys(e);for(const l of o)t(l)?n[l]=e[l]:r[l]=e[l];return[n,r]},nu=(e,t)=>{const r=T2(t)?t:n=>t.includes(n);return Z9(e,r)},e7=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function t7(e){return typeof e=="string"&&e7.has(e)}function r7(e,t,r){const{css:n,isValidProperty:o}=Ug(),{children:l,...u}=e,f=S.useMemo(()=>{const[E,T]=nu(u,P=>r(P,t.variantKeys)),[C,R]=nu(T,t.variantKeys),[w,I]=nu(R,o);return{forwardedProps:E,variantProps:C,styleProps:w,elementProps:I}},[t.variantKeys,r,u,o]),{css:h,...m}=f.styleProps,b=S.useMemo(()=>{const E={...f.variantProps},T=t.variantKeys.includes("colorPalette"),C=t.variantKeys.includes("orientation");return T||(E.colorPalette=u.colorPalette),C||(E.orientation=u.orientation),t(E)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:S.useMemo(()=>n(b,...n7(h),m),[n,b,h,m]),props:{...f.forwardedProps,...f.elementProps,children:l}}}const n7=e=>
2(Array.isArray(e)?e:[e]).filter(Boolean).flat(),i7=K9(Jz),a7=i7,o7=e=>e!=="theme",s7=(e,t,r)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?l=>e.__emotion_forwardProp(l)&&o(l):o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n};let l7=typeof document<"u";const r_=({cache:e,serialized:t,isStringTag:r})=>{x2(e,t,r);const n=pP(()=>S2(e,t,r));if(!l7&&n!==void 0){let o=t.name,l=t.next;for(;l!==void 0;)o=cn(o,l.name),l=l.next;return p.jsx("style",{"data-emotion":cn(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},n_={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},c7=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u7=(e,t={},r={})=>{if(c7(n_,e)){r.forwardProps||(r.forwardProps=[]);const m=n_[e];r.forwardProps=w2([...r.forwardProps,...m])}const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let l,u;r!==void 0&&(l=r.label,u=r.target);let f=[];const h=A2((m,b,x)=>{const{cva:E,isValidProperty:T}=Ug(),C=t.__cva__?t:E(t),R=f7(e.__emotion_cva,C),w=te=>(Y,ie)=>te.includes(Y)?!0:!ie?.includes(Y)&&!T(Y);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=w(r.forwardProps));const I=(te,Y)=>{const ie=typeof e=="string"&&e.charCodeAt(0)>96?a7:o7,me=!Y?.includes(te)&&!T(te);return ie(te)&&me},P=s7(e,r,n)||I,q=S.useMemo(()=>Object.assign({},r.defaultProps,Wf(m)),[m]),{props:D,styles:O}=r7(q,R,P);let N="",V=[O],J=D;if(D.theme==null){J={};for(let te in D)J[te]=D[te];J.theme=S.useContext(R2)}typeof D.className=="string"?N=uP(b.registered,V,D.className):D.className!=null&&(N=cn(N,D.className));const W=E2(f.concat(V),b.registered,J);W.styles&&(N=cn(N,`${b.key}-${W.name}`)),u!==void 0&&(N=cn(N,u));const G=!P("as");let B=G&&D.as||o,L={};for(let te in D)if(!(G&&te==="as")){if(t7(te)){const Y=te.replace("html","").toLowerCase();L[Y]=D[te];continue}P(te)&&(L[te]=D[te])}let z=N.trim();z?L.className=z:Reflect.deleteProperty(L,"className"),L.ref=x;const ee=r.forwardAsChild||r.forwardProps?.includes("asChild");if(D.asChild&&!ee){const te=S.isValidElement(D.children)?S.Children.only(D.children):S.Children.toArray(D.children).find(S.isValidElement);if(!te)throw new Error("[chakra-ui > factory] No valid child found");B=te.type,L.children=null,Reflect.deleteProperty(L,"asChild"),L=kf(L,te.props),L.ref=Y9(x,X9(te))}return L.as&&ee?(L.as=void 0,p.jsxs(S.Fragment,{children:[p.jsx(r_,{cache:b,serialized:W,isStringTag:typeof B=="string"}),p.jsx(B,{asChild:!0,...L,children:p.jsx(D.as,{children:L.children})})]})):p.jsxs(S.Fragment,{children:[p.jsx(r_,{cache:b,serialized:W,isStringTag:typeof B=="string"}),p.jsx(B,{...L})]})});return h.displayName=l!==void 0?l:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_forwardProp=r.shouldForwardProp,h.__emotion_cva=t,Object.defineProperty(h,"toString",{value(){return`.${u}`}}),h},uy=u7.bind(),dy=new Map,d7=new Proxy(uy,{apply(e,t,r){return uy(...r)},get(e,t){return dy.has(t)||dy.set(t,uy(t)),dy.get(t)}}),Rt=d7,f7=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),De=Rt("div");De.displayName="Box";const mP=S.forwardRef(function(t,r){const{size:n,...o}=t;return p.jsx(De,{...o,ref:r,boxSize:n,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...t.css}})});mP.displayName="Square";const gP=S.forwardRef(function(t,r){const{size:n,...o}=t;return p.jsx(mP,{size:n,ref:r,borderRadius:"9999px",...o})});gP.displayName="Circle";function vm(e){if(typeof e!="string")return e.displayName||e.name}function Vg(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function i_(e,t){return e+Vg(t)}function p7(e,t){if(t)return e+Vg(t)}const bP=Object.freeze({}),vP=Object.freeze({});function Fg(e){const{key:t,recipe:r}=e,n=Ug();return S.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}function ha(e){const{key:t,recipe:r}=e,n=Vg(t||r.className||"Component"),[o,l]=xf({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function u(m){const{unstyled:b,...x}=m,E=Fg({key:t,recipe:x.recipe||r}),[T,C]=S.useMemo(()=>E.splitVariantProps(x),[E,x]);return{styles:b?bP:E(T),className:E.className,props:C}}const f=(m,b)=>{const{displayName:x,...E}=b??{},T=Rt(m,{},E),C=S.forwardRef((R,w)=>{const I=l(),P=S.useMemo(()=>kf(I,R),[R,I]),{styles:q,className:D,props:O}=u(P);return p.jsx(T,{...O,ref:w,css:[q,P.css],className:cn(D,P.className)})});return C.displayName=x??n??vm(m),C};function h(){return o}return{withContext:f,PropsProvider:o,withPropsProvider:h,usePropsContext:l,useRecipeResult:u}}var h7=Object.defineProperty,yP=e=>{throw TypeError(e)},m7=(e,t,r)=>t in e?h7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,So=(e,t,r)=>m7(e,typeof t!="symbol"?t+"":t,r),g7=(e,t,r)=>t.has(e)||yP("Cannot "+r),a_=(e,t,r)=>(g7(e,t,"read from private field"),t.get(e)),b7=(e,t,r)=>t.has(e)?yP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);function v7(e){return e==null?[]:Array.isArray(e)?e:[e]}var y7=e=>e[0],x7=e=>e[e.length-1],S7=(e,t)=>e.indexOf(t)!==-1,E7=(e,...t)=>e.concat(t),A7=(e,...t)=>e.filter(r=>!t.includes(r)),o_=(e,t)=>S7(e,t)?A7(e,t):E7(e,t);function xP(e,t,r={}){const{step:n=1,loop:o=!0}=r,l=t+n,u=e.length,f=u-1;return t===-1?n>0?0:f:l<0?o?f:0:l>=u?o?0:t>u?u:t:l}function R7(e,t,r={}){return e[xP(e,t,r)]}function C7(e,t,r={}){const{step:n=1,loop:o=!0}=r;return xP(e,t,{step:-n,loop:o})}function T7(e,t,r={}){return e[C7(e,t,r)]}var s_=e=>e?.constructor.name==="Array",w7=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Yf(e[r],t[r]))return!1;return!0},Yf=(e,t)=>{if(Object.is(e,t))return!0;
2if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(s_(e)&&s_(t))return w7(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const l=r[o];if(!Yf(e[l],t[l]))return!1}return!0},_7=e=>Array.isArray(e),SP=e=>e!=null&&typeof e=="object",fy=e=>SP(e)&&!_7(e),ym=e=>typeof e=="string",Vi=e=>typeof e=="function",O7=e=>e==null,As=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),I7=e=>Object.prototype.toString.call(e),EP=Function.prototype.toString,q7=EP.call(Object),P7=e=>{if(!SP(e)||I7(e)!="[object Object]"||D7(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=As(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&EP.call(r)==q7},k7=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,N7=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,D7=e=>k7(e)||N7(e),Uh=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,l_=e=>e,M7=e=>e(),AP=()=>{},j1=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},RP=(()=>{let e=0;return()=>(e++,e.toString(36))})();function lu(e){if(!P7(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=lu(o))}return r}function j7(e,t=Object.is){let r={...e};const n=new Set,o=b=>(n.add(b),()=>n.delete(b)),l=()=>{n.forEach(b=>b())};return{subscribe:o,get:b=>r[b],set:(b,x)=>{t(r[b],x)||(r[b]=x,l())},update:b=>{let x=!1;for(const E in b){const T=b[E];T!==void 0&&!t(r[E],T)&&(r[E]=T,x=!0)}x&&l()},snapshot:()=>({...r})}}var Vh=()=>performance.now(),xm,L7=class{constructor(e){So(this,"onTick",e),So(this,"frameId",null),So(this,"pausedAtMs",null),So(this,"context"),So(this,"cancelFrame",()=>{this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),So(this,"setStartMs",t=>{this.context.startMs=t}),So(this,"start",()=>{if(this.frameId!==null)return;const t=Vh();this.pausedAtMs!==null?(this.context.startMs+=t-this.pausedAtMs,this.pausedAtMs=null):this.context.startMs=t,this.frameId=requestAnimationFrame(a_(this,xm))}),So(this,"pause",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=Vh())}),So(this,"stop",()=>{this.frameId!==null&&(this.cancelFrame(),this.pausedAtMs=null)}),b7(this,xm,t=>{if(this.context.now=t,this.context.deltaMs=t-this.context.startMs,this.onTick(this.context)===!1){this.stop();return}this.frameId=requestAnimationFrame(a_(this,xm))}),this.context={now:0,startMs:Vh(),deltaMs:0}}get elapsedMs(){return this.pausedAtMs!==null?this.pausedAtMs-this.context.startMs:Vh()-this.context.startMs}};xm=new WeakMap;function py(e,t){const r=new L7(({deltaMs:n})=>{if(n>=t)return e(),!1});return r.start(),()=>r.stop()}function Nf(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function c_(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function $g(e,t){if(e==null)throw new Error(t())}function CP(e,t,r){let n=[];for(const o of t)e[o]==null&&n.push(o);if(n.length>0)throw new Error(`[zag-js${r?` > ${r}`:""}] missing required props: ${n.join(", ")}`)}function z7(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Sr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:l,defaultValue:u}=e,f=S.createContext(u);f.displayName=t;function h(){const m=S.useContext(f);if(!m&&r){const b=new Error(l??z7(n,o));throw b.name="ContextError",As(Error,"captureStackTrace")&&Vi(Error.captureStackTrace)&&Error.captureStackTrace(b,h),b}return m}return[f.Provider,h,f]}var[Jxe,Lo]=Sr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function ks(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}var U7=(...e)=>e.map(t=>
2t?.trim?.()).filter(Boolean).join(" "),V7=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,u_=e=>{const t={};let r;for(;r=V7.exec(e);)t[r[1]]=r[2];return t},F7=(e,t)=>{if(ym(e)){if(ym(t))return`${e};${t}`;e=u_(e)}else ym(t)&&(t=u_(t));return Object.assign({},e??{},t??{})};function qe(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=j1(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=U7(t[o],r[o]);continue}if(o==="style"){t[o]=F7(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}var Ns=".",TP="#",d_=new WeakMap,wP=new WeakMap;function L1(e){return e.join(Ns)}function $7(e){return e.includes(Ns)}function _P(e){return e.startsWith(TP)}function B7(e){return e.startsWith(Ns)}function H7(e){return _P(e)?e.slice(TP.length):e}function z1(e,t){return e?`${e}${Ns}${t}`:t}function G7(e){const t=new Map,r=new Map,n=(o,l)=>{t.set(o,l);const u=l.id;u&&(r.has(u)&&c_(`[zag-js] Duplicate state id: "${u}"`),r.set(u,o));const f=l.states;if(f){$g(l.initial,()=>`[zag-js] Compound state "${o}" has child states but no "initial" property`),l.initial in f||c_(`[zag-js] Compound state "${o}" has initial "${String(l.initial)}" which is not a child state`);for(const[h,m]of Object.entries(f)){if(!m)continue;const b=z1(o,h);n(b,m)}}};for(const[o,l]of Object.entries(e.states))l&&n(o,l);return{index:t,idIndex:r}}function Kf(e){const t=d_.get(e);if(t)return t;const{index:r,idIndex:n}=G7(e);return d_.set(e,r),wP.set(e,n),r}function W7(e,t){return Kf(e),wP.get(e)?.get(t)}function _2(e){return e?String(e).split(Ns).filter(Boolean):[]}function Ym(e,t){if(!t)return[];const r=Kf(e),n=_2(t),o=[],l=[];for(const u of n){l.push(u);const f=L1(l),h=r.get(f);if(!h)break;o.push({path:f,state:h})}return o}function Bd(e,t){const r=Kf(e),n=_2(t);if(!n.length)return t;const o=[];for(const f of n){o.push(f);const h=L1(o);if(!r.has(h))return t}let l=L1(o),u=r.get(l);for(;u?.initial;){const f=`${l}${Ns}${u.initial}`,h=r.get(f);if(!h)break;l=f,u=h}return l}function f_(e,t){return Kf(e).has(t)}function p_(e,t,r){const n=String(t);if(_P(n)){const o=H7(n),l=W7(e,o);return $g(l,()=>`[zag-js] Unknown state id: "${o}"`),Bd(e,l)}if(B7(n)&&r){const o=z1(r,n.slice(1));return Bd(e,o)}if(!$7(n)&&r){const o=_2(r);for(let l=o.length-1;l>=1;l--){const u=o.slice(0,l).join(Ns),f=z1(u,n);if(f_(e,f))return Bd(e,f)}if(f_(e,n))return Bd(e,n)}return Bd(e,n)}function Y7(e,t,r){const n=Ym(e,t);for(let l=n.length-1;l>=0;l--){const f=n[l]?.state.on?.[r];if(f)return{transitions:f,source:n[l]?.path}}return{transitions:e.on?.[r],source:void 0}}function K7(e,t,r,n){const o=t?Ym(e,t):[],l=Ym(e,r);let u=0;for(;u<o.length&&u<l.length&&o[u]?.path===l[u]?.path;)u+=1;let f=o.slice(u).reverse(),h=l.slice(u);const m=o.at(-1)?.path===l.at(-1)?.path;return n&&m&&(f=o.slice().reverse(),h=l),{exiting:f,entering:h}}function X7(e,t){return e?e===t||e.startsWith(`${t}${Ns}`):!1}function Q7(e,t,r){return Ym(e,t).some(n=>n.state.tags?.includes(r))}function yu(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function Ds(e){return Kf(e),e}function J7(){return{guards:yu(),createMachine:e=>Ds(e),choose:e=>function({choose:r}){return r(e)?.actions}}}var vl=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(vl||{}),hy="__init__",Z7=Object.defineProperty,eU=(e,t,r)=>t in e?Z7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,my=(e,t,r)=>eU(e,typeof t!="symbol"?t+"":t,r),tU=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),gy=(...e)=>t=>e.reduce((r,n)=>n(r),t),_o=()=>{},Bg=e=>typeof e=="object"&&e!==null,rU=2147483647,Ue=e=>e?"":void 0,O2=e=>e?"true":void 0,nU=1,iU=9,aU=11,xr=e=>Bg(e)&&e.nodeType===nU&&typeof e.nodeName=="string",Hg=e=>Bg(e)&&e.nodeType===iU,oU=e=>Bg(e)&&e===e.window,OP=e=>xr(e)?e.localName||"":"#document";function sU(e){return["html","body","#document"].includes(OP(e))}var IP=e=>Bg(e)&&e.nodeType!==void 0,Ml=e=>IP(e)&&e.nodeType===aU&&"host"in e,qP=e=>xr(e)&&e.localName==="input",lU=e=>!!e?.matches("a[href]"),cU=e=>xr(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Km(e){if(!e)return!1;const t=e.getRootNode();return _l(t)===e}
vendor: 1,155 bytes, line 2
2var uU=/(textarea|select)/;function Gg(e){if(e==null||!xr(e))return!1;try{return qP(e)&&e.selectionStart!=null||uU.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function da(e,t){if(!e||!t||!xr(e)||!IP(t))return!1;if(xr(t)&&e===t||e.contains(t))return!0;const r=t.getRootNode?.();if(r&&Ml(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function kn(e){return Hg(e)?e:oU(e)?e.document:e?.ownerDocument??document}function dU(e){return kn(e).documentElement}function Lr(e){return Ml(e)?Lr(e.host):Hg(e)?e.defaultView??window:xr(e)?e.ownerDocument?.defaultView??window:window}function _l(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}function fU(e){if(OP(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ml(e)&&e.host||dU(e);return Ml(t)?t.host:t}function I2(e){let t;try{if(t=e.getRootNode({composed:!0}),Hg(t)||Ml(t))return t}catch{}return e.ownerDocument??document}var by=new WeakMap;function Xf(e){return by.has(e)||by.set(e,Lr(e).getComputedStyle(e)),by.get(e)}
2var q2=new Set(["menu","listbox","dialog","grid","tree","region"]),pU=e=>q2.has(e),PP=e=>e.getAttribute("aria-controls")?.split(" ")||[];function kP(e,t){const r=new Set,n=I2(e),o=l=>{const u=l.querySelectorAll("[aria-controls]");for(const f of u){if(f.getAttribute("aria-expanded")!=="true")continue;const h=PP(f);for(const m of h){if(!m||r.has(m))continue;r.add(m);const b=n.getElementById(m);if(b){const x=b.getAttribute("role"),E=b.getAttribute("aria-modal")==="true";if(x&&pU(x)&&!E&&(b===t||b.contains(t)||o(b)))return!0}}}return!1};return o(e)}function NP(e,t){const r=I2(e),n=new Set,o=l=>{const u=l.querySelectorAll("[aria-controls]");for(const f of u){if(f.getAttribute("aria-expanded")!=="true")continue;const h=PP(f);for(const m of h){if(!m||n.has(m))continue;n.add(m);const b=r.getElementById(m);if(b){const x=b.getAttribute("role"),E=b.getAttribute("aria-modal")==="true";x&&q2.has(x)&&!E&&(t(b),o(b))}}}};o(e)}function hU(e){const t=new Set;return NP(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)}function mU(e){const t=e.getAttribute("role");return!!(t&&q2.has(t))}function gU(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function bU(e){return gU(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function vU(e){if(!e.id)return!1;const t=I2(e),r=CSS.escape(e.id),n=`[aria-controls~="${r}"][aria-expanded="true"], [aria-controls="${r}"][aria-expanded="true"]`;return!!(t.querySelector(n)&&mU(e))}var Wg=()=>typeof document<"u";function yU(){return navigator.userAgentData?.platform??navigator.platform}function xU(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var P2=e=>Wg()&&e.test(yU()),DP=e=>Wg()&&e.test(xU()),SU=e=>Wg()&&e.test(navigator.vendor),h_=()=>Wg()&&!!navigator.maxTouchPoints,EU=()=>P2(/^iPhone/i),AU=()=>P2(/^iPad/i)||Qf()&&navigator.maxTouchPoints>1,MP=()=>EU()||AU(),RU=()=>Qf()||MP(),Qf=()=>P2(/^Mac/i),Zxe=()=>RU()&&SU(/apple/i),CU=()=>DP(/Firefox/i),TU=()=>DP(/Android/i);function wU(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Mr(e){return wU(e)?.[0]??e.target}function m_(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=e.button===1,o=OU(e);return n||o}function g_(e){const t=e.currentTarget;if(!t)return!1;const r=t.localName;return e.altKey?r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit":!1}function _U(e){return LP(e).isComposing||e.keyCode===229}function OU(e){return Qf()?e.metaKey:e.ctrlKey}function IU(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function qU(e){return e.pointerType===""&&e.isTrusted?!0:TU()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var PU=e=>e.button===0,jP=e=>e.button===2||Qf()&&e.ctrlKey&&e.button===0,kU=e=>e.ctrlKey||e.altKey||e.metaKey,NU=e=>"touches"in e&&e.touches.length>0,DU={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},b_={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Xm(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=DU[o]??o,r==="rtl"&&n==="horizontal"&&o in b_&&(o=b_[o]),o}function LP(e){return e.nativeEvent??e}function Yc(e,t="client"){const r=NU(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var ur=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function MU(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=Lr(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function zP(e,t){if(!e)return;MU(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function jU(e,t){const{checked:r,bubbles:n=!0}=t;if(!e)return;const o=Lr(e);if(!(e instanceof o.HTMLInputElement))return;zP(e,r);const l=new o.Event("click",{bubbles:n});e.dispatchEvent($P(l))}function LU(e){return e.matches("textarea, input, select, button")}function zU(e,t){if(!e)return;const r=LU(e)?e.form:e.closest("form"),n=o=>{o.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function UU(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=Lr(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function UP(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[zU(e,n),UU(e,r)];return()=>
2o.forEach(l=>l?.())}var VP=Symbol.for("zag.changeEvent");function FP(e){return Object.prototype.hasOwnProperty.call(e,VP)}function $P(e){return FP(e)||Object.defineProperty(e,VP,{value:!0}),e}var BP=e=>xr(e)&&e.tagName==="IFRAME",VU=/^(audio|video|details)$/;function HP(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var FU=e=>!Number.isNaN(HP(e)),$U=e=>HP(e)<0;function BU(e){return qP(e)&&e.type==="radio"}function HU(e){if(!BU(e)||!e.name||e.checked)return!0;const t=`input[type="radio"][name="${CSS.escape(e.name)}"]`,r=e.form??e.ownerDocument,n=Array.from(r.querySelectorAll(t)).filter(l=>l.form===e.form&&La(l)),o=n.find(l=>l.checked);return o?o===e:n[0]===e}function GU(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const r=t(e);return(r===!0?e.shadowRoot:r)||null}function GP(e,t,r){const n=[...e],o=[...e],l=new Set,u=new Map;e.forEach((h,m)=>u.set(h,m));let f=0;for(;f<o.length;){const h=o[f++];if(!h||l.has(h))continue;l.add(h);const m=GU(h,t);if(m){const b=Array.from(m.querySelectorAll(Yg)).filter(r),x=u.get(h);if(x!==void 0){const E=x+1;n.splice(E,0,...b),b.forEach((T,C)=>{u.set(T,E+C)});for(let T=E+b.length;T<n.length;T++)u.set(n[T],T)}else{const E=n.length;n.push(...b),b.forEach((T,C)=>{u.set(T,E+C)})}o.push(...b)}}return n}var Yg="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",WP=(e,t={})=>{if(!e)return[];const{includeContainer:r=!1,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Yg));(r==!0||r=="if-empty"&&o.length===0)&&xr(e)&&La(e)&&o.unshift(e);const u=[];for(const f of o)if(La(f)){if(BP(f)&&f.contentDocument){const h=f.contentDocument.body;u.push(...WP(h,{getShadowRoot:n}));continue}u.push(f)}return n?GP(u,n,La):u};function La(e){return!xr(e)||e.closest("[inert]")?!1:e.matches(Yg)&&cU(e)}function Jf(e,t={}){if(!e)return[];const{includeContainer:r,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Yg));r&&El(e)&&o.unshift(e);const l=[];for(const u of o)if(El(u)){if(BP(u)&&u.contentDocument){const f=u.contentDocument.body;l.push(...Jf(f,{getShadowRoot:n}));continue}l.push(u)}if(n){const u=GP(l,n,El);return!u.length&&r?o:u}return!l.length&&r?o:l}function El(e){return xr(e)&&e.tabIndex>0?!0:!La(e)||$U(e)?!1:HU(e)}function WU(e,t={}){const r=Jf(e,t),n=r[0]||null,o=r[r.length-1]||null;return[n,o]}function e2e(e,t={}){const{current:r,getShadowRoot:n}=t,o=Jf(e,{getShadowRoot:n}),l=e?.ownerDocument||document,u=r??_l(l);if(!u)return null;const f=o.indexOf(u);return o[f+1]||null}function Hd(e){return e.tabIndex<0&&(VU.test(e.localName)||Gg(e))&&!FU(e)?0:e.tabIndex}function k2(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let l=null;if(l||(l=typeof r=="function"?r():r),l||(l=t?.querySelector("[data-autofocus],[autofocus]")),!l){const u=Jf(t);l=n?u.filter(n)[0]:u[0]}return l||t||void 0}function YP(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=WU(t);return!(Km(r)&&e.shiftKey||Km(n)&&!e.shiftKey||!r&&!n)}var KP=class XP{constructor(){my(this,"id",null),my(this,"fn_cleanup"),my(this,"cleanup",()=>{this.cancel()})}static create(){return new XP}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function sr(e){const t=KP.create();return t.request(e),t.cleanup}function QP(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function YU(e,t,r){const n=sr(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function KU(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,l=new o.MutationObserver(u=>{for(const f of u)f.type==="attributes"&&f.attributeName&&r.includes(f.attributeName)&&n(f)});return l.observe(e,{attributes:!0,attributeFilter:r}),()=>l.disconnect()}function JP(e,t){const{defer:r}=t,n=r?sr:l=>l(),o=[];return o.push(n(()=>{const l=typeof e=="function"?e():e;o.push(KU(l,t))}
2)),()=>{o.forEach(l=>l?.())}}function XU(e,t){const{callback:r}=t;if(!e)return;const n=e.ownerDocument.defaultView||window,o=new n.MutationObserver(r);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function t2e(e,t){const{defer:r}=t,n=r?sr:l=>l(),o=[];return o.push(n(()=>{const l=typeof e=="function"?e():e;o.push(XU(l,t))})),()=>{o.forEach(l=>l?.())}}function QU(e){const t=()=>{const r=Lr(e);e.dispatchEvent(new r.MouseEvent("click"))};CU()?YU(e,"keyup",t):queueMicrotask(t)}function Qm(e){const t=fU(e);return sU(t)?kn(t).body:xr(t)&&N2(t)?t:Qm(t)}function ZP(e,t=[]){const r=Qm(e),n=r===e.ownerDocument.body,o=Lr(r);return n?t.concat(o,o.visualViewport||[],N2(r)?r:[]):t.concat(r,ZP(r,[]))}var JU=/auto|scroll|overlay|hidden|clip/,ZU=new Set(["inline","contents"]);function N2(e){const t=Lr(e),{overflow:r,overflowX:n,overflowY:o,display:l}=t.getComputedStyle(e);return JU.test(r+o+n)&&!ZU.has(l)}function eV(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function e5(e,t){const{rootEl:r,...n}=t||{};!e||!r||!N2(r)||!eV(r)||e.scrollIntoView(n)}function tV(e){const{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:o,onPressEnd:l,isValidKey:u=P=>P.key==="Enter"}=e;if(!t)return _o;const f=Lr(t);let h=_o,m=_o,b=_o;const x=P=>({point:Yc(P),event:P});function E(P){o?.(x(P))}function T(P){l?.(x(P))}const R=ur(t,"pointerdown",P=>{m();const D=ur(f,"pointerup",N=>{const V=Mr(N);da(t,V)?n?.(x(N)):l?.(x(N))},{passive:!n,once:!0}),O=ur(f,"pointercancel",T,{passive:!l,once:!0});m=gy(D,O),Km(r)&&P.pointerType==="mouse"&&P.preventDefault(),E(P)},{passive:!o}),w=ur(r,"focus",I);h=gy(R,w);function I(){const P=N=>{if(!u(N))return;const V=W=>{if(!u(W))return;const G=new f.PointerEvent("pointerup"),B=x(G);n?.(B),l?.(B)};m(),m=ur(r,"keyup",V);const J=new f.PointerEvent("pointerdown");E(J)},q=()=>{const N=new f.PointerEvent("pointercancel");T(N)},D=ur(r,"keydown",P),O=ur(r,"blur",q);b=gy(D,O)}return()=>{h(),m(),b()}}function Zf(e,t){return Array.from(e?.querySelectorAll(t)??[])}var D2=e=>e.id;function rV(e,t,r=D2){return e.find(n=>r(n)===t)}function M2(e,t,r=D2){const n=rV(e,t,r);return n?e.indexOf(n):-1}function r2e(e,t,r=!0){let n=M2(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function n2e(e,t,r=!0){let n=M2(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}var nV=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),iV=e=>nV(e.dataset?.valuetext??e.textContent??""),aV=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function oV(e,t,r,n=D2){const o=r?M2(e,r,n):-1;let l=r?tU(e,o):e;return t.length===1&&(l=l.filter(f=>n(f)!==r)),l.find(f=>aV(iV(f),t))}function i2e(e,t,r){const n=e.getAttribute(t),o=n!=null;return n===r?_o:(e.setAttribute(t,r),()=>{o?e.setAttribute(t,n):e.removeAttribute(t)})}function Jm(e,t){if(!e)return _o;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return lV(r,t)?_o:(Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")})}function sV(e,t,r){if(!e)return _o;const n=e.style.getPropertyValue(t);return n===r?_o:(e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")})}function lV(e,t){return Object.keys(e).every(r=>e[r]===t[r])}function cV(e,t){const{state:r,activeId:n,key:o,timeout:l=350,itemToId:u}=t,f=r.keysSoFar+o,m=f.length>1&&Array.from(f).every(C=>C===f[0])?f[0]:f;let b=e.slice();const x=oV(b,m,n,u);function E(){clearTimeout(r.timer),r.timer=-1}function T(C){r.keysSoFar=C,E(),C!==""&&(r.timer=+setTimeout(()=>{T(""),E()},l))}return T(f),x}var Df=Object.assign(cV,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:uV});function uV(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var t5={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function dV(e,t,r){const{signal:n}=t;return[new Promise((u,f)=>{const h=setTimeout(()=>{f(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(h),f(new DOMException("Promise aborted","AbortError"))}),e.then(m=>{n.aborted||(clearTimeout(h),u(m))}).catch(m=>{n.aborted||(clearTimeout(h),f(m))})}),()=>t.abort()]}function fV(e,t){const{timeout:r,rootNode:n}=t,o=Lr(n),l=kn(n),u=new o.AbortController;return dV(new Promise(f=>{const h=e();if(h){f(h);return}const m=new o.MutationObserver(()=>{const b=e();b&&b.isConnected&&(m.disconnect(),f(b))});m.observe(l.body,{childList:!0,subtree:!0})}),u,r)}function pV(e){const t=()=>e.getRootNode?.()??document,r=()=>kn(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>_l(t()),isActiveElement:Km,getById:u=>t().getElementById(u)}}function hV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vy=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:l,...u}=r;if(!o)return S.createElement(e,{...u,ref:n},l);if(!S.isValidElement(l))return null;const f=S.Children.only(l),h=hV(f);return S.cloneElement(f,{...qe(u,f.props),ref:n?ks(n,h):h})}));return t.displayName=e.displayName||e.name,t},mV=()=>{const e=new Map;return new Proxy(vy,{apply(t,r,n){return vy(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,vy(n)),e.get(n)}})},je=mV(),[a2e,xu]=Sr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),v_=Object.defineProperty,$l=(e,t)=>
2{let r={};for(var n in e)v_(r,n,{get:e[n],enumerable:!0});return v_(r,Symbol.toStringTag,{value:"Module"}),r};const{withContext:gV}=ha({key:"heading"}),vr=gV("h2");var Er=()=>(e,t)=>t.reduce((r,n)=>{const[o,l]=r,u=n;return l[u]!==void 0&&(o[u]=l[u]),delete l[u],[o,l]},[{},{...e}]),Ms=e=>Er()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function r5(e,t={}){const{sync:r=!1}=t,n=bV(e);return S.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function bV(e){const t=S.useRef(e);return t.current=e,t}var yy={exports:{}},dn={};var y_;function vV(){if(y_)return dn;y_=1;var e=g2();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(h,m,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:h,containerInfo:m,implementation:b}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,dn.createPortal=function(h,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(h,m,null,b)},dn.flushSync=function(h){var m=u.T,b=n.p;try{if(u.T=null,n.p=2,h)return h()}finally{u.T=m,n.p=b,n.d.f()}},dn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,n.d.C(h,m))},dn.prefetchDNS=function(h){typeof h=="string"&&n.d.D(h)},dn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var b=m.as,x=f(b,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?n.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:E,fetchPriority:T}):b==="script"&&n.d.X(h,{crossOrigin:x,integrity:E,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},dn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=f(m.as,m.crossOrigin);n.d.M(h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&n.d.M(h)},dn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,x=f(b,m.crossOrigin);n.d.L(h,b,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},dn.preloadModule=function(h,m){if(typeof h=="string")if(m){var b=f(m.as,m.crossOrigin);n.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else n.d.m(h)},dn.requestFormReset=function(h){n.d.r(h)},dn.unstable_batchedUpdates=function(h,m){return h(m)},dn.useFormState=function(h,m,b){return u.H.useFormState(h,m,b)},dn.useFormStatus=function(){return u.H.useHostTransitionStatus()},dn.version="19.2.5",dn}var x_;function n5(){if(x_)return yy.exports;x_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yy.exports=vV(),yy.exports}var ep=n5();const o2e=Fl(ep);var i5=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function Zm(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,l]=S.useState(n),u=e().value!==void 0,f=S.useRef(o);f.current=u?e().value:o;const h=S.useRef(f.current);i5(()=>{h.current=f.current},[o,e().value]);const m=x=>{const E=h.current,T=Vi(x)?x(E):x;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:T,prev:E}),u||l(T),r(T,E)||e().onChange?.(T,E)};function b(){return u?e().value:o}return{initial:n,ref:f,get:b,set(x){(e().sync?ep.flushSync:M7)(()=>m(x))},invoke(x,E){e().onChange?.(x,E)},hash(x){return e().hash?.(x)??String(x)}}}Zm.cleanup=e=>{S.useEffect(()=>e,[])};Zm.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function yV(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var xV=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function js(e,t={}){const r=S.useMemo(()=>{const{id:B,ids:L,getRootNode:z}=t;return pV({id:B,ids:L,getRootNode:z})},[t]),n=(...B)=>{e.debug&&console.log(...B)},o=e.props?.({props:lu(t),scope:r})??t,l=SV(o),u=e.context?.({prop:l,bindable:Zm,scope:r,flush:S_,getContext(){return h},getComputed(){return O},getRefs(){return R},getEvent(){return T()}}),f=a5(u),h={get(B){return f.current?.[B].ref.current},set(B,L){f.current?.[B].set(L)},initial(B){return f.current?.[B].initial},hash(B){const L=f.current?.[B].get();return f.current?.[B].hash(L)}},m=S.useRef(new Map),b=S.useRef(null),x=S.useRef(null),E=S.useRef({type:""}),T=()=>({...E.current,current(){return E.current},previous(){return x.current}}),C=()=>({...N,matches(...B){return B.some(L=>X7(N.ref.current,L))},hasTag(B){return Q7(e,N.ref.current,B)}}),R=yV(e.refs?.({prop:l,context:h})??{}),w=()=>({state:C(),context:h,event:T(),prop:l,send:G,action:I,guard:P,track:xV,refs:R,computed:O,flush:S_,scope:r,choose:D}),I=B=>{const L=Vi(B)?B(w()):B;if(!L)return;const z=L.map(ee=>{const te=e.implementations?.actions?.[ee];return te||Nf(`[zag-js] No implementation found for action "${JSON.stringify(ee)}"`),te});for(const ee of z)ee?.(w())},P=B=>Vi(B)?B(w()):e.implementations?.guards?.[B](w()),q=B=>{const L=Vi(B)?B(w()):B;if(!L)return;const z=L.map(te=>{const Y=e.implementations?.effects?.[te];return Y||Nf(`[zag-js] No implementation found for effect "${JSON.stringify(te)}"`),Y}),ee=[];for(const te of z){const Y=te?.(w());Y&&ee.push(Y)}return()=>ee.forEach(te=>te?.())},D=B=>v7(B).find(L=>{let z=!L.guard;return ym(L.guard)?z=!!P(L.guard):Vi(L.guard)&&(z=L.guard(w())),z}),O=B=>{$g(e.computed,()=>"[zag-js] No computed object found on machine");const L=e.computed[B];return L({context:h,event:T(),prop:l,refs:R,scope:r,computed:O})},N=Zm(()=>({defaultValue:p_(e,e.initialState({prop:l})),onChange(B,L){const{exiting:z,entering:ee}=K7(e,L,B,b.current?.reenter);if(z.forEach(te=>{m.current.get(te.path)?.(),m.current.delete(te.path)}),z.forEach(te=>{I(te.state?.exit)}),I(b.current?.actions),ee.forEach(te=>{const Y=q(te.state?.effects);Y&&m.current.set(te.path,Y)}
2),L===hy){I(e.entry);const te=q(e.effects);te&&m.current.set(hy,te)}ee.forEach(te=>{I(te.state?.entry)})}})),V=S.useRef(void 0),J=S.useRef(vl.NotStarted);i5(()=>{queueMicrotask(()=>{const L=J.current===vl.Started;J.current=vl.Started,n(L?"rehydrating...":"initializing...");const z=V.current??N.initial;N.invoke(z,L?N.get():hy)});const B=m.current;return()=>{const L=W();n("unmounting..."),V.current=L,J.current=vl.Stopped,B.forEach(z=>z?.()),m.current=new Map,b.current=null,queueMicrotask(()=>{I(e.exit),J.current=vl.Stopped})}},[]);const W=()=>"ref"in N?N.ref.current:N.get(),G=B=>{queueMicrotask(()=>{if(J.current!==vl.Started)return;x.current=E.current,E.current=B;let L=W();const{transitions:z,source:ee}=Y7(e,L,B.type),te=D(z);if(!te)return;b.current=te;const Y=p_(e,te.target??L,ee);n("transition",B.type,te.target||L,`(${te.actions})`),Y!==L?ep.flushSync(()=>N.set(Y)):te.reenter?N.invoke(L,L):I(te.actions??[])})};return e.watch?.(w()),{state:C(),send:G,context:h,prop:l,scope:r,refs:R,computed:O,event:T(),getStatus:()=>J.current}}function a5(e){const t=S.useRef(e);return t.current=e,t}function SV(e){const t=a5(e);return function(n){return t.current[n]}}function S_(e){queueMicrotask(()=>{ep.flushSync(()=>e())})}function EV(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var Bl=EV(e=>e);function AV(e,t){const{state:r,send:n,context:o}=e,l=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:l,setNode(u){u&&n({type:"NODE.SET",node:u})},unmount(){n({type:"UNMOUNT"})}}}var RV=Ds({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const r=t.get("node");if(!r)return;const n=Lr(r),o=new n.CustomEvent("exitcomplete",{bubbles:!1});r.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Xf(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const l=t.get("node");if(!o&&l?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});sr(()=>{if(n("present"))return;const u=Fh(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{sr(()=>{e.set("prevAnimationName",Fh(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r,prop:n})=>{const o=t.get("node");if(!o)return;const l=m=>{(m.composedPath?.()?.[0]??m.target)===o&&e.set("prevAnimationName",Fh(t.get("styles")))},u=m=>{const b=Fh(t.get("styles"));Mr(m)===o&&b===e.get("unmountAnimationName")&&!n("present")&&r({type:"UNMOUNT",src:"animationend"})},f=m=>{Mr(m)===o&&!n("present")&&r({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",l),o.addEventListener("animationcancel",f),o.addEventListener("animationend",u);const h=Jm(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",f),o.removeEventListener("animationend",u),QP(()=>h())}}}}});function Fh(e){return e?.animationName||"none"}var zo=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...l}=e,u=S.useRef(!1),f={...l,present:n,onExitComplete:r5(e.onExitComplete)},h=js(RV,f),m=AV(h);m.present&&(u.current=!0);const b=!m.present&&!u.current&&t||r&&!m.present&&u.current,x=()=>({"data-state":m.skip&&o?void 0:n?"open":"closed",hidden:!m.present});
2return{ref:m.setNode,getPresenceProps:x,present:m.present,unmounted:b}},[Ls,Ga]=Sr({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});const uf=Rt("span");uf.displayName="Span";const{withContext:CV}=ha({key:"text"}),_e=CV("p");function E_(e,t=[]){const r=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return S.useInsertionEffect(()=>{r.current=e}),S.useCallback((...n)=>r.current?.(...n),t)}function o5(e={}){const t=E_(e.onOpen),r=E_(e.onClose),[n,o]=S.useState(e.defaultOpen||!1),l=e.open!==void 0?e.open:n,u=e.open!==void 0,f=S.useCallback(()=>{u||o(!1),r?.()},[u,r]),h=S.useCallback(()=>{u||o(!0),t?.()},[u,t]),m=S.useCallback(()=>{l?f():h()},[l,h,f]);return{open:l,onOpen:h,onClose:f,onToggle:m,setOpen:o}}var $e=(e,t=[])=>({parts:(...r)=>{if(TV(t))return $e(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>$e(e,[...t,...r]),omit:(...r)=>$e(e,t.filter(n=>!r.includes(n))),rename:r=>$e(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Lc(e)}"][data-part="${Lc(n)}"]`,`& [data-scope="${Lc(e)}"][data-part="${Lc(n)}"]`].join(", "),attrs:{"data-scope":Lc(e),"data-part":Lc(n)}}}),{})}),Lc=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),TV=e=>e.length===0,s5=$e("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");s5.build();var df=(e,t)=>({x:e,y:t});function wV(e){const{x:t,y:r,width:n,height:o}=e,l=t+n/2,u=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:l,midY:u,center:df(l,u)}}function _V(e){const t=df(e.minX,e.minY),r=df(e.maxX,e.minY),n=df(e.maxX,e.maxY),o=df(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function OV(e,t){const r=wV(e),{top:n,right:o,left:l,bottom:u}=_V(r),[f]=t.split("-");return{top:[l,n,o,u],right:[n,o,u,l],bottom:[n,l,u,o],left:[o,n,l,u]}[f]}function l5(e,t){const{x:r,y:n}=t;let o=!1;for(let l=0,u=e.length-1;l<e.length;u=l++){const f=e[l].x,h=e[l].y,m=e[u].x,b=e[u].y;h>n!=b>n&&r<(m-f)*(n-h)/(b-h)+f&&(o=!o)}return o}var c5=$e("avatar").parts("root","image","fallback");c5.build();var zc=new WeakMap,$h=new WeakMap,Bh={},xy=0,u5=e=>e&&(e.host||u5(e.parentNode)),IV=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=u5(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),qV=new Set(["script","output","status","next-route-announcer"]),PV=e=>qV.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),kV=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o,explicitBooleanValue:l,followControlledElements:u=!0}=t,f=IV(r,Array.isArray(e)?e:[e]);Bh[n]||(Bh[n]=new WeakMap);const h=Bh[n],m=[],b=new Set,x=new Set(f),E=C=>{!C||b.has(C)||(b.add(C),E(C.parentNode))};f.forEach(C=>{E(C),u&&xr(C)&&NP(C,R=>{E(R)})});const T=C=>{!C||x.has(C)||Array.prototype.forEach.call(C.children,R=>{if(b.has(R))T(R);else try{if(PV(R))return;const w=R.getAttribute(o),I=l?w==="true":w!==null&&w!=="false",P=(zc.get(R)||0)+1,q=(h.get(R)||0)+1;zc.set(R,P),h.set(R,q),m.push(R),P===1&&I&&$h.set(R,!0),q===1&&R.setAttribute(n,""),I||R.setAttribute(o,l?"true":"")}catch(w){console.error("[zag-js > ariaHidden] cannot operate on ",R,w)}})};return T(r),b.clear(),xy++,()=>{m.forEach(C=>{const R=zc.get(C)-1,w=h.get(C)-1;zc.set(C,R),h.set(C,w),R||($h.has(C)||C.removeAttribute(o),$h.delete(C)),w||C.removeAttribute(n)}),xy--,xy||(zc=new WeakMap,zc=new WeakMap,$h=new WeakMap,Bh={})}},NV=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,DV=(e,t=NV(e),r="data-aria-hidden",n=!0)=>{if(t)return kV(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:n})},MV=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function jV(e,t={}){const{defer:r=!0}=t,n=r?MV:l=>l(),o=[];return o.push(n(()=>
2{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(DV(u))})),()=>{o.forEach(l=>l?.())}}function LV(e){const t={each(r){for(let n=0;n<e.frames?.length;n+=1){const o=e.frames[n];o&&r(o)}},addEventListener(r,n,o){return t.each(l=>{try{l.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(l=>{try{l.document.removeEventListener(r,n,o)}catch{}})}};return t}function zV(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var A_="pointerdown.outside",R_="focus.outside";function UV(e){for(const t of e)if(xr(t)&&La(t))return!0;return!1}var d5=e=>"clientY"in e;function VV(e,t){if(!d5(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function FV(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function C_(e,t){if(!t||!d5(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,l=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},f={x:e.clientX,y:e.clientY};return FV(u,f)?n||l:!1}function $V(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:l,defer:u,followControlledElements:f=!0}=t;if(!e)return;const h=kn(e),m=Lr(e),b=LV(m),x=zV(m);function E(D,O){if(!xr(O)||!O.isConnected||da(e,O)||VV(e,D)||f&&kP(e,O))return!1;const N=h.querySelector(`[aria-controls="${e.id}"]`);if(N){const J=Qm(N);if(C_(D,J))return!1}const V=Qm(e);return C_(D,V)?!1:!r?.(O)}const T=new Set,C=Ml(e?.getRootNode());let R=!1;function w(D){R=!0;const O=()=>{R=!1};h.addEventListener("pointerup",O,{once:!0}),m.addEventListener("pointerup",O,{once:!0});function N(V){const J=u&&!h_()?sr:B=>B(),W=V??D,G=W?.composedPath?.()??[W?.target];J(()=>{const B=C?G[0]:Mr(D);if(!(!e||!E(D,B))){if(o||l){const L=j1(o,l);e.addEventListener(A_,L,{once:!0})}T_(e,A_,{bubbles:!1,cancelable:!0,detail:{originalEvent:W,contextmenu:jP(W),focusable:UV(G),target:B}})}})}D.pointerType==="touch"?(T.forEach(V=>V()),T.add(ur(h,"click",N,{once:!0})),T.add(x.addEventListener("click",N,{once:!0})),T.add(b.addEventListener("click",N,{once:!0}))):N()}const I=new Set,P=setTimeout(()=>{I.add(ur(h,"pointerdown",w,!0)),I.add(x.addEventListener("pointerdown",w,!0)),I.add(b.addEventListener("pointerdown",w,!0))},0);function q(D){if(R)return;(u?sr:N=>N())(()=>{const N=D?.composedPath?.()??[D?.target],V=C?N[0]:Mr(D);if(!(!e||!E(D,V))){if(n||l){const J=j1(n,l);e.addEventListener(R_,J,{once:!0})}T_(e,R_,{bubbles:!1,cancelable:!0,detail:{originalEvent:D,contextmenu:!1,focusable:La(V),target:V}})}})}return h_()||(I.add(ur(h,"focusin",q,!0)),I.add(x.addEventListener("focusin",q,!0)),I.add(b.addEventListener("focusin",q,!0))),()=>{clearTimeout(P),T.forEach(D=>D()),I.forEach(D=>D())}}function BV(e,t){const{defer:r}=t,n=r?sr:l=>l(),o=[];return o.push(n(()=>{const l=typeof e=="function"?e():e;o.push($V(l,t))})),()=>{o.forEach(l=>l?.())}}function T_(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function HV(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return ur(kn(e),"keydown",r,{capture:!0})}var w_="layer:request-dismiss",Yn={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const r=this.indexOf(e);return r===-1?[]:this.layers.slice(r+1).filter(n=>n.type===t)},getParentLayerOfType(e,t){const r=this.indexOf(e);if(!(r<=0))return this.layers.slice(0,r).reverse().find(n=>n.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!(this.getNestedLayers(e).some(n=>da(n.node,t))||this.recentlyRemoved.size>0)},isInBranch(e){return Array.from(this.branches).some(t=>da(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(this.recentlyRemoved.add(e),QP(()=>this.recentlyRemoved.delete(e)),t<this.count()-1&&this.getNestedLayers(e).forEach(n=>
2Yn.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];WV(e,w_,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),GV(e,w_,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function GV(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function WV(e,t,r){e.addEventListener(t,r,{once:!0})}var __;function O_(){Yn.layers.forEach(({node:e})=>{e.style.pointerEvents=Yn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function YV(e){e.style.pointerEvents=""}function KV(e,t){const r=kn(e),n=[];return Yn.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(__=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[l,u]=fV(()=>{const f=o();return xr(f)?f:null},{timeout:1e3});l.then(f=>n.push(Jm(f,{pointerEvents:"auto"}))),n.push(u)}),()=>{Yn.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=__,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function XV(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Nf("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:l,exclude:u,debug:f,type:h="dialog"}=t,m={dismiss:n,node:e,type:h,pointerBlocking:l,requestDismiss:o};Yn.add(m),O_();function b(R){const w=Mr(R.detail.originalEvent);Yn.isBelowPointerBlockingLayer(e)||Yn.isInBranch(w)||(t.onPointerDownOutside?.(R),t.onInteractOutside?.(R),!R.defaultPrevented&&(f&&console.log("onPointerDownOutside:",R.detail.originalEvent),n?.()))}function x(R){const w=Mr(R.detail.originalEvent);Yn.isInBranch(w)||(t.onFocusOutside?.(R),t.onInteractOutside?.(R),!R.defaultPrevented&&(f&&console.log("onFocusOutside:",R.detail.originalEvent),n?.()))}function E(R){Yn.isTopMost(e)&&(t.onEscapeKeyDown?.(R),!R.defaultPrevented&&n&&(R.preventDefault(),n()))}function T(R){if(!e)return!1;const w=typeof u=="function"?u():u,I=Array.isArray(w)?w:[w],P=t.persistentElements?.map(q=>q()).filter(xr);return P&&I.push(...P),I.some(q=>da(q,R))||Yn.isInNestedLayer(e,R)}const C=[l?KV(e,t.persistentElements):void 0,HV(e,E),BV(e,{exclude:T,onFocusOutside:x,onPointerDownOutside:b,defer:t.defer})];return()=>{Yn.remove(e),O_(),YV(e),C.forEach(R=>R?.())}}function j2(e,t){const{defer:r}=t,n=r?sr:l=>l(),o=[];return o.push(n(()=>{const l=Vi(e)?e():e;o.push(XV(l,t))})),()=>{o.forEach(l=>l?.())}}function QV(e,t={}){const{defer:r}=t,n=r?sr:l=>l(),o=[];return o.push(n(()=>{const l=Vi(e)?e():e;if(!l){Nf("[@zag-js/dismissable] branch node is `null` or `undefined`");return}Yn.addBranch(l),o.push(()=>{Yn.removeBranch(l)})})),()=>{o.forEach(l=>l?.())}}var JV=Object.defineProperty,ZV=(e,t,r)=>t in e?JV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t,r)=>ZV(e,typeof t!="symbol"?t+"":t,r),I_={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},eF=[],tF=class{constructor(e,t){ar(this,"trapStack"),ar(this,"config"),ar(this,"doc"),ar(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ar(this,"portalContainers",new Set),ar(this,"listenerCleanups",[]),ar(this,"handleFocus",n=>{const o=Mr(n),l=this.findContainerIndex(o,n)>=0;
vendor: 13,500 bytes, line 2
2if(l||Hg(o))l&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let u,f=!0;if(this.state.mostRecentlyFocusedNode)if(Hd(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:m}=this.state.containerGroups[h];if(m.length>0){const b=m.findIndex(x=>x===this.state.mostRecentlyFocusedNode);b>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?b+1<m.length&&(u=m[b+1],f=!1):b-1>=0&&(u=m[b-1],f=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(m=>Hd(m)>0))||(f=!1);else f=!1;f&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ar(this,"handlePointerDown",n=>{const o=Mr(n);if(!(this.findContainerIndex(o,n)>=0)){if(Gd(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Gd(this.config.allowOutsideClick,n)||n.preventDefault()}}),ar(this,"handleClick",n=>{const o=Mr(n);this.findContainerIndex(o,n)>=0||Gd(this.config.clickOutsideDeactivates,n)||Gd(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),ar(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),l=this.findNextNavNode({event:n,isBackward:o});if(!l)return;Sy(n)&&n.preventDefault(),this.tryFocus(l)}}),ar(this,"handleEscapeKey",n=>{iF(n)&&Gd(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),ar(this,"_mutationObserver"),ar(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(f=>Array.from(f.removedNodes).some(m=>m===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(f=>f.type==="attributes"&&(f.attributeName==="aria-controls"||f.attributeName==="aria-expanded")?!0:f.type==="childList"&&f.addedNodes.length>0?Array.from(f.addedNodes).some(h=>{if(h.nodeType!==Node.ELEMENT_NODE)return!1;const m=h;return bU(m)?!0:m.id&&!this.state.containers.some(b=>b.contains(m))?vU(m):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),ar(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(n=>{this.observePortalContainer(n)}))}),ar(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!La(n)){const o=_l(this.doc);if(o&&this.findContainerIndex(o)>=0)n=o;else{const l=this.state.tabbableGroups[0];n=l&&l.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");if(n.isConnected||(n=this.getNodeForOption("fallbackFocus")),!n||!n.isConnected)throw new Error("Your focus-trap needs to have at least one focusable element");return n}),ar(this,"tryFocus",n=>{if(n!==!1&&n!==_l(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,aF(n)&&n.select()}}),ar(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),I_.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const l=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),f=this.getOption(o,"checkCanReturnFocus"),h=this.getOption(o,"returnFocus","returnFocusOnDeactivate");l?.();const m=()=>{q_(()=>{if(h){const b=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(b)}u?.()})};if(h&&f){const b=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(b).then(m,m),this}return m(),this}),ar(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),l=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),l?.(),this}),ar(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),l=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),l?.(),this}),ar(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ar(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),ar(this,"getOption",(n,o,l)=>n&&n[o]!==void 0?n[o]:this.config[l||o]),ar(this,"getNodeForOption",(n,{hasFallback:o=!1,params:l=[]}={})=>{let u=this.config[n];if(typeof u=="function"&&(u=u(...l)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let f=u;if(typeof u=="string"){try{f=this.doc.querySelector(u)}catch(h){throw new Error(`\`${n}\` appears to be an invalid selector; error="${h.message}"`)}if(!f&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return f}),ar(this,"findNextNavNode",n=>{const{event:o,isBackward:l=!1}=n,u=n.target||Mr(o);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(u,o),m=h>=0?this.state.containerGroups[h]:void 0;if(h<0)l?f=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:f=this.state.tabbableGroups[0].firstTabbableNode;else if(l){let b=this.state.tabbableGroups.findIndex(({firstTabbableNode:x})=>u===x);if(b<0&&(m?.container===u||La(u)&&!El(u)&&!m?.nextTabbableNode(u,!1))&&(b=h),b>=0){const x=b===0?this.state.tabbableGroups.length-1:b-1,E=this.state.tabbableGroups[x];f=Hd(u)>=0?E.lastTabbableNode:E.lastDomTabbableNode}else Sy(o)||(f=m?.nextTabbableNode(u,!1))}else{let b=this.state.tabbableGroups.findIndex(({lastTabbableNode:x})=>u===x);if(b<0&&(m?.container===u||La(u)&&!El(u)&&!m?.nextTabbableNode(u))&&(b=h),b>=0){const x=b===this.state.tabbableGroups.length-1?0:b+1,E=this.state.tabbableGroups[x];f=Hd(u)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else Sy(o)||(f=m?.nextTabbableNode(u))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||eF;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:rF,isKeyBackward:nF,...t};this.doc=r.document||kn(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{hU(e).forEach(r=>{this.addPortalContainer(r)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(l=>l===e)||this.isControlledElement(n,e))}isControlledElement(e,t){return this.config.followControlledElements?kP(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Jf(e,{getShadowRoot:this.config.getShadowRoot}),r=WP(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],o=t[t.length-1],l=n,u=o;let f=!1;for(let m=0;m<t.length;m++)if(Hd(t[m])>0){f=!0;break}function h(m,b=!0){const x=t.indexOf(m);if(x>=0)return t[x+(b?1:-1)];const E=r.indexOf(m);if(!(E<0)){if(b){for(let T=E+1;T<r.length;T++)if(El(r[T]))return r[T]}else for(let T=E-1;T>=0;T--)if(El(r[T]))return r[T]}}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:f,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:l,lastDomTabbableNode:u,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return I_.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?q_(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ur(this.doc,"focusin",this.handleFocus,!0),ur(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=_l(this.doc),t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},L2=e=>e?.type==="keydown",Sy=e=>L2(e)&&e?.key==="Tab",rF=e=>L2(e)&&e.key==="Tab"&&!e?.shiftKey,nF=e=>L2(e)&&e.key==="Tab"&&e?.shiftKey,Gd=(e,...t)=>typeof e=="function"?e(...t):e,iF=e=>!e.isComposing&&e.key==="Escape",q_=e=>setTimeout(e,0),aF=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function oF(e,t={}){let r;const n=sr(()=>{const l=(Array.isArray(e)?e:[e]).map(f=>typeof f=="function"?f():f).filter(f=>f!=null);if(l.length===0)return;const u=l[0];r=new tF(l,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:u,...t,document:kn(u)});try{r.activate()}catch{}});return function(){r?.deactivate(),n()}}var Ey="data-scroll-lock";function sF(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function P_(e){const r=Xf(e)?.scrollbarGutter;return r==="stable"||r?.startsWith("stable ")===!0}function lF(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(Ey))return;const u=P_(n)||P_(o),f=r.innerWidth-n.clientWidth;o.setAttribute(Ey,"");const h=()=>sV(n,"--scrollbar-width",`${f}px`),m=sF(n),b=()=>{const T={overflow:"hidden"};return!u&&f>0&&(T[m]=`${f}px`),Jm(o,T)},x=()=>{const{scrollX:T,scrollY:C,visualViewport:R}=r,w=R?.offsetLeft??0,I=R?.offsetTop??0,P={position:"fixed",overflow:"hidden",top:`${-(C-Math.floor(I))}px`,left:`${-(T-Math.floor(w))}px`,right:"0"};!u&&f>0&&(P[m]=`${f}px`);const q=Jm(o,P);return()=>{q?.(),r.scrollTo({left:T,top:C,behavior:"instant"})}},E=[h(),MP()?x():b()];return()=>{E.forEach(T=>T?.()),o.removeAttribute(Ey)}}var f5=$e("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");f5.build();var cF=f5.extendWith("progressText","autoplayIndicator"),p5=$e("checkbox").parts("root","label","control","indicator"),Hh=p5.build();function uF(e){return!(e.metaKey||!Qf()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var dF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fF(e,t,r){const n=r?Mr(r):null,o=kn(n),l=Lr(n),u=_l(o);return e=e||u instanceof l.HTMLInputElement&&!dF.has(u?.type)||u instanceof l.HTMLTextAreaElement||u instanceof l.HTMLElement&&u.isContentEditable,!(e&&t==="keyboard"&&r instanceof l.KeyboardEvent&&!Reflect.has(hF,r.key))}var qo=null,U1=new Set,eg=new Map,jl=!1,V1=!1,pF=!1,hF={Tab:!0,Escape:!0};function Kg(e,t){for(let r of U1)r(e,t)}function tg(e){jl=!0,uF(e)&&(qo="keyboard",Kg("keyboard",e))}function Li(e){qo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jl=!0,Kg("pointer",e))}function h5(e){qU(e)&&(jl=!0,qo="virtual")}function m5(e){const t=Mr(e);t===Lr(t)||t===kn(t)||pF||!e.isTrusted||(!jl&&!V1&&(qo="virtual",Kg
2("virtual",e)),jl=!1,V1=!1)}function g5(){jl=!1,V1=!0}function mF(e){if(typeof window>"u"||eg.get(Lr(e)))return;const t=Lr(e),r=kn(e);let n=t.HTMLElement.prototype.focus;function o(){jl=!0,n.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}r.addEventListener("keydown",tg,!0),r.addEventListener("keyup",tg,!0),r.addEventListener("click",h5,!0),t.addEventListener("focus",m5,!0),t.addEventListener("blur",g5,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",Li,!0),r.addEventListener("pointermove",Li,!0),r.addEventListener("pointerup",Li,!0)):(r.addEventListener("mousedown",Li,!0),r.addEventListener("mousemove",Li,!0),r.addEventListener("mouseup",Li,!0)),t.addEventListener("beforeunload",()=>{gF(e)},{once:!0}),eg.set(t,{focus:n})}var gF=(e,t)=>{const r=Lr(e),n=kn(e),o=eg.get(r);if(o){try{Object.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}n.removeEventListener("keydown",tg,!0),n.removeEventListener("keyup",tg,!0),n.removeEventListener("click",h5,!0),r.removeEventListener("focus",m5,!0),r.removeEventListener("blur",g5,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",Li,!0),n.removeEventListener("pointermove",Li,!0),n.removeEventListener("pointerup",Li,!0)):(n.removeEventListener("mousedown",Li,!0),n.removeEventListener("mousemove",Li,!0),n.removeEventListener("mouseup",Li,!0)),eg.delete(r)}};function b5(){return qo}function v5(e){qo=e,Kg(e,null)}function rg(){return qo==="keyboard"||qo==="virtual"}function Xg(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;mF(o),n?.({isFocusVisible:r||rg(),modality:qo});const l=(u,f)=>{fF(!!t,u,f)&&n?.({isFocusVisible:rg(),modality:u})};return U1.add(l),()=>{U1.delete(l)}}var y5=e=>e.ids?.root??`checkbox:${e.id}`,k_=e=>e.ids?.label??`checkbox:${e.id}:label`,bF=e=>e.ids?.control??`checkbox:${e.id}:control`,F1=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,vF=e=>e.getById(y5(e)),ff=e=>e.getById(F1(e));function yF(e,t){const{send:r,context:n,prop:o,computed:l,scope:u}=e,f=!!o("disabled"),h=!!o("readOnly"),m=!!o("required"),b=!!o("invalid"),x=!f&&n.get("focused"),E=!f&&n.get("focusVisible"),T=l("checked"),C=l("indeterminate"),R=n.get("checked"),w={"data-active":Ue(n.get("active")),"data-focus":Ue(x),"data-focus-visible":Ue(E),"data-readonly":Ue(h),"data-hover":Ue(n.get("hovered")),"data-disabled":Ue(f),"data-state":C?"indeterminate":T?"checked":"unchecked","data-invalid":Ue(b),"data-required":Ue(m)};return{checked:T,disabled:f,indeterminate:C,focused:x,checkedState:R,setChecked(I){r({type:"CHECKED.SET",checked:I,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:T,isTrusted:!1})},getRootProps(){return t.label({...Hh.root.attrs,...w,dir:o("dir"),id:y5(u),htmlFor:F1(u),onPointerMove(){f||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){f||r({type:"CONTEXT.SET",context:{hovered:!1}})}
2,onClick(I){Mr(I)===ff(u)&&I.stopPropagation()}})},getLabelProps(){return t.element({...Hh.label.attrs,...w,dir:o("dir"),id:k_(u)})},getControlProps(){return t.element({...Hh.control.attrs,...w,dir:o("dir"),id:bF(u),"aria-hidden":!0})},getIndicatorProps(){return t.element({...Hh.indicator.attrs,...w,dir:o("dir"),hidden:!C&&!T})},getHiddenInputProps(){return t.input({id:F1(u),type:"checkbox",required:o("required"),defaultChecked:T,disabled:f,"aria-labelledby":k_(u),"aria-invalid":b,name:o("name"),form:o("form"),value:o("value"),style:t5,onFocus(){const I=rg();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:I}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(I){if(h){I.preventDefault();return}const P=I.currentTarget.checked;r({type:"CHECKED.SET",checked:P,isTrusted:!0})}})}}}var{not:N_}=yu(),xF=Ds({props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:N_("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:N_("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Sm(e.get("checked")),checked:({context:e})=>SF(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return tV({pointerNode:vF(r),keyboardNode:ff(r),isValidKey:n=>n.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Xg({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return UP(ff(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){const n=ff(r);n&&(zP(n,t("checked")),n.indeterminate=Sm(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const r=Sm(t("checked"))?!0:!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const r=ff(t);jU(r,{checked:e("checked")})})}}}});function Sm(e){return e==="indeterminate"}function SF(e){return Sm(e)?!1:!!e}var z2=p5.extendWith("group"),x5=$e("clipboard").parts("root","control","trigger","indicator","input","label");x5.build();var S5=$e("collapsible").parts("root","trigger","content","indicator"),s2e=S5.build(),E5=$e("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);E5.build();const EF=["top","right","bottom","left"],ws=Math.min,bi=Math.max,ng=Math.round,Gh=Math.floor,za=e=>({x:e,y:e}),AF={left:"right",right:"left",bottom:"top",top:"bottom"};function $1(e,t,r){return bi(e,ws(t,r))}function Po(e,t){return typeof e=="function"?e(t):e}function ko(e){return e.split("-")[0]}function Su(e){return e.split("-")[1]}function U2(e){return e==="x"?"y":"x"}function V2(e){return e==="y"?"height":"width"}function Da(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function F2(e){return U2(Da(e))}function RF(e,t,r){r===void 0&&(r=!1);const n=Su(e),o=F2(e),l=V2(o);let u=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ig(u)),[u,ig(u)]}function CF(e){const t=ig(e);return[B1(e),t,B1(t)]}function B1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const D_=["left","right"],M_=["right","left"],TF=["top","bottom"],wF=["bottom","top"];function _F(e,t,r){switch(e){case"top":case"bottom":return r?t?M_:D_:t?D_:M_;case"left":case"right":return t?TF:wF;default:return[]}}function OF(e,t,r,n){const o=Su(e);let l=_F(ko(e),r==="start",n);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(B1)))),l}function ig(e){const t=ko(e);return AF[t]+e.slice(t.length)}function IF(e){return{top:0,right:0,bottom:0,left:0,...e}}function A5(e){return typeof e!="number"?IF(e):{top:e,right:e,bottom:e,left:e}}function ag(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function j_(e,t,r){let{reference:n,floating:o}=e;const l=Da(t),u=F2(t),f=V2(u),h=ko(t),m=l==="y",b=n.x+n.width/2-o.width/2,x=n.y+n.height/2-o.height/2,E=n[f]/2-o[f]/2;let T;switch(h){case"top":T={x:b,y:n.y-o.height};break;case"bottom":T={x:b,y:n.y+n.height};break;case"right":T={x:n.x+n.width,y:x};break;case"left":T={x:n.x-o.width,y:x};break;default:T={x:n.x,y:n.y}}switch(Su(t)){case"start":T[u]-=E*(r&&m?-1:1);break;case"end":T[u]+=E*(r&&m?-1:1);break}return T}async function qF(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:x="floating",altBoundary:E=!1,padding:T=0}=Po(t,e),C=A5(T),w=f[E?x==="floating"?"reference":"floating":x],I=ag(await l.getClippingRect
vendor: 18,281 bytes, line 2
2({element:(r=await(l.isElement==null?void 0:l.isElement(w)))==null||r?w:w.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:m,rootBoundary:b,strategy:h})),P=x==="floating"?{x:n,y:o,width:u.floating.width,height:u.floating.height}:u.reference,q=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),D=await(l.isElement==null?void 0:l.isElement(q))?await(l.getScale==null?void 0:l.getScale(q))||{x:1,y:1}:{x:1,y:1},O=ag(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:q,strategy:h}):P);return{top:(I.top-O.top+C.top)/D.y,bottom:(O.bottom-I.bottom+C.bottom)/D.y,left:(I.left-O.left+C.left)/D.x,right:(O.right-I.right+C.right)/D.x}}const PF=50,kF=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:l=[],platform:u}=r,f=u.detectOverflow?u:{...u,detectOverflow:qF},h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:b,y:x}=j_(m,n,h),E=n,T=0;const C={};for(let R=0;R<l.length;R++){const w=l[R];if(!w)continue;const{name:I,fn:P}=w,{x:q,y:D,data:O,reset:N}=await P({x:b,y:x,initialPlacement:n,placement:E,strategy:o,middlewareData:C,rects:m,platform:f,elements:{reference:e,floating:t}});b=q??b,x=D??x,C[I]={...C[I],...O},N&&T<PF&&(T++,typeof N=="object"&&(N.placement&&(E=N.placement),N.rects&&(m=N.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:b,y:x}=j_(m,E,h)),R=-1)}return{x:b,y:x,placement:E,strategy:o,middlewareData:C}},NF=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:m,padding:b=0}=Po(e,t)||{};if(m==null)return{};const x=A5(b),E={x:r,y:n},T=F2(o),C=V2(T),R=await u.getDimensions(m),w=T==="y",I=w?"top":"left",P=w?"bottom":"right",q=w?"clientHeight":"clientWidth",D=l.reference[C]+l.reference[T]-E[T]-l.floating[C],O=E[T]-l.reference[T],N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let V=N?N[q]:0;(!V||!await(u.isElement==null?void 0:u.isElement(N)))&&(V=f.floating[q]||l.floating[C]);const J=D/2-O/2,W=V/2-R[C]/2-1,G=ws(x[I],W),B=ws(x[P],W),L=G,z=V-R[C]-B,ee=V/2-R[C]/2+J,te=$1(L,ee,z),Y=!h.arrow&&Su(o)!=null&&ee!==te&&l.reference[C]/2-(ee<L?G:B)-R[C]/2<0,ie=Y?ee<L?ee-L:ee-z:0;return{[T]:E[T]+ie,data:{[T]:te,centerOffset:ee-te-ie,...Y&&{alignmentOffset:ie}},reset:Y}}}),DF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:m}=t,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:E,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:R=!0,...w}=Po(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const I=ko(o),P=Da(f),q=ko(f)===f,D=await(h.isRTL==null?void 0:h.isRTL(m.floating)),O=E||(q||!R?[ig(f)]:CF(f)),N=C!=="none";!E&&N&&O.push(...OF(f,R,C,D));const V=[f,...O],J=await h.detectOverflow(t,w),W=[];let G=((n=l.flip)==null?void 0:n.overflows)||[];if(b&&W.push(J[I]),x){const ee=RF(o,u,D);W.push(J[ee[0]],J[ee[1]])}if(G=[...G,{placement:o,overflows:W}],!W.every(ee=>ee<=0)){var B,L;const ee=(((B=l.flip)==null?void 0:B.index)||0)+1,te=V[ee];if(te&&(!(x==="alignment"?P!==Da(te):!1)||G.every(me=>Da(me.placement)===P?me.overflows[0]>0:!0)))return{data:{index:ee,overflows:G},reset:{placement:te}};let Y=(L=G.filter(ie=>ie.overflows[0]<=0).sort((ie,me)=>ie.overflows[1]-me.overflows[1])[0])==null?void 0:L.placement;if(!Y)switch(T){case"bestFit":{var z;const ie=(z=G.filter(me=>{if(N){const Se=Da(me.placement);return Se===P||Se==="y"}return!0}).map(me=>[me.placement,me.overflows.filter(Se=>Se>0).reduce((Se,we)=>Se+we,0)]).sort((me,Se)=>me[1]-Se[1])[0])==null?void 0:z[0];ie&&(Y=ie);break}case"initialPlacement":Y=f;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function L_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function z_(e){return EF.some(t=>e[t]>=0)}const MF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...l}=Po(e,t);switch(o){case"referenceHidden":{const u=await n.detectOverflow(t,{...l,elementContext:"reference"}),f=L_(u,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:z_(f)}}}case"escaped":{const u=await n.detectOverflow(t,{...l,altBoundary:!0}),f=L_(u,r.floating);return{data:{escapedOffsets:f,escaped:z_(f)}}}default:return{}}}}},R5=new Set(["left","top"]);async function jF(e,t){const{placement:r,platform:n,elements:o}=e,l=await(n.isRTL==null?void 0:n.isRTL(o.floating)),u=ko(r),f=Su(r),h=Da(r)==="y",m=R5.has(u)?-1:1,b=l&&h?-1:1,x=Po(t,e);let{mainAxis:E,crossAxis:T,alignmentAxis:C}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof C=="number"&&(T=f==="end"?C*-1:C),h?{x:T*b,y:E*m}:{x:E*m,y:T*b}}const LF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:l,placement:u,middlewareData:f}=t,h=await jF(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(n=f.arrow)!=null&&n.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},zF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:l}=t,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:I=>{let{x:P,y:q}=I;return{x:P,y:q}}},...m}=Po(e,t),b={x:r,y:n},x=await l.detectOverflow(t,m),E=Da(ko(o)),T=U2(E);let C=b[T],R=b[E];if(u){const I=T==="y"?"top":"left",P=T==="y"?"bottom":"right",q=C+x[I],D=C-x[P];C=$1(q,C,D)}if(f){const I=E==="y"?"top":"left",P=E==="y"?"bottom":"right",q=R+x[I],D=R-x[P];R=$1(q,R,D)}const w=h.fn({...t,[T]:C,[E]:R});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[T]:u,[E]:f}}}}}},UF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:m=!0}=Po(e,t),b={x:r,y:n},x=Da(o),E=U2(x);let T=b[E],C=b[x];const R=Po(f,t),w=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){const q=E==="y"?"height":"width",D=l.reference[E]-l.floating[q]+w.mainAxis,O=l.reference[E]+l.reference[q]-w.mainAxis;T<D?T=D:T>O&&(T=O)}if(m){var I,P;const q=E==="y"?"width":"height",D=R5.has(ko(o)),O=l.reference[x]-l.floating[q]+(D&&((I=u.offset)==null?void 0:I[x])||0)+(D?0:w.crossAxis),N=l.reference[x]+l.reference[q]+(D?0:((P=u.offset)==null?void 0:P[x])||0)-(D?w.crossAxis:0);C<O?C=O:C>N&&(C=N)}return{[E]:T,[x]:C}}}},VF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...m}=Po(e,t),b=await u.detectOverflow(t,m),x=ko(o),E=Su(o),T=Da(o)==="y",{width:C,height:R}=l.floating;let w,I;x==="top"||x==="bottom"?(w=x,I=E===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(I=x,w=E==="end"?"top":"bottom");const P=R-b.top-b.bottom,q=C-b.left-b.right,D=ws(R-b[w],P),O=ws(C-b[I],q),N=!t.middlewareData.shift;let V=D,J=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(J=q),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(V=P),N&&!E){const G=bi(b.left,0),B=bi(b.right,0),L=bi(b.top,0),z=bi(b.bottom,0);T?J=C-2*(G!==0||B!==0?G+B:bi(b.left,b.right)):V=R-2*(L!==0||z!==0?L+z:bi(b.top,b.bottom))}await h({...t,availableWidth:J,availableHeight:V});const W=await u.getDimensions(f.floating);return C!==W.width||R!==W.height?{reset:{rects:!0}}:{}}}};function Qg(){return typeof window<"u"}function Eu(e){return C5(e)?(e.nodeName||"").toLowerCase():"#document"}function yi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wa(e){var t;return(t=(C5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C5(e){return Qg()?e instanceof Node||e instanceof yi(e).Node:!1}function fa(e){return Qg()?e instanceof Element||e instanceof yi(e).Element:!1}function Uo(e){return Qg()?e instanceof HTMLElement||e instanceof yi(e).HTMLElement:!1}function U_(e){return!Qg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yi(e).ShadowRoot}function tp(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=pa(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function FF(e){return/^(table|td|th)$/.test(Eu(e))}function Jg(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $F=/transform|translate|scale|rotate|perspective|filter/,BF=/paint|layout|strict|content/,dl=e=>!!e&&e!=="none";let Ay;function $2(e){const t=fa(e)?pa(e):e;return dl(t.transform)||dl(t.translate)||dl(t.scale)||dl(t.rotate)||dl(t.perspective)||!B2()&&(dl(t.backdropFilter)||dl(t.filter))||$F.test(t.willChange||"")||BF.test(t.contain||"")}function HF(e){let t=_s(e);for(;Uo(t)&&!cu(t);){if($2(t))return t;if(Jg(t))return null;t=_s(t)}return null}function B2(){return Ay==null&&(Ay=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ay}function cu(e){return/^(html|body|#document)$/.test(Eu(e))}function pa(e){return yi(e).getComputedStyle(e)}function Zg(e){return fa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||U_(e)&&e.host||Wa(e);return U_(t)?t.host:t}function T5(e){const t=_s(e);return cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Uo(t)&&tp(t)?t:T5(t)}function Mf(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=T5(e),l=o===((n=e.ownerDocument)==null?void 0:n.body),u=yi(o);if(l){const f=H1(u);return t.concat(u,u.visualViewport||[],tp(o)?o:[],f&&r?Mf(f):[])}else return t.concat(o,Mf(o,[],r))}function H1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function w5(e){const t=pa(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Uo(e),l=o?e.offsetWidth:r,u=o?e.offsetHeight:n,f=ng(r)!==l||ng(n)!==u;return f&&(r=l,n=u),{width:r,height:n,$:f}}function H2(e){return fa(e)?e:e.contextElement}function iu(e){const t=H2(e);if(!Uo(t))return za(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:l}=w5(t);let u=(l?ng(r.width):r.width)/n,f=(l?ng(r.height):r.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const GF=za(0);function _5(e){const t=yi(e);return!B2()||!t.visualViewport?GF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WF(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==yi(e)?!1:t}function Ll(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),l=H2(e);let u=za(1);t&&(n?fa(n)&&(u=iu(n)):u=iu(e));const f=WF(l,r,n)?_5(l):za(0);let h=(o.left+f.x)/u.x,m=(o.top+f.y)/u.y,b=o.width/u.x,x=o.height/u.y;if(l){const E=yi(l),T=n&&fa(n)?yi(n):n;let C=E,R=H1(C);for(;R&&n&&T!==C;){const w=iu(R),I=R.getBoundingClientRect(),P=pa(R),q=I.left+(R.clientLeft+parseFloat(P.paddingLeft))*w.x,D=I.top+(R.clientTop+parseFloat(P.paddingTop))*w.y;h*=w.x,m*=w.y,b*=w.x,x*=w.y,h+=q,m+=D,C=yi(R),R=H1(C)}}return ag({width:b,height:x,x:h,y:m})}function eb(e,t){const r=Zg(e).scrollLeft;return t?t.left+r:Ll(Wa(e)).left+r}function O5(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-eb(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function YF(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const l=o==="fixed",u=Wa(n),f=t?Jg(t.floating):!1;if(n===u||f&&l)return r;let h={scrollLeft:0,scrollTop:0},m=za(1);const b=za(0),x=Uo(n);if((x||!x&&!l)&&((Eu(n)!=="body"||tp(u))&&(h=Zg(n)),x)){const T=Ll(n);m=iu(n),b.x=T.x+n.clientLeft,b.y=T.y+n.clientTop}const E=u&&!x&&!l?O5(u,h):za(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-h.scrollLeft*m.x+b.x+E.x,y:r.y*m.y-h.scrollTop*m.y+b.y+E.y}}function KF(e){return Array.from(e.getClientRects())}function XF(e){const t=Wa(e),r=Zg(e),n=e.ownerDocument.body,o=bi(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),l=bi(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let u=-r.scrollLeft+eb(e);const f=-r.scrollTop;return pa(n).direction==="rtl"&&(u+=bi(t.clientWidth,n.clientWidth)-o),{width:o,height:l,x:u,y:f}}const V_=25;function QF(e,t){const r=yi(e),n=Wa(e),o=r.visualViewport;let l=n.clientWidth,u=n.clientHeight,f=0,h=0;if(o){l=o.width,u=o.height;const b=B2();(!b||b&&t==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const m=eb(n);if(m<=0){const b=n.ownerDocument,x=b.body,E=getComputedStyle(x),T=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,C=Math.abs(n.clientWidth-x.clientWidth-T);C<=V_&&(l-=C)}else m<=V_&&(l+=m);return{width:l,height:u,x:f,y:h}}function JF(e,t){const r=Ll(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,l=Uo(e)?iu(e):za(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=o*l.x,m=n*l.y;return{width:u,height:f,x:h,y:m}}function F_(e,t,r){let n;if(t==="viewport")n=QF(e,r);else if(t==="document")n=XF(Wa(e));else if(fa(t))n=JF(t,r);else{const o=_5(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ag(n)}function I5(e,t){const r=_s(e);return r===t||!fa(r)||cu(r)?!1:pa(r).position==="fixed"||I5(r,t)}function ZF(e,t){const r=t.get(e);if(r)return r;let n=Mf(e,[],!1).filter(f=>fa(f)&&Eu(f)!=="body"),o=null;const l=pa(e).position==="fixed";let u=l?_s(e):e;for(;fa(u)&&!cu(u);){const f=pa(u),h=$2(u);!h&&f.position==="fixed"&&(o=null),(l?!h&&!o:!h&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||tp(u)&&!h&&I5(e,u))?n=n.filter(b=>b!==u):o=f,u=_s(u)}return t.set(e,n),n}function e$(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const u=[...r==="clippingAncestors"?Jg(t)?[]:ZF(t,this._c):[].concat(r),n],f=F_(t,u[0],o);let h=f.top,m=f.right,b=f.bottom,x=f.left;for(let E=1;E<u.length;E++){const T=F_(t,u[E],o);h=bi(T.top,h),m=ws(T.right,m),b=ws(T.bottom,b),x=bi(T.left,x)}return{width:m-x,height:b-h,x,y:h}}function t$(e){const{width:t,height:r}=w5(e);return{width:t,height:r}}function r$(e,t,r){const n=Uo(t),o=Wa(t),l=r==="fixed",u=Ll(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=za(0);function m(){h.x=eb(o)}if(n||!n&&!l)if((Eu(t)!=="body"||tp(o))&&(f=Zg(t)),n){const T=Ll(t,!0,l,t);h.x=T.x+t.clientLeft,h.y=T.y+t.clientTop}else o&&m();l&&!n&&o&&m();const b=o&&!n&&!l?O5(o,f):za(0),x=u.left+f.scrollLeft-h.x-b.x,E=u.top+f.scrollTop-h.y-b.y;return{x,y:E,width:u.width,height:u.height}}function Ry(e){return pa(e).position==="static"}function $_(e,t){if(!Uo(e)||pa(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Wa(e)===r&&(r=r.ownerDocument.body),r}function q5(e,t){const r=yi(e);if(Jg(e))return r;if(!Uo(e)){let o=_s(e);for(;o&&!cu(o);){if(fa(o)&&!Ry(o))return o;o=_s(o)}return r}let n=$_(e,t);for(;n&&FF(n)&&Ry(n);)n=$_(n,t);return n&&cu(n)&&Ry(n)&&!$2(n)?r:n||HF(e)||r}const n$=async function(e){const t=this.getOffsetParent||q5,r=this.getDimensions,n=await r(e.floating);return{reference:r$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function i$(e){return pa(e).direction==="rtl"}const a$={convertOffsetParentRelativeRectToViewportRelativeRect:YF,getDocumentElement:Wa,getClippingRect:e$,getOffsetParent:q5,getElementRects:n$,getClientRects:KF,getDimensions:t$,getScale:iu,isElement:fa,isRTL:i$};function P5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function o$(e,t){let r=null,n;const o=Wa(e);function l(){var f;clearTimeout(n),(f=r)==null||f.disconnect(),r=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:b,top:x,width:E,height:T}=m;if(f||t(),!E||!T)return;const C=Gh(x),R=Gh(o.clientWidth-(b+E)),w=Gh(o.clientHeight-(x+T)),I=Gh(b),q={rootMargin:-C+"px "+-R+"px "+-w+"px "+-I+"px",threshold:bi(0,ws(1,h))||1};let D=!0;function O(N){const V=N[0].intersectionRatio;if(V!==h){if(!D)return u();V?u(!1,V):n=setTimeout(()=>{u(!1,1e-7)},1e3)}V===1&&!P5(m,e.getBoundingClientRect())&&u(),D=!1}try{r=new IntersectionObserver(O,{...q,root:o.ownerDocument})}catch{r=new IntersectionObserver(O,q)}r.observe(e)}return u(!0),l}function s$(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=n,m=H2(e),b=o||l?[...m?Mf(m):[],...t?Mf(t):[]]:[];b.forEach(I=>{o&&I.addEventListener("scroll",r,{passive:!0}),l&&I.addEventListener("resize",r)});const x=m&&f?o$(m,r):null;let E=-1,T=null;u&&(T=new ResizeObserver(I=>{let[P]=I;P&&P.target===m&&T&&t&&(T.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var q;(q=T)==null||q.observe(t)})),r()}),m&&!h&&T.observe(m),t&&T.observe(t));let C,R=h?Ll(e):null;h&&w();function w(){const I=Ll(e);R&&!P5(R,I)&&r(),R=I,C=requestAnimationFrame(w)}return r(),()=>{var I;b.forEach(P=>{o&&P.removeEventListener("scroll",r),l&&P.removeEventListener("resize",r)}),x?.(),(I=T)==null||I.disconnect(),T=null,h&&cancelAnimationFrame(C)}}const l$=LF,c$=zF,u$=DF,d$=VF,f$=MF,p$=NF,h$=UF,m$=(e,t,r)=>{const n=new Map,o={platform:a$,...r},l={...o.platform,_c:n};return kF(e,t,{...o,platform:l})};function B_(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function g$(e){if(!e)return B_();const{x:t,y:r,width:n,height:o}=e;return B_(t,r,n,o)}function b$(e,t){return{contextElement:xr(e)?e:e?.contextElement,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?g$(n):r.getBoundingClientRect()}}}var Wd=e=>({variable:e,reference:`var(${e})`}),To={arrowSize:Wd("--arrow-size"),arrowSizeHalf:Wd("--arrow-size-half"),arrowBg:Wd("--arrow-background"),transformOrigin:Wd("--transform-origin"),arrowOffset:Wd("--arrow-offset")},v$=e=>e==="top"||e==="bottom"?"y":"x";function y$(e,t){return{name:"transformOrigin",fn(r){const{elements:n,middlewareData:o,placement:l,rects:u,y:f}=r,h=l.split("-")[0],m=v$(h),b=o.arrow?.x||0,x=o.arrow?.y||0,E=t?.clientWidth||0,T=t?.clientHeight||0,C=b+E/2,R=x+T/2,w=Math.abs(o.shift?.y||0),I=u.reference.height/2,P=T/2,q=e.offset?.mainAxis??e.gutter,D=typeof q=="number"?q+P:q??P,O=w>D,N={top:`${C}px calc(100% + ${D}px)`,bottom:`${C}
2px ${-D}px`,left:`calc(100% + ${D}px) ${R}px`,right:`${-D}px ${R}px`}[h],V=`${C}px ${u.reference.y+I-f}px`,J=!!e.overlap&&m==="y"&&O;return n.floating.style.setProperty(To.transformOrigin.variable,J?V:N),{data:{transformOrigin:J?V:N}}}}}var x$={name:"rects",fn({rects:e}){return{data:e}}},S$=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,l=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[l]:`calc(100% + ${To.arrowOffset.reference})`}),{}}}};function E$(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function A$(e){return e.split("-")[0]}var R$={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function H_(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function Qc(e,t){return e!=null&&Math.abs(e-t)<.5}function G2(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function C$(e,t,r){const n=e||t.createElement("div");return p$({element:n,padding:r.arrowPadding})}function T$(e,t){if(!O7(t.offset??t.gutter))return l$(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,l=typeof o=="number"?o+n:o??n,{hasAlign:u}=E$(r),f=u?void 0:t.shift,h=t.offset?.crossAxis??f;return lu({crossAxis:h,mainAxis:l,alignmentAxis:t.shift})})}function w$(e){if(!e.flip)return;const t=G2(e.boundary);return u$({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function _$(e){if(!e.slide&&!e.overlap)return;const t=G2(e.boundary);return c$({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:h$()})}function O$(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,r,n,o;return d$({padding:e.overflowPadding,apply({elements:l,rects:u,availableHeight:f,availableWidth:h}){const m=l.floating,b=Math.round(u.reference.width),x=Math.round(u.reference.height);h=Math.floor(h),f=Math.floor(f),Qc(t,b)||(m.style.setProperty("--reference-width",`${b}px`),t=b),Qc(r,x)||(m.style.setProperty("--reference-height",`${x}px`),r=x),Qc(n,h)||(m.style.setProperty("--available-width",`${h}px`),n=h),Qc(o,f)||(m.style.setProperty("--available-height",`${f}px`),o=f)}})}function I$(e){if(e.hideWhenDetached)return f$({strategy:"referenceHidden",boundary:G2(e.boundary)??"clippingAncestors"})}function q$(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var P$=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],k$=["top","right","bottom","left"];function G_(e,t){if(!e)return AP;const r=new Map(t.map(n=>[n,e.style.getPropertyValue(n)]));return()=>{r.forEach((n,o)=>{n?e.style.setProperty(o,n):e.style.removeProperty(o)}),e.style.length===0&&e.removeAttribute("style")}}function W_(e){return e==null?null:xr(e)?e:typeof e=="object"&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function N$(e,t,r={}){const n=()=>(typeof t=="function"?t():t)??null,o=()=>{const G=typeof e=="function"?e():e;return r.getAnchorElement?.()??G},l=()=>{const G=o();return!G&&!r.getAnchorRect?null:b$(G,r.getAnchorRect)},u=Object.assign({},R$,r);let f=[],h=null,m,b;function x(G){m?.(),b?.(),h=G,m=u.restoreStyles?G_(G,P$):void 0;const B=G.querySelector("[data-part=arrow]");b=u.restoreStyles?G_(B,k$):void 0,f=[T$(B,u),w$(u),_$(u),C$(B,G.ownerDocument,u),S$(B),y$({gutter:u.gutter,offset:u.offset,overlap:u.overlap},B),O$(u),I$(u),x$]}const{placement:E,strategy:T,onComplete:C,onPositioned:R}=u;let w,I,P=!1,q,D,O=AP;const N=q$(u.listeners);function V(){if(!u.listeners)return;const G=o(),B=l(),L=n();if(!B||!L)return;(W_(G)!==W_(q)||L!==D)&&(O(),q=G,D=L,O=s$(B,L,W,N))}async function J(){V();const G=n();if(!G)return;G!==h&&(x(G),P=!1);const B=l();if(!B)return;const L=await m$(B,G,{placement:E,middleware:f,strategy:T});C?.(L);const z=Lr(G),ee=H_(z,L.x),te=H_(z,L.y);if(Qc(w,ee)||(G.style.setProperty("--x",`${ee}px`),w=ee),Qc(I,te)||(G.style.setProperty("--y",`${te}px`),I=te),u.hideWhenDetached&&(L.middlewareData.hide?.referenceHidden?(G.style.setProperty("visibility","hidden"),G.style.setProperty("pointer-events","none")):(G.style.removeProperty("visibility"),G.style.removeProperty("pointer-events"))),!P){const Y=G.firstElementChild;Y&&(G.style.setProperty("--z-index",Xf(Y).zIndex),P=!0)}}async function W(){r.updatePosition?(await r.updatePosition({updatePosition:J,floatingElement:n()}),R?.({placed:!0})):await J()}return W(),()=>{O(),b?.(),m?.(),R?.({placed:!1})}}function Ol(e,t,r={}){const{defer:n,...o}=r,l=n?sr:f=>f(),u=[];return u.push(l(()=>{u.push(N$(e,t,o))})),()=>{u.forEach(f=>f?.())}}var D$={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function W2(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:To.arrowSize.reference,height:To.arrowSize.reference,[To.arrowSizeHalf.variable]:`calc(${To.arrowSize.reference} / 2)`,[To.arrowOffset.variable]:`calc(${To.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?D$[t.split("-")[0]]:void 0,background:To.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var M$=E5.extendWith("view"),k5=$e("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","
2itemText","label","list","positioner","trigger");k5.build();var j$=Object.defineProperty,L$=(e,t,r)=>t in e?j$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nt=(e,t,r)=>L$(e,typeof t!="symbol"?t+"":t,r),Em={itemToValue(e){return typeof e=="string"?e:fy(e)&&As(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:fy(e)&&As(e,"label")?e.label:Em.itemToValue(e)},isItemDisabled(e){return fy(e)&&As(e,"disabled")?!!e.disabled:!1}},Y2=class N5{constructor(t){nt(this,"options",t),nt(this,"items"),nt(this,"indexMap",null),nt(this,"copy",r=>new N5({...this.options,items:r??[...this.items]})),nt(this,"isEqual",r=>Yf(this.items,r.items)),nt(this,"setItems",r=>this.copy(r)),nt(this,"getValues",(r=this.items)=>{const n=[];for(const o of r){const l=this.getItemValue(o);l!=null&&n.push(l)}return n}),nt(this,"find",r=>{if(r==null)return null;const n=this.indexOf(r);return n!==-1?this.at(n):null}),nt(this,"findMany",r=>{const n=[];for(const o of r){const l=this.find(o);l!=null&&n.push(l)}return n}),nt(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let n=0;const o=this.group();for(const[,l]of o)for(const u of l){if(n===r)return u;n++}return null}),nt(this,"sortFn",(r,n)=>{const o=this.indexOf(r),l=this.indexOf(n);return(o??0)-(l??0)}),nt(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),nt(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??Em.itemToValue(r)),nt(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??Em.isItemDisabled(r)),nt(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??Em.itemToString(r)),nt(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),nt(this,"stringifyItems",(r,n=", ")=>{const o=[];for(const l of r){const u=this.stringifyItem(l);u!=null&&o.push(u)}return o.join(n)}),nt(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),nt(this,"has",r=>this.indexOf(r)!==-1),nt(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),nt(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((u,f)=>{const h=r(u,f);o.has(h)||o.set(h,[]),o.get(h).push(u)});let l=Array.from(o.entries());return n&&l.sort(([u],[f])=>{if(typeof n=="function")return n(u,f);if(Array.isArray(n)){const h=n.indexOf(u),m=n.indexOf(f);return h===-1?1:m===-1?-1:h-m}return n==="asc"?u.localeCompare(f):n==="desc"?f.localeCompare(u):0}),l}),nt(this,"getNextValue",(r,n=1,o=!1)=>{let l=this.indexOf(r);if(l===-1)return null;for(l=o?Math.min(l+n,this.size-1):l+n;l<=this.size&&this.getItemDisabled(this.at(l));)l++;return this.getItemValue(this.at(l))}),nt(this,"getPreviousValue",(r,n=1,o=!1)=>{let l=this.indexOf(r);if(l===-1)return null;for(l=o?Math.max(l-n,0):l-n;l>=0&&this.getItemDisabled(this.at(l));)l--;return this.getItemValue(this.at(l))}),nt(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(n=>this.getItemValue(n)===r);if(!this.indexMap){this.indexMap=new Map;let n=0;const o=this.group();for(const[,l]of o)for(const u of l){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,n),n++}}return this.indexMap.get(r)??-1}),nt(this,"getByText",(r,n)=>{const o=n!=null?this.indexOf(n):-1,l=r.length===1;for(let u=0;u<this.items.length;u++){const f=this.items[(o+u+1)%this.items.length];if(!(l&&this.getItemValue(f)===n)&&!this.getItemDisabled(f)&&z$(this.stringifyItem(f),r))return f}}),nt(this,"search",(r,n)=>{const{state:o,currentValue:l,timeout:u=350}=n,f=o.keysSoFar+r,m=f.length>1&&Array.from(f).every(C=>C===f[0])?f[0]:f,b=this.getByText(m,l),x=this.getItemValue(b);function E(){clearTimeout(o.timer),o.timer=-1}function T(C){o.keysSoFar=C,E(),C!==""&&(o.timer=+setTimeout(()=>{T(""),E()},u))}return T(f),x}),nt(this,"update",(r,n)=>{let o=this.indexOf(r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),nt(this,"upsert",(r,n,o="append")=>{let l=this.indexOf(r);return l===-1?(o==="append"?this.append:this.prepend)(n):this.copy([...this.items.slice(0,l),n,...this.items.slice(l+1)])}),nt(this,"insert",(r,...n)=>this.copy(Yd(this.items,r,...n))),nt(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Yd(this.items,o,...n))}),nt(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Yd(this.items,o+1,...n))}),nt(this,"prepend",(...r)=>this.copy(Yd(this.items,0,...r))),nt(this,"append",(...r)=>this.copy(Yd(this.items,this.items.length,...r))),nt(this,"filter",r=>{const n=this.items.filter((o,l)=>r(this.stringifyItem(o),l,o));return this.copy(n)}),nt(this,"remove",(...r)=>{const n=r.map(o=>
2typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const l=this.getItemValue(o);return l==null?!1:!n.includes(l)}))}),nt(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(Wh(this.items,[o],n))}),nt(this,"moveBefore",(r,...n)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===r);if(o===-1)return this;let l=n.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Wh(this.items,l,o))}),nt(this,"moveAfter",(r,...n)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===r);if(o===-1)return this;let l=n.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Wh(this.items,l,o+1))}),nt(this,"reorder",(r,n)=>this.copy(Wh(this.items,[r],n))),nt(this,"compareValue",(r,n)=>{const o=this.indexOf(r),l=this.indexOf(n);return o<l?-1:o>l?1:0}),nt(this,"range",(r,n)=>{let o=[],l=r;for(;l!=null;){if(this.find(l)&&o.push(l),l===n)return o;l=this.getNextValue(l)}return[]}),nt(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),nt(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),l=this.stringifyItem(n),u=this.getItemDisabled(n),f=[o,l,u].filter(Boolean).join(":");r+=f+","}return r}),nt(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},z$=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Yd(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Wh(e,t,r){t=[...t].sort((o,l)=>o-l);const n=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return r=Math.max(0,r-t.filter(o=>o<r).length),[...e.slice(0,r),...n,...e.slice(r)]}function D5({values:e,collection:t,selectedItemMap:r}){const n=[];for(const o of e){const l=t.find(o)??r.get(o);l!=null&&n.push(l)}return n}function M5({selectedItemMap:e,values:t,selectedItems:r,collection:n}){const o=new Map(e);for(const u of r){const f=n.getItemValue(u);f!=null&&o.set(f,u)}const l=new Set(t);for(const u of o.keys())l.has(u)||o.delete(u);return o}function Yh({values:e,collection:t,selectedItemMap:r}){const n=D5({values:e,collection:t,selectedItemMap:r}),o=M5({selectedItemMap:r,values:e,selectedItems:n,collection:t});return{selectedItems:n,nextSelectedItemMap:o}}function U$({selectedItems:e,collection:t}){return M5({selectedItemMap:new Map,values:e.map(r=>t.getItemValue(r)).filter(Boolean),selectedItems:e,collection:t})}var V$=k5.extendWith("empty"),j5=$e("date-picker").parts("clearTrigger","content","control","input","label","monthSelect","nextTrigger","positioner","presetTrigger","prevTrigger","rangeText","root","table","tableBody","tableCell","tableCellTrigger","tableHead","tableHeader","tableRow","trigger","view","viewControl","viewTrigger","yearSelect");j5.build();var F$=j5.extendWith("view","valueText"),K2=$e("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),fl=K2.build(),L5=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,z5=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,G1=e=>e.ids?.content??`dialog:${e.id}:content`,U5=(e,t)=>{const r=e.ids?.trigger;return r!=null?Vi(r)?r(t):r:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},W1=e=>e.ids?.title??`dialog:${e.id}:title`,Y1=e=>e.ids?.description??`dialog:${e.id}:description`,V5=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Kd=e=>e.getById(G1(e)),$$=e=>e.getById(L5(e)),B$=e=>e.getById(z5(e)),H$=e=>e.getById(W1(e)),G$=e=>e.getById(Y1(e)),W$=e=>e.getById(V5(e)),K1=e=>Zf(e.getDoc(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),Y_=(e,t)=>t==null?K1(e)[0]:e.getById(U5(e,t));function Y$(e,t){const{state:r,send:n,context:o,prop:l,scope:u}=e,f=l("aria-label"),h=r.matches("open"),m=o.get("triggerValue");return{open:h,setOpen(b){r.matches("open")!==b&&n({type:b?"OPEN":"CLOSE"})},triggerValue:m,setTriggerValue(b){n({type:"TRIGGER_VALUE.SET",value:b})},getTriggerProps(b={}){const{value:x}=b,E=x==null?!1:m===x;return t.button({...fl.trigger.attrs,dir:l("dir"),id:U5(u,x),"data-ownedby":u.id,"data-value":x,"aria-haspopup":"dialog",type:"button","aria-expanded":x==null?h:h&&E,"data-state":h?"open":"closed","aria-controls":G1(u),"data-current":Ue(E),onClick(T){if(T.defaultPrevented)return;const C=h&&x!=null&&!E;n({type:C?"TRIGGER_VALUE.SET":"TOGGLE",value:x})}})},getBackdropProps(){return t.element({...fl.backdrop.attrs,dir:l("dir"),hidden:!h,id:z5(u),"data-state":h?"open":"closed"})},getPositionerProps(){return t.element({...fl.positioner.attrs,dir:l("dir"),id:L5(u),style:lu({pointerEvents:!h||!l("modal")?"none":void 0})})},getContentProps(){const b=o.get("rendered");return t.element({...fl.content.attrs,dir:l("dir"),role:l("role"),hidden:!h,id:G1(u),tabIndex:-1,"data-state":h?"open":"closed","aria-modal":l("modal"),"aria-label":f||void 0,"aria-labelledby":f||!b.title?void 0:W1(u),"aria-describedby":b.description?Y1(u):void 0,style:lu({pointerEvents:l("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...fl.title.attrs,dir:l("dir"),id:W1(u)})},getDescriptionProps(){return t.element({...fl.description.attrs,dir:l("dir"),id:Y1(u)})},getCloseTriggerProps(){return t.button({...fl.closeTrigger.attrs,dir:l("dir"),id:V5(u),type:"button",onClick(b){b.defaultPrevented||(b.stopPropagation(),n({type:"CLOSE"}))}})}}}var K$=Ds({props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>W$(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:o&&!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:r}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}
2})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(n){const o=t("onTriggerValueChange");if(!o)return;const l=Y_(r,n);o({value:n,triggerElement:l})}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return j2(()=>Kd(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),exclude:K1(e),onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return lF(e.getDoc())},trapFocus({scope:e,prop:t,context:r}){return t("trapFocus")?oF(()=>Kd(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:o=>{const l=t("finalFocusEl")?.();if(l)return l;const u=r.get("triggerValue");if(u){const h=Y_(e,u);if(h)return h}const f=K1(e)[0];return f||o},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?jV(()=>[Kd(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||sr(()=>{k2({root:Kd(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){sr(()=>{e.set("rendered",{title:!!H$(t),description:!!G$(t)})})},syncZIndex({scope:e}){sr(()=>{const t=Kd(e);if(!t)return;const r=Xf(t);[$$(e),B$(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}}),F5=$e("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");F5.build();var $5=$e("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),ta=$5.build(),B5=$e("fieldset").parts("root","errorText","helperText","legend");B5.build();var H5=$e("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");H5.build();var G5=$e("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");G5.build();var W5=$e("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");W5.build();var X$=W5.extendWith("empty"),Y5=$e("marquee").parts("root","viewport","content","edge","item");Y5.build();var K5=$e("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),Rn=K5.build(),zl=(e,t)=>
2{const r=e.ids?.trigger;return r!=null?Vi(r)?r(t):r:t?`menu:${e.id}:trigger:${t}`:`menu:${e.id}:trigger`},X1=(e,t)=>{const r=e.ids?.contextTrigger;return r!=null?Vi(r)?r(t):r:t?`menu:${e.id}:ctx-trigger:${t}`:`menu:${e.id}:ctx-trigger`},Al=e=>e.ids?.content??`menu:${e.id}:content`,Q$=e=>e.ids?.arrow??`menu:${e.id}:arrow`,X5=e=>e.ids?.positioner??`menu:${e.id}:popper`,J$=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,jf=(e,t)=>`${e.id}/${t}`,pl=e=>e?.dataset.value??null,K_=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,Ia=e=>e.getById(Al(e)),X_=e=>e.getById(X5(e)),Q5=e=>e.getById(zl(e)),Z$=(e,t)=>t?e.getById(jf(e,t)):null,eB=e=>e.getById(X1(e)),J5=e=>Zf(e.getDoc(),`[data-scope="menu"][data-part="trigger"][data-ownedby="${e.id}"]`),Q_=e=>Zf(e.getDoc(),`[data-scope="menu"][data-part="context-trigger"][data-ownedby="${e.id}"]`),Kh=(e,t)=>t==null?Q5(e)??J5(e)[0]:e.getById(zl(e,t)),rp=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(Al(e))}]:not([data-disabled])`;return Zf(Ia(e),r)},tB=e=>y7(rp(e)),rB=e=>x7(rp(e)),X2=(e,t)=>t?e.id===t||e.dataset.value===t:!1,nB=(e,t)=>{const r=rp(e),n=r.findIndex(o=>X2(o,t.value));return R7(r,n,{loop:t.loop??t.loopFocus})},iB=(e,t)=>{const r=rp(e),n=r.findIndex(o=>X2(o,t.value));return T7(r,n,{loop:t.loop??t.loopFocus})},aB=(e,t)=>{const r=rp(e),n=r.find(o=>X2(o,t.value));return Df(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},Xh=e=>xr(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),J_=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),Q1="menu:select";function oB(e,t){if(!e)return;const r=Lr(e),n=new r.CustomEvent(Q1,{detail:{value:t}});e.dispatchEvent(n)}function sB(e){const t=Al(e);return Ia(e)??e.getDoc().getElementById(t)}function Z5(e,t){if(!xr(e))return!1;for(const r in t){const n=t[r],o=sB(n.scope);if(o&&da(o,e))return!0;const l=n.refs.get("children");if(Object.keys(l).length>0&&Z5(e,l))return!0}return!1}function Z_(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function lB(e,t){return e?l5(e,t):!1}function cB(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return jf(r,t);for(const o in e){const l=e[o],u=zl(l.scope);if(u===t)return u}return jf(r,t)}function au(e,t){e&&(e.refs.set("pointerRoutingLocked",t),e.context.set("pointerRoutingMode",t?"locked":"interactive"))}function e3(e){const t=e.context.get("highlightedValue");if(!t)return!1;const r=e.refs.get("children");for(const n in r){const o=r[n];if(o.state.hasTag("open")&&zl(o.scope)===t)return!0}return!1}function uB(e,t){e&&(e.refs.get("pointerRoutingLocked")||t&&e3(e)||au(e,!1))}function dB(e){e&&(e3(e)||au(e,!1))}function fB(e,t){const{context:r,send:n,state:o,computed:l,prop:u,scope:f}=e,h=o.hasTag("open"),m=r.get("isSubmenu"),b=l("isTypingAhead"),x=u("composite"),E=r.get("currentPlacement"),T=r.get("anchorPoint"),C=r.get("highlightedValue"),R=r.get("triggerValue"),w=W2({...u("positioning"),placement:T?"bottom":E});function I(O){return{id:jf(f,O.value),disabled:!!O.disabled,highlighted:C===O.value}}function P(O){const N=O.valueText??O.value;return{...O,id:O.value,valueText:N}}function q(O){return{...I(P(O)),checked:!!O.checked}}function D(O){const{closeOnSelect:N,valueText:V,value:J}=O,W=I(O),G=jf(f,J);return t.element({...Rn.item.attrs,id:G,role:"menuitem","aria-disabled":O2(W.disabled),"data-disabled":Ue(W.disabled),"data-ownedby":Al(f),"data-highlighted":Ue(W.highlighted),"data-value":J,"data-valuetext":V,onDragStart(B){B.currentTarget.matches("a[href]")&&B.preventDefault()},onPointerMove(B){if(W.disabled||B.pointerType!=="mouse")return;const L=B.currentTarget;if(W.highlighted)return;const z=Yc(B);n({type:"ITEM_POINTERMOVE",id:G,target:L,closeOnSelect:N,point:z})},onPointerLeave(B){if(W.disabled||B.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const z=B.currentTarget;n({type:"ITEM_POINTERLEAVE",id:G,target:z,closeOnSelect:N})},onPointerDown(B){if(W.disabled)return;const L=B.currentTarget;n({type:"ITEM_POINTERDOWN",target:L,id:G,closeOnSelect:N})},onClick(B){if(g_(B)||m_(B)||W.disabled)return;const L=B.currentTarget;n({type:"ITEM_CLICK",target:L,id:G,closeOnSelect:N})}})}return{highlightedValue:C,open:h,setOpen(O){o.hasTag("open")!==O&&n({type:O?"OPEN":"CLOSE"})},triggerValue:R,setTriggerValue(O){n({type:"TRIGGER_VALUE.SET",value:O})},setHighlightedValue(O){n({type:"HIGHLIGHTED.SET",value:O})},setParent(O){n({type:"PARENT.SET",value:O,id:O.prop("id")})},setChild(O){n({type:"CHILD.SET",value:O,id:O.prop("id")})},reposition(O={}){n({type:"POSITIONING.SET",options:O})},addItemListener(O){const N=f.getById(O.id);if(!N)return;const V=()=>O.onSelect?.();return N.addEventListener(Q1,V),()=>N.removeEventListener(Q1,V)},getContextTriggerProps(O={}){const{value:N}=O,V=N==null?!1:R===N,J=X1(f,N);return t.element({...Rn.contextTrigger.attrs,dir:u("dir"),id:J,"data-ownedby":f.id,"data-value":N,"data-current":Ue(V),"data-state":h?"open":"closed",onPointerDown(W){if(W.pointerType==="mouse")return;const G=Yc(W);n({type:"CONTEXT_MENU_START",point:G,value:N})},onPointerCancel(W){W.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(W){W.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(W){W.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(W){const G=Yc(W),B=h&&N!=null&&!V;n({type:B?"TRIGGER_VALUE.SET":"CONTEXT_MENU",point:G,value:N}),W.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(O){const N=O.getTriggerProps();return qe(D({value:N.id}),N)},getTriggerProps(O={}){const{value:N}=O,V=N==null?!1:R===N,J=zl(f,N);return t.button({...m?Rn.triggerItem.attrs:Rn.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:u("dir"),id:J,...N!=null&&{"data-ownedby":f.id,"data-value":N,"data-current":Ue(V)},"data-uid":u("id"),"aria-haspopup":x?"menu":"dialog","aria-controls":Al(f),"data-controls":Al(f),"aria-expanded":N==null?h:h&&V,"data-state":h?"open":"closed",onPointerMove(W){if(W.pointerType!=="mouse"||Xh(W.currentTarget)||!m)return;const B=Yc(W);n({type:"TRIGGER_POINTERMOVE",target:W.currentTarget,point:B})},onPointerLeave(W){if(Xh(W.currentTarget)||W.pointerType!=="mouse"||!m)return;au(e.refs.get("parent"),!0);const G=Yc(W);n({type:"TRIGGER_POINTERLEAVE",target:W.currentTarget,point:G})},onPointerDown(W){Xh(W.currentTarget)||jP(W)||W.preventDefault()},onClick(W){if(W.defaultPrevented||Xh(W.currentTarget))return;const G=h&&N!=null&&!V;n({type:G?"TRIGGER_VALUE.SET":"TRIGGER_CLICK",target:W.currentTarget,value:N})},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(W){if(W.defaultPrevented)return;const G={ArrowDown(){n({type:"ARROW_DOWN",value:N})},ArrowUp(){n({type:"ARROW_UP",value:N})},Enter(){n({type:"ARROW_DOWN",src:"enter",value:N})},Space(){n({type:"ARROW_DOWN",src:"space",value:N})}},B=Xm(W,{orientation:"vertical",dir:u("dir")}),L=G[B];L&&(W.preventDefault(),L(W))}})},getIndicatorProps(){return t.element({...Rn.indicator.attrs,dir:u("dir"),"data-state":h?"open":"closed"})},getPositionerProps(){return t.element({...Rn.positioner.attrs,dir:u("dir"),id:X5(f),style:w.floating})},getArrowProps(){return t.element({id:Q$(f),...Rn.arrow.attrs,dir:u("dir"),style:w.arrow})},getArrowTipProps(){return t.element({...Rn.arrowTip.attrs,dir:u("dir"),style:w.arrowTip})},getContentProps(){return t.element({...Rn.content.attrs,id:Al(f),"aria-label":u("aria-label"),hidden:!h,"data-state":h?"open":"closed",role:x?"menu":"dialog",tabIndex:0,dir:u("dir"),"aria-activedescendant":l("highlightedId")||void 0,"aria-labelledby":T?X1(f,R??void 0):zl(f,R??void 0),"data-placement":E,onPointerEnter(O){O.pointerType==="mouse"&&n({type:"MENU_POINTERENTER"})},onKeyDown(O){if(O.defaultPrevented||!da(O.currentTarget,Mr(O)))return;const N=Mr(O);if(!(N?.closest("[role=menu]")===O.currentTarget||N===O.currentTarget))return;if(O.key==="Tab"&&!YP(O)){O.preventDefault();return}const J={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})}
vendor: 6,938 bytes, line 2
2,ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"})},Space(B){b?n({type:"TYPEAHEAD",key:B.key}):J.Enter?.(B)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},W=Xm(O,{dir:u("dir")}),G=J[W];if(G){G(O),O.stopPropagation(),O.preventDefault();return}u("typeahead")&&IU(O)&&(kU(O)||Gg(N)||(n({type:"TYPEAHEAD",key:O.key}),O.preventDefault()))}})},getSeparatorProps(){return t.element({...Rn.separator.attrs,role:"separator",dir:u("dir"),"aria-orientation":"horizontal"})},getItemState:I,getItemProps:D,getOptionItemState:q,getOptionItemProps(O){const{type:N,disabled:V,closeOnSelect:J}=O,W=P(O),G=q(O);return{...D(W),...t.element({"data-type":N,...Rn.item.attrs,dir:u("dir"),"data-value":W.value,role:`menuitem${N}`,"aria-checked":!!G.checked,"data-state":G.checked?"checked":"unchecked",onClick(B){if(V||g_(B)||m_(B))return;const L=B.currentTarget;n({type:"ITEM_CLICK",target:L,option:W,closeOnSelect:J})}})}},getItemIndicatorProps(O){const N=q(l_(O)),V=N.checked?"checked":"unchecked";return t.element({...Rn.itemIndicator.attrs,dir:u("dir"),"data-disabled":Ue(N.disabled),"data-highlighted":Ue(N.highlighted),"data-state":As(O,"checked")?V:void 0,hidden:As(O,"checked")?!N.checked:void 0})},getItemTextProps(O){const N=q(l_(O)),V=N.checked?"checked":"unchecked";return t.element({...Rn.itemText.attrs,dir:u("dir"),"data-disabled":Ue(N.disabled),"data-highlighted":Ue(N.highlighted),"data-state":As(O,"checked")?V:void 0})},getItemGroupLabelProps(O){return t.element({...Rn.itemGroupLabel.attrs,id:K_(f,O.htmlFor),dir:u("dir")})},getItemGroupProps(O){return t.element({id:J$(f,O.id),...Rn.itemGroup.attrs,dir:u("dir"),"aria-labelledby":K_(f,O.id),role:"group"})}}}var{not:ki,and:Uc,or:pB}=yu(),hB=Ds({props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){QU(t.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({bindable:e,prop:t,scope:r}){return{highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(n){t("onHighlightChange")?.({highlightedValue:n})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(n){return`x: ${n?.x}, y: ${n?.y}`}})),isSubmenu:e(()=>({defaultValue:!1})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(n){const o=t("onTriggerValueChange");if(!o)return;const l=Kh(r,n);o({value:n,triggerElement:l})}})),pointerRoutingMode:e(()=>({defaultValue:"interactive"}))}},refs(){return{parent:null,children:{},pointerRoutingLocked:!1,typeaheadState:{...Df.defaultOptions},positioningOverride:{}}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:r})=>cB(r.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:r,prop:n}){e([()=>r.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>r.hash("anchorPoint")],()=>{r.get("anchorPoint")&&t(["reposition"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","setAnchorPoint","reposition","focusMenu"]},"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["invokeOnClose","releaseParentRoutingLock","focusTrigger"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED.SUGGEST":{actions:["suggestHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint","setTriggerValue"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","setTriggerValue","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TRIGGER_FOCUS:{guard:ki("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusTrigger"]},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["invokeOnClose","releaseParentRoutingLock","focusTrigger"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusTrigger"]},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["invokeOnClose","releaseParentRoutingLock","focusTrigger"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["invokeOnClose","releaseParentRoutingLock","focusTrigger"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose","releaseParentRoutingLock"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose","releaseParentRoutingLock"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","unlockParentOnClose","clearAnchorPoint"],on:{"CONTROLLED.OPEN":[{guard:pB("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint","setTriggerValue"]}
2,CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","setTriggerValue","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackFocusVisible","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","unlockParentOnOpen"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed",actions:["focusTrigger"]}],TRIGGER_CLICK:[{guard:Uc(ki("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose","releaseParentRoutingLock"]},{guard:ki("isTriggerItem"),target:"closed",actions:["invokeOnClose","releaseParentRoutingLock","focusTrigger"]}],CONTEXT_MENU:{actions:["setAnchorPoint","setTriggerValue","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:Uc("isSubmenu","isOpenControlled"),actions:["invokeOnClose","releaseParentRoutingLock"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose","releaseParentRoutingLock"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:ki("isPointerRoutingLocked"),actions:["setHighlightedItem","focusMenu","closeSiblingMenus"]},{actions:["setLastHighlightedItem","closeSiblingMenus"]}],ITEM_POINTERLEAVE:{guard:Uc(ki("isPointerRoutingLocked"),ki("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:Uc(ki("isTriggerItemHighlighted"),ki("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose","releaseParentRoutingLock"]},{guard:Uc(ki("isTriggerItemHighlighted"),ki("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose","releaseParentRoutingLock","focusTrigger"]},{guard:Uc(ki("isTriggerItemHighlighted"),ki("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing",actions:["setIntentPolygon"]},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>J_(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:r})=>!!(e.target??t.getById(r("highlightedId")))?.hasAttribute("data-controls"),isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerRoutingLocked:({refs:e})=>e.get("pointerRoutingLocked"),isHighlightedItemEditable:({scope:e,computed:t})=>Gg(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>e("open")!==void 0,isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.OPEN"})},200);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},100);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackFocusVisible({scope:e}){return Xg({root:e.getRootNode?.()})},trackPositioning({context:e,prop:t,scope:r,refs:n}){if(eB(r)||Q_(r).length>0)return;const l={...t("positioning"),...n.get("positioningOverride")};return e.set("currentPlacement",l.placement),Ol(()=>Kh(r,e.get("triggerValue")),()=>X_(r),{...l,defer:!0,onComplete(h){e.set("currentPlacement",h.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,context:n,send:o}){const l=()=>Ia(t);let u=!0;const f=h=>Q_(t).some(m=>da(m,h));return j2(l,{type:"menu",defer:!0,exclude:[Q5(t),...J5(t)].filter(
2Boolean),onInteractOutside:r("onInteractOutside"),onRequestDismiss:r("onRequestDismiss"),onFocusOutside(h){r("onFocusOutside")?.(h);const m=Mr(h.detail.originalEvent);if(f(m)){h.preventDefault();return}if(Z5(m,e.get("children"))){h.preventDefault();return}},onEscapeKeyDown(h){r("onEscapeKeyDown")?.(h),n.get("isSubmenu")&&h.preventDefault(),Z_({parent:e.get("parent")})},onPointerDownOutside(h){r("onPointerDownOutside")?.(h);const m=Mr(h.detail.originalEvent);if(f(m)&&h.detail.contextmenu){h.preventDefault();return}u=!h.detail.focusable},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:u})}})},trackPointerMove({context:e,scope:t,send:r,refs:n}){const o=n.get("parent");if(!o)return;au(o,!0);const l=t.getDoc();return ur(l,"pointermove",u=>{lB(e.get("intentPolygon"),{x:u.clientX,y:u.clientY})||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),au(o,!1))})},scrollToHighlightedItem({scope:e,computed:t}){const r=()=>{if(b5()==="pointer")return;const l=e.getById(t("highlightedId")),u=Ia(e);e5(l,{rootEl:u,block:"nearest"})};return sr(()=>{v5("virtual"),r()}),JP(()=>Ia(e),{defer:!0,attributes:["aria-activedescendant"],callback:r})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",r=>Yf(r,t.point)?r:t.point)},setSubmenuPlacement({context:e,computed:t,refs:r}){if(!e.get("isSubmenu"))return;const n=t("isRtl")?"left-start":"right-start";r.set("positioningOverride",{placement:n,gutter:0})},reposition({context:e,scope:t,prop:r,event:n,refs:o}){const l=()=>X_(t),u=n.point??e.get("anchorPoint"),f=u?()=>({width:0,height:0,...u}):void 0,h={...r("positioning"),...o.get("positioningOverride")},m=n.value??e.get("triggerValue");Ol(()=>Kh(t,m),l,{...h,defer:!0,getAnchorRect:f,...n.options??{},listeners:!1,onComplete(x){e.set("currentPlacement",x.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:r,type:n}=e.option;n==="radio"?r?.(!0):n==="checkbox"&&r?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:r,context:n}){const o=e.getById(t("highlightedId"));if(!o||o.dataset.disabled)return;const l=n.get("highlightedValue");lU(o)?r("navigate")?.({value:l,node:o,href:o.href}):queueMicrotask(()=>o.click())},setIntentPolygon({context:e,scope:t,event:r}){const n=Ia(t),o=e.get("currentPlacement");if(!n||!o)return;const l=n.getBoundingClientRect(),u=OV(l,o);if(!u)return;const h=A$(o)==="right"?-5:5;e.set("intentPolygon",[{...r.point,x:r.point.x+h},...u])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},unlockParentOnOpen({refs:e,context:t,scope:r}){const n=e.get("parent");if(t.get("isSubmenu")){const o=zl(r);n?.send({type:"HIGHLIGHTED.SUGGEST",value:o})}au(n,!1)},unlockParentOnClose({refs:e,context:t}){uB(e.get("parent"),t.get("isSubmenu"))},setHighlightedItem({context:e,event:t}){const r=t.value||pl(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){sr(()=>{const t=Ia(e);k2({root:t,enabled:!da(t,e.getActiveElement()),filter(n){return!n.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(Ia(t)?queueMicrotask:sr)(()=>{const n=tB(t);n&&e.set("highlightedValue",pl(n))})},highlightLastItem({context:e,scope:t}){(Ia(t)?queueMicrotask:sr)(()=>{const n=rB(t);n&&e.set("highlightedValue",pl(n))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){const o=nB(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",pl(o))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){const o=iB(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",pl(o))},invokeOnSelect({context:e,prop:t,scope:r}){const n=e.get("highlightedValue");if(n==null)return;const o=Z$(r,n);oB(o,n),t("onSelect")?.({value:n})},focusTrigger({scope:e,context:t,event:r}){t.get("isSubmenu")||t.get("anchorPoint")||r.restoreFocus===!1||queueMicrotask(()=>{Kh(e,t.get("triggerValue"))?.focus({preventScroll:!0})})},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){const o=aB(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});
2o&&t.set("highlightedValue",pl(o))},setParentMenu({refs:e,event:t,context:r}){e.set("parent",t.value),r.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){const r=e.get("children");r[t.id]=t.value,e.set("children",r)},closeSiblingMenus({refs:e,event:t,scope:r}){const n=t.target;if(!J_(n))return;const o=n?.getAttribute("data-uid"),l=e.get("children");for(const u in l){if(u===o)continue;const f=l[u],h=f.context.get("intentPolygon");h&&t.point&&l5(h,t.point)||(Ia(r)?.focus({preventScroll:!0}),f.send({type:"CLOSE"}))}},closeRootMenu({refs:e}){Z_({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){const o=t.getById(r("highlightedId"))?.getAttribute("data-uid"),l=e.get("children");(o?l[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",pl(t.target))},suggestHighlightedItem({context:e,event:t}){const r=t.value;if(r){if(e.get("highlightedValue")!=null){e.set("lastHighlightedValue",r);return}e.set("highlightedValue",r)}},restoreHighlightedItem({context:e}){const t=e.get("lastHighlightedValue");e.set("lastHighlightedValue",null),t&&e.set("highlightedValue",t)},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},releaseParentRoutingLock({refs:e,context:t}){t.get("isSubmenu")&&dB(e.get("parent"))},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)}}}}),t3=$e("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");t3.build();var r3=$e("pinInput").parts("root","label","input","control");r3.build();var n3=$e("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),l2e=n3.build(),Q2=$e("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Q2.build();var i3=$e("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");i3.build();var J2=$e("radio-group").parts("root","label","item","itemText","itemControl","indicator");J2.build();var a3=$e("rating-group").parts("root","label","item","control");a3.build();var o3=$e("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");o3.build();var s3=J2.rename("segment-group");s3.build();var l3=$e("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Cn=l3.build(),c3=e=>new Y2(e);c3.empty=()=>new Y2({items:[]});var mB=e=>e.ids?.root??`select:${e.id}`,J1=e=>e.ids?.content??`select:${e.id}:content`,Z1=e=>e.ids?.trigger??`select:${e.id}:trigger`,u3=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,Qh=e=>e.ids?.label??`select:${e.id}:label`,gB=e=>e.ids?.control??`select:${e.id}:control`,ex=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,tx=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,d3=e=>e.ids?.positioner??`select:${e.id}:positioner`,bB=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,e4=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,Cy=e=>e.getById(tx(e)),Xd=e=>e.getById(J1(e)),Rl=e=>e.getById(Z1(e)),vB=e=>e.getById(u3(e)),t4=e=>e.getById(d3(e)),Ty=(e,t)=>t==null?null:e.getById(ex(e,t));function yB(e,t){const{context:r,prop:n,scope:o,state:l,computed:u,send:f}=e,h=n("translations"),m=n("disabled")||r.get("fieldsetDisabled"),b=!!n("invalid"),x=!!n("required"),E=!!n("readOnly"),T=n("composite"),C=n("collection"),R=l.hasTag("open"),w=l.matches("focused"),I=r.get("highlightedValue"),P=r.get("highlightedItem"),q=u("selectedItems"),D=r.get("currentPlacement"),O=u("isTypingAhead"),N=u("isInteractive"),V=I?ex(o,I):void 0;
2function J(G){const B=C.getItemDisabled(G.item),L=C.getItemValue(G.item);return $g(L,()=>`[zag-js] No value found for item ${JSON.stringify(G.item)}`),{value:L,disabled:!!(m||B),highlighted:I===L,selected:r.get("value").includes(L)}}const W=W2({...n("positioning"),placement:D});return{open:R,focused:w,empty:r.get("value").length===0,highlightedItem:P,highlightedValue:I,selectedItems:q,hasSelectedItems:u("hasSelectedItems"),value:r.get("value"),valueAsString:u("valueAsString"),collection:C,multiple:!!n("multiple"),disabled:!!m,reposition(G={}){f({type:"POSITIONING.SET",options:G})},focus(){Rl(o)?.focus({preventScroll:!0})},setOpen(G){l.hasTag("open")!==G&&f({type:G?"OPEN":"CLOSE"})},selectValue(G){f({type:"ITEM.SELECT",value:G})},setValue(G){f({type:"VALUE.SET",value:G})},selectAll(){f({type:"VALUE.SET",value:C.getValues()})},setHighlightValue(G){f({type:"HIGHLIGHTED_VALUE.SET",value:G})},clearHighlightValue(){f({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(G){f(G?{type:"ITEM.CLEAR",value:G}:{type:"VALUE.CLEAR"})},getItemState:J,getRootProps(){return t.element({...Cn.root.attrs,dir:n("dir"),id:mB(o),"data-invalid":Ue(b),"data-readonly":Ue(E)})},getLabelProps(){return t.label({dir:n("dir"),id:Qh(o),...Cn.label.attrs,"data-disabled":Ue(m),"data-invalid":Ue(b),"data-readonly":Ue(E),"data-required":Ue(x),htmlFor:tx(o),onClick(G){G.defaultPrevented||m||Rl(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Cn.control.attrs,dir:n("dir"),id:gB(o),"data-state":R?"open":"closed","data-focus":Ue(w),"data-disabled":Ue(m),"data-invalid":Ue(b)}
2)},getValueTextProps(){return t.element({...Cn.valueText.attrs,dir:n("dir"),"data-disabled":Ue(m),"data-invalid":Ue(b),"data-focus":Ue(w)})},getTriggerProps(){return t.button({id:Z1(o),disabled:m,dir:n("dir"),type:"button",role:"combobox","aria-controls":J1(o),"aria-expanded":R,"aria-haspopup":"listbox","data-state":R?"open":"closed","aria-invalid":b,"aria-required":x,"aria-labelledby":Qh(o),...Cn.trigger.attrs,"data-disabled":Ue(m),"data-invalid":Ue(b),"data-readonly":Ue(E),"data-placement":D,"data-placeholder-shown":Ue(!u("hasSelectedItems")),onClick(G){N&&(G.defaultPrevented||f({type:"TRIGGER.CLICK"}))},onFocus(){f({type:"TRIGGER.FOCUS"})},onBlur(){f({type:"TRIGGER.BLUR"})},onKeyDown(G){if(G.defaultPrevented||!N)return;const L={ArrowUp(){f({type:"TRIGGER.ARROW_UP"})},ArrowDown(z){f({type:z.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){f({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){f({type:"TRIGGER.ARROW_RIGHT"})},Home(){f({type:"TRIGGER.HOME"})},End(){f({type:"TRIGGER.END"})},Enter(){f({type:"TRIGGER.ENTER"})},Space(z){f(O?{type:"TRIGGER.TYPEAHEAD",key:z.key}:{type:"TRIGGER.ENTER"})}}[Xm(G,{dir:n("dir"),orientation:"vertical"})];if(L){L(G),G.preventDefault();return}Df.isValidEvent(G)&&(f({type:"TRIGGER.TYPEAHEAD",key:G.key}),G.preventDefault())}})},getIndicatorProps(){return t.element({...Cn.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":R?"open":"closed","data-disabled":Ue(m),"data-invalid":Ue(b),"data-readonly":Ue(E)})},getItemProps(G){const B=J(G);return t.element({id:ex(o,B.value),role:"option",...Cn.item.attrs,dir:n("dir"),"data-value":B.value,"aria-selected":B.selected,"data-state":B.selected?"checked":"unchecked","data-highlighted":Ue(B.highlighted),"data-disabled":Ue(B.disabled),"aria-disabled":O2(B.disabled),onPointerMove(L){B.disabled||L.pointerType!=="mouse"||B.value!==I&&f({type:"ITEM.POINTER_MOVE",value:B.value})},onClick(L){L.defaultPrevented||B.disabled||f({type:"ITEM.CLICK",src:"pointerup",value:B.value})},onPointerLeave(L){B.disabled||G.persistFocus||L.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||f({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(G){const B=J(G);return t.element({...Cn.itemText.attrs,"data-state":B.selected?"checked":"unchecked","data-disabled":Ue(B.disabled),"data-highlighted":Ue(B.highlighted)})},getItemIndicatorProps(G){const B=J(G);return t.element({"aria-hidden":!0,...Cn.itemIndicator.attrs,"data-state":B.selected?"checked":"unchecked",hidden:!B.selected})},getItemGroupLabelProps(G){const{htmlFor:B}=G;return t.element({...Cn.itemGroupLabel.attrs,id:e4(o,B),dir:n("dir"),role:"presentation"})},getItemGroupProps(G){const{id:B}=G;return t.element({...Cn.itemGroup.attrs,"data-disabled":Ue(m),id:bB(o,B),"aria-labelledby":e4(o,B),role:"group",dir:n("dir")})},getClearTriggerProps(){return t.button({...Cn.clearTrigger.attrs,id:u3(o),type:"button","aria-label":h.clearTriggerLabel,"data-invalid":Ue(b),disabled:m,hidden:!u("hasSelectedItems"),dir:n("dir"),onClick(G){G.defaultPrevented||f({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const G=r.get("value"),B=n("multiple")?G:G?.[0],L=z=>{const ee=LP(z);FP(ee)||f({type:"VALUE.SET",value:xB(z.currentTarget)})};return t.select({name:n("name"),form:n("form"),disabled:m,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:tx(o),defaultValue:B,style:t5,tabIndex:-1,autoComplete:n("autoComplete"),onChange:L,onInput:L,onFocus(){Rl(o)?.focus({preventScroll:!0})},"aria-labelledby":Qh(o)})},getPositionerProps(){return t.element({...Cn.positioner.attrs,dir:n("dir"),id:d3(o),style:W.floating})},getContentProps(){return t.element({hidden:!R,dir:n("dir"),id:J1(o),role:T?"listbox":"dialog",...Cn.content.attrs,"data-state":R?"open":"closed","data-placement":D,"data-activedescendant":V,"aria-activedescendant":T?V:void 0,"aria-multiselectable":n("multiple")&&T?!0:void 0,"aria-labelledby":Qh(o),tabIndex:0,onKeyDown(G){if(!N||!da(G.currentTarget,Mr(G)))return;if(G.key==="Tab"&&!YP(G)){G.preventDefault();return}const B={ArrowUp(){f({type:"CONTENT.ARROW_UP"})},ArrowDown(){f({type:"CONTENT.ARROW_DOWN"})},Home(){f({type:"CONTENT.HOME"})},End(){f({type:"CONTENT.END"})},Enter(){f({type:"ITEM.CLICK",src:"keydown.enter"})},Space(ee){O?f({type:"CONTENT.TYPEAHEAD",key:ee.key}):B.Enter?.(ee)}},L=B[Xm(G)];if(L){L(G),G.preventDefault();return}const z=Mr(G);Gg(z)||Df.isValidEvent(G)&&(f({type:"CONTENT.TYPEAHEAD",key:G.key}),G.preventDefault())}})},getListProps(){return t.element({...Cn.list.attrs,tabIndex:0,role:T?void 0:"listbox","aria-labelledby":Z1(o),"aria-activedescendant":T?void 0:V,"aria-multiselectable":!T&&n("multiple")?!0:void 0})}}}var xB=e=>e.multiple?Array.from(e.selectedOptions,t=>t.value):e.value?[e.value]:[],{and:Qd,not:hl,or:SB}=yu(),EB=Ds({props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??c3.empty(),translations:{clearTriggerLabel:"Clear value",...e.translations},positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t,getContext:r}){const n=e("value")??e("defaultValue")??[],o=e("collection").findMany(n);return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Yf,onChange(l){const u=r(),f=e("collection"),h=u.get("selectedItemMap"),m=Yh({values:l,collection:f,selectedItemMap:h}),b=e("value")??l,x=b===l?m:Yh({values:b,collection:f,selectedItemMap:m.nextSelectedItemMap});return u.set("selectedItemMap",x.nextSelectedItemMap),e("onValueChange")?.({value:l,items:m.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){e("onHighlightChange")?.({highlightedValue:l,highlightedItem:e("collection").find(l),highlightedIndex:e("collection").indexOf(l)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItemMap:t(()=>({defaultValue:U$({selectedItems:o,collection:e("collection")})}
2))}},refs(){return{typeahead:{...Df.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),selectedItems:({context:e,prop:t})=>D5({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:SB("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Qd(hl("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:hl("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Qd(hl("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:hl("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:hl("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:hl("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:hl("multiple"),actions:["selectMatchingItem"]}}}
2,open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","trackFocusVisible","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Qd("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Qd("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Qd("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>r4(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFocusVisible({scope:e}){return Xg({root:e.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return UP(Cy(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("value");e.set("value",r)}})},trackDismissableElement({scope:e,send:t,prop:r}){const n=()=>Xd(e);let o=!0;return j2(n,{type:"listbox",defer:!0,exclude:[Rl(e),vB(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(l){r("onInteractOutside")?.(l),o=!(l.detail.focusable||l.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:r}){const n=t("positioning");return e.set("currentPlacement",n.placement),Ol(()=>Rl(r),()=>t4(r),{defer:!0,...n,onComplete(u){e.set("currentPlacement",u.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r}){const n=l=>{const u=e.get("highlightedValue");if(u==null||b5()==="pointer")return;const h=Xd(r),m=t("scrollToIndexFn");if(m){const x=t("collection").indexOf(u);m?.({index:x,immediate:l,getElement:()=>Ty(r,u)});return}const b=Ty(r,u);e5(b,{rootEl:h,block:"nearest"})};return sr(()=>{v5("virtual"),n(!0)}),JP(()=>Xd(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){const o=()=>t4(r);Ol(Rl(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(l){e.set("currentPlacement",l.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getPreviousValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getNextValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){sr(()=>{k2({root:Xd(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){r4(e)&&sr(()=>{Rl(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");if(n==null||!t("collection").has(n))return;t("onSelect")?.({value:n}),n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",l=>n==null?[]:t("multiple")?o_(l,n):[n])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.first
2Value;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",l=>o==null?[]:t("multiple")?o_(l,o):[o])},clearItem({context:e,event:t}){e.set("value",r=>r.filter(n=>n!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>Ty(t,r)}
vendor: 15,846 bytes, line 2
2)}else Xd(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:r}){const n=Cy(r);if(n){if(e.get("value").length===0&&!t("multiple")){n.selectedIndex=-1;return}for(const o of n.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);const o=Yh({values:e.get("value"),collection:r,selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",o.nextSelectedItemMap)},syncSelectedItems({context:e,prop:t}){const r=Yh({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",r.nextSelectedItemMap)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=Cy(e);if(!t)return;const r=e.getWin(),n=new r.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent($P(n))})}}}});function r4(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}var f3=$e("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");f3.build();var p3=$e("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");p3.build();var h3=$e("switch").parts("root","label","control","thumb"),c2e=h3.build(),m3=$e("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");m3.build();var AB=e=>{if(!e)return;const t=Xf(e),r=Lr(e),n=kn(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let m;t.boxSizing==="content-box"?m=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):m=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&m>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),m=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${m}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const l=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(l,"value");u&&Object.defineProperty(e,"value",{...u,set(m){const b=u.get?.call(this);u.set?.call(this,m),o(),b!==m&&queueMicrotask(()=>{e.dispatchEvent(new r.InputEvent("input",{bubbles:!0}))})}});const f=new r.ResizeObserver(()=>{requestAnimationFrame(()=>o())});f.observe(e);const h=new r.MutationObserver(()=>o());return h.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),n.fonts?.removeEventListener("loadingdone",o),f.disconnect(),h.disconnect()}},RB=$e("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),Kc=RB.build(),CB=e=>`toast-group:${e}`,n4=(e,t)=>e.getById(`toast-group:${t}`),g3=e=>`toast:${e.id}`,i4=e=>e.getById(g3(e)),a4=e=>`toast:${e.id}:title`,o4=e=>`toast:${e.id}:description`,TB=e=>`toast${e.id}:close`,s4={info:5e3,error:5e3,success:2e3,loading:1/0,warning:5e3,DEFAULT:5e3};function wy(e,t){return e??s4[t]??s4.DEFAULT}var wB=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function _B(e,t){const{prop:r,computed:n,context:o}=e,{offsets:l,gap:u}=r("store").attrs,f=o.get("heights"),h=wB(l),m=r("dir")==="rtl",b=t.replace("-start",m?"-right":"-left").replace("-end",m?"-left":"-right"),x=b.includes("right"),E=b.includes("left"),T={position:"fixed",pointerEvents:n("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${u}px`,"--first-height":`${f[0]?.height||0}px`,"--viewport-offset-left":h.left,"--viewport-offset-right":h.right,"--viewport-offset-top":h.top,"--viewport-offset-bottom":h.bottom,zIndex:rU};let C="center";if(x&&(C="flex-end"),E&&(C="flex-start"),T.alignItems=C,b.includes("top")){const R=h.top;T.top=`max(env(safe-area-inset-top, 0px), ${R})`}if(b.includes("bottom")){const R=h.bottom;T.bottom=`max(env(safe-area-inset-bottom, 0px), ${R})`}if(!b.includes("left")){const R=h.right;T.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${R})`}if(!b.includes("right")){const R=h.left;T.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${R})`}return T}function OB(e,t){const{prop:r,context:n,computed:o}=e,l=r("parent"),u=l.computed("placement"),{gap:f}=l.prop("store").attrs,[h]=u.split("-"),m=n.get("mounted"),b=n.get("remainingTime"),x=o("height"),E=o("frontmost"),T=!E,C=!r("stacked"),R=r("stacked"),I=r("type")==="loading"?Number.MAX_SAFE_INTEGER:b,P=o("heightIndex")*f+o("heightBefore"),q={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${I}ms`,"--initial-height":`${x}px`,"--offset":`${P}px`,"--index":r("index"),"--z-index":o("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},D=O=>Object.assign(q,O);return h==="top"?D({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):h==="bottom"&&D({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),m&&(D({"--y":"0","--opacity":"1"}),R&&D({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||D({"--opacity":"0",pointerEvents:"none"}),T&&C&&(D({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||D({"--y":"calc(var(--sign) * 40%)"})),T&&R&&!t&&D({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),E&&!t&&D({"--y":"calc(var(--lift) * -100%)"}),q}function IB(e,t){const{computed:r}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},o=l=>Object.assign(n,l);return r("frontmost")&&!t&&o({height:"calc(var(--initial-height) + 80%)"}),n}function qB(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function PB(e,t){const{context:r,prop:n,send:o,refs:l,computed:u}=e;return{getCount(){return r.get("toasts").length},getToasts(){return r.get("toasts")},getGroupProps(f={}){const{label:h="Notifications"}=f,{hotkey:m}=n("store").attrs,b=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=u("placement"),[E,T="center"]=x.split("-");return t.element({...Kc.group.attrs,dir:n("dir"),tabIndex:-1,role:"region","aria-label":`${h}, ${x} (${b})`,id:CB(x),"data-placement":x,"data-side":E,"data-align":T,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",style:_B(e,x),onMouseEnter(){l.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_ENTER",placement:x})},onMouseMove(){l.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_ENTER",placement:x})},onMouseLeave(){l.get("ignoreMouseTimer").isActive()||o({type:"REGION.POINTER_LEAVE",placement:x})},onFocus(C){o({type:"REGION.FOCUS",target:C.relatedTarget})},onBlur(C){l.get("isFocusWithin")&&!da(C.currentTarget,C.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe(f){return n("store").subscribe(()=>f(r.get("toasts")))}}}var{guards:kB,createMachine:NB}=J7(),{and:DB}=kB,MB=NB({props({props:e}){return{dir:"ltr",id:RP(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:KP.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:DB("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore({context:e,prop:t}){const r=t("store");return e.set("toasts",r.getVisibleToasts()),r.subscribe(n=>{if(n.dismiss){e.set("toasts",o=>o.filter(l=>l.id!==n.id));return}e.set("toasts",o=>{const l=o.findIndex(u=>u.id===n.id);return l!==-1?[...o.slice(0,l),{...o[l],...n},...o.slice(l+1)]:[n,...o]})})},trackHotKeyPress({prop:e,send:t}){return ur(document,"keydown",n=>{const{hotkey:o}=e("store").attrs;o.every(u=>n[u]||n.code===u)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return ur(o,"visibilitychange",()=>{const l=o.visibilityState==="hidden";t({type:l?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),l=r("placement"),u=o.length>0;if(!u){e.get("dismissableCleanup")?.();return}if(u&&e.get("dismissableCleanup"))return;const h=QV(()=>n4(n,l),{defer:!0});e.set("dismissableCleanup",h)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{n4(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(n=>n.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){!e.get("lastFocusedEl")||e.get("isPointerWithin")||(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}});function jB(e,t){const{state:r,send:n,prop:o,scope:l,context:u,computed:f}=e,h=o("translations"),m=r.hasTag("visible"),b=r.hasTag("paused"),x=u.get("mounted"),E=f("frontmost"),T=o("parent").computed("placement"),C=o("type"),R=o("stacked"),w=o("title"),I=o("description"),P=o("action"),[q,D="center"]=T.split("-");return{type:C,title:w,description:I,placement:T,visible:m,paused:b,closable:!!o("closable"),pause(){n({type:"PAUSE"})},resume(){n({type:"RESUME"})},dismiss(){n({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({...Kc.root.attrs,dir:o("dir"),id:g3(l),"data-state":m?"open":"closed","data-type":C,"data-placement":T,"data-align":D,"data-side":q,"data-mounted":Ue(x),"data-paused":Ue(b),"data-first":Ue(E),"data-sibling":Ue(!E),"data-stack":Ue(R),"data-overlap":Ue(!R),role:"status","aria-atomic":"true","aria-describedby":I?o4(l):void 0,"aria-labelledby":w?a4(l):void 0,tabIndex:0,style:OB(e,m),onKeyDown(O){O.defaultPrevented||O.key=="Escape"&&(n({type:"DISMISS",src:"keyboard"}),O.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:IB(e,m)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:qB()})},getTitleProps(){return t.element({...Kc.title.attrs,id:a4(l)})},getDescriptionProps(){return t.element({...Kc.description.attrs,id:o4(l)})},getActionTriggerProps(){return t.button({...Kc.actionTrigger.attrs,type:"button",onClick(O){O.defaultPrevented||(P?.onClick?.(),n({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:TB(l),...Kc.closeTrigger.attrs,type:"button","aria-label":h?.closeTriggerLabel,onClick(O){O.defaultPrevented||n({type:"DISMISS",src:"user"})}})}}}var{not:LB}=yu(),zB=Ds({props({props:e}){return CP(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,translations:{closeTriggerLabel:"Dismiss notification",...e.translations},duration:wy(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:wy(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),r=t.findIndex(n=>n.id===e("id"));return t.length-r},height:({prop:e})=>e("parent").context.get("heights").find(n=>n.id===e("id"))?.height??0,heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(r=>r.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),r=t.findIndex(n=>n.id===e("id"));return t.reduce((n,o,l)=>l>=r?n:n+o.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{const n=t("message");n&&r({type:n,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:LB("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return py(()=>
2{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return py(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return py(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let r;return sr(()=>{const n=i4(e);if(!n)return;const o=()=>{const f=n.style.height;n.style.height="auto";const h=n.getBoundingClientRect().height;n.style.height=f;const m={id:t("id"),height:h};l4(t("parent"),m)},l=e.getWin(),u=new l.MutationObserver(o);u.observe(n,{childList:!0,subtree:!0,characterData:!0}),r=()=>u.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){sr(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{const n=i4(e);if(!n)return;const o=n.style.height;n.style.height="auto";const l=n.getBoundingClientRect().height;n.style.height=o,r.set("initialHeight",l);const u={id:t("id"),height:l};l4(t("parent"),u)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",wy(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",r=>{const n=t.get("closeTimerStartTime"),o=Date.now()-n;return t.set("lastCloseStartTimerStartTime",Date.now()),r-o})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}});function l4(e,t){const{id:r,height:n}=t;e.context.set("heights",o=>o.find(u=>u.id===r)?o.map(u=>u.id===r?{...u,height:n}:u):[{id:r,height:n},...o])}var UB=(e,t)=>({...t,...lu(e)}),VB={error:[1,2],warning:[3,6],loading:[4,5],success:[5,7],info:[6,8]},b3="info",rx=(e,t)=>{const[r,n]=VB[e??b3];return t?r:n},FB=e=>e.sort((t,r)=>{const n=t.priority??rx(t.type,!!t.action),o=r.priority??rx(r.type,!!r.action);return n-o});function $B(e={}){const t=UB(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],n=[],o=new Set,l=[];const u=L=>(r.push(L),()=>{const z=r.indexOf(L);r.splice(z,1)}),f=L=>(r.forEach(z=>z(L)),L),h=L=>{if(n.length>=t.max){l.push(L);return}f(L),n.unshift(L)},m=()=>{for(l=FB(l);l.length>0&&n.length<t.max;){const L=l.shift();L&&(f(L),n.unshift(L))}},b=L=>{const z=L.id??`toast:${RP()}`,ee=n.find(te=>te.id===z);if(o.has(z)&&o.delete(z),ee)n=n.map(te=>te.id===z?f({...te,...L,id:z}):te);else{const te={id:z,duration:t.duration,removeDelay:t.removeDelay,type:b3,...L,stacked:!t.overlap,gap:t.gap},Y=te.priority??rx(te.type,!!te.action);h({...te,priority:Y})}return z},x=L=>(o.add(L),L?(r.forEach(z=>z({id:L,dismiss:!0})),n=n.filter(z=>z.id!==L),m()):(n.forEach(z=>{r.forEach(ee=>ee({id:z.id,dismiss:!0}))}),n=[],l=[]),L);return{attrs:t,subscribe:u,create:b,update:(L,z)=>b({id:L,...z}),remove:x,dismiss:L=>{L!=null?n=n.map(z=>z.id===L?f({...z,message:"DISMISS"}):z):n=n.map(z=>f({...z,message:"DISMISS"}))},error:L=>b({...L,type:"error"}),success:L=>b({...L,type:"success"}),info:L=>b({...L,type:"info"}),warning:L=>b({...L,type:"warning"}),loading:L=>b({...L,type:"loading"}),getVisibleToasts:()=>n.filter(L=>!o.has(L.id)),getCount:()=>n.length,promise:(L,z,ee={})=>{if(!z||!z.loading){Nf("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const te=b({...ee,...z.loading,promise:L,type:"loading"});let Y=!0,ie;const me=Uh(L).then(async we=>{if(ie=["resolve",we],BB(we)&&!we.ok){Y=!1;const H=Uh(z.error,`HTTP Error! status: ${we.status}`);b({...ee,...H,id:te,type:"error"})}else if(z.success!==void 0){Y=!1;const H=Uh(z.success,we);b({...ee,...H,id:te,type:H.type??"success"})}}).catch(async we=>{if(ie=["reject",we],z.error!==void 0){Y=!1;const H=Uh(z.error,we);b({...ee,...H,id:te,type:"error"})}}).finally(()=>{Y&&x(te),z.finally?.()});return{id:te,unwrap:()=>new Promise((we,H)=>me.then(()=>ie[0]==="reject"?H(ie[1]):we(ie[1])).catch(H))}},pause:L=>{L!=null?n=n.map(z=>z.id===L?f({...z,message:"PAUSE"}):z):n=n.map(z=>f({...z,message:"PAUSE"}))},resume:L=>{L!=null?n=n.map(z=>z.id===L?f({...z,message:"RESUME"}):z):n=n.map(z=>f({...z,message:"RESUME"}))},isVisible:L=>!o.has(L)&&!!n.find(z=>z.id===L),isDismissed:L=>o.has(L),expand:()=>{n=n.map(L=>f({...L,stacked:!0}))},collapse:()=>{n=n.map(L=>f({...L,stacked:!1}))}}}var BB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",c4={connect:PB,machine:MB},v3=$e("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),Jd=v3.build(),y3=(e,t)=>{const r=e.ids?.trigger;return r!=null?Vi(r)?r(t):r:t?`tooltip:${e.id}:trigger:${t}`:`tooltip:${e.id}:trigger`},HB=e=>e.ids?.content??`tooltip:${e.id}:content`,GB=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,x3=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,_y=e=>e.getById(x3(e)),WB=e=>Zf(e.getDoc(),`[data-scope="tooltip"][data-part="trigger"][data-ownedby="${e.
2id}"]`),Zd=(e,t)=>t==null?WB(e)[0]:e.getById(y3(e,t)),hi=j7({id:null,prevId:null,instant:!1});function YB(e,t){const{state:r,context:n,send:o,scope:l,prop:u,event:f}=e,h=u("id"),m=!!u("aria-label"),b=r.matches("open","closing"),x=n.get("triggerValue"),E=HB(l),T=u("disabled"),C=W2({...u("positioning"),placement:n.get("currentPlacement")});return{open:b,setOpen(R){r.matches("open","closing")!==R&&o({type:R?"open":"close"})},triggerValue:x,setTriggerValue(R){o({type:"triggerValue.set",value:R??void 0})},reposition(R={}){o({type:"positioning.set",options:R})},getTriggerProps(R={}){const{value:w}=R,I=w==null?!1:x===w,P=y3(l,w);return t.button({...Jd.trigger.attrs,id:P,"data-ownedby":l.id,"data-value":w,"data-current":Ue(I),dir:u("dir"),"data-expanded":Ue(b),"data-state":b?"open":"closed","aria-describedby":b?E:void 0,onClick(q){if(q.defaultPrevented||T||!u("closeOnClick"))return;const D=b&&w!=null&&!I;o({type:D?"triggerValue.set":"close",src:"trigger.click",value:w,triggerId:P})},onFocus(q){if(q.defaultPrevented||T||!rg())return;const D=b&&w!=null&&!I;o({type:D?"triggerValue.set":"open",src:"trigger.focus",value:w,triggerId:P})},onBlur(q){if(q.defaultPrevented||T||h!==hi.get("id"))return;(q.relatedTarget??l.getDoc().activeElement)?.closest(`[data-ownedby="${l.id}"]`)!=null||o({type:"close",src:"trigger.blur",value:w,triggerId:P})},onPointerDown(q){q.defaultPrevented||T||PU(q)&&u("closeOnPointerDown")&&h===hi.get("id")&&o({type:"close",src:"trigger.pointerdown",value:w,triggerId:P})},onPointerMove(q){if(q.defaultPrevented||T||q.pointerType==="touch")return;const D=b&&w!=null&&!I;o({type:D?"triggerValue.set":"pointer.move",value:w,triggerId:P})},onPointerOver(q){q.defaultPrevented||T||q.pointerType!=="touch"&&o({type:"pointer.move",value:w,triggerId:P})},onPointerLeave(){T||o({type:"pointer.leave"})},onPointerCancel(){T||o({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:GB(l),...Jd.arrow.attrs,dir:u("dir"),style:C.arrow})},getArrowTipProps(){return t.element({...Jd.arrowTip.attrs,dir:u("dir"),style:C.arrowTip})},getPositionerProps(){return t.element({id:x3(l),...Jd.positioner.attrs,dir:u("dir"),style:C.floating})},getContentProps(){const R=hi.get("id")===h,w=hi.get("prevId")===h,I=hi.get("instant")&&(b&&R||w);return t.element({...Jd.content.attrs,dir:u("dir"),hidden:!b,"data-state":b?"open":"closed","data-instant":Ue(I),role:m?void 0:"tooltip",id:m?void 0:E,"data-placement":n.get("currentPlacement"),onPointerEnter(){o({type:"content.pointer.move"})},onPointerLeave(){o({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}}var{and:KB,not:u4}=yu(),XB=Ds({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){CP(e,["id"]);const t=e.closeOnClick??!0,r=e.closeOnPointerDown??t;return{openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:r,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e,prop:t,scope:r})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:null})),triggerValue:e(()=>
2({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(n){const o=t("onTriggerValueChange");if(!o)return;const l=Zd(r,n);o({value:n,triggerElement:l})}}))}),watch({track:e,action:t,prop:r}){e([()=>r("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])}),e([()=>r("triggerValue")],()=>{t(["repositionImmediate"])})},on:{"triggerValue.set":{actions:["setTriggerValue","repositionImmediate"]}},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:KB("noVisibleTooltip",u4("hasPointerMoveOpened")),target:"opening",actions:["setTriggerValue"]},{guard:u4("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen","setTriggerValue"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["setTriggerValue","invokeOnOpen"]},{target:"open",actions:["setTriggerValue","invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]},"triggerValue.set":{target:"closing",actions:["setTriggerValue","immediateReopen"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","setTriggerValue","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","setTriggerValue","invokeOnOpen"]}],"triggerValue.set":{target:"open",actions:["setTriggerValue","repositionImmediate"]},reopen:{target:"open"},"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>hi.get("id")===null,isVisible:({prop:e})=>e("id")===hi.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>!!e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{const t=hi.get("id"),r=t!==null&&t!==e("id");hi.update({id:e("id"),prevId:r?t:null,instant:r})},clearGlobalId:({prop:e})=>{e("id")===hi.get("id")&&hi.update({id:null,prevId:null,instant:!1})},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:r,scope:n})=>{if(t.type!=="positioning.set")return;Ol(()=>Zd(n,e.get("triggerValue")),()=>_y(n),{...r("positioning"),...t.options,listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},repositionImmediate:({context:e,event:t,prop:r,scope:n})=>{const o=t.value??e.get("triggerValue");return Ol(()=>Zd(n,o),()=>_y(n),{...r("positioning"),onComplete(f){e.set("currentPlacement",f.placement)}})},toggleVisibility:({prop:e,event:t,send:r})=>{queueMicrotask(()=>{r({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e,event:t})=>{const r=t.triggerId??t.previousEvent?.triggerId;e.set("hasPointerMoveOpened",r??null)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",null)},setTriggerValue:({context:e,event:t})=>{t.value!==void 0&&e.set("triggerValue",t.value)},immediateReopen:({send:e})=>{queueMicrotask(()=>{e({type:"reopen"})})}},effects:{trackFocusVisible:({scope:e})=>Xg({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:r})=>
2(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),Ol(()=>Zd(r,e.get("triggerValue")),()=>_y(r),{...t("positioning"),defer:!0,onComplete(l){e.set("currentPlacement",l.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{const r=t.getDoc();return ur(r,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:r,context:n})=>{if(!t("closeOnScroll"))return;const o=n.get("triggerValue"),l=Zd(r,o);if(!l)return;const f=ZP(l).map(h=>ur(h,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{f.forEach(h=>h?.())}},trackStore:({prop:e,send:t})=>{let r;return queueMicrotask(()=>{r=hi.subscribe(()=>{hi.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>r?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?ur(document,"keydown",n=>{_U(n)||n.key==="Escape"&&(n.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t,event:r})=>{const n=setTimeout(()=>{e({type:"after.openDelay",previousEvent:r})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay:({send:e,prop:t,event:r})=>{const n=setTimeout(()=>{e({type:"after.closeDelay",previousEvent:r})},t("closeDelay"));return()=>clearTimeout(n)}}}}),S3=$e("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");S3.build();var[E3,QB]=Sr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),A3=e=>Er()(e,["lazyMount","unmountOnExit"]),[R3,Au]=Sr({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),JB=e=>e.children(Au()),C3=S.forwardRef((e,t)=>{const r=qe(Au().getControlProps(),e);return p.jsx(je.div,{...r,ref:t})});C3.displayName="CheckboxControl";var[u2e,T3]=Sr({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),ZB=typeof window<"u"?S.useLayoutEffect:S.useEffect;function eH(e){const{value:t,onChange:r,defaultValue:n}=e,[o,l]=S.useState(n),u=t!==void 0;return[u?t:o,S.useCallback(f=>(u||l(f),r?.(f)),[u,r])]}function tH(e={}){const t=T3(),{defaultValue:r,value:n,onValueChange:o,disabled:l=t?.disabled,readOnly:u,name:f,invalid:h=t?.invalid,maxSelectedValues:m}=e,b=!(l||u),x=r5(o,{sync:!0}),[E,T]=eH({value:n,defaultValue:r||[],onChange:x}),C=D=>E.some(O=>String(O)===String(D)),R=D=>{C(D)?P(D):I(D)},w=m!=null&&E.length>=m,I=D=>{b&&(C(D)||w||T(E.concat(D)))},P=D=>{b&&T(E.filter(O=>String(O)!==String(D)))};return{isChecked:C,value:E,name:f,disabled:!!l,readOnly:!!u,invalid:!!h,setValue:T,addValue:I,toggleValue:R,getItemProps:D=>{const O=D.value!=null?C(D.value):void 0;return{checked:O,onCheckedChange(){D.value!=null&&R(D.value)},name:f,disabled:l||w&&!O,readOnly:u,invalid:h}}}}var[w3,rH]=Sr({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),nH=Er(),_3=S.forwardRef((e,t)=>{const[r,n]=nH(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name","maxSelectedValues"]);return p.jsx(w3,{value:tH(r),children:p.jsx(je.div,{ref:t,role:"group",...n,...z2.build().group.attrs})})});_3.displayName="CheckboxGroup";var iH=Er(),O3=S.forwardRef((e,t)=>{const[r,n]=iH(e,["value"]);return p.jsx(w3,{value:r.value,children:p.jsx(je.div,{ref:t,role:"group",...n,...z2.build().group.attrs})})});O3.displayName="CheckboxGroupProvider";var[Z2,ri]=Sr({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),aH=e=>e.children(ri()),I3=S.forwardRef((e,t)=>{const r=ri(),n=qe(r.getErrorTextProps(),e);return r?.invalid?p.jsx(je.span,{...n,ref:t}):null});I3.displayName="FieldErrorText";var q3=S.forwardRef((e,t)=>{const r=qe(ri()?.getHelperTextProps(),e);return p.jsx(je.span,{...r,ref:t})});q3.displayName="FieldHelperText";var P3=S.forwardRef((e,t)=>{const r=qe(ri()?.getInputProps(),e);return p.jsx(je.input,{...r,ref:t})});P3.displayName="FieldInput";var k3=e=>{const{value:t,children:r}=e,n=ri();return p.jsx(Z2,{value:S.useMemo(()=>
2{if(!n)throw new Error("Field.Item must be used within Field.Root");const o=`field::${n.ids.control}::item::${t}`,l=`${o}::label`,u=()=>({...n.getInputProps(),id:o});return{...n,ids:{...n.ids,control:o,label:l},getLabelProps:()=>({...n.getLabelProps(),id:l,htmlFor:o}),getInputProps:()=>({...u(),...ta.input.attrs}),getSelectProps:()=>({...u(),...ta.select.attrs}),getTextareaProps:()=>({...u(),...ta.textarea.attrs})}},[n,t]),children:r})};k3.displayName="FieldItem";var N3=S.forwardRef((e,t)=>{const r=qe(ri()?.getLabelProps(),e);return p.jsx(je.label,{...r,ref:t})});N3.displayName="FieldLabel";var D3=S.forwardRef(({fallback:e,...t},r)=>{const n=ri();if(!n.required)return e;const o=qe(n.getRequiredIndicatorProps(),t);return p.jsx(je.span,{...o,ref:r,children:t.children??"*"})});D3.displayName="FieldRequiredIndicator";var oH=(e={})=>{const t=T3(),r=Lo(),{ids:n,target:o,disabled:l=!!t?.disabled,invalid:u=!1,readOnly:f=!1,required:h=!1}=e,[m,b]=S.useState(!1),[x,E]=S.useState(!1),T=S.useId(),C=e.id??T,R=S.useRef(null),w=n?.control??`field::${C}`,I=n?.errorText??`field::${C}::error-text`,P=n?.helperText??`field::${C}::helper-text`,q=n?.label??`field::${C}::label`;ZB(()=>{const te=R.current;if(!te)return;const Y=()=>{const me=r.getRootNode();b(!!me.getElementById(I)),E(!!me.getElementById(P))};Y();const ie=new(r.getWindow()).MutationObserver(Y);return ie.observe(te,{childList:!0,subtree:!0}),()=>ie.disconnect()},[r,I,P]);const D=S.useMemo(()=>{const te=[];return m&&u&&te.push(I),x&&te.push(P),te.join(" ")||void 0},[u,I,P,m,x]),O=S.useMemo(()=>()=>({...ta.root.attrs,id:w,ref:R,role:"group","data-disabled":Ue(l),"data-invalid":Ue(u),"data-readonly":Ue(f)}),[l,u,f,w]),N=o?`field::${C}::item::${o}`:void 0,V=S.useMemo(()=>()=>({...ta.label.attrs,id:q,"data-disabled":Ue(l),"data-invalid":Ue(u),"data-readonly":Ue(f),"data-required":Ue(h),htmlFor:N??C}),[l,u,f,h,C,q,N]),J=S.useMemo(()=>()=>({"aria-describedby":D,"aria-invalid":O2(u),"data-invalid":Ue(u),"data-required":Ue(h),"data-readonly":Ue(f),id:C,required:h,disabled:l,readOnly:f}),[D,u,h,f,C,l]),W=S.useMemo(()=>()=>({...J(),...ta.input.attrs}),[J]),G=S.useMemo(()=>()=>({...J(),...ta.textarea.attrs}),[J]),B=S.useMemo(()=>()=>({...J(),...ta.select.attrs}),[J]),L=S.useMemo(()=>()=>({id:P,...ta.helperText.attrs,"data-disabled":Ue(l)}),[l,P]),z=S.useMemo(()=>()=>({id:I,...ta.errorText.attrs,"aria-live":"polite"}),[I]),ee=S.useMemo(()=>()=>({"aria-hidden":!0,...ta.requiredIndicator.attrs}),[]);return{ariaDescribedby:D,ids:{root:w,control:C,label:q,errorText:I,helperText:P},refs:{rootRef:R},disabled:l,invalid:u,readOnly:f,required:h,getLabelProps:V,getRootProps:O,getInputProps:W,getTextareaProps:G,getSelectProps:B,getHelperTextProps:L,getErrorTextProps:z,getRequiredIndicatorProps:ee}},sH=Er(),M3=S.forwardRef((e,t)=>{const[r,n]=sH(e,["id","ids","disabled","invalid","readOnly","required","target"]),o=oH(r),l=qe(o.getRootProps(),n);return p.jsx(Z2,{value:o,children:p.jsx(je.div,{...l,ref:ks(t,o.refs.rootRef)})})});M3.displayName="FieldRoot";var lH=Er(),j3=S.forwardRef((e,t)=>{const[{value:r},n]=lH(e,["value"]),o=qe(r.getRootProps(),n);return p.jsx(Z2,{value:r,children:p.jsx(je.div,{...o,ref:t})})});j3.displayName="FieldRootProvider";var L3=S.forwardRef((e,t)=>{const r=qe(ri()?.getSelectProps(),e);return p.jsx(je.select,{...r,ref:t})});L3.displayName="FieldSelect";var z3=S.forwardRef((e,t)=>{const{autoresize:r,...n}=e,o=S.useRef(null),l=qe(ri()?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return S.useEffect(()=>{if(r)return AB(o.current)},[r]),p.jsx(je.textarea,{...l,ref:ks(t,o)})});z3.displayName="FieldTextarea";var Ru=$l({Context:()=>aH,ErrorText:()=>I3,HelperText:()=>q3,Input:()=>P3,Item:()=>k3,Label:()=>N3,RequiredIndicator:()=>D3,Root:()=>M3,RootProvider:()=>j3,Select:()=>L3,Textarea:()=>z3}),U3=S.forwardRef((e,t)=>{const r=qe(Au().getHiddenInputProps(),e),n=ri();return p.jsx(je.input,{"aria-describedby":n?.ariaDescribedby,...r,ref:t})});U3.displayName="CheckboxHiddenInput";var V3=S.forwardRef((e,t)=>{const{indeterminate:r,...n}=e,o=Au(),l=qe(o.getIndicatorProps(),n),u=r?o.indeterminate:o.checked;return p.jsx(je.div,{...l,hidden:!u,ref:t})});V3.displayName="CheckboxIndicator";var F3=S.forwardRef((e,t)=>
2{const r=qe(Au().getLabelProps(),e);return p.jsx(je.span,{...r,ref:t})});F3.displayName="CheckboxLabel";var cH=(e={})=>{const t=rH(),r=ri(),n=S.useMemo(()=>qe(t?.getItemProps({value:e.value})??{},e),[e,t]),o=S.useId(),{getRootNode:l}=Lo(),{dir:u}=xu(),f={id:o,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:u,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:l,...n},h=js(xF,f);return yF(h,Bl)},uH=Er(),$3=S.forwardRef((e,t)=>{const[r,n]=uH(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=cH(r),l=qe(o.getRootProps(),n);return p.jsx(R3,{value:o,children:p.jsx(je.label,{...l,ref:t})})});$3.displayName="CheckboxRoot";var dH=Er(),B3=S.forwardRef((e,t)=>{const[{value:r},n]=dH(e,["value"]),o=qe(r.getRootProps(),n);return p.jsx(R3,{value:r,children:p.jsx(je.label,{...o,ref:t})})});B3.displayName="CheckboxRootProvider";var Hl=$l({Context:()=>JB,Control:()=>C3,Group:()=>_3,GroupProvider:()=>O3,HiddenInput:()=>U3,Indicator:()=>V3,Label:()=>F3,Root:()=>$3,RootProvider:()=>B3}),fH=e=>new Y2(e),[H3,Ya]=Sr({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),G3=S.forwardRef((e,t)=>{const r=Ya(),n=zo({...QB(),present:r.open}),o=qe(r.getBackdropProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(je.div,{...o,ref:ks(n.ref,t)})});G3.displayName="DialogBackdrop";var W3=S.forwardRef((e,t)=>{const r=qe(Ya().getCloseTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});W3.displayName="DialogCloseTrigger";var Y3=S.forwardRef((e,t)=>{const r=Ya(),n=Ga(),o=qe(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(je.div,{...o,ref:ks(n.ref,t)})});Y3.displayName="DialogContent";var pH=e=>e.children(Ya()),K3=S.forwardRef((e,t)=>{const r=qe(Ya().getDescriptionProps(),e);return p.jsx(je.div,{...r,ref:t})});K3.displayName="DialogDescription";var X3=S.forwardRef((e,t)=>{const r=qe(Ya().getPositionerProps(),e);return Ga().unmounted?null:p.jsx(je.div,{...r,ref:t})});X3.displayName="DialogPositioner";var hH=e=>{const t=S.useId(),{getRootNode:r}=Lo(),{dir:n}=xu(),o={id:t,getRootNode:r,dir:n,...e},l=js(K$,o);return Y$(l,Bl)},mH=e=>{const[t,{children:r,...n}]=Ms(e),[o]=A3(t),l=hH(n);return p.jsx(H3,{value:l,children:p.jsx(E3,{value:o,children:p.jsx(Ls,{value:zo(qe({present:l.open},t)),children:r})})})},gH=e=>{const[t,{value:r,children:n}]=Ms(e),[o]=A3(t);return p.jsx(H3,{value:r,children:p.jsx(E3,{value:o,children:p.jsx(Ls,{value:zo(qe({present:r.open},t)),children:n})})})},Q3=S.forwardRef((e,t)=>{const r=qe(Ya().getTitleProps(),e);return p.jsx(je.h2,{...r,ref:t})});Q3.displayName="DialogTitle";var bH=Er(),J3=S.forwardRef((e,t)=>{const[r,n]=bH(e,["value"]),o=Ya(),l=Ga(),u=o.getTriggerProps(r),f=qe({...u,"aria-controls":l.unmounted?void 0:u["aria-controls"]},n);return p.jsx(je.button,{...f,ref:t})});J3.displayName="DialogTrigger";var zr=$l({Backdrop:()=>G3,CloseTrigger:()=>W3,Content:()=>Y3,Context:()=>pH,Description:()=>K3,Positioner:()=>X3,Root:()=>mH,RootProvider:()=>gH,Title:()=>Q3,Trigger:()=>J3}),[Z3,Br]=Sr({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),ek=S.forwardRef((e,t)=>{const r=qe(Br().getArrowProps(),e);return p.jsx(je.div,{...r,ref:t})});ek.displayName="MenuArrow";var tk=S.forwardRef((e,t)=>{const r=qe(Br().getArrowTipProps(),e);return p.jsx(je.div,{...r,ref:t})});tk.displayName="MenuArrowTip";var[eS,vH]=Sr({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[tb,rk]=Sr({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),yH=Er(),nk=S.forwardRef((e,t)=>{const[r,n]=yH(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),o={...r,type:"checkbox"},l=Br(),u=qe(l.getOptionItemProps(o),n);return p.jsx(tb,{value:o,children:p.jsx(eS,{value:l.getOptionItemState(o),children:p.jsx(je.div,{...u,ref:t})})})});nk.displayName="MenuCheckboxItem";var ik=S.forwardRef((e,t)=>{const r=Br(),n=Ga(),o=qe(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(je.div,{...o,ref:ks(n.ref,t)})});ik.displayName="MenuContent";var xH=e=>e.children(Br()),ak=S.forwardRef((e,t)=>
2{const r=qe(Br().getContextTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});ak.displayName="MenuContextTrigger";var ok=S.forwardRef((e,t)=>{const r=qe(Br().getIndicatorProps(),e);return p.jsx(je.div,{...r,ref:t})});ok.displayName="MenuIndicator";var SH=Er(),sk=S.forwardRef((e,t)=>{const[r,n]=SH(e,["closeOnSelect","disabled","value","valueText","onSelect"]),o=Br(),l=qe(o.getItemProps(r),n),u=o.getItemState(r);return S.useEffect(()=>o.addItemListener({id:u.id,onSelect:r.onSelect}),[u.id,r.onSelect]),p.jsx(tb,{value:r,children:p.jsx(eS,{value:u,children:p.jsx(je.div,{...l,ref:t})})})});sk.displayName="MenuItem";var EH=e=>e.children(vH()),[lk,ck]=Sr({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),AH=Er(),uk=S.forwardRef((e,t)=>{const[r,n]=AH(e,["id"]),o=Br(),l={id:S.useId(),...r},u=qe(o.getItemGroupProps(l),n);return p.jsx(lk,{value:l,children:p.jsx(je.div,{...u,ref:t})})});uk.displayName="MenuItemGroup";var dk=S.forwardRef((e,t)=>{const r=Br(),n=ck(),o=qe(r.getItemGroupLabelProps({htmlFor:n.id}),e);return p.jsx(je.div,{...o,ref:t})});dk.displayName="MenuItemGroupLabel";var fk=S.forwardRef((e,t)=>{const r=Br(),n=rk(),o=qe(r.getItemIndicatorProps(n),e);return p.jsx(je.div,{...o,ref:t})});fk.displayName="MenuItemIndicator";var pk=S.forwardRef((e,t)=>{const r=Br(),n=rk(),o=qe(r.getItemTextProps(n),e);return p.jsx(je.div,{...o,ref:t})});pk.displayName="MenuItemText";var hk=S.forwardRef((e,t)=>{const r=qe(Br().getPositionerProps(),e);return Ga().unmounted?null:p.jsx(je.div,{...r,ref:t})});hk.displayName="MenuPositioner";var RH=Er(),mk=S.forwardRef((e,t)=>{const[r,n]=RH(e,["closeOnSelect","disabled","value","valueText"]),o=Br(),l=ck(),u={...r,checked:l.value===r.value,type:"radio",onCheckedChange:()=>l.onValueChange?.({value:r.value})},f=qe(o.getOptionItemProps(u),n);return p.jsx(tb,{value:u,children:p.jsx(eS,{value:o.getOptionItemState(u),children:p.jsx(je.div,{...f,ref:t})})})});mk.displayName="MenuRadioItem";var CH=Er(),gk=S.forwardRef((e,t)=>{const[r,n]=CH(e,["id","onValueChange","value"]),o=Br(),l={id:S.useId(),...r},u=qe(o.getItemGroupProps({id:l.id}),n);return p.jsx(lk,{value:l,children:p.jsx(je.div,{...u,ref:t})})});gk.displayName="MenuRadioItemGroup";var TH=e=>{const t=S.useId(),{getRootNode:r}=Lo(),{dir:n}=xu(),o={id:t,dir:n,getRootNode:r,...e},l=js(hB,o);return{api:fB(l,Bl),service:l}},bk=e=>{const t=S.useRef(e),r=S.useRef(!1);S.useEffect(()=>{t.current=e}),S.useEffect(()=>{r.current!==!0&&(r.current=!0,t.current())},[])},[vk,yk]=Sr({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[xk,wH]=Sr({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),_H=Er(),OH=e=>{const[t,r]=Ms(e),[n,o]=_H(r,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","onTriggerValueChange","open","positioning","triggerValue","defaultTriggerValue","typeahead"]),l=Br(),u=yk(),{api:f,service:h}=TH(n),m=zo(qe({present:f.open},t));return bk(()=>{u&&l&&(l.setChild(h),f.setParent(u))}),p.jsx(xk,{value:S.useCallback(()=>l?.getTriggerItemProps(f),[f,l]),children:p.jsx(vk,{value:h,children:p.jsx(Z3,{value:f,children:p.jsx(Ls,{value:m,...o})})})})},IH=e=>{const t=Br(),r=yk(),[n,{value:o,children:l}]=Ms(e),{api:u,service:f}=o,h=zo(qe({present:u.open},n));return bk(()=>{r&&t&&(t.setChild(f),u.setParent(r))}),p.jsx(xk,{value:S.useCallback(()=>t?.getTriggerItemProps(u),[u,t]),children:p.jsx(vk,{value:f,children:p.jsx(Z3,{value:u,children:p.jsx(Ls,{value:h,children:l})})})})},Sk=S.forwardRef((e,t)=>{const r=qe(Br().getSeparatorProps(),e);return p.jsx(je.hr,{...r,ref:t})});Sk.displayName="MenuSeparator";var qH=Er(),Ek=S.forwardRef((e,t)=>{const[r,n]=qH(e,["value"]),o=Br(),l=Ga(),u=o.getTriggerProps(r),f=qe({...u,"aria-controls":l.unmounted?void 0:u["aria-controls"]},n);return p.jsx(je.button,{...f,ref:t})});Ek.displayName="MenuTrigger";var Ak=S.forwardRef((e,t)=>
2{const r=qe(wH()?.()??{},e);return p.jsx(tb,{value:{value:r["data-value"]},children:p.jsx(je.div,{...r,ref:t})})});Ak.displayName="MenuTriggerItem";var Ar=$l({Arrow:()=>ek,ArrowTip:()=>tk,CheckboxItem:()=>nk,Content:()=>ik,Context:()=>xH,ContextTrigger:()=>ak,Indicator:()=>ok,Item:()=>sk,ItemContext:()=>EH,ItemGroup:()=>uk,ItemGroupLabel:()=>dk,ItemIndicator:()=>fk,ItemText:()=>pk,Positioner:()=>hk,RadioItem:()=>mk,RadioItemGroup:()=>gk,Root:()=>OH,RootProvider:()=>IH,Separator:()=>Sk,Trigger:()=>Ek,TriggerItem:()=>Ak}),Vo=e=>{const{children:t,disabled:r}=e,[n,o]=S.useState(e.container?.current),l=S.useSyncExternalStore(kH,()=>!1,()=>!0),{getRootNode:u}=Lo();if(S.useEffect(()=>{o(()=>e.container?.current)},[e.container]),l||r)return p.jsx(p.Fragment,{children:t});const f=n??PH(u);return p.jsx(p.Fragment,{children:S.Children.map(t,h=>ep.createPortal(h,f))})},PH=e=>{const t=e?.(),r=t.getRootNode();return Ml(r)?r:kn(t).body},kH=()=>()=>{},[Rk,vn]=Sr({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),Ck=S.forwardRef((e,t)=>{const r=qe(vn().getClearTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});Ck.displayName="SelectClearTrigger";var Tk=S.forwardRef((e,t)=>{const r=vn(),n=Ga(),o=qe(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(je.div,{...o,ref:ks(n.ref,t)})});Tk.displayName="SelectContent";var NH=e=>e.children(vn()),wk=S.forwardRef((e,t)=>{const r=qe(vn().getControlProps(),e);return p.jsx(je.div,{...r,ref:t})});wk.displayName="SelectControl";var _k=S.forwardRef((e,t)=>{const r=vn(),n=qe(r.getHiddenSelectProps(),e),o=r.value.length===0,l=ri();return p.jsxs(je.select,{"aria-describedby":l?.ariaDescribedby,...n,ref:t,children:[o&&p.jsx("option",{value:""}),r.collection.items.map((u,f)=>p.jsx("option",{value:r.collection.getItemValue(u)??"",disabled:r.collection.getItemDisabled(u),children:r.collection.stringifyItem(u)},f))]})});_k.displayName="SelectHiddenSelect";var Ok=S.forwardRef((e,t)=>{const r=qe(vn().getIndicatorProps(),e);return p.jsx(je.div,{...r,ref:t})});Ok.displayName="SelectIndicator";var[DH,MH]=Sr({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[jH,Ik]=Sr({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),LH=Er(),qk=S.forwardRef((e,t)=>{const[r,n]=LH(e,["item","persistFocus"]),o=vn(),l=qe(o.getItemProps(r),n);return p.jsx(jH,{value:r,children:p.jsx(DH,{value:o.getItemState(r),children:p.jsx(je.div,{...l,ref:t})})})});qk.displayName="SelectItem";var zH=e=>e.children(MH()),[UH,VH]=Sr({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),FH=Er(),Pk=S.forwardRef((e,t)=>{const r=S.useId(),[n,o]=FH(e,["id"]),l={id:r,...n},u=qe(vn().getItemGroupProps(l),o);return p.jsx(UH,{value:l,children:p.jsx(je.div,{...u,ref:t})})});Pk.displayName="SelectItemGroup";var kk=S.forwardRef((e,t)=>{const r=vn(),n=VH(),o=qe(r.getItemGroupLabelProps({htmlFor:n.id}),e);return p.jsx(je.div,{...o,ref:t})});kk.displayName="SelectItemGroupLabel";var Nk=S.forwardRef((e,t)=>{const r=vn(),n=Ik(),o=qe(r.getItemIndicatorProps(n),e);return p.jsx(je.div,{...o,ref:t})});Nk.displayName="SelectItemIndicator";var Dk=S.forwardRef((e,t)=>{const r=vn(),n=Ik(),o=qe(r.getItemTextProps(n),e);return p.jsx(je.span,{...o,ref:t})});Dk.displayName="SelectItemText";var Mk=S.forwardRef((e,t)=>{const r=qe(vn().getLabelProps(),e);return p.jsx(je.label,{...r,ref:t})});Mk.displayName="SelectLabel";var jk=S.forwardRef((e,t)=>{const r=qe(vn().getListProps(),e);return p.jsx(je.div,{...r,ref:t})});jk.displayName="SelectList";var Lk=S.forwardRef((e,t)=>{const r=qe(vn().getPositionerProps(),e);return Ga().unmounted?null:p.jsx(je.div,{...r,ref:t})});Lk.displayName="SelectPositioner";var $H=e=>{const t=S.useId(),{dir:r}=xu(),{getRootNode:n}=Lo(),o=ri(),l={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:r,getRootNode:n,...e},u=js(EB,l);return yB(u,Bl)},BH=(e,t)=>{const[r,n]=Ms(e),[o,l]=Er()(n,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invali
2d","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","translations","autoComplete","value"]),u=$H(o),f=zo(qe({present:u.open},r)),h=qe(u.getRootProps(),l);return p.jsx(Rk,{value:u,children:p.jsx(Ls,{value:f,children:p.jsx(je.div,{...h,ref:t})})})},HH=S.forwardRef(BH),GH=(e,t)=>{const[r,n]=Ms(e),[{value:o},l]=Er()(n,["value"]),u=zo(qe({present:o.open},r)),f=qe(o.getRootProps(),l);return p.jsx(Rk,{value:o,children:p.jsx(Ls,{value:u,children:p.jsx(je.div,{...f,ref:t})})})},WH=S.forwardRef(GH),zk=S.forwardRef((e,t)=>{const r=qe(vn().getTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});zk.displayName="SelectTrigger";var Uk=S.forwardRef((e,t)=>{const{children:r,placeholder:n,...o}=e,l=vn(),u=qe(l.getValueTextProps(),o);return p.jsx(je.span,{...u,ref:t,children:r||l.valueAsString||n})});Uk.displayName="SelectValueText";var Hr=$l({ClearTrigger:()=>Ck,Content:()=>Tk,Context:()=>NH,Control:()=>wk,HiddenSelect:()=>_k,Indicator:()=>Ok,Item:()=>qk,ItemContext:()=>zH,ItemGroup:()=>Pk,ItemGroupLabel:()=>kk,ItemIndicator:()=>Nk,ItemText:()=>Dk,Label:()=>Mk,List:()=>jk,Positioner:()=>Lk,Root:()=>HH,RootProvider:()=>WH,Trigger:()=>zk,ValueText:()=>Uk}),YH=e=>$B(e),[KH,Gl]=Sr({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Vk=S.forwardRef((e,t)=>{const r=qe(Gl().getActionTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});Vk.displayName="ToastActionTrigger";var Fk=S.forwardRef((e,t)=>{const r=qe(Gl().getCloseTriggerProps(),e);return p.jsx(je.button,{...r,ref:t})});Fk.displayName="ToastCloseTrigger";var XH=e=>e.children(Gl()),$k=S.forwardRef((e,t)=>{const r=qe(Gl().getDescriptionProps(),e);return p.jsx(je.div,{...r,ref:t})});$k.displayName="ToastDescription";var Bk=S.forwardRef((e,t)=>{const r=Gl();return p.jsxs("div",{...qe(r.getRootProps(),e),ref:t,children:[p.jsx("div",{...r.getGhostBeforeProps()}),e.children,p.jsx("div",{...r.getGhostAfterProps()})]})});Bk.displayName="ToastRoot";var Hk=S.forwardRef((e,t)=>{const r=qe(Gl().getTitleProps(),e);return p.jsx(je.div,{...r,ref:t})});Hk.displayName="ToastTitle";var Gk=S.forwardRef((e,t)=>{const{toaster:r,children:n,...o}=e,l=xu(),u=Lo(),f=js(c4.machine,{store:r,id:S.useId(),dir:l?.dir,getRootNode:u?.getRootNode}),h=c4.connect(f,Bl),m=qe(h.getGroupProps(),o);return p.jsx(je.div,{...m,ref:t,children:h.getToasts().map((b,x)=>p.jsx(Wk,{value:b,parent:f,index:x,children:E=>n(E)},b.id))})});Gk.displayName="Toaster";var Wk=e=>{const t=Lo(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},n=js(zB,{...r});return p.jsx(KH,{value:jB(n,Bl),children:e.children(e.value)})};Wk.displayName="ToastActor";var np=$l({ActionTrigger:()=>Vk,CloseTrigger:()=>Fk,Context:()=>XH,Description:()=>$k,Root:()=>Bk,Title:()=>Hk}),[Yk,Cu]=Sr({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),Kk=S.forwardRef((e,t)=>{const r=qe(Cu().getArrowProps(),e);return p.jsx(je.div,{...r,ref:t})});Kk.displayName="TooltipArrow";var Xk=S.forwardRef((e,t)=>{const r=qe(Cu().getArrowTipProps(),e);return p.jsx(je.div,{...r,ref:t})});Xk.displayName="TooltipArrowTip";var Qk=S.forwardRef((e,t)=>{const r=Cu(),n=Ga(),o=qe(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(je.div,{...o,ref:ks(n.ref,t)})});Qk.displayName="TooltipContent";var QH=e=>e.children(Cu()),Jk=S.forwardRef((e,t)=>{const r=qe(Cu().getPositionerProps(),e);return Ga().unmounted?null:p.jsx(je.div,{...r,ref:t})});Jk.displayName="TooltipPositioner";
2var JH=e=>{const t=S.useId(),{getRootNode:r}=Lo(),{dir:n}=xu(),o={id:t,dir:n,getRootNode:r,...e},l=js(XB,o);return YB(l,Bl)},ZH=e=>{const[t,{children:r,...n}]=Ms(e),o=JH(n);return p.jsx(Yk,{value:o,children:p.jsx(Ls,{value:zo(qe({present:o.open},t)),children:r})})},eG=e=>{const[t,{value:r,children:n}]=Ms(e);return p.jsx(Yk,{value:r,children:p.jsx(Ls,{value:zo(qe({present:r.open},t)),children:n})})},tG=Er(),Zk=S.forwardRef((e,t)=>{const[r,n]=tG(e,["value"]),o=qe(Cu().getTriggerProps(r),n);return p.jsx(je.button,{...o,ref:t})});Zk.displayName="TooltipTrigger";var zs=$l({Arrow:()=>Kk,ArrowTip:()=>Xk,Content:()=>Qk,Context:()=>QH,Positioner:()=>Jk,Root:()=>ZH,RootProvider:()=>eG,Trigger:()=>Zk});function rb(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const rG=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||r==="currentBg")return{invalid:!0,value:r};const o=t(`colors.${r}`),l=t.raw(`opacity.${n}`)?.value;if(!l&&isNaN(Number(n)))return{invalid:!0,value:r};const u=l?Number(l)*100+"%":`${n}%`,f=o??r;return{invalid:!1,color:f,value:`color-mix(in srgb, ${f} ${u}, transparent)`}},Ut=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function nx(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>nx(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=nx(e[r]);return t}function ix(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Xn(e[r])&&Xn(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Xn(t[r]))ix(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Xn(e[r][n])&&Xn(t[r][n])?ix(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function Tu(e,...t){for(const r of t)ix(e,r);return e}const ax=e=>e!=null;function $a(e,t,r={}){const{stop:n,getKey:o}=r;function l(u,f=[]){if(Xn(u)||Array.isArray(u)){const h={};for(const[m,b]of Object.entries(u)){const x=o?.(m,b)??m,E=[...f,x];if(n?.(u,E))return t(u,f);const T=l(b,E);ax(T)&&(h[x]=T)}return h}return t(u,f)}return l(e)}function e6(e,t){return Array.isArray(e)?e.map(r=>ax(r)?t(r):r):Xn(e)?$a(e,r=>t(r)):ax(e)?t(e):e}const Jh=["value","type","description"],nG=e=>e&&typeof e=="object"&&!Array.isArray(e),t6=(...e)=>{const t=Tu({},...e.map(nx));return t.theme?.tokens&&$a(t.theme.tokens,r=>{const l=Object.keys(r).filter(f=>!Jh.includes(f)).length>0,u=Jh.some(f=>r[f]!=null);return l&&u&&(r.DEFAULT||(r.DEFAULT={}),Jh.forEach(f=>{var h;r[f]!=null&&((h=r.DEFAULT)[f]||(h[f]=r[f]),delete r[f])})),r},{stop(r){return nG(r)&&Object.keys(r).some(n=>Jh.includes(n)||n!==n.toLowerCase()&&n!==n.toUpperCase())}}),t},iG=e=>e,pr=e=>e,Ge=e=>e,aG=e=>e,oG=e=>e,Us=e=>e,sG=e=>e,lG=e=>e,cG=e=>e;function r6(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Ur=r6(),tS=r6(),n6=e=>e,uG=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function dG(e){return`${e}`.replace(uG,t=>`\\${t}`)}const fG=/[A-Z]/g;function pG(e){return e.replace(fG,t=>`-${t.toLowerCase()}`)}function i6(e,t={}){const{fallback:r="",prefix:n=""}=t,o=pG(["-",n,dG(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const hG=e=>/^var\(--.+\)$/.test(e),Yr=(e,t)=>t!=null?`${e}(${t})`:t,ml=e=>{if(hG(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},d4=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),mG=Ut("borderColor"),Eo=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),gG=iG({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invali
2d:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Jc=i6("bg-currentcolor"),f4=e=>e===Jc.ref||e==="currentBg",zt=e=>({...e("colors"),currentBg:Jc}),bG=n6({conditions:gG,utilities:{background:{values:zt,shorthand:["bg"],transform(e,t){if(f4(t.raw))return{background:Jc.ref};const r=Ut("background")(e,t);return{...r,[Jc.var]:r?.background}}},backgroundColor:{values:zt,shorthand:["bgColor"],transform(e,t){if(f4(t.raw))return{backgroundColor:Jc.ref};const r=Ut("backgroundColor")(e,t);return{...r,[Jc.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:zt,transform:Ut("--gradient-from")},gradientTo:{values:zt,transform:Ut("--gradient-to")},gradientVia:{values:zt,transform(e,t){return{...Ut("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:zt,transform:Ut("borderColor")},borderTopColor:{values:zt,transform:Ut("borderTopColor")},borderBlockStartColor:{values:zt,transform:Ut("borderBlockStartColor")},borderBottomColor:{values:zt,transform:Ut("borderBottomColor")},borderBlockEndColor:{values:zt,transform:Ut("borderBlockEndColor")},borderLeftColor:{values:zt,transform:Ut("borderLeftColor")},borderInlineStartColor:{values:zt,shorthand:["borderStartColor"],transform:Ut("borderInlineStartColor")},borderRightColor:{values:zt,transform:Ut("borderRightColor")},borderInlineEndColor:{values:zt,shorthand:["borderEndColor"],transform:Ut("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:zt,transform:Ut("color")},fill:{values:zt,transform:Ut("fill")},stroke:{values:zt,transform:Ut("stroke")},accentColor:{values:zt,transform:Ut("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:zt,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":mG(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]}
2,boxShadowColor:{values:zt,transform:Ut("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Yr("blur",e)})},brightness:{transform:e=>({"--brightness":Yr("brightness",e)})},contrast:{transform:e=>({"--contrast":Yr("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Yr("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Yr("hue-rotate",ml(e))})},invert:{transform:e=>({"--invert":Yr("invert",e)})},saturate:{transform:e=>({"--saturate":Yr("saturate",e)})},sepia:{transform:e=>({"--sepia":Yr("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Yr("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Yr("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Yr("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Yr("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Yr("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Yr("hue-rotate",ml(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Yr("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Yr("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Yr("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Yr("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:zt,transform:Ut("outlineColor")},focusRing:d4("&:is(:focus, [data-focus])"),focusVisibleRing:d4("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:zt,transform:Ut("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:zt,transform:Ut("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:zt,transform:Ut("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:zt,transform:Ut("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:zt,transform:Ut("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":ml(e)})},skewY:{transform:e=>({"--skew-y":ml(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})}
2,spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:ml(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":ml(e)}}},rotateY:{transform(e){return{"--rotate-y":ml(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Eo("all");case"position":return Eo("left, right, top, bottom, inset-inline, inset-block");case"colors":return Eo("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Eo("opacity");case"shadow":return Eo("box-shadow");case"transform":return Eo("transform");case"size":return Eo("width, height");case"backgrounds":return Eo("background, background-color, background-image, background-position");case"common":return Eo("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return vG[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:zt,transform:Ut("caretColor")},cursor:{values:"cursor"}}}),vG={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var yG="",xG=yG.split(","),SG="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,al
2ignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,cornerShape,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,
2scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",EG=SG.split(",").concat(xG),AG=new Map(EG.map(e=>[e,!0]));function RG(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var CG=/&|@/,TG=RG(e=>AG.has(e)||e.startsWith("--")||CG.test(e));function ca(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}function a6(e,t){const r={};return $a(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var wG=Object.defineProperty,_G=(e,t,r)=>t in e?wG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p4=(e,t,r)=>_G(e,typeof t!="symbol"?t+"":t,r);function og(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(og).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(n=>`${n}:${og(e[n])}`).join(",")}}`:String(e)}class OG{constructor(t=500){p4(this,"cache",new Map),p4(this,"maxSize"),this.maxSize=t}get(t){const r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}}const qn=e=>{const t=new OG;function r(...n){const o=n.length===1?og(n[0]):n.map(og).join("|");let l=t.get(o);return l===void 0&&(l=e.apply(this,n),t.set(o,l)),l}return r},o6=16,sg="px",rS="em",Sf="rem";function s6(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${sg}|${rS}|${Sf}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function l6(e=""){if(typeof e=="number")return`${e}px`;const t=s6(e);if(!t||t===sg)return e;if(t===rS||t===Sf)return`${parseFloat(e)*o6}${sg}`}function c6(e=""){const t=s6(e);if(!t||t===Sf)return e;if(t===rS)return`${parseFloat(e)}${Sf}`;if(t===sg)return`${parseFloat(e)/o6}${Sf}`}const IG=e=>e.charAt(0).toUpperCase()+e.slice(1);function qG(e){const t=PG(e),r=Object.fromEntries(t);function n(E){return r[E]}function o(E){return Vc(n(E))}function l(){const E=Object.keys(r),T=kG(E),C=E.flatMap(R=>{const w=n(R),I=[`${R}Down`,Vc({max:Am(w.min)})],P=[R,Vc({min:w.min})],q=[`${R}Only`,o(R)];return[P,q,I]}).filter(([,R])=>R!=="").concat(T.map(([R,w])=>{const I=n(R),P=n(w);return[`${R}To${IG(w)}`,Vc({min:I.min,max:Am(P.min)})]}));return Object.fromEntries(C)}function u(){const E=l();return Object.fromEntries(Object.entries(E))}const f=u(),h=E=>f[E];function m(){return w2(["base",...Object.keys(r)])}function b(E){return Vc({min:n(E).min})}function x(E){return Vc({max:Am(n(E).min)})}return{values:Object.values(r),only:o,keys:m,conditions:f,getCondition:h,up:b,down:x}}function Am(e){const t=parseFloat(l6(e)??"")-.04;return c6(`${t}px`)}function PG(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10)<parseInt(n,10)?-1:1).map(([r,n],o,l)=>{let u=null;return o<=l.length-1&&(u=l[o+1]?.[1]),u!=null&&(u=Am(u)),[r,{name:r,min:c6(n),max:u}]})}function kG(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let l=e[o];for(;l;)t.push([r,l]),o++,l=e[o]}),t}function Vc({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t}
2)`].filter(Boolean).join(" and ")}const NG=/^@|&|&$/,DG=e=>{const{breakpoints:t,conditions:r={}}=e,n=ca(r,(b,x)=>[`_${b}`,x]),o=Object.assign({},n,t.conditions);function l(){return Object.keys(o)}function u(b){return l().includes(b)||NG.test(b)||b.startsWith("_")}const f=qn(b=>b.filter(x=>x!=="base").sort((x,E)=>{const T=u(x),C=u(E);return T&&!C?1:!T&&C?-1:0}));function h(b){return b.startsWith("@breakpoint")?t.getCondition(b.replace("@breakpoint ","")):b}function m(b){return Reflect.get(o,b)||b}return{keys:l,sort:f,has:u,resolve:m,breakpoints:t.keys(),expandAtRule:h}},Kt=Object.freeze(Object.create(null)),MG=Object.freeze([]);function nb(){return Object.create(null)}const u6=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| 3)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| 4)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),jG=u6("width"),LG=u6("height"),d6=e=>({isMin:y4(e.minMax,e.maxMin,e.min),isMax:y4(e.maxMin,e.minMax,e.max)}),{isMin:ox,isMax:h4}=d6(jG),{isMin:sx,isMax:m4}=d6(LG),g4=/print/i,b4=/^print$/i,zG=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,UG=/(\d)/,pf=Number.MAX_VALUE,VG={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function v4(e){const t=zG.exec(e)||(ox(e)||sx(e)?UG.exec(e):null);if(!t)return pf;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(VG[n]||1)}function y4(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function FG(e,t){const r=g4.test(e),n=b4.test(e),o=g4.test(t),l=b4.test(t);return r&&o?!n&&l?1:n&&!l?-1:e.localeCompare(t):r?1:o?-1:null}const $G=qn((e,t)=>{const r=FG(e,t);if(r!==null)return r;const n=ox(e)||sx(e),o=h4(e)||m4(e),l=ox(t)||sx(t),u=h4(t)||m4(t);if(n&&u)return-1;if(o&&l)return 1;const f=v4(e),h=v4(t);return f===pf&&h===pf?e.localeCompare(t):f===pf?1:h===pf?-1:f!==h?f>h?o?-1:1:o?1:-1:e.localeCompare(t)});function x4(e){return e.sort(([t],[r])=>$G(t,r))}function f6(e){const t=[],r=[],n={};for(const[u,f]of Object.entries(e))u.startsWith("@media")?t.push([u,f]):u.startsWith("@container")?r.push([u,f]):Xn(f)?n[u]=f6(f):n[u]=f;const o=x4(t),l=x4(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(l)}}const p6=/\s*!(important)?/i,BG=qn(e=>xi(e)?p6.test(e):!1),HG=qn(e=>xi(e)?e.replace(p6,"").trim():e);function h6(e){const{transform:t,conditions:r,normalize:n}=e,o=YG(e);return qn(function(...u){const f=o(...u),h=n(f),m=nb();return $a(h,(b,x)=>{if(b==null)return;const[E,...T]=r.sort(x).map(r.resolve),C=BG(b);C&&(b=HG(b));let R=t(E,b)??Kt;R=$a(R,w=>xi(w)&&C?`${w} !important`:w,{getKey:w=>r.expandAtRule(w)}),GG(m,T.flat(),R)}),f6(m)})}function GG(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=nb()),n=n[o]);Tu(n,r)}function WG(...e){return e.filter(t=>{if(!Xn(t))return!1;const r=Wf(t);return Object.keys(r).length>0})}function YG(e){function t(r){const n=WG(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return qn(function(...n){return Tu({},...t(n))})}const m6=e=>({base:Kt,variants:Kt,defaultVariants:Kt,compoundVariants:[],...e});function KG(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function l(f={}){const h=m6(f),{base:m,defaultVariants:b,compoundVariants:x}=h,E=ca(h.variants,(q,D)=>[q,ca(D,(O,N)=>[O,n(N)])]),T=h6({conditions:r,normalize:n,transform(q,D){return E[q]?.[D]}}),C=(q={})=>{const D=n({...b,...Wf(q)});let O={...n(m)};Tu(O,T(D));const N=u(x,D);return o.wrap("recipes",t(O,N))},R=Object.keys(E),w=q=>{const D=rb(q,["recipe"]),[O,N]=nu(D,R),V=R.includes("colorPalette"),J=R.includes("orientation");return V||(O.colorPalette=q.colorPalette||b.colorPalette),J&&(N.orientation=q.orientation),[O,N]},I=ca(E,(q,D)=>[q,Object.keys(D)]);return Object.assign(q=>t(C(q)),{className:f.className,__cva__:!0,variantMap:I,variantKeys:R,raw:C,config:f,splitVariantProps:w,merge(q){return l(XG(e)(this,q))}})}function u(f,h){let m=Kt;return f.forEach(b=>{Object.entries(b).every(([E,T])=>E==="css"?!0:(Array.isArray(T)?T:[T]).some(R=>h[E]===R))&&(m=t(m,b.css))}),m}return l}function XG(e){const{css:t}=e;return function(n,o){const l=m6(o.config),u=w2(n.variantKeys,Object.keys(o.variants)
4),f=t(n.base,l.base),h=Object.fromEntries(u.map(E=>[E,t(n.config.variants[E],l.variants[E])])),m=Tu(n.config.defaultVariants,l.defaultVariants),b=[...n.compoundVariants,...l.compoundVariants];return{className:cn(n.className,o.className),base:f,variants:h,defaultVariants:m,compoundVariants:b}}}const QG={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},S4={reset:0,base:1,tokens:2,recipes:3};function JG(e){const t=e.layers??QG,n=Object.values(t).sort((o,l)=>S4[o]-S4[l]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,l){return e.disableLayers?l:{[`@layer ${t[o]}`]:l}}}}function ZG(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(l){return $a(l,r,{stop:u=>Array.isArray(u),getKey:n?o:void 0})}}function eW(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Xn(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);const l={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},u={[r||"html"]:{lineHeight:1.5,"--font-fallback":"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'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(n==="element"){const f=Object.entries(l).reduce((h,[m,b])=>(h[m]={[o]:b},h),{});Object.assign(u,f)}else o?u[o]=l:Object.assign(u,l);return u}function tW(e){const{conditions:t,isValidProperty:r}=e,n=qn((o,l)=>r(o)?!l.split(",").every(u=>u==="base"||t.has(u)):!0);return function(l){return $a(l,u=>u,{stop:u=>Array.isArray(u),getKey:(u,f)=>!Xn(f)||t.has(u)?u:n(u,Object.keys(f).join(","))?nW(u).map(h=>{const m=h.startsWith("&")?h.slice(1):h;return rW(m)?`${m} &`:`&${m}`}).join(", "):u})}}function rW(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function nW(e){const t=[];let r=0,n="",o=!1;for(let l=0;l<e.length;l++){const u=e[l];if(u==="\\"&&!o){o=!0,n+=u;continue}if(o){o=!1,n+=u;continue}u==="("?r++:u===")"&&r--,u===","&&r===0?(t.push(n.trim()),n=""):n+=u}
4return n&&t.push(n.trim()),t}const iW=(e=Kt)=>{const t=o=>({base:e.base?.[o]??Kt,variants:nb(),defaultVariants:e.defaultVariants??Kt,compoundVariants:e.compoundVariants?aW(e.compoundVariants,o):MG}),n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,l]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(l))n.forEach(([h,m])=>{var b;(b=m.variants)[o]??(b[o]={}),m.variants[o][u]=f[h]??Kt});return Object.fromEntries(n)},aW=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function oW(e){const{cva:t}=e;return function(n=Kt){const o=Object.entries(iW(n)).map(([x,E])=>[x,t(E)]);function l(x){const E=o.map(([T,C])=>[T,C(x)]);return Object.fromEntries(E)}const u=n.variants??Kt,f=Object.keys(u);function h(x){const E=rb(x,["recipe"]),[T,C]=nu(E,f),R=f.includes("colorPalette"),w=f.includes("orientation");return R||(T.colorPalette=x.colorPalette||n.defaultVariants?.colorPalette),w&&(C.orientation=x.orientation),[T,C]}const m=ca(u,(x,E)=>[x,Object.keys(E)]);let b={};return n.className&&(b=Object.fromEntries(n.slots.map(x=>[x,`${n.className}__${x}`]))),Object.assign(l,{variantMap:m,variantKeys:f,splitVariantProps:h,classNameMap:b})}}const sW=()=>e=>Array.from(new Set(e)),lW=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,cW=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},g6=e=>(e+"").replace(lW,cW),b6=(e,t)=>{let r="",n=0,o="char",l="",u="";const f=[];for(;n<e.length;){const h=e[n];if(h==="{"){const b=e.indexOf("}",n);if(b===-1)break;const x=e.slice(n+1,b),E=t(x);r+=E??x,n=b+1;continue}if(o==="token"&&h===","){e[n]===""&&n++,o="fallback",f.push(o);const b=t(l);b?.endsWith(")")&&(r+=b.slice(0,-1)),l="",u="";continue}if(o==="fallback"&&u+h===", var("){const E=uW(e.slice(n+1))+n+1,T=e.slice(n+1,E);if(E===-1)break;r+=", var("+T+")",n=E+1,o=f.pop()??o,u="";continue}if(o==="token"||o==="fallback"){if(n++,h===")"){o=f.pop()??o??"char",u+=h;const b=l&&(t(l)??g6(l));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const E=b6(u,t);E&&(u=E.slice(0,-1))}else if(u){const E=t(u);E&&(u=E)}}const x=r.at(-1);u?x?.trim()?r+=b.slice(0,-1)+(", "+u+")"):r+=u:r+=b||")",l="",u="",o="char";continue}o==="token"&&(l+=h),o==="fallback"&&(u+=h);continue}const m=e.indexOf("token(",n);if(m!==-1){const b=m+6;r+=e.slice(n,m),n=b,o="token",f.push(o);continue}r+=h,n++}return r},uW=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if(n==="(")r.push(n);else if(n===")"&&(r.pop(),r.length===0))return t;t++}return t};function v6(e){const t={};return e.forEach((r,n)=>{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const y6=/({([^}]*)})/g,dW=/[{}]/g,fW=/\w+\.\w+/,x6=e=>{if(!xi(e))return[];const t=e.match(y6);return t?t.map(r=>r.replace(dW,"").trim()):[]},pW=e=>y6.test(e);function S6(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let r=e.value;const n=Object.keys(t);for(let o=0;o<n.length;o++){const l=n[o],u=t[l];if(u.extensions.conditions)continue;const f=S6(u);r=r.replace(`{${l}}`,f)}return e.value=r,delete e.extensions.references,e.value}function E6(e,t){if(t==null||!Array.isArray(t))return t;switch(e){case"easings":return`cubic-bezier(${t.join(", ")})`;case"animations":case"fonts":case"gradients":case"shadows":return t.join(", ");default:return t}}function hW(e,t){const r={};for(const n in t)r[n]=E6(e,t[n]);return r}const mW=/calc/g;function A6(e){return Xn(e)&&e.reference?e.reference:String(e)}const ib=(e,...t)=>t.map(A6).join(` ${e} `).replace(mW,""),E4=(...e)=>`calc(${ib("+",...e)})`,A4=(...e)=>`calc(${ib("-",...e)})`,lx=(...e)=>`calc(${ib("*",...e)})`,R4=(...e)=>`calc(${ib("/",...e)})`,C4=e=>{const t=A6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:lx(t,-1)},Xc=Object.assign(e=>({add:(...t)=>Xc(E4(e,...t)),subtract:(...t)=>Xc(A4(e,...t)),multiply:(...t)=>Xc(lx(e,...t)),divide:(...t)=>Xc(R4(e,...t)),negate:()=>Xc(C4(e)),toString:()=>e.toString()}),{add:E4,subtract:A4,multiply:lx,divide:R4,negate:C4}),gW={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:l}=e;r.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const h=f.path.slice(),m=n(h,t);if(xi(f.value)&&f.value==="0rem")return;const b=[...f.path],x=b[b.length-1];x!=null&&(b[b.length-1]=`-${x}`);const E={...f,value:Xc.negate(m.ref),name:o(b),path:b,extensions:{...f.extensions,negative:!0,prop:`-${f.extensions.prop}`,originalPath:h}};l(E)})}},bW=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),vW={enforce:"post",transform(e){e.allTokens.filter(r=>bW.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:l6(r.value)})})}},yW={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:f})=>f.category==="colors"),l=new Map,u=new Map;o.forEach(f=>{const{colorPalette:h}=f.extensions;h&&(h.keys.forEach(m=>{l.set(n(m),m)}
4),h.roots.forEach(m=>{const b=n(m),x=u.get(b)||[];if(x.push(f),u.set(b,x),f.extensions.default&&m.length===1){const E=h.keys[0]?.filter(Boolean);if(!E.length)return;const T=m.concat(E);l.set(n(T),[])}}))}),l.forEach(f=>{const h=["colors","colorPalette",...f].filter(Boolean),m=n(h),b=n(h.slice(1));r({name:m,value:m,originalValue:m,path:h,extensions:{condition:"base",originalPath:h,category:"colors",prop:b,virtual:!0}},"pre")})}},xW={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},SW=[gW,yW,vW,xW],EW={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:l}=e.extensions,u=o?l:e.path;return{cssVar:n(u.filter(Boolean),r)}}},AW={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n,getByName:o}=t,l=x6(e.value);return l.length&&l.forEach(u=>{if(!o(u))return;const f=n(u.split("."),r);e.value=e.value.replaceAll(`{${u}}`,f.ref)}),e.value}},RW={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const f=[...e.path];f.shift(),r=f}if(r.length===0)return{};const n=r.reduce((f,h,m,b)=>{const x=b.slice(0,m+1);return f.push(x),f},[]),o=r[0],l=t.formatTokenName(r),u=e.path.slice(e.path.indexOf(o)+1).reduce((f,h,m,b)=>(f.push(b.slice(m)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:l,roots:n,keys:u}}}},CW=[EW,AW,RW],T4=e=>Xn(e)&&Object.prototype.hasOwnProperty.call(e,"value");function TW(e){return e?{breakpoints:e6(e,t=>({value:t})),sizes:ca(e,(t,r)=>[`breakpoint-${t}`,{value:r}])}:{breakpoints:{},sizes:{}}}function wW(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,l=Ae=>Ae.join("."),u=(Ae,ye)=>i6(Ae.join("-"),{prefix:ye}),f=[],h=new Map,m=new Map,b=new Map,x=new Map,E=new Map,T=new Map,C=new Map,R=new Map,w=[];function I(Ae,ye){f.push(Ae),h.set(Ae.name,Ae),ye&&R.forEach(Qe=>{Qe.enforce===ye&&we(Qe,Ae)})}const P=TW(o),q=Wf({...r,breakpoints:P.breakpoints,sizes:{...r.sizes,...P.sizes}});function D(){$a(q,(Ae,ye)=>{const Qe=ye.includes("DEFAULT");ye=w4(ye);const Je=ye[0],vt=l(ye),$t=xi(Ae)?{value:Ae}:Ae,Bt=E6(Je,$t.value),Rr={value:Bt,originalValue:Bt,name:vt,path:ye,extensions:{condition:"base",originalPath:ye,category:Je,prop:l(ye.slice(1))}};Qe&&(Rr.extensions.default=!0),I(Rr)},{stop:T4}),$a(n,(Ae,ye)=>{const Qe=ye.includes("DEFAULT");ye=R6(w4(ye));const Je=ye[0],vt=l(ye),$t=xi(Ae.value)||Array.isArray(Ae.value)?{value:{base:Ae.value}}:Ae,Bt=hW(Je,$t.value),Rr={value:Bt.base??"",originalValue:Bt.base??"",name:vt,path:ye,extensions:{originalPath:ye,category:Je,conditions:Bt,condition:"base",prop:l(ye.slice(1))}};Qe&&(Rr.extensions.default=!0),I(Rr)},{stop:T4})}function O(Ae){return h.get(Ae)}function N(Ae){const{condition:ye}=Ae.extensions;ye&&(m.has(ye)||m.set(ye,new Set),m.get(ye).add(Ae))}function V(Ae){const{category:ye,prop:Qe,condition:Je}=Ae.extensions;ye&&(Je!=null&&Je!=="base"||(C.has(ye)||C.set(ye,new Map),C.get(ye).set(Qe,Ae)))}function J(Ae){const{condition:ye,negative:Qe,virtual:Je,cssVar:vt}=Ae.extensions;Qe||Je||!ye||!vt||(b.has(ye)||b.set(ye,new Map),b.get(ye).set(vt.var,Ae.value))}function W(Ae){const{category:ye,prop:Qe,cssVar:Je,negative:vt}=Ae.extensions;if(!ye)return;T.has(ye)||T.set(ye,new Map);const $t=vt?Ae.extensions.conditions?Ae.originalValue:Ae.value:Je.ref;T.get(ye).set(Qe,$t),E.set([ye,Qe].join("."),$t)}function G(Ae){const{colorPalette:ye,virtual:Qe,default:Je}=Ae.extensions;!ye||Qe||ye.roots.forEach(vt=>{const $t=l(vt);x.has($t)||x.set($t,new Map);const Bt=OW([...Ae.path],[...vt]),Rr=l(Bt),Dn=O(Rr);if(!Dn||!Dn.extensions.cssVar)return;const{var:Za}=Dn.extensions.cssVar;if(x.get($t).set(Za,Ae.extensions.cssVar.ref),Je&&vt.length===1){const Hi=l(["colors","colorPalette"]),xn=O(Hi);if(!xn)return;const Mn=l(Ae.path),jn=O(Mn);if(!jn)return;const de=ye.keys[0]?.filter(Boolean);if(!de.length)return;const Ie=l(vt.concat(de));x.has(Ie)||x.set(Ie,new Map),x.get(Ie).set(xn.extensions.cssVar.var,jn.extensions.cssVar.ref)}})}let B={};function L(){f.forEach(Ae=>{N(Ae),V(Ae),J(Ae),W(Ae),G(Ae)}),B=v6(T)}const z=(Ae,ye)=>
4{if(!Ae||typeof Ae!="string")return{invalid:!0,value:Ae};const[Qe,Je]=Ae.split("/");if(!Qe||!Je)return{invalid:!0,value:Qe};const vt=ye(Qe),$t=O(`opacity.${Je}`)?.value;if(!$t&&isNaN(Number(Je)))return{invalid:!0,value:Qe};const Bt=$t?Number($t)*100+"%":`${Je}%`,Rr=vt??Qe;return{invalid:!1,color:Rr,value:`color-mix(in srgb, ${Rr} ${Bt}, transparent)`}},ee=qn((Ae,ye)=>E.get(Ae)??ye),te=qn(Ae=>B[Ae]||null),Y=qn(Ae=>b6(Ae,ye=>{if(!ye)return;if(ye.includes("/")){const Je=z(ye,vt=>ee(vt));if(Je.invalid)throw new Error("Invalid color mix at "+ye+": "+Je.value);return Je.value}const Qe=ee(ye);return Qe||(fW.test(ye)?g6(ye):ye)})),ie={prefix:t,allTokens:f,tokenMap:h,registerToken:I,getByName:O,formatTokenName:l,formatCssVar:u,flatMap:E,cssVarMap:b,categoryMap:C,colorPaletteMap:x,getVar:ee,getCategoryValues:te,expandReferenceInValue:Y};function me(...Ae){Ae.forEach(ye=>{R.set(ye.name,ye)})}function Se(...Ae){w.push(...Ae)}function we(Ae,ye){if(ye.extensions.references||T2(Ae.match)&&!Ae.match(ye))return;const Je=(vt=>Ae.transform(vt,ie))(ye);switch(!0){case Ae.type==="extensions":Object.assign(ye.extensions,Je);break;case Ae.type==="value":ye.value=Je;break;default:ye[Ae.type]=Je;break}}function H(Ae){w.forEach(ye=>{ye.enforce===Ae&&ye.transform(ie)})}function se(Ae){R.forEach(ye=>{ye.enforce===Ae&&f.forEach(Qe=>{we(ye,Qe)})})}function be(){f.slice().forEach(Ae=>{const ye=_W(Ae);!ye||ye.length===0||ye.forEach(Qe=>{I(Qe)})})}function Ce(Ae){const ye=x6(Ae),Qe=[];for(let Je=0;Je<ye.length;Je++){const vt=O(ye[Je]);vt&&Qe.push(vt)}return Qe}function Le(){f.forEach(Ae=>{if(!pW(Ae.value))return;const ye=Ce(Ae.value);Ae.extensions.references=ye.reduce((Qe,Je)=>(Qe[Je.name]=Je,Qe),{})})}function Be(){f.forEach(Ae=>{S6(Ae)})}function tt(){H("pre"),se("pre"),be(),Le(),Be(),H("post"),se("post"),L()}return D(),me(...CW),Se(...SW),tt(),ie}function w4(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function R6(e){return e.filter(t=>t!=="base")}function _W(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return $a(t,(n,o)=>{const l=R6(o);if(!l.length)return;const u={...e,value:n,extensions:{...rb(e.extensions,["conditions"]),condition:l.j
4oin(":")}};r.push(u)}),r}function OW(e,t){const r=e.findIndex((n,o)=>t.every((l,u)=>e[o+u]===l));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}sW()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function IW(e){return ca(e,(t,r)=>[t,r])}function qW(e){const t=IW(e.config),r=e.tokens,n=new Map,o=new Map;function l(J,W){t[J]=W,u(J,W)}const u=(J,W)=>{const G=R(W);G&&(o.set(J,G),x(J,W))},f=()=>{for(const[J,W]of Object.entries(t))W&&u(J,W)},h=()=>{for(const[J,W]of Object.entries(t)){const{shorthand:G}=W??{};if(!G)continue;(Array.isArray(G)?G:[G]).forEach(L=>n.set(L,J))}},m=()=>{const J=v6(r.colorPaletteMap);l("colorPalette",{values:Object.keys(J),transform:qn(W=>J[W])})},b=new Map,x=(J,W)=>{if(!W)return;const G=R(W,L=>`type:Tokens["${L}"]`);if(typeof G=="object"&&G.type){b.set(J,new Set([`type:${G.type}`]));return}if(G){const L=new Set(Object.keys(G));b.set(J,L)}const B=b.get(J)??new Set;W.property&&b.set(J,B.add(`CssProperties["${W.property}"]`))},E=()=>{for(const[J,W]of Object.entries(t))W&&x(J,W)},T=(J,W)=>{const G=b.get(J)??new Set;b.set(J,new Set([...G,...W]))},C=()=>{const J=new Map;for(const[W,G]of b.entries()){if(G.size===0){J.set(W,["string"]);continue}const B=Array.from(G).map(L=>L.startsWith("CssProperties")?L:L.startsWith("type:")?L.replace("type:",""):JSON.stringify(L));J.set(W,B)}return J},R=(J,W)=>{const{values:G}=J,B=L=>{const z=W?.(L);return z?{[z]:z}:void 0};if(xi(G))return B?.(G)??r.getCategoryValues(G)??Kt;if(Array.isArray(G)){const L={};for(let z=0;z<G.length;z++)L[G[z]]=G[z];return L}return T2(G)?G(W?B:r.getCategoryValues):G},w=qn((J,W)=>({[J]:J.startsWith("--")?r.getVar(W,W):W})),I=Object.assign(r.getVar,{raw:J=>r.getByName(J)}),P=qn((J,W)=>{const G=O(J);xi(W)&&!W.includes("_EMO_")&&(W=r.expandReferenceInValue(W));const B=t[G];if(!B)return w(G,W);const L=o.get(G)?.[W];if(!B.transform)return w(J,L??W);const z=ee=>rG(ee,I);return B.transform(L??W,{raw:W,token:I,utils:{colorMix:z}})});function q(){h(),m(),f(),E()}q();const D=n.size>0,O=qn(J=>n.get(J)??J);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:D,transform:P,shorthands:n,resolveShorthand:O,register:l,getTypes:C,addPropertyType:T}}function C6(...e){const t=t6(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:l=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,h=JG(t),m=wW({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:u}),b=qG(r.breakpoints??Kt),x=DG({conditions:t.conditions??Kt,breakpoints:b}),E=qW({config:n,tokens:m});function T(){const{textStyles:Se,layerStyles:we,animationStyles:H}=r,se=Wf({textStyle:Se,layerStyle:we,animationStyle:H});for(const[be,Ce]of Object.entries(se)){const Le=a6(Ce??Kt,T6);E.register(be,{values:Object.keys(Le),transform(Be){return q(Le[Be])}})}}T(),E.addPropertyType("animationName",Object.keys(r.keyframes??Kt));const C=new Set(["css",...E.keys(),...x.keys()]),R=qn(Se=>C.has(Se)||TG(Se)),w=Se=>{if(Array.isArray(Se)){const we=nb();for(let H=0;H<Se.length;H++){const se=Se[H];if(se!=null){const be=x.breakpoints[H];we[be]=se}}return we}return Se},I=ZG({utility:E,normalize:w}),P=tW({conditions:x,isValidProperty:R}),q=h6({transform:E.transform,conditions:x,normalize:I}),D=KG({css:q,conditions:x,normalize:I,layers:h}),O=oW({cva:D});function N(){const Se={};for(const[we,H]of m.cssVarMap.entries()){const se=Object.fromEntries(H);if(Object.keys(se).length===0)continue;const be=we==="base"?l:x.resolve(we),Ce=be.startsWith("@"),Le=q(P({[be]:Ce?{[l]:se}:se}));Tu(Se,Le)}return h.wrap("tokens",Se)}function V(){const Se=ca(r.keyframes??Kt,(H,se)=>[`@keyframes ${H}`,se]),we=Object.assign({},Se,q(P(o)));return h.wrap("base",we)}function J(Se){return nu(Se,R)}function W(){const Se=eW({preflight:f});return h.wrap("reset",Se)}const G=PW(m),B=(Se,we)=>G.get(Se)?.value||we;B.var=(Se,we)=>G.get(Se)?.variable||we;function L(Se,we){return r.recipes?.[Se]??we}function z(Se,we){return r.slotRecipes?.[Se]??we}function ee(Se){return Object.hasOwnProperty.call(r.recipes??Kt,Se)}function te(Se){return Object.hasOwnProperty.call(r.slotRecipes??Kt,Se)}function Y(Se){return ee(Se)||te(Se)}const ie=[W(),V(),N()],me={layerStyles:Oy(r.layerStyles??Kt),textStyles:Oy(r.textStyles??Kt),animationStyles:Oy(r.animationStyles??Kt),tokens:_4(m,Object.keys(r.tokens??Kt),(Se,we)=>!Se.extensions.conditions&&!we.includes("colorPalette")),semanticTokens:_4(m,Object.keys(r.semanticTokens??Kt),Se=>!!Se.extensions.conditions),keyframes:O4(r.keyframes??Kt),breakpoints:O4(r.breakpoints??Kt)};return{$$chakra:!0,_config:t,_global:ie,breakpoints:b,tokens:m,conditions:x,utility:E,token:B,properties:C,layers:h,isValidProperty:R,splitCssProps:J,normalizeValue:w,getTokenCss:N,getGlobalCss:V,getPreflightCss:W,css:q,cva:D,sva:O,getRecipe:L,getSlotRecipe:z,hasRecipe:Y,isRecipe:ee,isSlotRecipe:te,query:me}}function PW(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:l}=r.extensions,u=l||o?n.ref:r.value;t.set(r.name,{value:u,variable:n.ref})}),t}const T6=e=>Xn(e)&&"value"in e,Oy=e=>({list(){return Object.keys(a6(e,T6))},search(t){return this.list().filter(r=>r.includes(t))}}),_4=(e,t,r)=>({categoryKeys:t,list(n){const o=e.categoryMap.get(n),l=o?[...o.entries()]:[],u=[];for(let f=0;f<l.length;f++){const[h,m]=l[f];r(m,h)&&u.push(h)}return u},search(n,o){return this.list(n).filter(l=>l.includes(o))}}),O4=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),kW={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Iy="var(--chakra-empty, )",NW=oG({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Iy,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Iy])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Iy])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),DW=cG({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),MW=lG({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}}
4,"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),nS=pr({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),jW=pr({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),an=pr({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:LW,defaultVariants:zW}=nS,UW=pr({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:LW,defaultVariants:zW}
4),w6=pr({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),VW=pr({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),FW=pr({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),$W=pr({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),Nr=pr({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),BW=pr({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Nr.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),HW=pr({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),GW=pr({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),WW=pr({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),on=pr({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px s
4olid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),YW=pr({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),KW=pr({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),XW=pr({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),QW=pr({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),JW=pr({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),ZW={badge:nS,button:jW,code:UW,container:VW,heading:FW,input:Nr,inputAddon:BW,kbd:HW,link:GW,mark:WW,separator:YW,skeleton:KW,skipNavLink:XW,spinner:QW,textarea:JW,icon:$W,checkmark:an,radiomark:on,colorSwatch:w6},eY=tS.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}
4",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}
4",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}
4",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),tY=tS.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),rY=tS.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.9
400/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),nY=s5.extendWith("itemBody"),iY=$e("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),aY=$e("alert").parts("title","description","root","indicator","content"),oY=$e("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),sY=$e("blockquote").parts("root","icon","content","caption"),lY=$e("card").parts("root","header","body","footer","title","description"),cY=$e("checkbox-card",["root","control","label","description","addon","indicator","content"]),uY=$e("data-list").parts("root","item","itemLabel","itemValue"),dY=F$.extendWith("indicatorGroup"),fY=K2.extendWith("header","body","footer","backdrop"),pY=K2.extendWith("header","body","footer","backdrop"),hY=F5.extendWith("textarea"),mY=$e("empty-state",["root","content","indicator","title","description"]),gY=$5.extendWith("requiredIndicator"),bY=B5.extendWith("content"),vY=H5.extendWith("itemContent","dropzoneContent","fileText"),yY=$e("list").parts("root","item","indicator"),xY=K5.extendWith("itemCommand"),SY=$e("select").parts("root","field","indicator"),EY=n3.extendWith("header","body","footer"),_6=J2.extendWith("itemAddon","itemIndicator"),AY=_6.extendWith("itemContent","itemDescription"),RY=a3.extendWith("itemIndicator"),CY=l3.extendWith("indicatorGroup"),TY=V$.extendWith("indicatorGroup","empty"),wY=f3.extendWith("markerIndicator","markerLabel"),_Y=$e("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),OY=$e("status").parts("root","indicator"),IY=$e("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),qY=h3.extendWith("indicator"),PY=$e("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),kY=$e("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),NY=$e("tabs").parts("root","trigger","list","content","contentGroup","indicator"),DY=$e("tag").parts("root","label","closeTrigger","startElement","endElement"),MY=$e("timeline").parts("root","item","content","separator","indicator","connector","title","description"),jY=M$.extendWith("channelText"),LY=$e("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),zY=p3.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");x5.extendWith("valueText");const UY=X$,VY=Ge({className:"chakra-accordion",slots:nY.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),FY=Ge({className:"chakra-action-bar",slots:iY.keys(),base:{positioner:{position:"fixed",display:"flex",pointerEvents:"none",insetInline:"0","--action-bar-offset":"spacing.4"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}},variants:{placement:{bottom:{positioner:{bottom:"calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",justifyContent:"center"}},"bottom-start":{positioner:{bottom:"calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",justifyContent:"flex-start",ps:"var(--action-bar-offset)"}},"bottom-end":{positioner:{bottom:"calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",justifyContent:"flex-end",pe:"var(--action-bar-offset)"}}}},defaultVariants:{placement:"bottom"}}
4),$Y=Ge({slots:aY.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),BY=Ge({slots:c5.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),HY=Ge({className:"chakra-blockquote",slots:sY.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}
4),GY=Ge({className:"chakra-breadcrumb",slots:oY.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),WY=Ge({className:"chakra-card",slots:lY.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),YY=Ge({className:"carousel",slots:cF.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),KY=Ge({slots:z2.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:an.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:an.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:an.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:an.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:an.variants?.size?.lg}},variant:{outline:{control:an.variants?.variant?.outline},solid:{control:an.variants?.variant?.solid},subtle:{control:an.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),XY=Ge({slots:cY.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:an.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:an.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:an.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:an.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:an.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:an.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:an.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:an.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),QY=Ge({slots:LY.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",
4insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0",overflowX:"auto",overflowY:"hidden"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),JY=Ge({slots:S5.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),ZY=Ge({className:"colorPicker",slots:jY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3","--color-picker-z-index":"zIndex.popover",zIndex:"calc(var(--color-picker-z-index) + var(--layer-index, 0))",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}}
4,area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...w6.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...Nr.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:Nr.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:Nr.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:Nr.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:Nr.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:Nr.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:Nr.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:Nr.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:Nr.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:Nr.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),eK=Ge({className:"chakra-combobox",slots:TY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column","--combobox-z-index":"zIndex.popover",zIndex:"calc(var(--combobox-z-index) + var(--layer-index, 0))",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}
4},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),tK=Ge({slots:uY.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),I4=Us({display:"inline-flex",alignItems:"center",justifyContent:"center",boxSize:"var(--datepicker-nav-trigger-size)",borderRadius:"l2",color:"fg",focusVisibleRing:"inside",focusRingWidth:"2px",_hover:{bg:"colorPalette.subtle"},_focusVisible:{boxShadow:"0 0 0 2px var(--colors-color-palette-focus-ring)"},_disabled:{opacity:.5},_icon:{boxSize:"4"}}),rK=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,q4=Us({height:"var(--datepicker-select-height)",ps:"2",pe:"8",textStyle:"sm",borderWidth:"1px",borderRadius:"l2",outline:"none",focu
4sVisibleRing:"inside",appearance:"none",fieldSizing:"content",backgroundImage:rK,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.375rem center",backgroundSize:"1.25em"}),nK=Ge({className:"date-picker",slots:dY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full","--datepicker-indicators-offset":"sizes.3",_disabled:{opacity:.5}},label:{textStyle:"sm",fontWeight:"medium"},indicatorGroup:{position:"absolute",insetEnd:"var(--datepicker-indicators-offset)",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",gap:"1"},control:{display:"flex",alignItems:"center",gap:"2",width:"full",position:"relative"},input:{flex:"1",minWidth:"0",height:"var(--datepicker-input-height)","--input-height":"var(--datepicker-input-height)",px:"var(--datepicker-input-px)",textStyle:"sm",bg:"transparent",borderRadius:"l2",outline:"0",appearance:"none",color:"fg","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_placeholder:{color:"fg.muted"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"6",height:"6",borderRadius:"l1",color:"fg.muted",outline:"none",_hover:{color:"fg"},focusVisibleRing:"inside",focusRingWidth:"2px",_icon:{boxSize:"4"}},content:{display:"flex",flexDirection:"column",gap:"3",p:"3",minW:"18rem",bg:"bg.panel",borderRadius:"l2",boxShadow:"lg",color:"fg","--date-picker-z-index":"zIndex.popover",zIndex:"calc(var(--date-picker-z-index) + var(--layer-index, 0))",outline:"none",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},view:{display:"flex",flexDirection:"column",gap:"3"},viewControl:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2",height:"var(--datepicker-nav-trigger-size)"},viewTrigger:{display:"inline-flex",flex:"1",alignItems:"center",justifyContent:"center",gap:"1",py:"1.5",px:"2",textStyle:"sm",fontWeight:"semibold",borderRadius:"l2",focusVisibleRing:"inside",focusRingWidth:"2px",_hover:{bg:"colorPalette.subtle"}},prevTrigger:I4,nextTrigger:I4,rangeText:{textStyle:"sm",fontWeight:"semibold"},table:{borderCollapse:"separate",borderSpacing:"0"},tableHeader:{width:"var(--table-cell-size)",py:"2",textStyle:"xs",fontWeight:"medium",color:"fg.muted",textAlign:"center",textTransform:"uppercase","&[data-type='week-number']":{color:"fg.subtle"}},tableCell:{py:"0.5","&[data-type='week-number']":{color:"fg.subtle"}},tableCellTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"var(--table-cell-size)",minHeight:"var(--table-cell-size)",textStyle:"sm",borderRadius:"l2",focusVisibleRing:"inside",focusRingWidth:"2px",focusRingOffset:"0px",cursor:"default",position:"relative",_hover:{bg:"colorPalette.subtle"},"[data-view=month] &, [data-view=year] &":{width:"calc(var(--table-cell-size) * 1.75)"},_today:{color:"colorPalette.fg",fontWeight:"semibold",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationThickness:"2px"},"&[data-selected]":{bg:"colorPalette.solid",color:"colorPalette.contrast",_hover:{bg:"colorPalette.solid"}},"&[data-in-range]":{bg:"colorPalette.subtle",color:"colorPalette.fg",borderRadius:"0",_hover:{bg:"colorPalette.subtle"}},"&[data-in-range][data-selected]":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderRadius:"0",_hover:{bg:"colorPalette.solid"},"&[data-range-start][data-range-end]":{borderRadius:"l2"},"&[data-range-start]:not([data-range-end])":{borderStartRadius:"l2",borderEndRadius:"0"},"&[data-range-end]:not([data-range-start])":{borderEndRadius:"l2",borderStartRadius:"0"}},_disabled:{opacity:.4}},monthSelect:q4,yearSelect:q4,clearTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"6",height:"6",flexShrink:0,textStyle:"xs",borderRadius:"l2",color:"fg.muted",_hover:{color:"fg"},focusVisibleRing:"inside",_icon:{width:"4",height:"4"}}},variants:{size:{xs:{root:{"--datepicker-input-height":"sizes.8","--datepicker-input-px":"sizes.2","--datepicker-indicators-offset":"sizes.2"},view:{"--table-cell-size":"sizes.8","--datepicker-nav-trigger-size":"sizes.7","--datepicker-select-height":"sizes.8"}},sm:{root:{"--datepicker-input-height":"sizes.9","--datepicker-input-px":"sizes.2.5","--datepicker-indicators-offset":"sizes.2.5"},view:{"--table-cell-size":"sizes.9","--datepicker-nav-trigger-size":"sizes.8","--datepicker-select-height":"sizes.9"}},md:{root:{"--datepicker-input-height":"sizes.10","--datepicker-input-px":"sizes.3"},view:{"--table-cell-size":"sizes.10","--datepicker-nav-trigger-size":"sizes.8","--datepicker-select-height":"sizes.10"}},lg:{root:{"--datepicker-input-height":"sizes.11","--datepicker-input-px":"sizes.4"},view:{"--table-cell-size":"sizes.10","--datepicker-nav-trigger-size":"sizes.9","--datepicker-select-height":"sizes.10"}},xl:{root:{"--datepicker-input-height":"sizes.12","--datepicker-input-px":"sizes.4.5"},view:{"--table-cell-size":"sizes.10","--datepicker-nav-trigger-size":"sizes.9","--datepicker-select-height":"sizes.10"}}},hideOutsideDays:{true:{tableCellTrigger:{"&[data-outside-range]":{visibility:"hidden"}}}},variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}},indicatorGroup:{insetEnd:"0"}}}},defaultVariants:{size:"md",variant:"outline"}}),iK=Ge({slots:fY.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh","--dialog-z-index":"zIndex.popover",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0) - 1)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.popover",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.popover",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),aK=Ge({slots:pY.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh","--drawer-z-index":"zIndex.popover",zIndex:"calc(var(--drawer-z-index) + var(--layer-index, 0) - 1)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,"--drawer-z-index":"zIndex.popover",zIndex:"calc(var(--drawer-z-index) + var(--layer-index, 0))",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,"--drawer-z-index":"zIndex.popover",zIndex:"calc(var(--drawer-z-index) + var(--layer-index, 0))",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"}
4,content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),P4=Us({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),oK=Ge({slots:hY.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...P4,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...P4,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),sK=Ge({slots:mY.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),lK=Ge({className:"chakra-field",slots:gY.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),cK=Ge({className:"fieldset",slots:bY.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),uK=Ge({className:"chakra-file-upload",slots:vY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),dK=Ge({className:"chakra-hover-card",slots:G5.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3","--hover-card-z-index":"zIndex.popover",zIndex:"calc(var(--hover-card-z-index) + var(--layer-index, 0))",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),fK=Ge({className:"chakra-list",slots:yY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}}
4,align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),pK=Ge({className:"chakra-listbox",slots:UY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),hK=Ge({className:"chakra-marquee",slots:Y5.keys(),base:{root:{position:"relative",width:"100%","--marquee-edge-color":"colors.bg","--marquee-edge-size":"20%","&[data-paused]":{animationPlayState:"paused !important","& *":{animationPlayState:"paused !important"}}},viewport:{overflow:"hidden",display:"flex",width:"100%",height:"100%"},content:{display:"flex",minWidth:"max-content",animationTimingFunction:"linear",animationFillMode:"forwards",animationDuration:"var(--marquee-duration)",animationDelay:"var(--marquee-delay)",animationIterationCount:"var(--marquee-loop-count)",_motionReduce:{animation:"none !important"},"&[data-side='start'], &[data-side='end']":{animationName:"marqueeX"},"&[data-side='top'], &[data-side='bottom']":{animationName:"marqueeY"},"&[data-reverse]":{animationDirection:"reverse"},"&[data-orientation='horizontal']":{flexDirection:"row"},"&[data-orientation='vertical']":{flexDirection:"column"}},edge:{position:"absolute",zIndex:"1",pointerEvents:"none","&[data-side='start']":{width:"var(--marquee-edge-size)",insetY:"0",insetInlineStart:"0",background:"linear-gradient(to right, var(--marquee-edge-color, white), transparent)",_rtl:{background:"linear-gradient(to left, var(--marquee-edge-color, white), transparent)"}},"&[data-side='end']":{width:"var(--marquee-edge-size)",insetY:"0",insetInlineEnd:"0",background:"linear-gradient(to left, var(--marquee-edge-color, white), transparent)",_rtl:{background:"linear-gradient(to right, var(--marquee-edge-color, white), transparent)"}},"&[data-side='top']":{height:"var(--marquee-edge-size)",insetX:"0",top:"0",background:"linear-gradient(to bottom, var(--marquee-edge-color, white), transparent)"},"&[data-side='bottom']":{height:"var(--marquee-edge-size)",insetX:"0",bottom:"0",background:"linear-gradient(to top, var(--marquee-edge-color, white), transparent)"}}}}),mK=Ge({className:"chakra-menu",slots:xY.keys(),base:{content:{outline:0,"--menu-bg":"colors.bg.panel",bg:"var(--menu-bg)",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.popover",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",to
4p:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--menu-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),hf=Ge({className:"chakra-select",slots:CY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column","--select-z-index":"zIndex.popover",zIndex:"calc(var(--select-z-index) + var(--layer-index, 0))",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}},ghost:{trigger:{bg:"transparent",_expanded:{bg:"bg.muted"}}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),gK=Ge({className:"chakra-native-select",slots:SY.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:hf.variants?.variant.outline.trigger},subtle:{field:hf.variants?.variant.subtle.trigger}
4,plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}},ghost:{field:hf.variants?.variant.ghost.trigger}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:hf.defaultVariants}),k4=Us({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),bK=Ge({className:"chakra-number-input",slots:t3.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Nr.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...k4,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...k4,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Nr.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Nr.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Nr.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Nr.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:ca(Nr.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:N4,defaultVariants:vK}=Nr,yK=Ge({className:"chakra-pin-input",slots:r3.keys(),base:{input:{...Nr.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:ca(N4.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:ca(N4.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:vK}),xK=Ge({className:"chakra-popover",slots:EY.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),SK=Ge({slots:Q2.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}
4),EK=Ge({className:"chakra-progress-circle",slots:Q2.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),AK=Ge({slots:i3.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),RK=Ge({className:"chakra-radio-card",slots:AY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.5"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:on.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:on.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:on.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:on.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:on.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:on.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:on.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemControl:{_disabled:{bg:"unset"}},itemIndicator:on.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}
4),CK=Ge({className:"chakra-radio-group",slots:_6.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:on.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:on.variants?.variant?.outline},subtle:{itemControl:on.variants?.variant?.subtle},solid:{itemControl:on.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:on.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:on.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:on.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:on.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),TK=Ge({className:"chakra-rating-group",slots:RY.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),wK=Ge({className:"chakra-scroll-area",slots:o3.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),_K=Ge({className:"chakra-segment-group",slots:s3.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}
4),OK=Ge({className:"chakra-slider",slots:wY.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",transition:"shadow",_focusVisible:{ring:"3px",ringColor:"colorPalette.focusRing/50"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&:has(.chakra-slider__markerLabel)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&:has(.chakra-slider__markerLabel)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),IK=Ge({slots:zY.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",
4insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),qK=Ge({className:"chakra-stat",slots:_Y.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),PK=Ge({className:"chakra-status",slots:OY.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),kK=Ge({className:"chakra-steps",slots:IY.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}
4),NK=Ge({slots:qY.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),DK=Ge({className:"chakra-table",slots:PY.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),MK=Ge({slots:NY.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",curs
4or:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Zh=nS.variants?.variant,jK=Ge({slots:DY.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:Zh?.subtle},solid:{root:Zh?.solid},outline:{root:Zh?.outline},surface:{root:Zh?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),LK=Ge({slots:m3.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}}
4,control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),zK=Ge({slots:MY.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"}
4,indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),UK=Ge({slots:kY.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),VK=Ge({slots:v3.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),D4=Us({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg
4:"bg.muted"},_disabled:{layerStyle:"disabled"}}),M4=Us({flex:"1"}),j4=Us({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),L4=Us({_selected:{layerStyle:"fill.solid"}}),FK=Ge({slots:S3.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:D4,item:D4,itemText:M4,branchText:M4,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:j4,item:j4},solid:{branchControl:L4,item:L4}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),$K={accordion:VY,actionBar:FY,alert:$Y,avatar:BY,blockquote:HY,breadcrumb:GY,card:WY,carousel:YY,checkbox:KY,checkboxCard:XY,codeBlock:QY,collapsible:JY,dataList:tK,datePicker:nK,dialog:iK,drawer:aK,editable:oK,emptyState:sK,field:lK,fieldset:cK,fileUpload:uK,hoverCard:dK,list:fK,listbox:pK,menu:mK,nativeSelect:gK,numberInput:bK,pinInput:yK,popover:xK,progress:SK,progressCircle:EK,radioCard:RK,radioGroup:CK,ratingGroup:TK,scrollArea:wK,segmentGroup:_K,select:hf,combobox:eK,slider:OK,splitter:IK,stat:qK,steps:kK,switch:NK,table:DK,tabs:MK,tag:jK,tagsInput:LK,toast:UK,tooltip:VK,status:PK,timeline:zK,colorPicker:ZY,qrCode:AK,treeView:FK,marquee:hK},BK=sG({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),HK=Ur.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),GK=Ur.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),WK=Ur.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}
4),YK=Ur.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),KK=Ur.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),XK=Ur.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),QK=Ur.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),JK=Ur.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}
4),ZK=Ur.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),eX=Ur.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),z4='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',tX=Ur.fonts({heading:{value:`Inter, ${z4}`},body:{value:`Inter, ${z4}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),rX=aG({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{width:"var(--width)"},to:{width:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0}
4,to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 calc(var(--slide-from-top-distance, 0.5rem) * -1)"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 var(--slide-from-bottom-distance, 0.5rem)"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"calc(var(--slide-from-left-distance, 0.5rem) * -1) 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"var(--slide-from-right-distance, 0.5rem) 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 calc(var(--slide-to-top-distance, 0.5rem) * -1)"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 var(--slide-to-bottom-distance, 0.5rem)"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"calc(var(--slide-to-left-distance, 0.5rem) * -1) 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"var(--slide-to-right-distance, 0.5rem) 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}},marqueeX:{from:{transform:"translateX(0%)"},to:{transform:"translateX(var(--marquee-translate))"}},marqueeY:{from:{transform:"translateY(0%)"},to:{transform:"translateY(var(--marquee-translate))"}}}),nX=Ur.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),iX=Ur.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),aX=Ur.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),O6=Ur.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),oX=Ur.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),sX=Ur.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),lX=Ur.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),cX=Ur.sizes({...oX,...O6,...lX,...sX}),uX=Ur.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),dX={aspectRatios:GK,animations:HK,blurs:WK,borders:YK,colors:KK,durations:QK,easings:JK,fonts:tX,fontSizes:ZK,fontWeights:eX,letterSpacings:nX,lineHeights:iX,radii:aX,spacing:O6,sizes:cX,zIndex:uX,cursor:XK},fX={colors:eY,shadows:rY,radii:tY},pX="chakra",hX=":where(html, .chakra-theme)",mX=n6({preflight:!0,cssVarsPrefix:pX,cssVarsRoot:hX,globalCss:NW,theme:{breakpoints:kW,keyframes:rX,tokens:dX,semanticTokens:fX,recipes:ZW,slotRecipes:$K,textStyles:BK,layerStyles:DW,animationStyles:MW}}),I6=t6(bG,mX);C6(I6);function gX(e){const{key:t,recipe:r}=e,n=Ug();return S.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const Ka=e=>{const{key:t,recipe:r}=e,n=Vg(t||r.className||"Component"),[o,l]=xf({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[u,f]=xf({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}
4),[h,m]=xf({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function b(C){const{unstyled:R,...w}=C,I=gX({key:t,recipe:w.recipe||r}),[P,q]=S.useMemo(()=>I.splitVariantProps(w),[w,I]);return{styles:S.useMemo(()=>R?vP:I(P),[R,P,I]),classNames:I.classNameMap,props:q}}function x(C,R={}){const{defaultProps:w,displayName:I}=R,P=vm(C),q=p7(n,P),D=O=>{const N=m(),V=S.useMemo(()=>kf(w,N,O),[N,O]),{styles:J,classNames:W,props:G}=b(V);return p.jsx(o,{value:J,children:p.jsx(u,{value:W,children:p.jsx(C,{...G})})})};return D.displayName=I??q??P,D}return{StylesProvider:o,ClassNamesProvider:u,PropsProvider:h,usePropsContext:m,useRecipeResult:b,withProvider:(C,R,w)=>{const{defaultProps:I,displayName:P,wrapElement:q,...D}=w??{},O=i_(n,String(R)),N=Rt(C,{},D),V=S.forwardRef((J,W)=>{const G=m(),B=S.useMemo(()=>kf(I??{},G,J),[G,J]),{styles:L,props:z,classNames:ee}=b(B),te=ee[R],Y=p.jsx(o,{value:L,children:p.jsx(u,{value:ee,children:p.jsx(N,{ref:W,...z,css:[L[R],B.css],className:cn(B.className,te)})})});return q?.(Y,B)??Y});return V.displayName=P??O??vm(C),V},withContext:(C,R,w)=>{const{displayName:I,...P}=w??{},q=R!=null&&R!==""?i_(n,String(R)):n,D=Rt(C,{},P),O=S.forwardRef((N,V)=>{const{unstyled:J,...W}=N,G=l(),L=f()?.[R];return p.jsx(D,{...W,css:[!J&&R?G[R]:void 0,N.css],ref:V,className:cn(N.className,L)})});return O.displayName=I??q??vm(C),O},withRootProvider:x,useStyles:l,useClassNames:f}},q6=Rt("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});q6.displayName="AbsoluteCenter";const P6=e=>p.jsx(Rt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"M20 6 9 17l-5-5"})}),bX=e=>p.jsx(Rt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"m6 9 6 6 6-6"})}),vX=e=>p.jsx(Rt.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:p.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),U4=e=>p.jsx(Rt.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:p.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),iS=e=>p.jsx(Rt.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),Ef=e=>e?"":void 0,yX=Rt("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),aS=S.memo(S.forwardRef(function(t,r){const{align:n="center",justify:o="flex-start",children:l,wrap:u,skip:f,...h}=t,m=S.useMemo(()=>{let b=S.Children.toArray(l).filter(S.isValidElement);if(b.length===1)return b;const x=b.filter(T=>!f?.(T)),E=x.length;return x.length===1?b:b.map(T=>{const C=T.props;if(f?.(T))return T;const R=x.indexOf(T);return S.cloneElement(T,{...C,"data-group-item":"","data-first":Ef(R===0),"data-last":Ef(R===E-1),"data-between":Ef(R>0&&R<E-1),style:{"--group-count":E,"--group-index":R,...C?.style??{}}})})},[l,f]);return p.jsx(yX,{ref:r,alignItems:n,justifyContent:o,flexWrap:u,...h,className:cn("chakra-group",t.className),children:m})}));aS.displayName="Group";const{withContext:xX}=ha({key:"badge"}),SX=xX("span"),{withContext:EX}=ha({key:"spinner"}),ab=EX("span"),k6=S.forwardRef(function(t,r){const{spinner:n=p.jsx(ab,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:l,text:u,visible:f=!0,...h}=t;return f?u?p.jsxs(uf,{ref:r,display:"contents",...h,children:[o==="start"&&n,u,o==="end"&&n]}):n?p.jsxs(uf,{ref:r,display:"contents",...h,children:[p.jsx(q6,{display:"inline-flex",children:n}),p.jsx(uf,{visibility:"hidden",display:"contents",children:l})]}):p.jsx(uf,{ref:r,display:"contents",...h,children:l}):l});k6.displayName="Loader";const{useRecipeResult:AX,PropsProvider:RX,usePropsContext:CX}=ha({key:"button"}),ut=S.forwardRef(function(t,r){const n=CX(),o=S.useMemo(()=>kf(n,t),[n,t]),l=AX(o),{loading:u,loadingText:f,children:h,spinner:m,spinnerPlacement:b,...x}=l.props;return p.jsx(Rt.button,{type:"button",ref:r,...x,"data-loading":Ef(u),disabled:u||x.disabled,className:cn(l.className,o.className),css:[l.styles,o.css],children:!o.asChild&&u?p.jsx(k6,{spinner:m,text:f,spinnerPlacement:b,children:h}):h})});ut.displayName="Button";const TX=RX,N6=S.forwardRef(function(t,r){const n=Fg({key:"button"}),[o,l]=S.useMemo(()=>n.splitVariantProps(t),[t,n]);return p.jsx(TX,{value:o,children:p.jsx(aS,{ref:r,...l})})});N6.displayName="ButtonGroup";const Xr=Rt("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});Xr.displayName="Center";const D6=S.forwardRef(function(t,r){const n=Fg({key:"checkmark",recipe:t.re
4cipe}),[o,l]=n.splitVariantProps(t),{checked:u,indeterminate:f,disabled:h,unstyled:m,children:b,...x}=l,E=m?bP:n(o);return p.jsx(Rt.svg,{ref:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":f?"indeterminate":u?"checked":"unchecked","data-disabled":Ef(h),css:[E,t.css],...x,children:f?p.jsx("path",{d:"M5 12h14"}):u?p.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});D6.displayName="Checkmark";const{withProvider:M6,withContext:j6,useStyles:wX}=Ka({key:"checkbox"});M6(Hl.RootProvider,"root",{forwardAsChild:!0});const _X=M6(Hl.Root,"root",{forwardAsChild:!0}),OX=j6(Hl.Label,"label",{forwardAsChild:!0}),L6=S.forwardRef(function(t,r){const{checked:n,indeterminate:o,...l}=t,u=Au(),f=wX();return n&&u.checked?p.jsx(Rt.svg,{ref:r,asChild:!0,...l,css:[f.indicator,t.css],children:n}):o&&u.indeterminate?p.jsx(Rt.svg,{ref:r,asChild:!0,...l,css:[f.indicator,t.css],children:o}):p.jsx(D6,{ref:r,checked:u.checked,indeterminate:u.indeterminate,disabled:u.disabled,unstyled:!0,...l,css:[f.indicator,t.css]})}),IX=j6(Hl.Control,"control",{forwardAsChild:!0,defaultProps:{children:p.jsx(L6,{})}});Rt(Hl.Group,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});Hl.Context;const qX=Hl.HiddenInput,Jn=S.forwardRef(function(t,r){return p.jsx(ut,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});Jn.displayName="IconButton";const wu=S.forwardRef(function(t,r){return p.jsx(Jn,{variant:"ghost","aria-label":"Close",ref:r,...t,children:t.children??p.jsx(iS,{})})});wu.displayName="CloseButton";function PX(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":e6(r,o=>n[o])}}function kX(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}const Pn=S.forwardRef(function(t,r){const{direction:n="column",align:o,justify:l,gap:u="0.5rem",wrap:f,children:h,separator:m,className:b,...x}=t,E=S.useMemo(()=>PX({gap:u,direction:n}),[u,n]),T=S.useMemo(()=>S.isValidElement(m)?kX(h).map((C,R,w)=>{const I=typeof C.key<"u"?C.key:R,P=m,q=S.cloneElement(P,{css:[E,P.props.css]});return p.jsxs(S.Fragment,{children:[C,R===w.length-1?null:q]},I)}):h,[h,m,E]);return p.jsx(Rt.div,{ref:r,display:"flex",alignItems:o,justifyContent:l,flexDirection:n,flexWrap:f,gap:m?void 0:u,className:cn("chakra-stack",b),...x,children:T})});Pn.displayName="Stack";const{withRootProvider:z6,withContext:Xa}=Ka({key:"dialog"});z6(zr.RootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const oS=z6(zr.Root,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});Xa(zr.Trigger,"trigger",{forwardAsChild:!0});const U6=Xa(zr.Positioner,"positioner",{forwardAsChild:!0}),sS=Xa(zr.Content,"content",{forwardAsChild:!0});Xa(zr.Description,"description",{forwardAsChild:!0});const d2e=Xa(zr.Title,"title",{forwardAsChild:!0}),lS=Xa(zr.CloseTrigger,"closeTrigger",{forwardAsChild:!0}),f2e=S.forwardRef(function(t,r){const n=Ya();return p.jsx(Rt.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),cS=Xa(zr.Backdrop,"backdrop",{forwardAsChild:!0}),uS=Xa("div","body"),V6=Xa("div","footer"),F6=Xa("div","header");zr.Context;const{withRootProvider:$6,withContext:Qa}=Ka({key:"drawer"});$6(zr.RootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const NX=$6(zr.Root,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});Qa(zr.Trigger,"trigger",{forwardAsChild:!0});const DX=Qa(zr.Positioner,"positioner",{forwardAsChild:!0}),MX=Qa(zr.Content,"content",{forwardAsChild:!0});Qa(zr.Description,"description",{forwardAsChild:!0});const p2e=Qa(zr.Title,"title",{forwardAsChild:!0}),h2e=Qa(zr.CloseTrigger,"closeTrigger",{forwardAsChild:!0});S.forwardRef(function(t,r){const n=Ya();return p.jsx(Rt.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})});const jX=Qa(zr.Backdrop,"backdrop",{forwardAsChild:!0}),LX=Qa("div","body"),m2e=Qa("div","footer"),g2e=Qa("div","header");zr.Context;const{useRecipeResult:zX}=ha({key:"icon"}),UX=S.forwardRef(function(t,r){const{styles:n,className:o,props:l}=zX({asChild:!t.as,...t});return p.jsx(Rt.svg,{ref:r,focusable:!1,"aria-hidden":"true",...l,css:[n,t.css],className:cn(o,t.className)})});function VX(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,l=S.Children.toArray(e.path),u=S.forwardRef((f,h)=>p.jsx(UX,{ref:h,asChild:!1,viewBox:t,...o,...f,children:l.length?l:p.jsx("path",{fill:"currentColor",d:r})}));return u.displayName=n,u}const{withProvider:FX,withContext:dS,useStyles:$X,useClassNames:BX}=Ka({key:"field"}),Xt=FX(Ru.Root,"root",{forwardAsChild:!0}),_n=dS(Ru.Label,"label",{forwardAsChild:!0}),b2e=dS(Ru.HelperText,"helperText",{forwardAsChild:!0}),Rs=dS(Ru.ErrorText,"errorText",{forwardAsChild:!0});VX({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.
4027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",defaultProps:{boxSize:"1em"}});S.forwardRef(function(t,r){const{fallback:n,children:o="*",...l}=t,u=ri(),f=BX(),h=$X();return u?.required?p.jsx(Rt.span,{ref:r,"aria-hidden":"true",...l,className:cn(f.requiredIndicator,t.className),css:[h.requiredIndicator,t.css],children:o}):n});const Oe=S.forwardRef(function(t,r){const{direction:n,align:o,justify:l,wrap:u,basis:f,grow:h,shrink:m,inline:b,...x}=t;return p.jsx(Rt.div,{ref:r,...x,css:{display:b?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:l,flexWrap:u,flexBasis:f,flexGrow:h,flexShrink:m,...t.css}})});Oe.displayName="Flex";const fS=S.forwardRef(function(t,r){return p.jsx(Pn,{align:"center",...t,direction:"row",ref:r})});fS.displayName="HStack";const nr=S.forwardRef(function(t,r){const{align:n,fit:o="cover",...l}=t;return p.jsx(Rt.img,{ref:r,objectFit:o,objectPosition:n,className:cn("chakra-image",t.className),...l})});nr.displayName="Image";const{withContext:HX}=ha({key:"input"}),tr=HX(Ru.Input),V4=S.forwardRef(function({unstyled:t,...r},n){const o=Fg({key:"inputAddon",recipe:r.recipe}),[l,u]=o.splitVariantProps(r),f=t?vP:o(l);return p.jsx(Rt.div,{ref:n,...u,css:[f,r.css]})}),qy=Rt("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),B6=S.forwardRef(function(t,r){const{startElement:n,startElementProps:o,endElement:l,endElementProps:u,startAddon:f,startAddonProps:h,endAddon:m,endAddonProps:b,children:x,startOffset:E="0px",endOffset:T="0px",...C}=t,R=S.Children.only(x),w=!!(f||m);return p.jsxs(aS,{width:"full",ref:r,attached:w,skip:I=>I.type===qy,...C,children:[f&&p.jsx(V4,{...h,children:f}),n&&p.jsx(qy,{pointerEvents:"none",...o,children:n}),S.cloneElement(R,{...n&&{ps:`calc(var(--input-height) - ${E})`},...l&&{pe:`calc(var(--input-height) - ${T})`},...x.props}),l&&p.jsx(qy,{placement:"end",...u,children:l}),m&&p.jsx(V4,{...b,children:m})]})}),{withContext:GX}=ha({key:"link"}),Ua=GX("a"),{withProvider:WX,withContext:H6}=Ka({key:"list"}),cx=WX("ul","root",{defaultProps:{role:"list"}}),ux=H6("li","item");H6("span","indicator");const{withRootProvider:G6,withContext:Qr}=Ka({key:"menu"});G6(Ar.RootProvider);const YX=G6(Ar.Root,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),KX=Qr(Ar.Trigger,"trigger",{forwardAsChild:!0});Qr(Ar.ContextTrigger,"contextTrigger",{forwardAsChild:!0});const XX=Qr(Ar.Positioner,"positioner",{forwardAsChild:!0}),v2e=Qr(Ar.Separator,"separator",{forwardAsChild:!0}),QX=Qr(Ar.Content,"content",{forwardAsChild:!0}),JX=Qr(Ar.ArrowTip,"arrowTip",{forwardAsChild:!0});Qr(Ar.Arrow,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(JX,{})}});Qr(Ar.Indicator,"indicator",{forwardAsChild:!0});Qr(Ar.ItemGroup,"itemGroup",{forwardAsChild:!0});Qr(Ar.ItemGroupLabel,"itemGroupLabel",{forwardAsChild:!0});const ZX=Qr(Ar.Item,"item",{forwardAsChild:!0}),y2e=Qr(Ar.TriggerItem,"item",{forwardAsChild:!0});Qr(Ar.ItemText,"itemText",{forwardAsChild:!0});Qr("kbd","itemCommand");Qr(Ar.ItemIndicator,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(P6,{boxSize:"4"})}});Qr(Ar.CheckboxItem,"item",{forwardAsChild:!0});Qr(Ar.RadioItemGroup,"itemGroup",{forwardAsChild:!0});Qr(Ar.RadioItem,"item",{forwardAsChild:!0});Ar.Context;Ar.ItemContext;const{withProvider:W6,withContext:Nn}=Ka({key:"select"});W6(Hr.RootProvider,"root",{forwardAsChild:!0});const eQ=W6(Hr.Root,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),tQ=Nn(Hr.Trigger,"trigger",{forwardAsChild:!0}),rQ=Nn(Hr.Positioner,"positioner",{forwardAsChild:!0}),nQ=Nn(Hr.Content,"content",{forwardAsChild:!0});Nn(Hr.List,"list",{forwardAsChild:!0});const iQ=Nn(Hr.ValueText,"valueText",{forwardAsChild:!0});Nn(Hr.ClearTrigger,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(iS,{boxSize:"1em"})}});Nn(Hr.ItemGroup,"itemGroup",{forwardAsChild:!0});Nn(Hr.ItemGroupLabel,"itemGroupLabel",{forwardAsChild:!0});const aQ=Nn(Hr.Item,"item",{forwardAsChild:!0});Nn(Hr.ItemText,"itemText",{forwardAsChild:!0});const x2e=Nn(Hr.ItemIndicator,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(P6,{})}}),S2e=Nn("div","indicatorGroup"),E2e=Nn(Hr.Indicator,"indicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(bX,{})}}),oQ=Nn(Hr.Control,"control",{forwardAsChild:!0}),A2e=Nn(Hr.Label,"label",{forwardAsChild:!0});Hr.Context;const sQ=Hr.HiddenSelect;Hr.ItemContext;const{useRecipeResult:lQ}=ha({key:"separator"}),Rm=S.forwardRef(function(t,r){const{styles:n,className:o,props:l}=lQ(t),u=t.orientation||"horizontal";return p.jsx(Rt.span,{ref:r,role:xi(u)?"separator":"presentation","aria-orientation":xi(u)?u:void 0,...rb(l,["orientation"]),className:cn(o,t.className),css:[n,t.css]})});Rm.displayName="Separator";const{withContext:cQ}=ha({key:"skeleton"}),Oo=cQ("div"),uQ=S.forwardRef(function(t,r){const{size:n,...o}=t;return p.jsx(gP,{size:n,asChild:!0,ref:r,children:p.jsx(Oo,{...o})})});uQ.displayName="SkeletonCircle";const dQ=S.forwardRef(function(t,r){const{loading:n=!0,noOfLines:o=3,gap:l,rootProps:u,...f}=t;return p.jsx(Pn,{gap:l,width:"full",ref:r,...u,children:Array.from({length:n?o:1}).map((h,m)=>p.jsx(Oo,{loading:n,height:n?"4":void 0,maxW:n?m===o-1&&o>1?"80%":"100%":void 0,...f},m))})});dQ.displayName="SkeletonText";const lg=Rt("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});
4lg.displayName="Spacer";const{StylesProvider:fQ,ClassNamesProvider:pQ,useRecipeResult:hQ,withContext:Fo}=Ka({key:"table"}),mQ=S.forwardRef(function({native:t,...r},n){const{styles:o,props:l,classNames:u}=hQ(r),f=S.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return p.jsx(pQ,{value:u,children:p.jsx(fQ,{value:o,children:p.jsx(Rt.table,{ref:n,...l,css:[f,r.css],className:cn(u?.root,r.className)})})})}),F4=Fo("tr","row");Rt("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const gQ=Fo("thead","header");Fo("tfoot","footer");const $4=Fo("th","columnHeader"),B4=Fo("td","cell");Fo("caption","caption",{defaultProps:{captionSide:"bottom"}});const bQ=Fo("tbody","body");Fo("colgroup");Fo("col");const{withContext:vQ}=ha({key:"textarea"}),Y6=vQ(Ru.Textarea),{withProvider:yQ,withContext:ob,useStyles:xQ}=Ka({key:"toast"}),SQ=Rt(Gk,{},{forwardAsChild:!0}),EQ=yQ(np.Root,"root",{forwardAsChild:!0}),AQ=ob(np.CloseTrigger,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(iS,{})}}),RQ=ob(np.Title,"title",{forwardAsChild:!0}),CQ=ob(np.Description,"description",{forwardAsChild:!0}),TQ=ob(np.ActionTrigger,"actionTrigger",{forwardAsChild:!0}),wQ={warning:U4,success:vX,error:U4},_Q=S.forwardRef(function(t,r){const{unstyled:n,...o}=t,l=Gl(),u=xQ(),f=wQ[l.type];return f?p.jsx(f,{ref:r,...o,css:[n?void 0:u.indicator,t.css]}):null}),{withRootProvider:K6,withContext:ip}=Ka({key:"tooltip"});K6(zs.RootProvider);const OQ=K6(zs.Root,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),IQ=ip(zs.Trigger,"trigger",{forwardAsChild:!0}),qQ=ip(zs.Positioner,"positioner",{forwardAsChild:!0}),PQ=ip(zs.Content,"content",{forwardAsChild:!0}),X6=ip(zs.ArrowTip,"arrowTip",{forwardAsChild:!0}),kQ=ip(zs.Arrow,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(X6,{})}});zs.Context;const Cm=S.forwardRef(function(t,r){return p.jsx(Pn,{align:"center",...t,direction:"column",ref:r})});Cm.displayName="VStack";var Py={exports:{}},ef={},ky={exports:{}},Ny={};var H4;function NQ(){return H4||(H4=1,(function(e){function t(Y,ie){var me=Y.length;Y.push(ie);e:for(;0<me;){var Se=me-1>>>1,we=Y[Se];if(0<o(we,ie))Y[Se]=ie,Y[me]=we,me=Se;else break e}}function r(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var ie=Y[0],me=Y.pop();if(me!==ie){Y[0]=me;e:for(var Se=0,we=Y.length,H=we>>>1;Se<H;){var se=2*(Se+1)-1,be=Y[se],Ce=se+1,Le=Y[Ce];if(0>o(be,me))Ce<we&&0>o(Le,be)?(Y[Se]=Le,Y[Ce]=me,Se=Ce):(Y[Se]=be,Y[se]=me,Se=se);else if(Ce<we&&0>o(Le,me))Y[Se]=Le,Y[Ce]=me,Se=Ce;else break e}}return ie}function o(Y,ie){var me=Y.sortIndex-ie.sortIndex;return me!==0?me:Y.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],m=[],b=1,x=null,E=3,T=!1,C=!1,R=!1,w=!1,I=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function D(Y){for(var ie=r(m);ie!==null;){if(ie.callback===null)n(m);else if(ie.startTime<=Y)n(m),ie.sortIndex=ie.expirationTime,t(h,ie);else break;ie=r(m)}}function O(Y){if(R=!1,D(Y),!C)if(r(h)!==null)C=!0,N||(N=!0,L());else{var ie=r(m);ie!==null&&te(O,ie.startTime-Y)}}var N=!1,V=-1,J=5,W=-1;function G(){return w?!0:!(e.unstable_now()-W<J)}function B(){if(w=!1,N){var Y=e.unstable_now();W=Y;var ie=!0;try{e:{C=!1,R&&(R=!1,P(V),V=-1),T=!0;var me=E;try{t:{for(D(Y),x=r(h);x!==null&&!(x.expirationTime>Y&&G());){var Se=x.callback;if(typeof Se=="function"){x.callback=null,E=x.priorityLevel;var we=Se(x.expirationTime<=Y);if(Y=e.unstable_now(),typeof we=="function"){x.callback=we,D(Y),ie=!0;break t}x===r(h)&&n(h),D(Y)}else n(h);x=r(h)}if(x!==null)ie=!0;else{var H=r(m);H!==null&&te(O,H.startTime-Y),ie=!1}}break e}finally{x=null,E=me,T=!1}ie=void 0}}finally{ie?L():N=!1}}}var L;if(typeof q=="function")L=function(){q(B)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,ee=z.port2;z.port1.onmessage=B,L=function(){ee.postMessage(null)}}else L=function(){I(B,0)};function te(Y,ie){V=I(function(){Y(e.unstable_now())},ie)}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(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(Y){switch(E){case 1:case 2:case 3:var ie=3;break;default:ie=E}var me=E;E=ie;try{return Y()}finally{E=me}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(Y,ie){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var me=E;E=Y;try{return ie()}finally{E=me}},e.unstable_scheduleCallback=function(Y,ie,me){var Se=e.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?Se+me:Se):me=Se,Y){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=me+we,Y={id:b++,callback:ie,priorityLevel:Y,startTime:me,expirationTime:we,sortIndex:-1},me>Se?(Y.sortIndex=me,t(m,Y),r(h)===null&&Y===r(m)&&(R?(P(V),V=-1):R=!0,te(O,me-Se))):(Y.sortIndex=we,t(h,Y),C||T||(C=!0,N||(N=!0,L()))),Y},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(Y){var ie=E;return function(){var me=E;E=ie;try{return Y.apply(this,arguments)}finally{E=me}}}})(Ny)),Ny}var G4;function DQ(){return G4||(G4=1,ky.exports=NQ()),ky.exports}var W4;function MQ(){if(W4)return ef;W4=1;var e=DQ(),t=g2(),r=n5();function n(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function l(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function u(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function f(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function h(i){if(l(i)!==i)throw Error(n(188))}function m(i){var a=i.alternate;if(!a){if(a=l(i),a===null)throw Error(n(188));return a!==i?null:i}for(var c=i,d=a;;){var g=c.return;if(g===null)break;var v=g.alternate;if(v===null){if(d=g.return,d!==null){c=d;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===c)return h(g),i;if(v===d)return h(g),a;v=v.sibling}throw Error(n(188))}if(c.return!==d.return)c=g,d=v;else{for(var _=!1,k=g.child;k;
vendor: 16,840 bytes, lines 4-11
4){if(k===c){_=!0,c=g,d=v;break}if(k===d){_=!0,d=g,c=v;break}k=k.sibling}if(!_){for(k=v.child;k;){if(k===c){_=!0,c=v,d=g;break}if(k===d){_=!0,d=v,c=g;break}k=k.sibling}if(!_)throw Error(n(189))}}if(c.alternate!==d)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?i:a}function b(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=b(i),a!==null)return a;i=i.sibling}return null}var x=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),q=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function L(i){return i===null||typeof i!="object"?null:(i=B&&i[B]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function ee(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case I:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList";case W:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case C:return"Portal";case q:return i.displayName||"Context";case P:return(i._context.displayName||"Context")+".Consumer";case D:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return a=i.displayName||null,a!==null?a:ee(i.type)||"Memo";case J:a=i._payload,i=i._init;try{return ee(i(a))}catch{}}return null}var te=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},Se=[],we=-1;function H(i){return{current:i}}function se(i){0>we||(i.current=Se[we],Se[we]=null,we--)}function be(i,a){we++,Se[we]=i.current,i.current=a}var Ce=H(null),Le=H(null),Be=H(null),tt=H(null);function Ae(i,a){switch(be(Be,a),be(Le,i),be(Ce,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?lw(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=lw(a),i=cw(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}se(Ce),be(Ce,i)}function ye(){se(Ce),se(Le),se(Be)}function Qe(i){i.memoizedState!==null&&be(tt,i);var a=Ce.current,c=cw(a,i.type);a!==c&&(be(Le,i),be(Ce,c))}function Je(i){Le.current===i&&(se(Ce),se(Le)),tt.current===i&&(se(tt),Ld._currentValue=me)}var vt,$t;function Bt(i){if(vt===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);vt=a&&a[1]||"",$t=-1<c.stack.indexOf(` 5 at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return` 6`+vt+i+$t}var Rr=!1;function Dn(i,a){if(!i||Rr)return"";Rr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(fe){var ce=fe}Reflect.construct(i,[],xe)}else{try{xe.call()}catch(fe){ce=fe}i.call(xe.prototype)}}else{try{throw Error()}catch(fe){ce=fe}(xe=i())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(fe){if(fe&&ce&&typeof fe.stack=="string")return[fe.stack,ce.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=d.DetermineComponentFrameRoot(),_=v[0],k=v[1];if(_&&k){var K=_.split(` 7`),oe=k.split(` 8`);for(g=d=0;d<K.length&&!K[d].includes("DetermineComponentFrameRoot");)d++;for(;g<oe.length&&!oe[g].includes("DetermineComponentFrameRoot");)g++;if(d===K.length||g===oe.length)for(d=K.length-1,g=oe.length-1;1<=d&&0<=g&&K[d]!==oe[g];)g--;for(;1<=d&&0<=g;d--,g--)if(K[d]!==oe[g]){if(d!==1||g!==1)do if(d--,g--,0>g||K[d]!==oe[g]){var ge=` 9`+K[d].replace(" at new "," at ");return i.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",i.displayName)),ge}while(1<=d&&0<=g);break}}}finally{Rr=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?Bt(c):""}function Za(i,a){switch(i.tag){case 26:case 27:case 5:return Bt(i.type);case 16:return Bt("Lazy");case 13:return i.child!==a&&a!==null?Bt("Suspense Fallback"):Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return Dn(i.type,!1);case 11:return Dn(i.type.render,!1);case 1:return Dn(i.type,!0);case 31:return Bt("Activity");default:return""}}function Hi(i){try{var a="",c=null;do a+=Za(i,c),c=i,i=i.return;while(i);return a}catch(d){return` 10Error generating stack: `+d.message+` 11`+d.stack}}var xn=Object.prototype.hasOwnProperty,Mn=e.unstable_scheduleCallback,jn=e.unstable_cancelCallback,de=e.unstable_shouldYield,Ie=e.unstable_requestPaint,j=e.unstable_now,X=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,Te=e.unstable_LowPriority,Ne=e.unstable_IdlePriority,Ze=e.log,st=e.unstable_setDisableYieldValue,Ht=null,kt=null;function Ct(i){if(typeof Ze=="function"&&st(i),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(Ht,i)}catch{}}var Cr=Math.clz32?Math.clz32:Vu,$s=Math.log,Bo=Math.LN2;function Vu(i){return i>>>=0,i===0?32:31-($s(i)/Bo|0)|0}var va=256,Ri=262144,eo=4194304;function Sn(i){var a=i&42;if(a!==0)return a;switch(i&-i){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function ec(i,a,c){var d=i.pendingLanes;if(d===0)return 0;var g=0,v=i.suspendedLanes,_=i.pingedLanes;i=i.warmLanes;var k=d&134217727;return k!==0?(d=k&~v,d!==0?g=Sn(d):(_&=k,_!==0?g=Sn(_):c||(c=k&~i,c!==0&&(g=Sn(c))))):(k=d&~v,k!==0?g=Sn(k):_!==0?g=Sn(_):c||(c=d&~i,c!==0&&(g=Sn(c)))),g===0?0:a!==0&&a!==g&&(a&v)===0&&(v=g&-g,c=a&-a,v>=c||v===32&&(c&4194048)!==0)?a:g}function Bs(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Jb(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ap(){var i=eo;return eo<<=1,(eo&62914560)===0&&(eo=4194304),i}function Fu(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function En(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Zb(i,a,c,d,g,v){var _=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var k=i.entanglements,K=i.expirationTimes,oe=i.hiddenUpdates;for(c=_&~c;0<c;){var ge=31-Cr(c),xe=1<<ge;k[ge]=0,K[ge]=-1;var ce=oe[ge];if(ce!==null)for(oe[ge]=null,ge=0;ge<ce.length;ge++){var fe=ce[ge];fe!==null&&(fe.lane&=-536870913)}c&=~xe}d!==0&&Rp(i,d,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(_&~a))}function Rp(i,a,c){i.pendingLanes|=a,i.suspendedLanes&=~a;var d=31-Cr(a);i.entangledLanes|=a,i.entanglements[d]=i.entanglements[d]|1073741824|c&261930}function Cp(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var d=31-Cr(c),g=1<<d;g&a|i[d]&a&&(i[d]|=a),c&=~g}}function Tp(i,a){var c=a&-a;return c=(c&42)!==0?1:$u(c),(c&(i.suspendedLanes|a))!==0?0:c}function $u(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ya(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function wp(){var i=ie.p;return i!==0?i:(i=window.event,i===void 0?32:Pw(i.type))}function _p(i,a){var c=ie.p;try{return ie.p=i,a()}finally{ie.p=c}}var xa=Math.random().toString(36).slice(2),Vr="__reactFiber$"+xa,un="__reactProps$"+xa,ai="__reactContainer$"+xa,Bu="__reactEvents$"+xa,e0="__reactListeners$"+xa,t0="__reactHandles$"+xa,Op="__reactResources$"+xa,Hs="__reactMarker$"+xa;function Hu(i){delete i[Vr],delete i[un],delete i[Bu],delete i[e0],delete i[t0]}function Sa(i){var a=i[Vr];if(a)return a;for(var c=i.parentNode;c;){if(a=c[ai]||c[Vr]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=gw(i);i!==null;){if(c=i[Vr])return c;i=gw(i)}return a}i=c,c=i.parentNode}return null}function Ho(i){if(i=i[Vr]||i[ai]){var a=i.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return i}return null}function Ea(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(n(33))}function Aa(i){var a=i[Op];return a||(a=i[Op]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Tr(i){i[Hs]=!0}var Gs=new Set,Gu={};function to(i,a){Go(i,a),Go(i+"Capture",a)}function Go(i,a){for(Gu[i]=a,i=0;i<a.length;i++)Gs.add(a[i])}var r0=RegExp("^[: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]*$"),Wu={},Ip={};function n0(i){return xn.call(Ip,i)?!0:xn.call(Wu,i)?!1:r0.test(i)?Ip[i]=!0:(Wu[i]=!0,!1)}function tc(i,a,c){if(n0(a))if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+c)}}function rc(i,a,c){if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+c)}}function Gi(i,a,c,d){if(d===null)i.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(a,c,""+d)}}function Ln(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function qp(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function i0(i,a,c){var d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,v=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return g.call(this)},set:function(_){c=""+_,v.call(this,_)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Yu(i){if(!i._valueTracker){var a=qp(i)?"checked":"value";i._valueTracker=i0(i,a,""+i[a])}}function Pp(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),d="";return i&&(d=qp(i)?i.checked?"true":"false":i.value),i=d,i!==c?(a.setValue(i),!0):!1}function ro(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Ku=/[\n"\\]/g;function zn(i){return i.replace(Ku,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Xu(i,a,c,d,g,v,_,k){i.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?i.type=_:i.removeAttribute("type"),a!=null?_==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Ln(a)):i.value!==""+Ln(a)&&(i.value=""+Ln(a)):_!=="submit"&&_!=="reset"||i.removeAttribute("value"),a!=null?Ju(i,_,Ln(a)):c!=null?Ju(i,_,Ln(c)):d!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Ln(k):i.removeAttribute("name")}function Qu(i,a,c,d,g,v,_,k){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),a!=null||c!=null){if(!(v!=="submit"&&v!=="reset"||a!=null)){Yu(i);return}c=c!=null?""+Ln(c):"",a=a!=null?""+Ln(a):c,k||a===i.value||(i.value=a),i.defaultValue=a}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,i.checked=k?i.checked:!!d,i.defaultChecked=!!d,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.name=_),Yu(i)}function Ju(i,a,c){a==="number"&&ro(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Wo(i,a,c,d){if(i=i.options,a){a={};for(var g=0;g<c.length;g++)a["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=a.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&d&&(i[c].defaultSelected=!0)}else{for(c=""+Ln(c),a=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,d&&(i[g].defaultSelected=!0);return}a!==null||i[g].disabled||(a=i[g])}a!==null&&(a.selected=!0)}}function kp(i,a,c){if(a!=null&&(a=""+Ln(a),a!==i.value&&(i.value=a),c==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=c!=null?""+Ln(c):""}function Zu(i,a,c,d){if(a==null){if(d!=null){if(c!=null)throw Error(n(92));if(te(d)){if(1<d.length)throw Error(n(93));d=d[0]}c=d}c==null&&(c=""),a=c}c=Ln(a),i.defaultValue=c,d=i.textContent,d===c&&d!==""&&d!==null&&(i.value=d),Yu(i)}function Yo(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var a0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Np(i,a,c){var d=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?d?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":d?i.setProperty(a,c):typeof c!="number"||c===0||a0.has(a)?a==="float"?i.cssFloat=c:i[a]=(""+c).trim():i[a]=c+"px"}function nc(i,a,c){if(a!=null&&typeof a!="object")throw Error(n(62));if(i=i.style,c!=null){for(var d in c)!c.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="");for(var g in a)d=a[g],a.hasOwnProperty(g)&&c[g]!==d&&Np(i,g,d)}else for(var v in a)a.hasOwnProperty(v)&&Np(i,v,a[v])}function ed(i){if(i.indexOf("-")===-1)return!1;switch(i){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 o0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
11dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),s0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function no(i){return s0.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function oi(){}var Ws=null;function Ys(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ko=null,io=null;function ic(i){var a=Ho(i);if(a&&(i=a.stateNode)){var c=i[un]||null;e:switch(i=a.stateNode,a.type){case"input":if(Xu(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+zn(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var d=c[a];if(d!==i&&d.form===i.form){var g=d[un]||null;if(!g)throw Error(n(90));Xu(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<c.length;a++)d=c[a],d.form===i.form&&Pp(d)}break e;case"textarea":kp(i,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&Wo(i,!!c.multiple,a,!1)}}}var ac=!1;function Ra(i,a,c){if(ac)return i(a,c);ac=!0;try{var d=i(a);return d}finally{if(ac=!1,(Ko!==null||io!==null)&&(bh(),Ko&&(a=Ko,i=io,io=Ko=null,ic(a),i)))for(a=0;a<i.length;a++)ic(i[a])}}function Wi(i,a){var c=i.stateNode;if(c===null)return null;var d=c[un]||null;if(d===null)return null;c=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(n(231,a,typeof c));return c}var Yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(Yi)try{var Ks={};Object.defineProperty(Ks,"passive",{get:function(){oc=!0}}),window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{oc=!1}var Ki=null,td=null,sc=null;function rd(){if(sc)return sc;var i,a=td,c=a.length,d,g="value"in Ki?Ki.value:Ki.textContent,v=g.length;for(i=0;i<c&&a[i]===g[i];i++);var _=c-i;for(d=1;d<=_&&a[c-d]===g[v-d];d++);return sc=g.slice(i,1<d?1-d:void 0)}function lc(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function F(){return!0}function re(){return!1}function le(i){function a(c,d,g,v,_){this._reactName=c,this._targetInst=g,this.type=d,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(v):v[k]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?F:re,this.isPropagationStopped=re,this}return x(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=F)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=F)},persist:function(){},isPersistent:F}),a}var Me={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lt=le(Me),xt=x({},Me,{view:0,detail:0}),Gt=le(xt),mt,Nt,Jr,Gr=x({},xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:c0,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Jr&&(Jr&&i.type==="mousemove"?(mt=i.screenX-Jr.screenX,Nt=i.screenY-Jr.screenY):Nt=mt=0,Jr=i),mt)},movementY:function(i){return"movementY"in i?i.movementY:Nt}}),Xo=le(Gr),nd=x({},Gr,{dataTransfer:0}),id=le(nd),Dp=x({},xt,{relatedTarget:0}),l0=le(Dp),Xj=x({},Me,{animationName:0,elapsedTime:0,pseudoElement:0}),Qj=le(Xj),Jj=x({},Me,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}
vendor: 1,037 bytes, line 11
11),Zj=le(Jj),eL=x({},Me,{data:0}),fR=le(eL),tL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rL={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"},nL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iL(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=nL[i])?!!a[i]:!1}function c0(){return iL}var aL=x({},xt,{key:function(i){if(i.key){var a=tL[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=lc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="
11keydown"||i.type==="keyup"?rL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:c0,charCode:function(i){return i.type==="keypress"?lc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?lc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),oL=le(aL),sL=x({},Gr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pR=le(sL),lL=x({},xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:c0}),cL=le(lL),uL=x({},Me,{propertyName:0,elapsedTime:0,pseudoElement:0}),dL=le(uL),fL=x({},Gr,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),pL=le(fL),hL=x({},Me,{newState:0,oldState:0}),mL=le(hL),gL=[9,13,27,32],u0=Yi&&"CompositionEvent"in window,ad=null;Yi&&"documentMode"in document&&(ad=document.documentMode);var bL=Yi&&"TextEvent"in window&&!ad,hR=Yi&&(!u0||ad&&8<ad&&11>=ad),mR=" ",gR=!1;function bR(i,a){switch(i){case"keyup":return gL.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vR(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var cc=!1;function vL(i,a){switch(i){case"compositionend":return vR(a);case"keypress":return a.which!==32?null:(gR=!0,mR);case"textInput":return i=a.data,i===mR&&gR?null:i;default:return null}}function yL(i,a){if(cc)return i==="compositionend"||!u0&&bR(i,a)?(i=rd(),sc=td=Ki=null,cc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return hR&&a.locale!=="ko"?null:a.data;default:return null}}var xL={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 yR(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!xL[i.type]:a==="textarea"}function xR(i,a,c,d){Ko?io?io.push(d):io=[d]:Ko=d,a=Rh(a,"onChange"),0<a.length&&(c=new lt("onChange","change",null,c,d),i.push({event:c,listeners:a}))}var od=null,sd=null;function SL(i){rw(i,0)}function Mp(i){var a=Ea(i);if(Pp(a))return i}function SR(i,a){if(i==="change")return a}var ER=!1;if(Yi){var d0;if(Yi){var f0="oninput"in document;if(!f0){var AR=document.createElement("div");AR.setAttribute("oninput","return;"),f0=typeof AR.oninput=="function"}d0=f0}else d0=!1;ER=d0&&(!document.documentMode||9<document.documentMode)}function RR(){od&&(od.detachEvent("onpropertychange",CR),sd=od=null)}function CR(i){if(i.propertyName==="value"&&Mp(sd)){var a=[];xR(a,sd,i,Ys(i)),Ra(SL,a)}}function EL(i,a,c){i==="focusin"?(RR(),od=a,sd=c,od.attachEvent("onpropertychange",CR)):i==="focusout"&&RR()}function AL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Mp(sd)}function RL(i,a){if(i==="click")return Mp(a)}function CL(i,a){if(i==="input"||i==="change")return Mp(a)}function TL(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var si=typeof Object.is=="function"?Object.is:TL;function ld(i,a){if(si(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),d=Object.keys(a);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var g=c[d];if(!xn.call(a,g)||!si(i[g],a[g]))return!1}return!0}function TR(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function wR(i,a){var c=TR(i);i=0;for(var d;c;){if(c.nodeType===3){if(d=i+c.textContent.length,i<=a&&d>=a)return{node:c,offset:a-i};i=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=TR(c)}}function _R(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?_R(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function OR(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=ro(i.document);a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=ro(i.document)}return a}function p0(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var wL=Yi&&"documentMode"in document&&11>=document.documentMode,uc=null,h0=null,cd=null,m0=!1;function IR(i,a,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;m0||uc==null||uc!==ro(d)||(d=uc,"selectionStart"in d&&p0(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focu
vendor: 102,750 bytes, line 11
11sNode:d.focusNode,focusOffset:d.focusOffset}),cd&&ld(cd,d)||(cd=d,d=Rh(h0,"onSelect"),0<d.length&&(a=new lt("onSelect","select",null,a,c),i.push({event:a,listeners:d}),a.target=uc)))}function Xs(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var dc={animationend:Xs("Animation","AnimationEnd"),animationiteration:Xs("Animation","AnimationIteration"),animationstart:Xs("Animation","AnimationStart"),transitionrun:Xs("Transition","TransitionRun"),transitionstart:Xs("Transition","TransitionStart"),transitioncancel:Xs("Transition","TransitionCancel"),transitionend:Xs("Transition","TransitionEnd")},g0={},qR={};Yi&&(qR=document.createElement("div").style,"AnimationEvent"in window||(delete dc.animationend.animation,delete dc.animationiteration.animation,delete dc.animationstart.animation),"TransitionEvent"in window||delete dc.transitionend.transition);function Qs(i){if(g0[i])return g0[i];if(!dc[i])return i;var a=dc[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in qR)return g0[i]=a[c];return i}var PR=Qs("animationend"),kR=Qs("animationiteration"),NR=Qs("animationstart"),_L=Qs("transitionrun"),OL=Qs("transitionstart"),IL=Qs("transitioncancel"),DR=Qs("transitionend"),MR=new Map,b0="abort auxClick beforeToggle 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(" ");b0.push("scrollEnd");function Xi(i,a){MR.set(i,a),to(a,[i])}var jp=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Ci=[],fc=0,v0=0;function Lp(){for(var i=fc,a=v0=fc=0;a<i;){var c=Ci[a];Ci[a++]=null;var d=Ci[a];Ci[a++]=null;var g=Ci[a];Ci[a++]=null;var v=Ci[a];if(Ci[a++]=null,d!==null&&g!==null){var _=d.pending;_===null?g.next=g:(g.next=_.next,_.next=g),d.pending=g}v!==0&&jR(c,g,v)}}function zp(i,a,c,d){Ci[fc++]=i,Ci[fc++]=a,Ci[fc++]=c,Ci[fc++]=d,v0|=d,i.lanes|=d,i=i.alternate,i!==null&&(i.lanes|=d)}function y0(i,a,c,d){return zp(i,a,c,d),Up(i)}function Js(i,a){return zp(i,null,null,a),Up(i)}function jR(i,a,c){i.lanes|=c;var d=i.alternate;d!==null&&(d.lanes|=c);for(var g=!1,v=i.return;v!==null;)v.childLanes|=c,d=v.alternate,d!==null&&(d.childLanes|=c),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&a!==null&&(g=31-Cr(c),i=v.hiddenUpdates,d=i[g],d===null?i[g]=[a]:d.push(a),a.lane=c|536870912),v):null}function Up(i){if(50<qd)throw qd=0,_v=null,Error(n(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var pc={};function qL(i,a,c,d){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(i,a,c,d){return new qL(i,a,c,d)}function x0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ao(i,a){var c=i.alternate;return c===null?(c=li(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function LR(i,a){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,a=c.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Vp(i,a,c,d,g,v){var _=0;if(d=i,typeof i=="function")x0(i)&&(_=1);else if(typeof i=="string")_=Mz(i,c,Ce.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case W:return i=li(31,c,a,g),i.elementType=W,i.lanes=v,i;case R:return Zs(c.children,g,v,a);case w:_=8,g|=24;break;case I:return i=li(12,c,a,g|2),i.elementType=I,i.lanes=v,i;case O:return i=li(13,c,a,g),i.elementType=O,i.lanes=v,i;case N:return i=li(19,c,a,g),i.elementType=N,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case q:_=10;break e;case P:_=9;break e;case D:_=11;break e;case V:_=14;break e;case J:_=16,d=null;break e}_=29,c=Error(n(130,i===null?"null":typeof i,"")),d=null}return a=li(_,c,a,g),a.elementType=i,a.type=d,a.lanes=v,a}function Zs(i,a,c,d){return i=li(7,i,d,a),i.lanes=c,i}function S0(i,a,c){return i=li(6,i,null,a),i.lanes=c,i}function zR(i){var a=li(18,null,null,0);return a.stateNode=i,a}function E0(i,a,c){return a=li(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var UR=new WeakMap;function Ti(i,a){if(typeof i=="object"&&i!==null){var c=UR.get(i);return c!==void 0?c:(a={value:i,source:a,stack:Hi(a)},UR.set(i,a),a)}return{value:i,source:a,stack:Hi(a)}}var hc=[],mc=0,Fp=null,ud=0,wi=[],_i=0,Qo=null,Ca=1,Ta="";function oo(i,a){hc[mc++]=ud,hc[mc++]=Fp,Fp=i,ud=a}function VR(i,a,c){wi[_i++]=Ca,wi[_i++]=Ta,wi[_i++]=Qo,Qo=i;var d=Ca;i=Ta;var g=32-Cr(d)-1;d&=~(1<<g),c+=1;var v=32-Cr(a)+g;if(30<v){var _=g-g%5;v=(d&(1<<_)-1).toString(32),d>>=_,g-=_,Ca=1<<32-Cr(a)+g|c<<g|d,Ta=v+i}else Ca=1<<v|c<<g|d,Ta=i}function A0(i){i.return!==null&&(oo(i,1),VR(i,1,0))}function R0(i){for(;i===Fp;)Fp=hc[--mc],hc[mc]=null,ud=hc[--mc],hc[mc]=null;for(;i===Qo;)Qo=wi[--_i],wi[_i]=null,Ta=wi[--_i],wi[_i]=null,Ca=wi[--_i],wi[_i]=null}function FR(i,a){wi[_i++]=Ca,wi[_i++]=Ta,wi[_i++]=Qo,Ca=a.id,Ta=a.overflow,Qo=i}var Zr=null,Qt=null,gt=!1,Jo=null,Oi=!1,C0=Error(n(519));function Zo(i){var a=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dd(Ti(a,i)),C0}function $R(i){var a=i.stateNode,c=i.type,d=i.memoizedProps;switch(a[Vr]=i,a[un]=d,c){case"dialog":ft("cancel",a),ft("close",a);break;case"iframe":case"object":case"embed":ft("load",a);break;case"video":case"audio":for(c=0;c<kd.length;c++)ft(kd[c],a);break;case"source":ft("error",a);break;case"img":case"image":case"link":ft("error",a),ft("load",a);break;case"details":ft("toggle",a);break;case"input":ft("invalid",a),Qu(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),Zu(a,d.value,d.defaultValue,d.children)}c=d.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||d.suppressHydrationWarning===!0||ow(a.textContent,c)?(d.popover!=null&&(ft("beforetoggle",a),ft("toggle",a)),d.onScroll!=null&&ft("scroll",a),d.onScrollEnd!=null&&ft("scrollend",a),d.onClick!=null&&(a.onclick=oi),a=!0):a=!1,a||Zo(i,!0)}function BR(i){for(Zr=i.return;Zr;)switch(Zr.tag){case 5:case 31:case 13:Oi=!1;return;case 27:case 3:Oi=!0;return;default:Zr=Zr.return}}function gc(i){if(i!==Zr)return!1;if(!gt)return BR(i),gt=!0,!1;var a=i.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||$v(i.type,i.memoizedProps)),c=!c),c&&Qt&&Zo(i),BR(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));Qt=mw(i)}else if(a===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));Qt=mw(i)}else a===27?(a=Qt,ps(i.type)?(i=Yv,Yv=null,Qt=i):Qt=a):Qt=Zr?qi(i.stateNode.nextSibling):null;return!0}function el(){Qt=Zr=null,gt=!1}function T0(){var i=Jo;return i!==null&&($n===null?$n=i:$n.push.apply($n,i),Jo=null),i}function dd(i){Jo===null?Jo=[i]:Jo.push(i)}var w0=H(null),tl=null,so=null;function es(i,a,c){be(w0,a._currentValue),a._currentValue=c}function lo(i){i._currentValue=w0.current,se(w0)}function _0(i,a,c){for(;i!==null;){var d=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),i===c)break;i=i.return}}function O0(i,a,c,d){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var _=g.child;v=v.firstContext;e:for(;v!==null;){var k=v;v=g;for(var K=0;K<a.length;K++)if(k.context===a[K]){v.lanes|=c,k=v.alternate,k!==null&&(k.lanes|=c),_0(v.return,c,i),d||(_=null);break e}v=k.next}}else if(g.tag===18){if(_=g.return,_===null)throw Error(n(341));_.lanes|=c,v=_.alternate,v!==null&&(v.lanes|=c),_0(_,c,i),_=null}else _=g.child;if(_!==null)_.return=g;else for(_=g;_!==null;){if(_===i){_=null;break}if(g=_.sibling,g!==null){g.return=_.return,_=g;break}_=_.return}g=_}}function bc(i,a,c,d){i=null;for(var g=a,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var _=g.alternate;if(_===null)throw Error(n(387));if(_=_.memoizedProps,_!==null){var k=g.type;si(g.pendingProps.value,_.value)||(i!==null?i.push(k):i=[k])}}else if(g===tt.current){if(_=g.alternate,_===null)throw Error(n(387));_.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(Ld):i=[Ld])}g=g.return}i!==null&&O0(a,i,c,d),a.flags|=262144}function $p(i){for(i=i.firstContext;i!==null;){if(!si(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function rl(i){tl=i,so=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function en(i){return HR(tl,i)}function Bp(i,a){return tl===null&&rl(i),HR(i,a)}function HR(i,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},so===null){if(i===null)throw Error(n(308));so=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else so=so.next=a;return c}var PL=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(c,d){i.push(d)}};this.abort=function(){a.aborted=!0,i.forEach(function(c){return c()})}},kL=e.unstable_scheduleCallback,NL=e.unstable_NormalPriority,wr={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function I0(){return{controller:new PL,data:new Map,refCount:0}}function fd(i){i.refCount--,i.refCount===0&&kL(NL,function(){i.controller.abort()})}var pd=null,q0=0,vc=0,yc=null;function DL(i,a){if(pd===null){var c=pd=[];q0=0,vc=Nv(),yc={status:"pending",value:void 0,then:function(d){c.push(d)}}}return q0++,a.then(GR,GR),a}function GR(){if(--q0===0&&pd!==null){yc!==null&&(yc.status="fulfilled");var i=pd;pd=null,vc=0,yc=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function ML(i,a){var c=[],d={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){d.status="fulfilled",d.value=a;for(var g=0;g<c.length;g++)(0,c[g])(a)},function(g){for(d.status="rejected",d.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),d}var WR=Y.S;Y.S=function(i,a){IT=j(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&DL(i,a),WR!==null&&WR(i,a)};var nl=H(null);function P0(){var i=nl.current;return i!==null?i:Lt.pooledCache}function Hp(i,a){a===null?be(nl,nl.current):be(nl,a.pool)}function YR(){var i=P0();return i===null?null:{parent:wr._currentValue,pool:i}}var xc=Error(n(460)),k0=Error(n(474)),Gp=Error(n(542)),Wp={then:function(){}};function KR(i){return i=i.status,i==="fulfilled"||i==="rejected"}function XR(i,a,c){switch(c=i[c],c===void 0?i.push(a):c!==a&&(a.then(oi,oi),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,JR(i),i;default:if(typeof a.status=="string")a.then(oi,oi);else{if(i=Lt,i!==null&&100<i.shellSuspendCounter)throw Error(n(482));i=a,i.status="pending",i.then(function(d){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=d}},function(d){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,JR(i),i}throw al=a,xc}}function il(i){try{var a=i._init;return a(i._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(al=c,xc):c}}var al=null;function QR(){if(al===null)throw Error(n(459));var i=al;return al=null,i}function JR(i){if(i===xc||i===Gp)throw Error(n(483))}var Sc=null,hd=0;function Yp(i){var a=hd;return hd+=1,Sc===null&&(Sc=[]),XR(Sc,i,a)}function md(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function Kp(i,a){throw a.$$typeof===E?Error(n(525)):(i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function ZR(i){function a(ne,Q){if(i){var ae=ne.deletions;ae===null?(ne.deletions=[Q],ne.flags|=16):ae.push(Q)}}function c(ne,Q){if(!i)return null;for(;Q!==null;)a(ne,Q),Q=Q.sibling;return null}function d(ne){for(var Q=new Map;ne!==null;)ne.key!==null?Q.set(ne.key,ne):Q.set(ne.index,ne),ne=ne.sibling;return Q}function g(ne,Q){return ne=ao(ne,Q),ne.index=0,ne.sibling=null,ne}function v(ne,Q,ae){return ne.index=ae,i?(ae=ne.alternate,ae!==null?(ae=ae.index,ae<Q?(ne.flags|=67108866,Q):ae):(ne.flags|=67108866,Q)):(ne.flags|=1048576,Q)}function _(ne){return i&&ne.alternate===null&&(ne.flags|=67108866),ne}function k(ne,Q,ae,ve){return Q===null||Q.tag!==6?(Q=S0(ae,ne.mode,ve),Q.return=ne,Q):(Q=g(Q,ae),Q.return=ne,Q)}function K(ne,Q,ae,ve){var He=ae.type;return He===R?ge(ne,Q,ae.props.children,ve,ae.key):Q!==null&&(Q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===J&&il(He)===Q.type)?(Q=g(Q,ae.props),md(Q,ae),Q.return=ne,Q):(Q=Vp(ae.type,ae.key,ae.props,null,ne.mode,ve),md(Q,ae),Q.return=ne,Q)}function oe(ne,Q,ae,ve){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ae.containerInfo||Q.stateNode.implementation!==ae.implementation?(Q=E0(ae,ne.mode,ve),Q.return=ne,Q):(Q=g(Q,ae.children||[]),Q.return=ne,Q)}function ge(ne,Q,ae,ve,He){return Q===null||Q.tag!==7?(Q=Zs(ae,ne.mode,ve,He),Q.return=ne,Q):(Q=g(Q,ae),Q.return=ne,Q)}function xe(ne,Q,ae){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=S0(""+Q,ne.mode,ae),Q.return=ne,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case T:return ae=Vp(Q.type,Q.key,Q.props,null,ne.mode,ae),md(ae,Q),ae.return=ne,ae;case C:return Q=E0(Q,ne.mode,ae),Q.return=ne,Q;case J:return Q=il(Q),xe(ne,Q,ae)}if(te(Q)||L(Q))return Q=Zs(Q,ne.mode,ae,null),Q.return=ne,Q;if(typeof Q.then=="function")return xe(ne,Yp(Q),ae);if(Q.$$typeof===q)return xe(ne,Bp(ne,Q),ae);Kp(ne,Q)}return null}function ce(ne,Q,ae,ve){var He=Q!==null?Q.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return He!==null?null:k(ne,Q,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case T:return ae.key===He?K(ne,Q,ae,ve):null;case C:return ae.key===He?oe(ne,Q,ae,ve):null;case J:return ae=il(ae),ce(ne,Q,ae,ve)}if(te(ae)||L(ae))return He!==null?null:ge(ne,Q,ae,ve,null);if(typeof ae.then=="function")return ce(ne,Q,Yp(ae),ve);if(ae.$$typeof===q)return ce(ne,Q,Bp(ne,ae),ve);Kp(ne,ae)}return null}function fe(ne,Q,ae,ve,He){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ne=ne.get(ae)||null,k(Q,ne,""+ve,He);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case T:return ne=ne.get(ve.key===null?ae:ve.key)||null,K(Q,ne,ve,He);case C:return ne=ne.get(ve.key===null?ae:ve.key)||null,oe(Q,ne,ve,He);case J:return ve=il(ve),fe(ne,Q,ae,ve,He)}if(te(ve)||L(ve))return ne=ne.get(ae)||null,ge(Q,ne,ve,He,null);if(typeof ve.then=="function")return fe(ne,Q,ae,Yp(ve),He);if(ve.$$typeof===q)return fe(ne,Q,ae,Bp(Q,ve),He);Kp(Q,ve)}return null}function ze(ne,Q,ae,ve){for(var He=null,Et=null,Ve=Q,ot=Q=0,ht=null;Ve!==null&&ot<ae.length;ot++){Ve.index>ot?(ht=Ve,Ve=null):ht=Ve.sibling;var At=ce(ne,Ve,ae[ot],ve);if(At===null){Ve===null&&(Ve=ht);break}i&&Ve&&At.alternate===null&&a(ne,Ve),Q=v(At,Q,ot),Et===null?He=At:Et.sibling=At,Et=At,Ve=ht}if(ot===ae.length)return c(ne,Ve),gt&&oo(ne,ot),He;if(Ve===null){for(;ot<ae.length;ot++)Ve=xe(ne,ae[ot],ve),Ve!==null&&(Q=v(Ve,Q,ot),Et===null?He=Ve:Et.sibling=Ve,Et=Ve);return gt&&oo(ne,ot),He}for(Ve=d(Ve);ot<ae.length;ot++)ht=fe(Ve,ne,ot,ae[ot],ve),ht!==null&&(i&&ht.alternate!==null&&Ve.delete(ht.key===null?ot:ht.key),Q=v(ht,Q,ot),Et===null?He=ht:Et.sibling=ht,Et=ht);return i&&Ve.forEach(function(vs){return a(ne,vs)}),gt&&oo(ne,ot),He}function Ye(ne,Q,ae,ve){if(ae==null)throw Error(n(151));for(var He=null,Et=null,Ve=Q,ot=Q=0,ht=null,At=ae.next();Ve!==null&&!At.done;ot++,At=ae.next()){Ve.index>ot?(ht=Ve,Ve=null):ht=Ve.sibling;var vs=ce(ne,Ve,At.value,ve);if(vs===null){Ve===null&&(Ve=ht);break}i&&Ve&&vs.alternate===null&&a(ne,Ve),Q=v(vs,Q,ot),Et===null?He=vs:Et.sibling=vs,Et=vs,Ve=ht}if(At.done)return c(ne,Ve),gt&&oo(ne,ot),He;if(Ve===null){for(;!At.done;ot++,At=ae.next())At=xe(ne,At.value,ve),At!==null&&(Q=v(At,Q,ot),Et===null?He=At:Et.sibling=At,Et=At);return gt&&oo(ne,ot),He}for(Ve=d(Ve);!At.done;ot++,At=ae.next())At=fe(Ve,ne,ot,At.value,ve),At!==null&&(i&&At.alternate!==null&&Ve.delete(At.key===null?ot:At.key),Q=v(At,Q,ot),Et===null?He=At:Et.sibling=At,Et=At);return i&&Ve.forEach(function(Wz){return a(ne,Wz)}),gt&&oo(ne,ot),He}function jt(ne,Q,ae,ve){if(typeof ae=="object"&&ae!==null&&ae.type===R&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case T:e:{for(var He=ae.key;Q!==null;){if(Q.key===He){if(He=ae.type,He===R){if(Q.tag===7){c(ne,Q.sibling),ve=g(Q,ae.props.children),ve.return=ne,ne=ve;break e}}else if(Q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===J&&il(He)===Q.type){c(ne,Q.sibling),ve=g(Q,ae.props),md(ve,ae),ve.return=ne,ne=ve;break e}c(ne,Q);break}else a(ne,Q);Q=Q.sibling}ae.type===R?(ve=Zs(ae.props.children,ne.mode,ve,ae.key),ve.return=ne,ne=ve):(ve=Vp(ae.type,ae.key,ae.props,null,ne.mode,ve),md(ve,ae),ve.return=ne,ne=ve)}return _(ne);case C:e:{for(He=ae.key;Q!==null;){if(Q.key===He)if(Q.tag===4&&Q.stateNode.containerInfo===ae.containerInfo&&Q.stateNode.implementation===ae.implementation){c(ne,Q.sibling),ve=g(Q,ae.children||[]),ve.return=ne,ne=ve;break e}else{c(ne,Q);break}else a(ne,Q);Q=Q.sibling}ve=E0(ae,ne.mode,ve),ve.return=ne,ne=ve}return _(ne);case J:return ae=il(ae),jt(ne,Q,ae,ve)}if(te(ae))return ze(ne,Q,ae,ve);if(L(ae)){if(He=L(ae),typeof He!="function")throw Error(n(150));return ae=He.call(ae),Ye(ne,Q,ae,ve)}if(typeof ae.then=="function")return jt(ne,Q,Yp(ae),ve);if(ae.$$typeof===q)return jt(ne,Q,Bp(ne,ae),ve);Kp(ne,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,Q!==null&&Q.tag===6?(c(ne,Q.sibling),ve=g(Q,ae),ve.return=ne,ne=ve):(c(ne,Q),ve=S0(ae,ne.mode,ve),ve.return=ne,ne=ve),_(ne)):c(ne,Q)}return function(ne,Q,ae,ve){try{hd=0;var He=jt(ne,Q,ae,ve);return Sc=null,He}catch(Ve){if(Ve===xc||Ve===Gp)throw Ve;var Et=li(29,Ve,null,ne.mode);return Et.lanes=ve,Et.return=ne,Et}}}var ol=ZR(!0),eC=ZR(!1),ts=!1;function N0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function D0(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function rs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ns(i,a,c){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(Tt&2)!==0){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,a=Up(i),jR(i,null,c),a}return zp(i,d,a,c),Up(i)}function gd(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var d=a.lanes;d&=i.pendingLanes,c|=d,a.lanes=c,Cp(i,c)}}function M0(i,a){var c=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var g=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var _={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};v===null?g=v=_:v=v.next=_,c=c.next}while(c!==null);v===null?g=v=a:v=v.next=a}else g=v=a;c={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}var j0=!1;function bd(){if(j0){var i=yc;if(i!==null)throw i}}function vd(i,a,c,d){j0=!1;var g=i.updateQueue;ts=!1;var v=g.firstBaseUpdate,_=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var K=k,oe=K.next;K.next=null,_===null?v=oe:_.next=oe,_=K;var ge=i.alternate;ge!==null&&(ge=ge.updateQueue,k=ge.lastBaseUpdate,k!==_&&(k===null?ge.firstBaseUpdate=oe:k.next=oe,ge.lastBaseUpdate=K))}if(v!==null){var xe=g.baseState;_=0,ge=oe=K=null,k=v;do{var ce=k.lane&-536870913,fe=ce!==k.lane;if(fe?(pt&ce)===ce:(d&ce)===ce){ce!==0&&ce===vc&&(j0=!0),ge!==null&&(ge=ge.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ze=i,Ye=k;ce=a;var jt=c;switch(Ye.tag){case 1:if(ze=Ye.payload,typeof ze=="function"){xe=ze.call(jt,xe,ce);break e}xe=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Ye.payload,ce=typeof ze=="function"?ze.call(jt,xe,ce):ze,ce==null)break e;xe=x({},xe,ce);break e;case 2:ts=!0}}ce=k.callback,ce!==null&&(i.flags|=64,fe&&(i.flags|=8192),fe=g.callbacks,fe===null?g.callbacks=[ce]:fe.push(ce))}else fe={lane:ce,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ge===null?(oe=ge=fe,K=xe):ge=ge.next=fe,_|=ce;if(k=k.next,k===null){if(k=g.shared.pending,k===null)break;fe=k,k=fe.next,fe.next=null,g.lastBaseUpdate=fe,g.shared.pending=null}}while(!0);ge===null&&(K=xe),g.baseState=K,g.firstBaseUpdate=oe,g.lastBaseUpdate=ge,v===null&&(g.shared.lanes=0),ls|=_,i.lanes=_,i.memoizedState=xe}}function tC(i,a){if(typeof i!="function")throw Error(n(191,i));i.call(a)}function rC(i,a){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)tC(c[i],a)}var Ec=H(null),Xp=H(0);function nC(i,a){i=vo,be(Xp,i),be(Ec,a),vo=i|a.baseLanes}function L0(){be(Xp,vo),be(Ec,Ec.current)}function z0(){vo=Xp.current,se(Ec),se(Xp)}var ci=H(null),Ii=null;function is(i){var a=i.alternate;be(mr,mr.current&1),be(ci,i),Ii===null&&(a===null||Ec.current!==null||a.memoizedState!==null)&&(Ii=i)}function U0(i){be(mr,mr.current),be(ci,i),Ii===null&&(Ii=i)}function iC(i){i.tag===22?(be(mr,mr.current),be(ci,i),Ii===null&&(Ii=i)):as()}function as(){be(mr,mr.current),be(ci,ci.current)}function ui(i){se(ci),Ii===i&&(Ii=null),se(mr)}var mr=H(0);function Qp(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||Gv(c)||Wv(c)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var co=0,it=null,Dt=null,_r=null,Jp=!1,Ac=!1,sl=!1,Zp=0,yd=0,Rc=null,jL=0;function dr(){throw Error(n(321))}function V0(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!si(i[c],a[c]))return!1;return!0}function F0(i,a,c,d,g,v){return co=v,it=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Y.H=i===null||i.memoizedState===null?VC:nv,sl=!1,v=c(d,g),sl=!1,Ac&&(v=oC(a,c,d,g)),aC(i),v}function aC(i){Y.H=Ed;var a=Dt!==null&&Dt.next!==null;if(co=0,_r=Dt=it=null,Jp=!1,yd=0,Rc=null,a)throw Error(n(300));i===null||Or||(i=i.dependencies,i!==null&&$p(i)&&(Or=!0))}function oC(i,a,c,d){it=i;var g=0;do{if(Ac&&(Rc=null),yd=0,Ac=!1,25<=g)throw Error(n(301));if(g+=1,_r=Dt=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Y.H=FC,v=a(c,d)}while(Ac);return v}function LL(){var i=Y.H,a=i.useState()[0];return a=typeof a.then=="function"?xd(a):a,i=i.useState()[0],(Dt!==null?Dt.memoizedState:null)!==i&&(it.flags|=1024),a}function $0(){var i=Zp!==0;return Zp=0,i}function B0(i,a,c){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~c}function H0(i){if(Jp){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Jp=!1}co=0,_r=Dt=it=null,Ac=!1,yd=Zp=0,Rc=null}function An(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _r===null?it.memoizedState=_r=i:_r=_r.next=i,_r}function gr(){if(Dt===null){var i=it.alternate;i=i!==null?i.memoizedState:null}else i=Dt.next;var a=_r===null?it.memoizedState:_r.next;if(a!==null)_r=a,Dt=i;else{if(i===null)throw it.alternate===null?Error(n(467)):Error(n(310));Dt=i,i={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},_r===null?it.memoizedState=_r=i:_r=_r.next=i}return _r}function eh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xd(i){var a=yd;return yd+=1,Rc===null&&(Rc=[]),i=XR(Rc,i,a),a=it,(_r===null?a.memoizedState:_r.next)===null&&(a=a.alternate,Y.H=a===null||a.memoizedState===null?VC:nv),i}function th(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return xd(i);if(i.$$typeof===q)return en(i)}throw Error(n(438,String(i)))}function G0(i){var a=null,c=it.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var d=it.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=eh(),it.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(i),d=0;d<i;d++)c[d]=G;return a.index++,c}function uo(i,a){return typeof a=="function"?a(i):a}function rh(i){var a=gr();return W0(a,Dt,i)}function W0(i,a,c){var d=i.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=c;var g=i.baseQueue,v=d.pending;if(v!==null){if(g!==null){var _=g.next;g.next=v.next,v.next=_}a.baseQueue=g=v,d.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{a=g.next;var k=_=null,K=null,oe=a,ge=!1;do{var xe=oe.lane&-536870913;if(xe!==oe.lane?(pt&xe)===xe:(co&xe)===xe){var ce=oe.revertLane;if(ce===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),xe===vc&&(ge=!0);else if((co&ce)===ce){oe=oe.next,ce===vc&&(ge=!0);continue}else xe={lane:0,revertLane:oe.revertLane,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},K===null?(k=K=xe,_=v):K=K.next=xe,it.lanes|=ce,ls|=ce;xe=oe.action,sl&&c(v,xe),v=oe.hasEagerState?oe.eagerState:c(v,xe)}else ce={lane:xe,revertLane:oe.revertLane,gesture:oe.gesture,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},K===null?(k=K=ce,_=v):K=K.next=ce,it.lanes|=xe,ls|=xe;oe=oe.next}while(oe!==null&&oe!==a);if(K===null?_=v:K.next=k,!si(v,i.memoizedState)&&(Or=!0,ge&&(c=yc,c!==null)))throw c;i.memoizedState=v,i.baseState=_,i.baseQueue=K,d.lastRenderedState=v}return g===null&&(d.lanes=0),[i.memoizedState,d.dispatch]}function Y0(i){var a=gr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var d=c.dispatch,g=c.pending,v=a.memoizedState;if(g!==null){c.pending=null;var _=g=g.next;do v=i(v,_.action),_=_.next;while(_!==g);si(v,a.memoizedState)||(Or=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),c.lastRenderedState=v}return[v,d]}function sC(i,a,c){var d=it,g=gr(),v=gt;if(v){if(c===void 0)throw Error(n(407));c=c()}else c=a();var _=!si((Dt||g).memoizedState,c);if(_&&(g.memoizedState=c,Or=!0),g=g.queue,Q0(uC.bind(null,d,g,i),[i]),g.getSnapshot!==a||_||_r!==null&&_r.memoizedState.tag&1){if(d.flags|=2048,Cc(9,{destroy:void 0},cC.bind(null,d,g,c,a),null),Lt===null)throw Error(n(349));v||(co&127)!==0||lC(d,a,c)}return c}function lC(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=it.updateQueue,a===null?(a=eh(),it.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function cC(i,a,c,d){a.value=c,a.getSnapshot=d,dC(a)&&fC(i)}function uC(i,a,c){return c(function(){dC(a)&&fC(i)})}function dC(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!si(i,c)}catch{return!0}}function fC(i){var a=Js(i,2);a!==null&&Bn(a,i,2)}function K0(i){var a=An();if(typeof i=="function"){var c=i;if(i=c(),sl){Ct(!0);try{c()}finally{Ct(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:i},a}function pC(i,a,c,d){return i.baseState=c,W0(i,Dt,typeof d=="function"?d:uo)}function zL(i,a,c,d,g){if(ah(i))throw Error(n(485));if(i=a.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};Y.T!==null?c(!0):v.isTransition=!1,d(v),c=a.pending,c===null?(v.next=a.pending=v,hC(a,v)):(v.next=c.next,a.pending=c.next=v)}}function hC(i,a){var c=a.action,d=a.payload,g=i.state;if(a.isTransition){var v=Y.T,_={};Y.T=_;try{var k=c(g,d),K=Y.S;K!==null&&K(_,k),mC(i,a,k)}catch(oe){X0(i,a,oe)}finally{v!==null&&_.types!==null&&(v.types=_.types),Y.T=v}}else try{v=c(g,d),mC(i,a,v)}catch(oe){X0(i,a,oe)}}function mC(i,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(d){gC(i,a,d)},function(d){return X0(i,a,d)}):gC(i,a,c)}function gC(i,a,c){a.status="fulfilled",a.value=c,bC(a),i.state=c,a=i.pending,a!==null&&(c=a.next,c===a?i.pending=null:(c=c.next,a.next=c,hC(i,c)))}function X0(i,a,c){var d=i.pending;if(i.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=c,bC(a),a=a.next;while(a!==d)}i.action=null}function bC(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function vC(i,a){return a}function yC(i,a){if(gt){var c=Lt.formState;if(c!==null){e:{var d=it;if(gt){if(Qt){t:{for(var g=Qt,v=Oi;g.nodeType!==8;){if(!v){g=null;break t}if(g=qi(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){Qt=qi(g.nextSibling),d=g.data==="F!";break e}}Zo(d)}d=!1}d&&(a=c[0])}}return c=An(),c.memoizedState=c.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vC,lastRenderedState:a},c.queue=d,c=LC.bind(null,it,d),d.dispatch=c,d=K0(!1),v=rv.bind(null,it,!1,d.queue),d=An(),g={state:a,dispatch:null,action:i,pending:null},d.queue=g,c=zL.bind(null,it,g,v,c),g.dispatch=c,d.memoizedState=i,[a,c,!1]}function xC(i){var a=gr();return SC(a,Dt,i)}function SC(i,a,c){if(a=W0(i,a,vC)[0],i=rh(uo)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=xd(a)}catch(_){throw _===xc?Gp:_}else d=a;a=gr();var g=a.queue,v=g.dispatch;return c!==a.memoizedState&&(it.flags|=2048,Cc(9,{destroy:void 0},UL.bind(null,g,c),null)),[d,v,i]}function UL(i,a){i.action=a}function EC(i){var a=gr(),c=Dt;if(c!==null)return SC(a,c,i);gr(),a=a.memoizedState,c=gr();var d=c.queue.dispatch;return c.memoizedState=i,[a,d,!1]}function Cc(i,a,c,d){return i={tag:i,create:c,deps:d,inst:a,next:null},a=it.updateQueue,a===null&&(a=eh(),it.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=i.next=i:(d=c.next,c.next=i,i.next=d,a.lastEffect=i),i}function AC(){return gr().memoizedState}function nh(i,a,c,d){var g=An();it.flags|=i,g.memoizedState=Cc(1|a,{destroy:void 0},c,d===void 0?null:d)}function ih(i,a,c,d){var g=gr();d=d===void 0?null:d;var v=g.memoizedState.inst;Dt!==null&&d!==null&&V0(d,Dt.memoizedState.deps)?g.memoizedState=Cc(a,v,c,d):(it.flags|=i,g.memoizedState=Cc(1|a,v,c,d))}function RC(i,a){nh(8390656,8,i,a)}function Q0(i,a){ih(2048,8,i,a)}function VL(i){it.flags|=4;var a=it.updateQueue;if(a===null)a=eh(),it.updateQueue=a,a.events=[i];else{var c=a.events;c===null?a.events=[i]:c.push(i)}}function CC(i){var a=gr().memoizedState;return VL({ref:a,nextImpl:i}),function(){if((Tt&2)!==0)throw Error(n(440));return a.impl.apply(void 0,arguments)}}function TC(i,a){return ih(4,2,i,a)}function wC(i,a){return ih(4,4,i,a)}function _C(i,a){if(typeof a=="function"){i=i();var c=a(i);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function OC(i,a,c){c=c!=null?c.concat([i]):null,ih(4,4,_C.bind(null,a,i),c)}function J0(){}function IC(i,a){var c=gr();a=a===void 0?null:a;var d=c.memoizedState;return a!==null&&V0(a,d[1])?d[0]:(c.memoizedState=[i,a],i)}function qC(i,a){var c=gr();a=a===void 0?null:a;var d=c.memoizedState;if(a!==null&&V0(a,d[1]))return d[0];if(d=i(),sl){Ct(!0);try{i()}finally{Ct(!1)}}return c.memoizedState=[d,a],d}function Z0(i,a,c){return c===void 0||(co&1073741824)!==0&&(pt&261930)===0?i.memoizedState=a:(i.memoizedState=c,i=PT(),it.lanes|=i,ls|=i,c)}function PC(i,a,c,d){return si(c,a)?c:Ec.current!==null?(i=Z0(i,c,d),si(i,a)||(Or=!0),i):(co&42)===0||(co&1073741824)!==0&&(pt&261930)===0?(Or=!0,i.memoizedState=c):(i=PT(),it.lanes|=i,ls|=i,a)}function kC(i,a,c,d,g){var v=ie.p;ie.p=v!==0&&8>v?v:8;var _=Y.T,k={};Y.T=k,rv(i,!1,a,c);try{var K=g(),oe=Y.S;if(oe!==null&&oe(k,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var ge=ML(K,d);Sd(i,a,ge,pi(i))}else Sd(i,a,d,pi(i))}catch(xe){Sd(i,a,{then:function(){},status:"rejected",reason:xe},pi())}finally{ie.p=v,_!==null&&k.types!==null&&(_.types=k.types),Y.T=_}}function FL(){}function ev(i,a,c,d){if(i.tag!==5)throw Error(n(476));var g=NC(i).queue;kC(i,g,a,me,c===null?FL:function(){return DC(i),c(d)})}function NC(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:me},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:c},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function DC(i){var a=NC(i);a.next===null&&(a=i.alternate.memoizedState),Sd(i,a.next.queue,{},pi())}function tv(){return en(Ld)}function MC(){return gr().memoizedState}function jC(){return gr().memoizedState}function $L(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var c=pi();i=rs(c);var d=ns(a,i,c);d!==null&&(Bn(d,a,c),gd(d,a,c)),a={cache:I0()},i.payload=a;return}a=a.return}}function BL(i,a,c){var d=pi();c={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ah(i)?zC(a,c):(c=y0(i,a,c,d),c!==null&&(Bn(c,i,d),UC(c,a,d)))}function LC(i,a,c){var d=pi();Sd(i,a,c,d)}function Sd(i,a,c,d){var g={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(ah(i))zC(a,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var _=a.lastRenderedState,k=v(_,c);if(g.hasEagerState=!0,g.eagerState=k,si(k,_))return zp(i,a,g,0),Lt===null&&Lp(),!1}catch{}if(c=y0(i,a,g,d),c!==null)return Bn(c,i,d),UC(c,a,d),!0}return!1}function rv(i,a,c,d){if(d={lane:2,revertLane:Nv(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},ah(i)){if(a)throw Error(n(479))}else a=y0(i,c,d,2),a!==null&&Bn(a,i,2)}function ah(i){var a=i.alternate;return i===it||a!==null&&a===it}function zC(i,a){Ac=Jp=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function UC(i,a,c){if((c&4194048)!==0){var d=a.lanes;d&=i.pendingLanes,c|=d,a.lanes=c,Cp(i,c)}}var Ed={readContext:en,use:th,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useLayoutEffect:dr,useInsertionEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useSyncExternalStore:dr,useId:dr,useHostTransitionStatus:dr,useFormState:dr,useActionState:dr,useOptimistic:dr,useMemoCache:dr,useCacheRefresh:dr};Ed.useEffectEvent=dr;var VC={readContext:en,use:th,useCallback:function(i,a){return An().memoizedState=[i,a===void 0?null:a],i},useContext:en,useEffect:RC,useImperativeHandle:function(i,a,c){c=c!=null?c.concat([i]):null,nh(4194308,4,_C.bind(null,a,i),c)},useLayoutEffect:function(i,a){return nh(4194308,4,i,a)},useInsertionEffect:function(i,a){nh(4,2,i,a)},useMemo:function(i,a){var c=An();a=a===void 0?null:a;var d=i();if(sl){Ct(!0);try{i()}finally{Ct(!1)}}return c.memoizedState=[d,a],d},useReducer:function(i,a,c){var d=An();if(c!==void 0){var g=c(a);if(sl){Ct(!0);try{c(a)}finally{Ct(!1)}}}else g=a;return d.memoizedState=d.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},d.queue=i,i=i.dispatch=BL.bind(null,it,i),[d.memoizedState,i]},useRef:function(i){var a=An();return i={current:i},a.memoizedState=i},useState:function(i){i=K0(i);var a=i.queue,c=LC.bind(null,it,a);return a.dispatch=c,[i.memoizedState,c]},useDebugValue:J0,useDeferredValue:function(i,a){var c=An();return Z0(c,i,a)},useTransition:function(){var i=K0(!1);return i=kC.bind(null,it,i.queue,!0,!1),An().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,c){var d=it,g=An();if(gt){if(c===void 0)throw Error(n(407));c=c()}else{if(c=a(),Lt===null)throw Error(n(349));(pt&127)!==0||lC(d,a,c)}g.memoizedState=c;var v={value:c,getSnapshot:a};return g.queue=v,RC(uC.bind(null,d,v,i),[i]),d.flags|=2048,Cc(9,{destroy:void 0},cC.bind(null,d,v,c,a),null),c},useId:function(){var i=An(),a=Lt.identifierPrefix;if(gt){var c=Ta,d=Ca;c=(d&~(1<<32-Cr(d)-1)).toString(32)+c,a="_"+a+"R_"+c,c=Zp++,0<c&&(a+="H"+c.toString(32)),a+="_"}else c=jL++,a="_"+a+"r_"+c.toString(32)+"_";return i.memoizedState=a},useHostTransitionStatus:tv,useFormState:yC,useActionState:yC,useOptimistic:function(i){var a=An();a.memoizedState=a.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=rv.bind(null,it,!0,c),c.dispatch=a,[i,a]},useMemoCache:G0,useCacheRefresh:function(){return An().memoizedState=$L.bind(null,it)},useEffectEvent:function(i){var a=An(),c={impl:i};return a.memoizedState=c,function(){if((Tt&2)!==0)throw Error(n(440));return c.impl.apply(void 0,arguments)}}},nv={readContext:en,use:th,useCallback:IC,useContext:en,useEffect:Q0,useImperativeHandle:OC,useInsertionEffect:TC,useLayoutEffect:wC,useMemo:qC,useReducer:rh,useRef:AC,useState:function(){return rh(uo)},useDebugValue:J0,useDeferredValue:function(i,a){var c=gr();return PC(c,Dt.memoizedState,i,a)},useTransition:function(){var i=rh(uo)[0],a=gr().memoizedState;return[typeof i=="boolean"?i:xd(i),a]},useSyncExternalStore:sC,useId:MC,useHostTransitionStatus:tv,useFormState:xC,useActionState:xC,useOptimistic:function(i,a){var c=gr();return pC(c,Dt,i,a)},useMemoCache:G0,useCacheRefresh:jC};nv.useEffectEvent=CC;var FC={readContext:en,use:th,useCallback:IC,useContext:en,useEffect:Q0,useImperativeHandle:OC,useInsertionEffect:TC,useLayoutEffect:wC,useMemo:qC,useReducer:Y0,useRef:AC,useState:function(){return Y0(uo)},useDebugValue:J0,useDeferredValue:function(i,a){var c=gr();return Dt===null?Z0(c,i,a):PC(c,Dt.memoizedState,i,a)},useTransition:function(){var i=Y0(uo)[0],a=gr().memoizedState;return[typeof i=="boolean"?i:xd(i),a]},useSyncExternalStore:sC,useId:MC,useHostTransitionStatus:tv,useFormState:EC,useActionState:EC,useOptimistic:function(i,a){var c=gr();return Dt!==null?pC(c,Dt,i,a):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:G0,useCacheRefresh:jC};FC.useEffectEvent=CC;function iv(i,a,c,d){a=i.memoizedState,c=c(d,a),c=c==null?a:x({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var av={enqueueSetState:function(i,a,c){i=i._reactInternals;var d=pi(),g=rs(d);g.payload=a,c!=null&&(g.callback=c),a=ns(i,g,d),a!==null&&(Bn(a,i,d),gd(a,i,d))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var d=pi(),g=rs(d);g.tag=1,g.payload=a,c!=null&&(g.callback=c),a=ns(i,g,d),a!==null&&(Bn(a,i,d),gd(a,i,d))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=pi(),d=rs(c);d.tag=2,a!=null&&(d.callback=a),a=ns(i,d,c),a!==null&&(Bn(a,i,c),gd(a,i,c))}};function $C(i,a,c,d,g,v,_){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,v,_):a.prototype&&a.prototype.isPureReactComponent?!ld(c,d)||!ld(g,v):!0}function BC(i,a,c,d){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,d),a.state!==i&&av.enqueueReplaceState(a,a.state,null)}function ll(i,a){var c=a;if("ref"in a){c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}if(i=i.defaultProps){c===a&&(c=x({},c));for(var g in i)c[g]===void 0&&(c[g]=i[g])}return c}function HC(i){jp(i)}function GC(i){console.error(i)}function WC(i){jp(i)}function oh(i,a){try{var c=i.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function YC(i,a,c){try{var d=i.onCaughtError;d(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function ov(i,a,c){return c=rs(c),c.tag=3,c.payload={element:null},c.callback=function(){oh(i,a)},c}function KC(i){return i=rs(i),i.tag=3,i}function XC(i,a,c,d){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var v=d.value;i.payload=function(){return g(v)},i.callback=function(){YC(a,c,d)}}var _=c.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(i.callback=function(){YC(a,c,d),typeof g!="function"&&(cs===null?cs=new Set([this]):cs.add(this));var k=d.stack;this.componentDidCatch(d.value,{componentStack:k!==null?k:""})})}function HL(i,a,c,d,g){if(c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=c.alternate,a!==null&&bc(a,c,g,!0),c=ci.current,c!==null){switch(c.tag){case 31:case 13:return Ii===null?vh():c.alternate===null&&fr===0&&(fr=3),c.flags&=-257,c.flags|=65536,c.lanes=g,d===Wp?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([d]):a.add(d),qv(i,d,g)),!1;case 22:return c.flags|=65536,d===Wp?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([d]):c.add(d)),qv(i,d,g)),!1}throw Error(n(435,c.tag))}return qv(i,d,g),vh(),!1}if(gt)return a=ci.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,d!==C0&&(i=Error(n(422),{cause:d}),dd(Ti(i,c)))):(d!==C0&&(a=Error(n(423),{cause:d}),dd(Ti(a,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,d=Ti(d,c),g=ov(i.stateNode,d,g),M0(i,g),fr!==4&&(fr=2)),!1;var v=Error(n(520),{cause:d});if(v=Ti(v,c),Id===null?Id=[v]:Id.push(v),fr!==4&&(fr=2),a===null)return!0;d=Ti(d,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=ov(c.stateNode,d,i),M0(c,i),!1;case 1:if(a=c.type,v=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(cs===null||!cs.has(v))))return c.flags|=65536,g&=-g,c.lanes|=g,g=KC(g),XC(g,i,c,d),M0(c,g),!1}c=c.return}while(c!==null);return!1}var sv=Error(n(461)),Or=!1;function tn(i,a,c,d){a.child=i===null?eC(a,null,c,d):ol(a,i.child,c,d)}function QC(i,a,c,d,g){c=c.render;var v=a.ref;if("ref"in d){var _={};for(var k in d)k!=="ref"&&(_[k]=d[k])}else _=d;return rl(a),d=F0(i,a,c,_,v,g),k=$0(),i!==null&&!Or?(B0(i,a,g),fo(i,a,g)):(gt&&k&&A0(a),a.flags|=1,tn(i,a,d,g),a.child)}function JC(i,a,c,d,g){if(i===null){var v=c.type;return typeof v=="function"&&!x0(v)&&v.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=v,ZC(i,a,v,d,g)):(i=Vp(c.type,null,d,a,a.mode,g),i.ref=a.ref,i.return=a,a.child=i)}if(v=i.child,!mv(i,g)){var _=v.memoizedProps;if(c=c.compare,c=c!==null?c:ld,c(_,d)&&i.ref===a.ref)return fo(i,a,g)}return a.flags|=1,i=ao(v,d),i.ref=a.ref,i.return=a,a.child=i}function ZC(i,a,c,d,g){if(i!==null){var v=i.memoizedProps;if(ld(v,d)&&i.ref===a.ref)if(Or=!1,a.pendingProps=d=v,mv(i,g))(i.flags&131072)!==0&&(Or=!0);else return a.lanes=i.lanes,fo(i,a,g)}return lv(i,a,c,d,g)}function eT(i,a,c,d){var g=d.children,v=i!==null?i.memoizedState:null;if(i===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(v=v!==null?v.baseLanes|c:c,i!==null){for(d=a.child=i.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~v}else d=0,a.child=null;return tT(i,a,v,c,d)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&Hp(a,v!==null?v.cachePool:null),v!==null?nC(a,v):L0(),iC(a);else return d=a.lanes=536870912,tT(i,a,v!==null?v.baseLanes|c:c,c,d)}else v!==null?(Hp(a,v.cachePool),nC(a,v),as(),a.memoizedState=null):(i!==null&&Hp(a,null),L0(),as());return tn(i,a,g,c),a.child}function Ad(i,a){return i!==null&&i.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function tT(i,a,c,d,g){var v=P0();return v=v===null?null:{parent:wr._currentValue,pool:v},a.memoizedState={baseLanes:c,cachePool:v},i!==null&&Hp(a,null),L0(),iC(a),i!==null&&bc(i,a,d,!0),a.childLanes=g,null}function sh(i,a){return a=ch({mode:a.mode,children:a.children},i.mode),a.ref=i.ref,i.child=a,a.return=i,a}function rT(i,a,c){return ol(a,i.child,null,c),i=sh(a,a.pendingProps),i.flags|=2,ui(a),a.memoizedState=null,i}function GL(i,a,c){var d=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,i===null){if(gt){if(d.mode==="hidden")return i=sh(a,d),a.lanes=536870912,Ad(null,i);if(U0(a),(i=Qt)?(i=hw(i,Oi),i=i!==null&&i.data==="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Qo!==null?{id:Ca,overflow:Ta}:null,retryLane:536870912,hydrationErrors:null},c=zR(i),c.return=a,a.child=c,Zr=a,Qt=null)):i=null,i===null)throw Zo(a);return a.lanes=536870912,null}return sh(a,d)}var v=i.memoizedState;if(v!==null){var _=v.dehydrated;if(U0(a),g)if(a.flags&256)a.flags&=-257,a=rT(i,a,c);else if(a.memoizedState!==null)a.child=i.child,a.flags|=128,a=null;else throw Error(n(558));else if(Or||bc(i,a,c,!1),g=(c&i.childLanes)!==0,Or||g){if(d=Lt,d!==null&&(_=Tp(d,c),_!==0&&_!==v.retryLane))throw v.retryLane=_,Js(i,_),Bn(d,i,_),sv;vh(),a=rT(i,a,c)}else i=v.treeContext,Qt=qi(_.nextSibling),Zr=a,gt=!0,Jo=null,Oi=!1,i!==null&&FR(a,i),a=sh(a,d),a.flags|=4096;return a}return i=ao(i.child,{mode:d.mode,children:d.children}),i.ref=a.ref,a.child=i,i.return=a,i}function lh(i,a){var c=a.ref;if(c===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(n(284));(i===null||i.ref!==c)&&(a.flags|=4194816)}}function lv(i,a,c,d,g){return rl(a),c=F0(i,a,c,d,void 0,g),d=$0(),i!==null&&!Or?(B0(i,a,g),fo(i,a,g)):(gt&&d&&A0(a),a.flags|=1,tn(i,a,c,g),a.child)}function nT(i,a,c,d,g,v){return rl(a),a.updateQueue=null,c=oC(a,d,c,g),aC(i),d=$0(),i!==null&&!Or?(B0(i,a,v),fo(i,a,v)):(gt&&d&&A0(a),a.flags|=1,tn(i,a,c,v),a.child)}function iT(i,a,c,d,g){if(rl(a),a.stateNode===null){var v=pc,_=c.contextType;typeof _=="object"&&_!==null&&(v=en(_)),v=new c(d,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=av,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=d,v.state=a.memoizedState,v.refs={},N0(a),_=c.contextType,v.context=typeof _=="object"&&_!==null?en(_):pc,v.state=a.memoizedState,_=c.getDerivedStateFromProps,typeof _=="function"&&(iv(a,c,_,d),v.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&av.enqueueReplaceState(v,v.state,null),vd(a,d,v,g),bd(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(i===null){v=a.stateNode;var k=a.memoizedProps,K=ll(c,k);v.props=K;var oe=v.context,ge=c.contextType;_=pc,typeof ge=="object"&&ge!==null&&(_=en(ge));var xe=c.getDerivedStateFromProps;ge=typeof xe=="function"||typeof v.getSnapshotBeforeUpdate=="function",k=a.pendingProps!==k,ge||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(k||oe!==_)&&BC(a,v,d,_),ts=!1;var ce=a.memoizedState;v.state=ce,vd(a,d,v,g),bd(),oe=a.memoizedState,k||ce!==oe||ts?(typeof xe=="function"&&(iv(a,c,xe,d),oe=a.memoizedState),(K=ts||$C(a,c,K,d,ce,oe,_))?(ge||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=oe),v.props=d,v.state=oe,v.context=_,d=K):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{v=a.stateNode,D0(i,a),_=a.memoizedProps,ge=ll(c,_),v.props=ge,xe=a.pendingProps,ce=v.context,oe=c.contextType,K=pc,typeof oe=="object"&&oe!==null&&(K=en(oe)),k=c.getDerivedStateFromProps,(oe=typeof k=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==xe||ce!==K)&&BC(a,v,d,K),ts=!1,ce=a.memoizedState,v.state=ce,vd(a,d,v,g),bd();var fe=a.memoizedState;_!==xe||ce!==fe||ts||i!==null&&i.dependencies!==null&&$p(i.dependencies)?(typeof k=="function"&&(iv(a,c,k,d),fe=a.memoizedState),(ge=ts||$C(a,c,ge,d,ce,fe,K)||i!==null&&i.dependencies!==null&&$p(i.dependencies))?(oe||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,fe,K),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,fe,K)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===i.memoizedProps&&ce===i.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===i.memoizedProps&&ce===i.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=fe),v.props=d,v.state=fe,v.context=K,d=ge):(typeof v.componentDidUpdate!="function"||_===i.memoizedProps&&ce===i.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===i.memoizedProps&&ce===i.memoizedState||(a.flags|=1024),d=!1)}return v=d,lh(i,a),d=(a.flags&128)!==0,v||d?(v=a.stateNode,c=d&&typeof c.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,i!==null&&d?(a.child=ol(a,i.child,null,g),a.child=ol(a,null,c,g)):tn(i,a,c,g),a.memoizedState=v.state,i=a.child):i=fo(i,a,g),i}function aT(i,a,c,d){return el(),a.flags|=256,tn(i,a,c,d),a.child}var cv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uv(i){return{baseLanes:i,cachePool:YR()}}function dv(i,a,c){return i=i!==null?i.childLanes&~c:0,a&&(i|=fi),i}function oT(i,a,c){var d=a.pendingProps,g=!1,v=(a.flags&128)!==0,_;if((_=v)||(_=i!==null&&i.memoizedState===null?!1:(mr.current&2)!==0),_&&(g=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,i===null){if(gt){if(g?is(a):as(),(i=Qt)?(i=hw(i,Oi),i=i!==null&&i.data!=="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Qo!==null?{id:Ca,overflow:Ta}:null,retryLane:536870912,hydrationErrors:null},c=zR(i),c.return=a,a.child=c,Zr=a,Qt=null)):i=null,i===null)throw Zo(a);return Wv(i)?a.lanes=32:a.lanes=536870912,null}var k=d.children;return d=d.fallback,g?(as(),g=a.mode,k=ch({mode:"hidden",children:k},g),d=Zs(d,g,c,null),k.return=a,d.return=a,k.sibling=d,a.child=k,d=a.child,d.memoizedState=uv(c),d.childLanes=dv(i,_,c),a.memoizedState=cv,Ad(null,d)):(is(a),fv(a,k))}var K=i.memoizedState;if(K!==null&&(k=K.dehydrated,k!==null)){if(v)a.flags&256?(is(a),a.flags&=-257,a=pv(i,a,c)):a.memoizedState!==null?(as(),a.child=i.child,a.flags|=128,a=null):(as(),k=d.fallback,g=a.mode,d=ch({mode:"visible",children:d.children},g),k=Zs(k,g,c,null),k.flags|=2,d.return=a,k.return=a,d.sibling=k,a.child=d,ol(a,i.child,null,c),d=a.child,d.memoizedState=uv(c),d.childLanes=dv(i,_,c),a.memoizedState=cv,a=Ad(null,d));else if(is(a),Wv(k)){if(_=k.nextSibling&&k.nextSibling.dataset,_)var oe=_.dgst;_=oe,d=Error(n(419)),d.stack="",d.digest=_,dd({value:d,source:null,stack:null}),a=pv(i,a,c)}else if(Or||bc(i,a,c,!1),_=(c&i.childLanes)!==0,Or||_){if(_=Lt,_!==null&&(d=Tp(_,c),d!==0&&d!==K.retryLane))throw K.retryLane=d,Js(i,d),Bn(_,i,d),sv;Gv(k)||vh(),a=pv(i,a,c)}else Gv(k)?(a.flags|=192,a.child=i.child,a=null):(i=K.treeContext,Qt=qi(k.nextSibling),Zr=a,gt=!0,Jo=null,Oi=!1,i!==null&&FR(a,i),a=fv(a,d.children),a.flags|=4096);return a}return g?(as(),k=d.fallback,g=a.mode,K=i.child,oe=K.sibling,d=ao(K,{mode:"hidden",children:d.children}),d.subtreeFlags=K.subtreeFlags&65011712,oe!==null?k=ao(oe,k):(k=Zs(k,g,c,null),k.flags|=2),k.return=a,d.return=a,d.sibling=k,a.child=d,Ad(null,d),d=a.child,k=i.child.memoizedState,k===null?k=uv(c):(g=k.cachePool,g!==null?(K=wr._currentValue,g=g.parent!==K?{parent:K,pool:K}:g):g=YR(),k={baseLanes:k.baseLanes|c,cachePool:g}),d.memoizedState=k,d.childLanes=dv(i,_,c),a.memoizedState=cv,Ad(i.child,d)):(is(a),c=i.child,i=c.sibling,c=ao(c,{mode:"visible",children:d.children}),c.return=a,c.sibling=null,i!==null&&(_=a.deletions,_===null?(a.deletions=[i],a.flags|=16):_.push(i)),a.child=c,a.memoizedState=null,c)}function fv(i,a){return a=ch({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function ch(i,a){return i=li(22,i,null,a),i.lanes=0,i}function pv(i,a,c){return ol(a,i.child,null,c),i=fv(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function sT(i,a,c){i.lanes|=a;var d=i.alternate;d!==null&&(d.lanes|=a),_0(i.return,a,c)}function hv(i,a,c,d,g,v){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:g,treeForkCount:v}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=d,_.tail=c,_.tailMode=g,_.treeForkCount=v)}function lT(i,a,c){var d=a.pendingProps,g=d.revealOrder,v=d.tail;d=d.children;var _=mr.current,k=(_&2)!==0;if(k?(_=_&1|2,a.flags|=128):_&=1,be(mr,_),tn(i,a,d,c),d=gt?ud:0,!k&&i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&sT(i,c,a);else if(i.tag===19)sT(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(g){case"forwards":for(c=a.child,g=null;c!==null;)i=c.alternate,i!==null&&Qp(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=a.child,a.child=null):(g=c.sibling,c.sibling=null),hv(a,!1,g,c,v,d);break;case"backwards":case"unstable_legacy-backwards":for(c=null,g=a.child,a.child=null;g!==null;){if(i=g.alternate,i!==null&&Qp(i)===null){a.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}hv(a,!0,c,null,v,d);break;case"together":hv(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function fo(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),ls|=a.lanes,(c&a.childLanes)===0)if(i!==null){if(bc(i,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,c=ao(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=ao(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function mv(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&$p(i)))}function WL(i,a,c){switch(a.tag){case 3:Ae(a,a.stateNode.containerInfo),es(a,wr,i.memoizedState.cache),el();break;case 27:case 5:Qe(a);break;case 4:Ae(a,a.stateNode.containerInfo);break;case 10:es(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,U0(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(is(a),a.flags|=128,null):(c&a.child.childLanes)!==0?oT(i,a,c):(is(a),i=fo(i,a,c),i!==null?i.sibling:null);is(a);break;case 19:var g=(i.flags&128)!==0;if(d=(c&a.childLanes)!==0,d||(bc(i,a,c,!1),d=(c&a.childLanes)!==0),g){if(d)return lT(i,a,c);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),be(mr,mr.current),d)break;return null;case 22:return a.lanes=0,eT(i,a,c,a.pendingProps);case 24:es(a,wr,i.memoizedState.cache)}return fo(i,a,c)}function cT(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps)Or=!0;else{if(!mv(i,c)&&(a.flags&128)===0)return Or=!1,WL(i,a,c);Or=(i.flags&131072)!==0}else Or=!1,gt&&(a.flags&1048576)!==0&&VR(a,ud,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(i=il(a.elementType),a.type=i,typeof i=="function")x0(i)?(d=ll(i,d),a.tag=1,a=iT(null,a,i,d,c)):(a.tag=0,a=lv(null,a,i,d,c));else{if(i!=null){var g=i.$$typeof;if(g===D){a.tag=11,a=QC(null,a,i,d,c);break e}else if(g===V){a.tag=14,a=JC(null,a,i,d,c);break e}}throw a=ee(i)||i,Error(n(306,a,""))}}return a;case 0:return lv(i,a,a.type,a.pendingProps,c);case 1:return d=a.type,g=ll(d,a.pendingProps),iT(i,a,d,g,c);case 3:e:{if(Ae(a,a.stateNode.containerInfo),i===null)throw Error(n(387));d=a.pendingProps;var v=a.memoizedState;g=v.element,D0(i,a),vd(a,d,null,c);var _=a.memoizedState;if(d=_.cache,es(a,wr,d),d!==v.cache&&O0(a,[wr],c,!0),bd(),d=_.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=aT(i,a,d,c);break e}else if(d!==g){g=Ti(Error(n(424)),a),dd(g),a=aT(i,a,d,c);break e}else for(i=a.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,Qt=qi(i.firstChild),Zr=a,gt=!0,Jo=null,Oi=!0,c=eC(a,null,d,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(el(),d===g){a=fo(i,a,c);break e}tn(i,a,d,c)}a=a.child}return a;case 26:return lh(i,a),i===null?(c=xw(a.type,null,a.pendingProps,null))?a.memoizedState=c:gt||(c=a.type,i=a.pendingProps,d=Ch(Be.current).createElement(c),d[Vr]=a,d[un]=i,rn(d,c,i),Tr(d),a.stateNode=d):a.memoizedState=xw(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return Qe(a),i===null&>&&(d=a.stateNode=bw(a.type,a.pendingProps,Be.current),Zr=a,Oi=!0,g=Qt,ps(a.type)?(Yv=g,Qt=qi(d.firstChild)):Qt=g),tn(i,a,a.pendingProps.children,c),lh(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&>&&((g=d=Qt)&&(d=Az(d,a.type,a.pendingProps,Oi),d!==null?(a.stateNode=d,Zr=a,Qt=qi(d.firstChild),Oi=!1,g=!0):g=!1),g||Zo(a)),Qe(a),g=a.type,v=a.pendingProps,_=i!==null?i.memoizedProps:null,d=v.children,$v(g,v)?d=null:_!==null&&$v(g,_)&&(a.flags|=32),a.memoizedState!==null&&(g=F0(i,a,LL,null,null,c),Ld._currentValue=g),lh(i,a),tn(i,a,d,c),a.child;case 6:return i===null&>&&((i=c=Qt)&&(c=Rz(c,a.pendingProps,Oi),c!==null?(a.stateNode=c,Zr=a,Qt=null,i=!0):i=!1),i||Zo(a)),null;case 13:return oT(i,a,c);case 4:return Ae(a,a.stateNode.containerInfo),d=a.pendingProps,i===null?a.child=ol(a,null,d,c):tn(i,a,d,c),a.child;case 11:return QC(i,a,a.type,a.pendingProps,c);case 7:return tn(i,a,a.pendingProps,c),a.child;case 8:return tn(i,a,a.pendingProps.children,c),a.child;case 12:return tn(i,a,a.pendingProps.children,c),a.child;case 10:return d=a.pendingProps,es(a,a.type,d.value),tn(i,a,d.children,c),a.child;case 9:return g=a.type._context,d=a.pendingProps.children,rl(a),g=en(g),d=d(g),a.flags|=1,tn(i,a,d,c),a.child;case 14:return JC(i,a,a.type,a.pendingProps,c);case 15:return ZC(i,a,a.type,a.pendingProps,c);case 19:return lT(i,a,c);case 31:return GL(i,a,c);case 22:return eT(i,a,c,a.pendingProps);case 24:return rl(a),d=en(wr),i===null?(g=P0(),g===null&&(g=Lt,v=I0(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=c),g=v),a.memoizedState={parent:d,cache:g},N0(a),es(a,wr,g)):((i.lanes&c)!==0&&(D0(i,a),vd(a,null,null,c),bd()),g=i.memoizedState,v=a.memoizedState,g.parent!==d?(g={parent:d,cache:d},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),es(a,wr,d)):(d=v.cache,es(a,wr,d),d!==g.cache&&O0(a,[wr],c,!0))),tn(i,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}function po(i){i.flags|=4}function gv(i,a,c,d,g){if((a=(i.mode&32)!==0)&&(a=!1),a){if(i.flags|=16777216,(g&335544128)===g)if(i.stateNode.complete)i.flags|=8192;else if(MT())i.flags|=8192;else throw al=Wp,k0}else i.flags&=-16777217}function uT(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Cw(a))if(MT())i.flags|=8192;else throw al=Wp,k0}function uh(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?Ap():536870912,i.lanes|=a,Oc|=a)}function Rd(i,a){if(!gt)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function Jt(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,d=0;if(a)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=d,i.childLanes=c,a}function YL(i,a,c){var d=a.pendingProps;switch(R0(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(a),null;case 1:return Jt(a),null;case 3:return c=a.stateNode,d=null,i!==null&&(d=i.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),lo(wr),ye(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(gc(a)?po(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,T0())),Jt(a),null;case 26:var g=a.type,v=a.memoizedState;return i===null?(po(a),v!==null?(Jt(a),uT(a,v)):(Jt(a),gv(a,g,null,d,c))):v?v!==i.memoizedState?(po(a),Jt(a),uT(a,v)):(Jt(a),a.flags&=-16777217):(i=i.memoizedProps,i!==d&&po(a),Jt(a),gv(a,g,i,d,c)),null;case 27:if(Je(a),c=Be.current,g=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==d&&po(a);else{if(!d){if(a.stateNode===null)throw Error(n(166));return Jt(a),null}i=Ce.current,gc(a)?$R(a):(i=bw(g,d,c),a.stateNode=i,po(a))}return Jt(a),null;case 5:if(Je(a),g=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==d&&po(a);else{if(!d){if(a.stateNode===null)throw Error(n(166));return Jt(a),null}if(v=Ce.current,gc(a))$R(a);else{var _=Ch(Be.current);switch(v){case 1:v=_.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:v=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":v=_.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":v=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":v=_.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof d.is=="string"?_.createElement("select",{is:d.is}):_.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?_.createElement(g,{is:d.is}):_.createElement(g)}}v[Vr]=a,v[un]=d;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)v.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=v;e:switch(rn(v,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&po(a)}}return Jt(a),gv(a,a.type,i===null?null:i.memoizedProps,a.pendingProps,c),null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==d&&po(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(n(166));if(i=Be.current,gc(a)){if(i=a.stateNode,c=a.memoizedProps,d=null,g=Zr,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}i[Vr]=a,i=!!(i.nodeValue===c||d!==null&&d.suppressHydrationWarning===!0||ow(i.nodeValue,c)),i||Zo(a,!0)}else i=Ch(i).createTextNode(d),i[Vr]=a,a.stateNode=i}return Jt(a),null;case 31:if(c=a.memoizedState,i===null||i.memoizedState!==null){if(d=gc(a),c!==null){if(i===null){if(!d)throw Error(n(318));if(i=a.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(557));i[Vr]=a}else el(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Jt(a),i=!1}else c=T0(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=c),i=!0;if(!i)return a.flags&256?(ui(a),a):(ui(a),null);if((a.flags&128)!==0)throw Error(n(558))}return Jt(a),null;case 13:if(d=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=gc(a),d!==null&&d.dehydrated!==null){if(i===null){if(!g)throw Error(n(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Vr]=a}else el(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Jt(a),g=!1}else g=T0(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(ui(a),a):(ui(a),null)}return ui(a),(a.flags&128)!==0?(a.lanes=c,a):(c=d!==null,i=i!==null&&i.memoizedState!==null,c&&(d=a.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==g&&(d.flags|=2048)),c!==i&&c&&(a.child.flags|=8192),uh(a,a.updateQueue),Jt(a),null);case 4:return ye(),i===null&&Lv(a.stateNode.containerInfo),Jt(a),null;case 10:return lo(a.type),Jt(a),null;case 19:if(se(mr),d=a.memoizedState,d===null)return Jt(a),null;if(g=(a.flags&128)!==0,v=d.rendering,v===null)if(g)Rd(d,!1);else{if(fr!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(v=Qp(i),v!==null){for(a.flags|=128,Rd(d,!1),i=v.updateQueue,a.updateQueue=i,uh(a,i),a.subtreeFlags=0,i=c,c=a.child;c!==null;)LR(c,i),c=c.sibling;return be(mr,mr.current&1|2),gt&&oo(a,d.treeForkCount),a.child}i=i.sibling}d.tail!==null&&j()>mh&&(a.flags|=128,g=!0,Rd(d,!1),a.lanes=4194304)}else{if(!g)if(i=Qp(v),i!==null){if(a.flags|=128,g=!0,i=i.updateQueue,a.updateQueue=i,uh(a,i),Rd(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!gt)return Jt(a),null}else 2*j()-d.renderingStartTime>mh&&c!==536870912&&(a.flags|=128,g=!0,Rd(d,!1),a.lanes=4194304);d.isBackwards?(v.sibling=a.child,a.child=v):(i=d.last,i!==null?i.sibling=v:a.child=v,d.last=v)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=j(),i.sibling=null,c=mr.current,be(mr,g?c&1|2:c&1),gt&&oo(a,d.treeForkCount),i):(Jt(a),null);case 22:case 23:return ui(a),z0(),d=a.memoizedState!==null,i!==null?i.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(c&536870912)!==0&&(a.flags&128)===0&&(Jt(a),a.subtreeFlags&6&&(a.flags|=8192)):Jt(a),c=a.updateQueue,c!==null&&uh(a,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==c&&(a.flags|=2048),i!==null&&se(nl),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),lo(wr),Jt(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function KL(i,a){switch(R0(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return lo(wr),ye(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Je(a),null;case 31:if(a.memoizedState!==null){if(ui(a),a.alternate===null)throw Error(n(340));el()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 13:if(ui(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));el()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return se(mr),null;case 4:return ye(),null;case 10:return lo(a.type),null;case 22:case 23:return ui(a),z0(),i!==null&&se(nl),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return lo(wr),null;case 25:return null;default:return null}}function dT(i,a){switch(R0(a),a.tag){case 3:lo(wr),ye();break;case 26:case 27:case 5:Je(a);break;case 4:ye();break;case 31:a.memoizedState!==null&&ui(a);break;case 13:ui(a);break;case 19:se(mr);break;case 10:lo(a.type);break;case 22:case 23:ui(a),z0(),i!==null&&se(nl);break;case 24:lo(wr)}}function Cd(i,a){try{var c=a.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var g=d.next;c=g;do{if((c.tag&i)===i){d=void 0;var v=c.create,_=c.inst;d=v(),_.destroy=d}c=c.next}while(c!==g)}}catch(k){Pt(a,a.return,k)}}function os(i,a,c){try{var d=a.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var v=g.next;d=v;do{if((d.tag&i)===i){var _=d.inst,k=_.destroy;if(k!==void 0){_.destroy=void 0,g=a;var K=c,oe=k;try{oe()}catch(ge){Pt(g,K,ge)}}}d=d.next}while(d!==v)}}catch(ge){Pt(a,a.return,ge)}}function fT(i){var a=i.updateQueue;if(a!==null){var c=i.stateNode;try{rC(a,c)}catch(d){Pt(i,i.return,d)}}}function pT(i,a,c){c.props=ll(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(d){Pt(i,a,d)}}function Td(i,a){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var d=i.stateNode;break;case 30:d=i.stateNode;break;default:d=i.stateNode}typeof c=="function"?i.refCleanup=c(d):c.current=d}}catch(g){Pt(i,a,g)}}function wa(i,a){var c=i.ref,d=i.refCleanup;if(c!==null)if(typeof d=="function")try{d()}catch(g){Pt(i,a,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){Pt(i,a,g)}else c.current=null}function hT(i){var a=i.type,c=i.memoizedProps,d=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":c.autoFocus&&d.focus();break e;case"img":c.src?d.src=c.src:c.srcSet&&(d.srcset=c.srcSet)}}catch(g){Pt(i,i.return,g)}}function bv(i,a,c){try{var d=i.stateNode;bz(d,i.type,c,a),d[un]=a}catch(g){Pt(i,i.return,g)}}function mT(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ps(i.type)||i.tag===4}function vv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||mT(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ps(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function yv(i,a,c){var d=i.tag;if(d===5||d===6)i=i.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(i),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=oi));else if(d!==4&&(d===27&&ps(i.type)&&(c=i.stateNode,a=null),i=i.child,i!==null))for(yv(i,a,c),i=i.sibling;i!==null;)yv(i,a,c),i=i.sibling}function dh(i,a,c){var d=i.tag;if(d===5||d===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(d!==4&&(d===27&&ps(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(dh(i,a,c),i=i.sibling;i!==null;)dh(i,a,c),i=i.sibling}function gT(i){var a=i.stateNode,c=i.memoizedProps;try{for(var d=i.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);rn(a,d,c),a[Vr]=i,a[un]=c}catch(v){Pt(i,i.return,v)}}var ho=!1,Ir=!1,xv=!1,bT=typeof WeakSet=="function"?WeakSet:Set,Wr=null;function XL(i,a){if(i=i.containerInfo,Vv=Ph,i=OR(i),p0(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var g=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var _=0,k=-1,K=-1,oe=0,ge=0,xe=i,ce=null;t:for(;;){for(var fe;xe!==c||g!==0&&xe.nodeType!==3||(k=_+g),xe!==v||d!==0&&xe.nodeType!==3||(K=_+d),xe.nodeType===3&&(_+=xe.nodeValue.length),(fe=xe.firstChild)!==null;)ce=xe,xe=fe;for(;;){if(xe===i)break t;if(ce===c&&++oe===g&&(k=_),ce===v&&++ge===d&&(K=_),(fe=xe.nextSibling)!==null)break;xe=ce,ce=xe.parentNode}xe=fe}c=k===-1||K===-1?null:{start:k,end:K}}else c=null}c=c||{start:0,end:0}}else c=null;for(Fv={focusedElem:i,selectionRange:c},Ph=!1,Wr=a;Wr!==null;)if(a=Wr,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Wr=i;else for(;Wr!==null;){switch(a=Wr,v=a.alternate,i=a.flags,a.tag){case 0:if((i&4)!==0&&(i=a.updateQueue,i=i!==null?i.events:null,i!==null))for(c=0;c<i.length;c++)g=i[c],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,c=a,g=v.memoizedProps,v=v.memoizedState,d=c.stateNode;try{var ze=ll(c.type,g);i=d.getSnapshotBeforeUpdate(ze,v),d.__reactInternalSnapshotBeforeUpdate=i}catch(Ye){Pt(c,c.return,Ye)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,c=i.nodeType,c===9)Hv(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(n(163))}if(i=a.sibling,i!==null){i.return=a.return,Wr=i;break}Wr=a.return}}function vT(i,a,c){var d=c.flags;switch(c.tag){case 0:case 11:case 15:go(i,c),d&4&&Cd(5,c);break;case 1:if(go(i,c),d&4)if(i=c.stateNode,a===null)try{i.componentDidMount()}catch(_){Pt(c,c.return,_)}else{var g=ll(c.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(g,a,i.__reactInternalSnapshotBeforeUpdate)}catch(_){Pt(c,c.return,_)}}d&64&&fT(c),d&512&&Td(c,c.return);break;case 3:if(go(i,c),d&64&&(i=c.updateQueue,i!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{rC(i,a)}catch(_){Pt(c,c.return,_)}}break;case 27:a===null&&d&4&&gT(c);case 26:case 5:go(i,c),a===null&&d&4&&hT(c),d&512&&Td(c,c.return);break;case 12:go(i,c);break;case 31:go(i,c),d&4&&ST(i,c);break;case 13:go(i,c),d&4&&ET(i,c),d&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=az.bind(null,c),Cz(i,c))));break;case 22:if(d=c.memoizedState!==null||ho,!d){a=a!==null&&a.memoizedState!==null||Ir,g=ho;var v=Ir;ho=d,(Ir=a)&&!v?bo(i,c,(c.subtreeFlags&8772)!==0):go(i,c),ho=g,Ir=v}break;case 30:break;default:go(i,c)}}function yT(i){var a=i.alternate;a!==null&&(i.alternate=null,yT(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&Hu(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var ir=null,Un=!1;function mo(i,a,c){for(c=c.child;c!==null;)xT(i,a,c),c=c.sibling}function xT(i,a,c){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ht,c)}catch{}switch(c.tag){case 26:Ir||wa(c,a),mo(i,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Ir||wa(c,a);var d=ir,g=Un;ps(c.type)&&(ir=c.stateNode,Un=!1),mo(i,a,c),Dd(c.stateNode),ir=d,Un=g;break;case 5:Ir||wa(c,a);case 6:if(d=ir,g=Un,ir=null,mo(i,a,c),ir=d,Un=g,ir!==null)if(Un)try{(ir.nodeType===9?ir.body:ir.nodeName==="HTML"?ir.ownerDocument.body:ir).removeChild(c.stateNode)}catch(v){Pt(c,a,v)}else try{ir.removeChild(c.stateNode)}catch(v){Pt(c,a,v)}break;case 18:ir!==null&&(Un?(i=ir,fw(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),jc(i)):fw(ir,c.stateNode));break;case 4:d=ir,g=Un,ir=c.stateNode.containerInfo,Un=!0,mo(i,a,c),ir=d,Un=g;break;case 0:case 11:case 14:case 15:os(2,c,a),Ir||os(4,c,a),mo(i,a,c);break;case 1:Ir||(wa(c,a),d=c.stateNode,typeof d.componentWillUnmount=="function"&&pT(c,a,d)),mo(i,a,c);break;case 21:mo(i,a,c);break;case 22:Ir=(d=Ir)||c.memoizedState!==null,mo(i,a,c),Ir=d;break;default:mo(i,a,c)}}function ST(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{jc(i)}catch(c){Pt(a,a.return,c)}}}function ET(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{jc(i)}catch(c){Pt(a,a.return,c)}}function QL(i){switch(i.tag){case 31:case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new bT),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new bT),a;default:throw Error(n(435,i.tag))}}function fh(i,a){var c=QL(i);a.forEach(function(d){if(!c.has(d)){c.add(d);var g=oz.bind(null,i,d);d.then(g,g)}})}function Vn(i,a){var c=a.deletions;if(c!==null)for(var d=0;d<c.length;d++){var g=c[d],v=i,_=a,k=_;e:for(;k!==null;){switch(k.tag){case 27:if(ps(k.type)){ir=k.stateNode,Un=!1;break e}break;case 5:ir=k.stateNode,Un=!1;break e;case 3:case 4:ir=k.stateNode.containerInfo,Un=!0;break e}k=k.return}if(ir===null)throw Error(n(160));xT(v,_,g),ir=null,Un=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)AT(a,i),a=a.sibling}var Qi=null;function AT(i,a){var c=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Vn(a,i),Fn(i),d&4&&(os(3,i,i.return),Cd(3,i),os(5,i,i.return));break;case 1:Vn(a,i),Fn(i),d&512&&(Ir||c===null||wa(c,c.return)),d&64&&ho&&(i=i.updateQueue,i!==null&&(d=i.callbacks,d!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?d:c.concat(d))));break;case 26:var g=Qi;if(Vn(a,i),Fn(i),d&512&&(Ir||c===null||wa(c,c.return)),d&4){var v=c!==null?c.memoizedState:null;if(d=i.memoizedState,c===null)if(d===null)if(i.stateNode===null){e:{d=i.type,c=i.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":v=g.getElementsByTagName("title")[0],(!v||v[Hs]||v[Vr]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(d),g.head.insertBefore(v,g.querySelector("head > title"))),rn(v,d,c),v[Vr]=i,Tr(v),d=v;break e;case"link":var _=Aw("link","href",g).get(d+(c.href||""));if(_){for(var k=0;k<_.length;k++)if(v=_[k],v.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&v.getAttribute("rel")===(c.rel==null?null:c.rel)&&v.getAttribute("title")===(c.title==null?null:c.title)&&v.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){_.splice(k,1);break t}}v=g.createElement(d),rn(v,d,c),g.head.appendChild(v);break;case"meta":if(_=Aw("meta","content",g).get(d+(c.content||""))){for(k=0;k<_.length;k++)if(v=_[k],v.getAttribute("content")===(c.content==null?null:""+c.content)&&v.getAttribute("name")===(c.name==null?null:c.name)&&v.getAttribute("property")===(c.property==null?null:c.property)&&v.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&v.getAttribute("charset")===(c.charSet==null?null:c.charSet)){_.splice(k,1);break t}}v=g.createElement(d),rn(v,d,c),g.head.appendChild(v);break;default:throw Error(n(468,d))}v[Vr]=i,Tr(v),d=v}i.stateNode=d}else Rw(g,i.type,i.stateNode);else i.stateNode=Ew(g,d,i.memoizedProps);else v!==d?(v===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):v.count--,d===null?Rw(g,i.type,i.stateNode):Ew(g,d,i.memoizedProps)):d===null&&i.stateNode!==null&&bv(i,i.memoizedProps,c.memoizedProps)}break;case 27:Vn(a,i),Fn(i),d&512&&(Ir||c===null||wa(c,c.return)),c!==null&&d&4&&bv(i,i.memoizedProps,c.memoizedProps);break;case 5:if(Vn(a,i),Fn(i),d&512&&(Ir||c===null||wa(c,c.return)),i.flags&32){g=i.stateNode;try{Yo(g,"")}catch(ze){Pt(i,i.return,ze)}}d&4&&i.stateNode!=null&&(g=i.memoizedProps,bv(i,g,c!==null?c.memoizedProps:g)),d&1024&&(xv=!0);break;case 6:if(Vn(a,i),Fn(i),d&4){if(i.stateNode===null)throw Error(n(162));d=i.memoizedProps,c=i.stateNode;try{c.nodeValue=d}catch(ze){Pt(i,i.return,ze)}}break;case 3:if(_h=null,g=Qi,Qi=Th(a.containerInfo),Vn(a,i),Qi=g,Fn(i),d&4&&c!==null&&c.memoizedState.isDehydrated)try{jc(a.containerInfo)}catch(ze){Pt(i,i.return,ze)}xv&&(xv=!1,RT(i));break;case 4:d=Qi,Qi=Th(i.stateNode.containerInfo),Vn(a,i),Fn(i),Qi=d;break;case 12:Vn(a,i),Fn(i);break;case 31:Vn(a,i),Fn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,fh(i,d)));break;case 13:Vn(a,i),Fn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(hh=j()),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,fh(i,d)));break;case 22:g=i.memoizedState!==null;var K=c!==null&&c.memoizedState!==null,oe=ho,ge=Ir;if(ho=oe||g,Ir=ge||K,Vn(a,i),Ir=ge,ho=oe,Fn(i),d&8192)e:for(a=i.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(c===null||K||ho||Ir||cl(i)),c=null,a=i;;){if(a.tag===5||a.tag===26){if(c===null){K=c=a;try{if(v=K.stateNode,g)_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{k=K.stateNode;var xe=K.memoizedProps.style,ce=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;k.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch(ze){Pt(K,K.return,ze)}}}else if(a.tag===6){if(c===null){K=a;try{K.stateNode.nodeValue=g?"":K.memoizedProps}catch(ze){Pt(K,K.return,ze)}}}else if(a.tag===18){if(c===null){K=a;try{var fe=K.stateNode;g?pw(fe,!0):pw(K.stateNode,!1)}catch(ze){Pt(K,K.return,ze)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=i.updateQueue,d!==null&&(c=d.retryQueue,c!==null&&(d.retryQueue=null,fh(i,c))));break;case 19:Vn(a,i),Fn(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,fh(i,d)));break;case 30:break;case 21:break;default:Vn(a,i),Fn(i)}}function Fn(i){var a=i.flags;if(a&2){try{for(var c,d=i.return;d!==null;){if(mT(d)){c=d;break}d=d.return}if(c==null)throw Error(n(160));switch(c.tag){case 27:var g=c.stateNode,v=vv(i);dh(i,v,g);break;case 5:var _=c.stateNode;c.flags&32&&(Yo(_,""),c.flags&=-33);var k=vv(i);dh(i,k,_);break;case 3:case 4:var K=c.stateNode.containerInfo,oe=vv(i);yv(i,oe,K);break;default:throw Error(n(161))}}catch(ge){Pt(i,i.return,ge)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function RT(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;RT(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function go(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)vT(i,a.alternate,a),a=a.sibling}function cl(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:os(4,a,a.return),cl(a);break;case 1:wa(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&pT(a,a.return,c),cl(a);break;case 27:Dd(a.stateNode);case 26:case 5:wa(a,a.return),cl(a);break;case 22:a.memoizedState===null&&cl(a);break;case 30:cl(a);break;default:cl(a)}i=i.sibling}}function bo(i,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,g=i,v=a,_=v.flags;switch(v.tag){case 0:case 11:case 15:bo(g,v,c),Cd(4,v);break;case 1:if(bo(g,v,c),d=v,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(oe){Pt(d,d.return,oe)}if(d=v,g=d.updateQueue,g!==null){var k=d.stateNode;try{var K=g.shared.hiddenCallbacks;if(K!==null)for(g.shared.hiddenCallbacks=null,g=0;g<K.length;g++)tC(K[g],k)}catch(oe){Pt(d,d.return,oe)}}c&&_&64&&fT(v),Td(v,v.return);break;case 27:gT(v);case 26:case 5:bo(g,v,c),c&&d===null&&_&4&&hT(v),Td(v,v.return);break;case 12:bo(g,v,c);break;case 31:bo(g,v,c),c&&_&4&&ST(g,v);break;case 13:bo(g,v,c),c&&_&4&&ET(g,v);break;case 22:v.memoizedState===null&&bo(g,v,c),Td(v,v.return);break;case 30:break;default:bo(g,v,c)}a=a.sibling}}function Sv(i,a){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&fd(c))}function Ev(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&fd(i))}function Ji(i,a,c,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)CT(i,a,c,d),a=a.sibling}function CT(i,a,c,d){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Ji(i,a,c,d),g&2048&&Cd(9,a);break;case 1:Ji(i,a,c,d);break;case 3:Ji(i,a,c,d),g&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&fd(i)));break;case 12:if(g&2048){Ji(i,a,c,d),i=a.stateNode;try{var v=a.memoizedProps,_=v.id,k=v.onPostCommit;typeof k=="function"&&k(_,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(K){Pt(a,a.return,K)}}else Ji(i,a,c,d);break;case 31:Ji(i,a,c,d);break;case 13:Ji(i,a,c,d);break;case 23:break;case 22:v=a.stateNode,_=a.alternate,a.memoizedState!==null?v._visibility&2?Ji(i,a,c,d):wd(i,a):v._visibility&2?Ji(i,a,c,d):(v._visibility|=2,Tc(i,a,c,d,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Sv(_,a);break;case 24:Ji(i,a,c,d),g&2048&&Ev(a.alternate,a);break;default:Ji(i,a,c,d)}}function Tc(i,a,c,d,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var v=i,_=a,k=c,K=d,oe=_.flags;switch(_.tag){case 0:case 11:case 15:Tc(v,_,k,K,g),Cd(8,_);break;case 23:break;case 22:var ge=_.stateNode;_.memoizedState!==null?ge._visibility&2?Tc(v,_,k,K,g):wd(v,_):(ge._visibility|=2,Tc(v,_,k,K,g)),g&&oe&2048&&Sv(_.alternate,_);break;case 24:Tc(v,_,k,K,g),g&&oe&2048&&Ev(_.alternate,_);break;default:Tc(v,_,k,K,g)}a=a.sibling}}function wd(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=i,d=a,g=d.flags;switch(d.tag){case 22:wd(c,d),g&2048&&Sv(d.alternate,d);break;case 24:wd(c,d),g&2048&&Ev(d.alternate,d);break;default:wd(c,d)}a=a.sibling}}var _d=8192;function wc(i,a,c){if(i.subtreeFlags&_d)for(i=i.child;i!==null;)TT(i,a,c),i=i.sibling}function TT(i,a,c){switch(i.tag){case 26:wc(i,a,c),i.flags&_d&&i.memoizedState!==null&&jz(c,Qi,i.memoizedState,i.memoizedProps);break;case 5:wc(i,a,c);break;case 3:case 4:var d=Qi;Qi=Th(i.stateNode.containerInfo),wc(i,a,c),Qi=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=_d,_d=16777216,wc(i,a,c),_d=d):wc(i,a,c));break;default:wc(i,a,c)}}function wT(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Od(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];Wr=d,OT(d,i)}wT(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)_T(i),i=i.sibling}function _T(i){switch(i.tag){case 0:case 11:case 15:Od(i),i.flags&2048&&os(9,i,i.return);break;case 3:Od(i);break;case 12:Od(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,ph(i)):Od(i);break;default:Od(i)}}function ph(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];Wr=d,OT(d,i)}wT(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:os(8,a,a.return),ph(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,ph(a));break;default:ph(a)}i=i.sibling}}function OT(i,a){for(;Wr!==null;){var c=Wr;switch(c.tag){case 0:case 11:case 15:os(8,c,a);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var d=c.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:fd(c.memoizedState.cache)}if(d=c.child,d!==null)d.return=c,Wr=d;else e:for(c=i;Wr!==null;){d=Wr;var g=d.sibling,v=d.return;if(yT(d),d===c){Wr=null;break e}if(g!==null){g.return=v,Wr=g;break e}Wr=v}}}var JL={getCacheForType:function(i){var a=en(wr),c=a.data.get(i);return c===void 0&&(c=i(),a.data.set(i,c)),c},cacheSignal:function(){return en(wr).controller.signal}},ZL=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Lt=null,dt=null,pt=0,qt=0,di=null,ss=!1,_c=!1,Av=!1,vo=0,fr=0,ls=0,ul=0,Rv=0,fi=0,Oc=0,Id=null,$n=null,Cv=!1,hh=0,IT=0,mh=1/0,gh=null,cs=null,Fr=0,us=null,Ic=null,yo=0,Tv=0,wv=null,qT=null,qd=0,_v=null;function pi(){return(Tt&2)!==0&&pt!==0?pt&-pt:Y.T!==null?Nv():wp()}function PT(){if(fi===0)if((pt&536870912)===0||gt){var i=Ri;Ri<<=1,(Ri&3932160)===0&&(Ri=262144),fi=i}else fi=536870912;return i=ci.current,i!==null&&(i.flags|=32),fi}function Bn(i,a,c){(i===Lt&&(qt===2||qt===9)||i.cancelPendingCommit!==null)&&(qc(i,0),ds(i,pt,fi,!1)),En(i,c),((Tt&2)===0||i!==Lt)&&(i===Lt&&((Tt&2)===0&&(ul|=c),fr===4&&ds(i,pt,fi,!1)),_a(i))}function kT(i,a,c){if((Tt&6)!==0)throw Error(n(327));var d=!c&&(a&127)===0&&(a&i.expiredLanes)===0||Bs(i,a),g=d?rz(i,a):Iv(i,a,!0),v=d;do{if(g===0){_c&&!d&&ds(i,a,0,!1);break}else{if(c=i.current.alternate,v&&!ez(c)){g=Iv(i,a,!1),v=!1;continue}if(g===2){if(v=a,i.errorRecoveryDisabledLanes&v)var _=0;else _=i.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var k=i;g=Id;var K=k.current.memoizedState.isDehydrated;if(K&&(qc(k,_).flags|=256),_=Iv(k,_,!1),_!==2){if(Av&&!K){k.errorRecoveryDisabledLanes|=v,ul|=v,g=4;break e}v=$n,$n=g,v!==null&&($n===null?$n=v:$n.push.apply($n,v))}g=_}if(v=!1,g!==2)continue}}if(g===1){qc(i,0),ds(i,a,0,!0);break}e:{switch(d=i,v=g,v){case 0:case 1:throw Error(n(345));case 4:if((a&4194048)!==a)break;case 6:ds(d,a,fi,!ss);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(g=hh+300-j(),10<g)){if(ds(d,a,fi,!ss),ec(d,0,!0)!==0)break e;yo=a,d.timeoutHandle=uw(NT.bind(null,d,c,$n,gh,Cv,a,fi,ul,Oc,ss,v,"Throttled",-0,0),g);break e}NT(d,c,$n,gh,Cv,a,fi,ul,Oc,ss,v,null,-0,0)}}break}while(!0);_a(i)}function NT(i,a,c,d,g,v,_,k,K,oe,ge,xe,ce,fe){if(i.timeoutHandle=-1,xe=a.subtreeFlags,xe&8192||(xe&16785408)===16785408){xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oi},TT(a,v,xe);var ze=(v&62914560)===v?hh-j():(v&4194048)===v?IT-j():0;if(ze=Lz(xe,ze),ze!==null){yo=v,i.cancelPendingCommit=ze(FT.bind(null,i,a,v,c,d,g,_,k,K,ge,xe,null,ce,fe)),ds(i,v,_,!oe);return}}FT(i,a,v,c,d,g,_,k,K)}function ez(i){for(var a=i;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var d=0;d<c.length;d++){var g=c[d],v=g.getSnapshot;g=g.value;try{if(!si(v(),g))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ds(i,a,c,d){a&=~Rv,a&=~ul,i.suspendedLanes|=a,i.pingedLanes&=~a,d&&(i.warmLanes|=a),d=i.expirationTimes;for(var g=a;0<g;){var v=31-Cr(g),_=1<<v;d[v]=-1,g&=~_}c!==0&&Rp(i,c,a)}function bh(){return(Tt&6)===0?(Pd(0),!1):!0}function Ov(){if(dt!==null){if(qt===0)var i=dt.return;else i=dt,so=tl=null,H0(i),Sc=null,hd=0,i=dt;for(;i!==null;)dT(i.alternate,i),i=i.return;dt=null}}function qc(i,a){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,xz(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),yo=0,Ov(),Lt=i,dt=c=ao(i.current,null),pt=a,qt=0,di=null,ss=!1,_c=Bs(i,a),Av=!1,Oc=fi=Rv=ul=ls=fr=0,$n=Id=null,Cv=!1,(a&8)!==0&&(a|=a&32);var d=i.entangledLanes;if(d!==0)for(i=i.entanglements,d&=a;0<d;){var g=31-Cr(d),v=1<<g;a|=i[g],d&=~v}return vo=a,Lp(),c}function DT(i,a){it=null,Y.H=Ed,a===xc||a===Gp?(a=QR(),qt=3):a===k0?(a=QR(),qt=4):qt=a===sv?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,di=a,dt===null&&(fr=1,oh(i,Ti(a,i.current)))}function MT(){var i=ci.current;return i===null?!0:(pt&4194048)===pt?Ii===null:(pt&62914560)===pt||(pt&536870912)!==0?i===Ii:!1}function jT(){var i=Y.H;return Y.H=Ed,i===null?Ed:i}function LT(){var i=Y.A;return Y.A=JL,i}function vh(){fr=4,ss||(pt&4194048)!==pt&&ci.current!==null||(_c=!0),(ls&134217727)===0&&(ul&134217727)===0||Lt===null||ds(Lt,pt,fi,!1)}function Iv(i,a,c){var d=Tt;Tt|=2;var g=jT(),v=LT();(Lt!==i||pt!==a)&&(gh=null,qc(i,a)),a=!1;var _=fr;e:do try{if(qt!==0&&dt!==null){var k=dt,K=di;switch(qt){case 8:Ov(),_=6;break e;case 3:case 2:case 9:case 6:ci.current===null&&(a=!0);var oe=qt;if(qt=0,di=null,Pc(i,k,K,oe),c&&_c){_=0;break e}break;default:oe=qt,qt=0,di=null,Pc(i,k,K,oe)}}tz(),_=fr;break}catch(ge){DT(i,ge)}while(!0);return a&&i.shellSuspendCounter++,so=tl=null,Tt=d,Y.H=g,Y.A=v,dt===null&&(Lt=null,pt=0,Lp()),_}function tz(){for(;dt!==null;)zT(dt)}function rz(i,a){var c=Tt;Tt|=2;var d=jT(),g=LT();Lt!==i||pt!==a?(gh=null,mh=j()+500,qc(i,a)):_c=Bs(i,a);e:do try{if(qt!==0&&dt!==null){a=dt;var v=di;t:switch(qt){case 1:qt=0,di=null,Pc(i,a,v,1);break;case 2:case 9:if(KR(v)){qt=0,di=null,UT(a);break}a=function(){qt!==2&&qt!==9||Lt!==i||(qt=7),_a(i)},v.then(a,a);break e;case 3:qt=7;break e;case 4:qt=5;break e;case 7:KR(v)?(qt=0,di=null,UT(a)):(qt=0,di=null,Pc(i,a,v,7));break;case 5:var _=null;switch(dt.tag){case 26:_=dt.memoizedState;case 5:case 27:var k=dt;if(_?Cw(_):k.stateNode.complete){qt=0,di=null;var K=k.sibling;if(K!==null)dt=K;else{var oe=k.return;oe!==null?(dt=oe,yh(oe)):dt=null}break t}}qt=0,di=null,Pc(i,a,v,5);break;case 6:qt=0,di=null,Pc(i,a,v,6);break;case 8:Ov(),fr=6;break e;default:throw Error(n(462))}}nz();break}catch(ge){DT(i,ge)}while(!0);return so=tl=null,Y.H=d,Y.A=g,Tt=c,dt!==null?0:(Lt=null,pt=0,Lp(),fr)}function nz(){for(;dt!==null&&!de();)zT(dt)}function zT(i){var a=cT(i.alternate,i,vo);i.memoizedProps=i.pendingProps,a===null?yh(i):dt=a}function UT(i){var a=i,c=a.alternate;switch(a.tag){case 15:case 0:a=nT(c,a,a.pendingProps,a.type,void 0,pt);break;case 11:a=nT(c,a,a.pendingProps,a.type.render,a.ref,pt);break;case 5:H0(a);default:dT(c,a),a=dt=LR(a,vo),a=cT(c,a,vo)}i.memoizedProps=i.pendingProps,a===null?yh(i):dt=a}function Pc(i,a,c,d){so=tl=null,H0(a),Sc=null,hd=0;var g=a.return;try{if(HL(i,g,a,c,pt)){fr=1,oh(i,Ti(c,i.current)),dt=null;return}}catch(v){if(g!==null)throw dt=g,v;fr=1,oh(i,Ti(c,i.current)),dt=null;return}a.flags&32768?(gt||d===1?i=!0:_c||(pt&536870912)!==0?i=!1:(ss=i=!0,(d===2||d===9||d===3||d===6)&&(d=ci.current,d!==null&&d.tag===13&&(d.flags|=16384))),VT(a,i)):yh(a)}function yh(i){var a=i;do{if((a.flags&32768)!==0){VT(a,ss);return}i=a.return;var c=YL(a.alternate,a,vo);if(c!==null){dt=c;return}if(a=a.sibling,a!==null){dt=a;return}dt=a=i}while(a!==null);fr===0&&(fr=5)}function VT(i,a){do{var c=KL(i.alternate,i);if(c!==null){c.flags&=32767,dt=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!a&&(i=i.sibling,i!==null)){dt=i;return}dt=i=c}while(i!==null);fr=6,dt=null}function FT(i,a,c,d,g,v,_,k,K){i.cancelPendingCommit=null;do xh();while(Fr!==0);if((Tt&6)!==0)throw Error(n(327));if(a!==null){if(a===i.current)throw Error(n(177));if(v=a.lanes|a.childLanes,v|=v0,Zb(i,c,v,_,k,K),i===Lt&&(dt=Lt=null,pt=0),Ic=a,us=i,yo=c,Tv=v,wv=g,qT=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,sz(Re,function(){return WT(),null})):(i.callbackNode=null,i.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=Y.T,Y.T=null,g=ie.p,ie.p=2,_=Tt,Tt|=4;try{XL(i,a,c)}finally{Tt=_,ie.p=g,Y.T=d}}Fr=1,$T(),BT(),HT()}}function $T(){if(Fr===1){Fr=0;var i=us,a=Ic,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=Y.T,Y.T=null;var d=ie.p;ie.p=2;var g=Tt;Tt|=4;try{AT(a,i);var v=Fv,_=OR(i.containerInfo),k=v.focusedElem,K=v.selectionRange;if(_!==k&&k&&k.ownerDocument&&_R(k.ownerDocument.documentElement,k)){if(K!==null&&p0(k)){var oe=K.start,ge=K.end;if(ge===void 0&&(ge=oe),"selectionStart"in k)k.selectionStart=oe,k.selectionEnd=Math.min(ge,k.value.length);else{var xe=k.ownerDocument||document,ce=xe&&xe.defaultView||window;if(ce.getSelection){var fe=ce.getSelection(),ze=k.textContent.length,Ye=Math.min(K.start,ze),jt=K.end===void 0?Ye:Math.min(K.end,ze);!fe.extend&&Ye>jt&&(_=jt,jt=Ye,Ye=_);var ne=wR(k,Ye),Q=wR(k,jt);if(ne&&Q&&(fe.rangeCount!==1||fe.anchorNode!==ne.node||fe.anchorOffset!==ne.offset||fe.focusNode!==Q.node||fe.focusOffset!==Q.offset)){var ae=xe.createRange();ae.setStart(ne.node,ne.offset),fe.removeAllRanges(),Ye>jt?(fe.addRange(ae),fe.extend(Q.node,Q.offset)):(ae.setEnd(Q.node,Q.offset),fe.addRange(ae))}}}}for(xe=[],fe=k;fe=fe.parentNode;)fe.nodeType===1&&xe.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<xe.length;k++){var ve=xe[k];ve.element.scrollLeft=ve.left,ve.element.scrollTop=ve.top}}Ph=!!Vv,Fv=Vv=null}finally{Tt=g,ie.p=d,Y.T=c}}i.current=a,Fr=2}}function BT(){if(Fr===2){Fr=0;var i=us,a=Ic,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=Y.T,Y.T=null;var d=ie.p;ie.p=2;var g=Tt;Tt|=4;try{vT(i,a.alternate,a)}finally{Tt=g,ie.p=d,Y.T=c}}Fr=3}}function HT(){if(Fr===4||Fr===3){Fr=0,Ie();var i=us,a=Ic,c=yo,d=qT;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Fr=5:(Fr=0,Ic=us=null,GT(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(cs=null),ya(c),a=a.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(Ht,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=Y.T,g=ie.p,ie.p=2,Y.T=null;try{for(var v=i.onRecoverableError,_=0;_<d.length;_++){var k=d[_];v(k.value,{componentStack:k.stack})}}finally{Y.T=a,ie.p=g}}(yo&3)!==0&&xh(),_a(i),g=i.pendingLanes,(c&261930)!==0&&(g&42)!==0?i===_v?qd++:(qd=0,_v=i):qd=0,Pd(0)}}function GT(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,fd(a)))}function xh(){return $T(),BT(),HT(),WT()}function WT(){if(Fr!==5)return!1;var i=us,a=Tv;Tv=0;var c=ya(yo),d=Y.T,g=ie.p;try{ie.p=32>c?32:c,Y.T=null,c=wv,wv=null;var v=us,_=yo;if(Fr=0,Ic=us=null,yo=0,(Tt&6)!==0)throw Error(n(331));var k=Tt;if(Tt|=4,_T(v.current),CT(v,v.current,_,c),Tt=k,Pd(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(Ht,v)}catch{}return!0}finally{ie.p=g,Y.T=d,GT(i,a)}}function YT(i,a,c){a=Ti(c,a),a=ov(i.stateNode,a,2),i=ns(i,a,2),i!==null&&(En(i,2),_a(i))}function Pt(i,a,c){if(i.tag===3)YT(i,i,c);else for(;a!==null;){if(a.tag===3){YT(a,i,c);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(cs===null||!cs.has(d))){i=Ti(c,i),c=KC(2),d=ns(a,c,2),d!==null&&(XC(c,d,a,i),En(d,2),_a(d));break}}a=a.return}}function qv(i,a,c){var d=i.pingCache;if(d===null){d=i.pingCache=new ZL;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(c)||(Av=!0,g.add(c),i=iz.bind(null,i,a,c),a.then(i,i))}function iz(i,a,c){var d=i.pingCache;d!==null&&d.delete(a),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,Lt===i&&(pt&c)===c&&(fr===4||fr===3&&(pt&62914560)===pt&&300>j()-hh?(Tt&2)===0&&qc(i,0):Rv|=c,Oc===pt&&(Oc=0)),_a(i)}function KT(i,a){a===0&&(a=Ap()),i=Js(i,a),i!==null&&(En(i,a),_a(i))}function az(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),KT(i,c)}function oz(i,a){var c=0;switch(i.tag){case 31:case 13:var d=i.stateNode,g=i.memoizedState;g!==null&&(c=g.retryLane);break;case 19:d=i.stateNode;break;case 22:d=i.stateNode._retryCache;break;default:throw Error(n(314))}d!==null&&d.delete(a),KT(i,c)}function sz(i,a){return Mn(i,a)}var Sh=null,kc=null,Pv=!1,Eh=!1,kv=!1,fs=0;function _a(i){i!==kc&&i.next===null&&(kc===null?Sh=kc=i:kc=kc.next=i),Eh=!0,Pv||(Pv=!0,cz())}function Pd(i,a){if(!kv&&Eh){kv=!0;do for(var c=!1,d=Sh;d!==null;){if(i!==0){var g=d.pendingLanes;if(g===0)var v=0;else{var _=d.suspendedLanes,k=d.pingedLanes;v=(1<<31-Cr(42|i)+1)-1,v&=g&~(_&~k),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(c=!0,ZT(d,v))}else v=pt,v=ec(d,d===Lt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(v&3)===0||Bs(d,v)||(c=!0,ZT(d,v));d=d.next}while(c);kv=!1}}function lz(){XT()}function XT(){Eh=Pv=!1;var i=0;fs!==0&&yz()&&(i=fs);for(var a=j(),c=null,d=Sh;d!==null;){var g=d.next,v=QT(d,a);v===0?(d.next=null,c===null?Sh=g:c.next=g,g===null&&(kc=c)):(c=d,(i!==0||(v&3)!==0)&&(Eh=!0)),d=g}Fr!==0&&Fr!==5||Pd(i),fs!==0&&(fs=0)}function QT(i,a){for(var c=i.suspendedLanes,d=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var _=31-Cr(v),k=1<<_,K=g[_];K===-1?((k&c)===0||(k&d)!==0)&&(g[_]=Jb(k,a)):K<=a&&(i.expiredLanes|=k),v&=~k}if(a=Lt,c=pt,c=ec(i,i===a?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d=i.callbackNode,c===0||i===a&&(qt===2||qt===9)||i.cancelPendingCommit!==null)return d!==null&&d!==null&&jn(d),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Bs(i,c)){if(a=c&-c,a===i.callbackPriority)return a;switch(d!==null&&jn(d),ya(c)){case 2:case 8:c=Ee;break;case 32:c=Re;break;case 268435456:c=Ne;break;default:c=Re}return d=JT.bind(null,i),c=Mn(c,d),i.callbackPriority=a,i.callbackNode=c,a}return d!==null&&d!==null&&jn(d),i.callbackPriority=2,i.callbackNode=null,2}function JT(i,a){if(Fr!==0&&Fr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(xh()&&i.callbackNode!==c)return null;var d=pt;return d=ec(i,i===Lt?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d===0?null:(kT(i,d,a),QT(i,j()),i.callbackNode!=null&&i.callbackNode===c?JT.bind(null,i):null)}function ZT(i,a){if(xh())return null;kT(i,a,!0)}function cz(){Sz(function(){(Tt&6)!==0?Mn(Z,lz):XT()})}function Nv(){if(fs===0){var i=vc;i===0&&(i=va,va<<=1,(va&261888)===0&&(va=256)),fs=i}return fs}function ew(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:no(""+i)}function tw(i,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,i.id&&c.setAttribute("form",i.id),a.parentNode.insertBefore(c,a),i=new FormData(i),c.parentNode.removeChild(c),i}function uz(i,a,c,d,g){if(a==="submit"&&c&&c.stateNode===g){var v=ew((g[un]||null).action),_=d.submitter;_&&(a=(a=_[un]||null)?ew(a.formAction):_.getAttribute("formAction"),a!==null&&(v=a,_=null));var k=new lt("action","action",null,d,g);i.push({event:k,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(fs!==0){var K=_?tw(g,_):new FormData(g);ev(c,{pending:!0,data:K,method:g.method,action:v},null,K)}}else typeof v=="function"&&(k.preventDefault(),K=_?tw(g,_):new FormData(g),ev(c,{pending:!0,data:K,method:g.method,action:v},v,K))},currentTarget:g}]})}}for(var Dv=0;Dv<b0.length;Dv++){var Mv=b0[Dv],dz=Mv.toLowerCase(),fz=Mv[0].toUpperCase()+Mv.slice(1);Xi(dz,"on"+fz)}Xi(PR,"onAnimationEnd"),Xi(kR,"onAnimationIteration"),Xi(NR,"onAnimationStart"),Xi("dblclick","onDoubleClick"),Xi("focusin","onFocus"),Xi("focusout","onBlur"),Xi(_L,"onTransitionRun"),Xi(OL,"onTransitionStart"),Xi(IL,"onTransitionCancel"),Xi(DR,"onTransitionEnd"),Go("onMouseEnter",["mouseout","mouseover"]),Go("onMouseLeave",["mouseout","mouseover"]),Go("onPointerEnter",["pointerout","pointerover"]),Go("onPointerLeave",["pointerout","pointerover"]),to("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),to("onSelect","focusout contextmenu dragend focu
11sin keydown keyup mousedown mouseup selectionchange".split(" ")),to("onBeforeInput",["compositionend","keypress","textInput","paste"]),to("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),to("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),to("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kd="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(" "),pz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kd));function rw(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var d=i[c],g=d.event;d=d.listeners;e:{var v=void 0;if(a)for(var _=d.length-1;0<=_;_--){var k=d[_],K=k.instance,oe=k.currentTarget;if(k=k.listener,K!==v&&g.isPropagationStopped())break e;v=k,g.currentTarget=oe;try{v(g)}catch(ge){jp(ge)}g.currentTarget=null,v=K}else for(_=0;_<d.length;_++){if(k=d[_],K=k.instance,oe=k.currentTarget,k=k.listener,K!==v&&g.isPropagationStopped())break e;v=k,g.currentTarget=oe;try{v(g)}catch(ge){jp(ge)}g.currentTarget=null,v=K}}}}function ft(i,a){var c=a[Bu];c===void 0&&(c=a[Bu]=new Set);var d=i+"__bubble";c.has(d)||(nw(a,i,2,!1),c.add(d))}function jv(i,a,c){var d=0;a&&(d|=4),nw(c,i,d,a)}var Ah="_reactListening"+Math.random().toString(36).slice(2);function Lv(i){if(!i[Ah]){i[Ah]=!0,Gs.forEach(function(c){c!=="selectionchange"&&(pz.has(c)||jv(c,!1,i),jv(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Ah]||(a[Ah]=!0,jv("selectionchange",!1,a))}}function nw(i,a,c,d){switch(Pw(a)){case 2:var g=Vz;break;case 8:g=Fz;break;default:g=Zv}c=g.bind(null,a,c,i),g=void 0,!oc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?i.addEventListener(a,c,{capture:!0,passive:g}):i.addEventListener(a,c,!0):g!==void 0?i.addEventListener(a,c,{passive:g}):i.addEventListener(a,c,!1)}function zv(i,a,c,d,g){var v=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var _=d.tag;if(_===3||_===4){var k=d.stateNode.containerInfo;if(k===g)break;if(_===4)for(_=d.return;_!==null;){var K=_.tag;if((K===3||K===4)&&_.stateNode.containerInfo===g)return;_=_.return}for(;k!==null;){if(_=Sa(k),_===null)return;if(K=_.tag,K===5||K===6||K===26||K===27){d=v=_;continue e}k=k.parentNode}}d=d.return}Ra(function(){var oe=v,ge=Ys(c),xe=[];e:{var ce=MR.get(i);if(ce!==void 0){var fe=lt,ze=i;switch(i){case"keypress":if(lc(c)===0)break e;case"keydown":case"keyup":fe=oL;break;case"focusin":ze="focus",fe=l0;break;case"focusout":ze="blur",fe=l0;break;case"beforeblur":case"afterblur":fe=l0;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Xo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=id;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=cL;break;case PR:case kR:case NR:fe=Qj;break;case DR:fe=dL;break;case"scroll":case"scrollend":fe=Gt;break;case"wheel":fe=pL;break;case"copy":case"cut":case"paste":fe=Zj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=pR;break;case"toggle":case"beforetoggle":fe=mL}var Ye=(a&4)!==0,jt=!Ye&&(i==="scroll"||i==="scrollend"),ne=Ye?ce!==null?ce+"Capture":null:ce;Ye=[];for(var Q=oe,ae;Q!==null;){var ve=Q;if(ae=ve.stateNode,ve=ve.tag,ve!==5&&ve!==26&&ve!==27||ae===null||ne===null||(ve=Wi(Q,ne),ve!=null&&Ye.push(Nd(Q,ve,ae))),jt)break;Q=Q.return}0<Ye.length&&(ce=new fe(ce,ze,null,c,ge),xe.push({event:ce,listeners:Ye}))}}if((a&7)===0){e:{if(ce=i==="mouseover"||i==="pointerover",fe=i==="mouseout"||i==="pointerout",ce&&c!==Ws&&(ze=c.relatedTarget||c.fromElement)&&(Sa(ze)||ze[ai]))break e;if((fe||ce)&&(ce=ge.window===ge?ge:(ce=ge.ownerDocument)?ce.defaultView||ce.parentWindow:window,fe?(ze=c.relatedTarget||c.toElement,fe=oe,ze=ze?Sa(ze):null,ze!==null&&(jt=l(ze),Ye=ze.tag,ze!==jt||Ye!==5&&Ye!==27&&Ye!==6)&&(ze=null)):(fe=null,ze=oe),fe!==ze)){if(Ye=Xo,ve="onMouseLeave",ne="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(Ye=pR,ve="onPointerLeave",ne="onPointerEnter",Q="pointer"),jt=fe==null?ce:Ea(fe),ae=ze==null?ce:Ea(ze),ce=new Ye(ve,Q+"leave",fe,c,ge),ce.target=jt,ce.relatedTarget=ae,ve=null,Sa(ge)===oe&&(Ye=new Ye(ne,Q+"enter",ze,c,ge),Ye.target=ae,Ye.relatedTarget=jt,ve=Ye),jt=ve,fe&&ze)t:{for(Ye=hz,ne=fe,Q=ze,ae=0,ve=ne;ve;ve=Ye(ve))ae++;ve=0;for(var He=Q;He;He=Ye(He))ve++;for(;0<ae-ve;)ne=Ye(ne),ae--;for(;0<ve-ae;)Q=Ye(Q),ve--;for(;ae--;){if(ne===Q||Q!==null&&ne===Q.alternate){Ye=ne;break t}ne=Ye(ne),Q=Ye(Q)}Ye=null}else Ye=null;fe!==null&&iw(xe,ce,fe,Ye,!1),ze!==null&&jt!==null&&iw(xe,jt,ze,Ye,!0)}}
vendor: 5,244 bytes, lines 11-12
11e:{if(ce=oe?Ea(oe):window,fe=ce.nodeName&&ce.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ce.type==="file")var Et=SR;else if(yR(ce))if(ER)Et=CL;else{Et=AL;var Ve=EL}else fe=ce.nodeName,!fe||fe.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?oe&&ed(oe.elementType)&&(Et=SR):Et=RL;if(Et&&(Et=Et(i,oe))){xR(xe,Et,c,ge);break e}Ve&&Ve(i,ce,oe),i==="focusout"&&oe&&ce.type==="number"&&oe.memoizedProps.value!=null&&Ju(ce,"number",ce.value)}switch(Ve=oe?Ea(oe):window,i){case"focusin":(yR(Ve)||Ve.contentEditable==="true")&&(uc=Ve,h0=oe,cd=null);break;case"focusout":cd=h0=uc=null;break;case"mousedown":m0=!0;break;case"contextmenu":case"mouseup":case"dragend":m0=!1,IR(xe,c,ge);break;case"selectionchange":if(wL)break;case"keydown":case"keyup":IR(xe,c,ge)}var ot;if(u0)e:{switch(i){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else cc?bR(i,c)&&(ht="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(ht="onCompositionStart");ht&&(hR&&c.locale!=="ko"&&(cc||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&cc&&(ot=rd()):(Ki=ge,td="value"in Ki?Ki.value:Ki.textContent,cc=!0)),Ve=Rh(oe,ht),0<Ve.length&&(ht=new fR(ht,i,null,c,ge),xe.push({event:ht,listeners:Ve}),ot?ht.data=ot:(ot=vR(c),ot!==null&&(ht.data=ot)))),(ot=bL?vL(i,c):yL(i,c))&&(ht=Rh(oe,"onBeforeInput"),0<ht.length&&(Ve=new fR("onBeforeInput","beforeinput",null,c,ge),xe.push({event:Ve,listeners:ht}),Ve.data=ot)),uz(xe,i,oe,c,ge)}rw(xe,a)})}function Nd(i,a,c){return{instance:i,listener:a,currentTarget:c}}function Rh(i,a){for(var c=a+"Capture",d=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Wi(i,c),g!=null&&d.unshift(Nd(i,g,v)),g=Wi(i,a),g!=null&&d.push(Nd(i,g,v))),i.tag===3)return d;i=i.return}return[]}function hz(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function iw(i,a,c,d,g){for(var v=a._reactName,_=[];c!==null&&c!==d;){var k=c,K=k.alternate,oe=k.stateNode;if(k=k.tag,K!==null&&K===d)break;k!==5&&k!==26&&k!==27||oe===null||(K=oe,g?(oe=Wi(c,v),oe!=null&&_.unshift(Nd(c,oe,K))):g||(oe=Wi(c,v),oe!=null&&_.push(Nd(c,oe,K)))),c=c.return}_.length!==0&&i.push({event:a,listeners:_})}var mz=/\r\n?/g,gz=/\u0000|\uFFFD/g;function aw(i){return(typeof i=="string"?i:""+i).replace(mz,` 12`).replace(gz,"")}function ow(i,a){return a=aw(a),aw(i)===a}function Mt(i,a,c,d,g,v){switch(c){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Yo(i,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Yo(i,""+d);break;case"className":rc(i,"class",d);break;case"tabIndex":rc(i,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":rc(i,c,d);break;case"style":nc(i,d,v);break;case"data":if(a!=="object"){rc(i,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||c!=="href")){i.removeAttribute(c);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(c);break}d=no(""+d),i.setAttribute(c,d);break;case"action":case"formAction":if(typeof d=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(c==="formAction"?(a!=="input"&&Mt(i,a,"name",g.name,g,null),Mt(i,a,"formEncType",g.formEncType,g,null),Mt(i,a,"formMethod",g.formMethod,g,null),Mt(i,a,"formTarget",g.formTarget,g,null)):(Mt(i,a,"encType",g.encType,g,null),Mt(i,a,"method",g.method,g,null),Mt(i,a,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(c);break}d=no(""+d),i.setAttribute(c,d);break;case"onClick":d!=null&&(i.onclick=oi);break;case"onScroll":d!=null&&ft("scroll",i);break;case"onScrollEnd":d!=null&&ft("scrollend",i);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(n(61));if(c=d.__html,c!=null){if(g.children!=null)throw Error(n(60));i.innerHTML=c}}break;case"multiple":i.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":i.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){i.removeAttribute("xlink:href");break}c=no(""+d),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(c,""+d):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
12ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":d===!0?i.setAttribute(c,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(c,d):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?i.setAttribute(c,d):i.removeAttribute(c);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?i.removeAttribute(c):i.setAttribute(c,d);break;case"popover":ft("beforetoggle",i),ft("toggle",i),tc(i,"popover",d);break;case"xlinkActuate":Gi(i,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Gi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Gi(i,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Gi(i,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Gi(i,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Gi(i,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Gi(i,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Gi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Gi(i,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":tc(i,"is",d);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=o0.get(c)||c,tc(i,c,d))}}function Uv(i,a,c,d,g,v){switch(c){case"style":nc(i,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(n(61));if(c=d.__html,c!=null){if(g.children!=null)throw Error(n(60));i.innerHTML=c}}break;case"children":typeof d=="string"?Yo(i,d):(typeof d=="number"||typeof d=="bigint")&&Yo(i,""+d);break;case"onScroll":d!=null&&ft("scroll",i);break;case"onScrollEnd":d!=null&&ft("scrollend",i);break;case"onClick":d!=null&&(i.onclick=oi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gu.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),a=c.slice(2,g?c.length-7:void 0),v=i[un]||null,v=v!=null?v[c]:null,typeof v=="function"&&i.removeEventListener(a,v,g),typeof d=="function")){typeof v!="function"&&v!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(a,d,g);break e}c in i?i[c]=d:d===!0?i.setAttribute(c,""):tc(i,c,d)}}}function rn(i,a,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",i),ft("load",i);var d=!1,g=!1,v;for(v in c)if(c.hasOwnProperty(v)){var _=c[v];if(_!=null)switch(v){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:Mt(i,a,v,_,c,null)}}g&&Mt(i,a,"srcSet",c.srcSet,c,null),d&&Mt(i,a,"src",c.src,c,null);return;case"input":ft("invalid",i);var k=v=_=g=null,K=null,oe=null;for(d in c)if(c.hasOwnProperty(d)){var ge=c[d];if(ge!=null)switch(d){case"name":g=ge;break;case"type":_=ge;break;case"checked":K=ge;break;case"defaultChecked":oe=ge;break;case"value":v=ge;break;case"defaultValue":k=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(n(137,a));break;default:Mt(i,a,d,ge,c,null)}}Qu(i,v,k,K,oe,_,g,!1);return;case"select":ft("invalid",i),d=_=v=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":v=k;break;case"defaultValue":_=k;break;case"multiple":d=k;default:Mt(i,a,g,k,c,null)}a=v,c=_,i.multiple=!!d,a!=null?Wo(i,!!d,a,!1):c!=null&&Wo(i,!!d,c,!0);return;case"textarea":ft("invalid",i),v=g=d=null;for(_ in c)if(c.hasOwnProperty(_)&&(k=c[_],k!=null))switch(_){case"value":d=k;break;case"defaultValue":g=k;break;case"children":v=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(n(91));break;default:Mt(i,a,_,k,c,null)}Zu(i,d,g,v);return;case"option":for(K in c)c.hasOwnProperty(K)&&(d=c[K],d!=null)&&(K==="selected"?i.selected=d&&typeof d!="function"&&typeof d!="symbol":Mt(i,a,K,d,c,null));return;case"dialog":ft("beforetoggle",i),ft("toggle",i),ft("cancel",i),ft("close",i);break;case"iframe":case"object":ft("load",i);break;case"video":case"audio":for(d=0;d<kd.length;d++)ft(kd[d],i);break;case"image":ft("error",i),ft("load",i);break;case"details":ft("toggle",i);break;case"embed":case"source":case"link":ft("error",i),ft("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(oe in c)if(c.hasOwnProperty(oe)&&(d=c[oe],d!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:Mt(i,a,oe,d,c,null)}return;default:if(ed(a)){for(ge in c)c.hasOwnProperty(ge)&&(d=c[ge],d!==void 0&&Uv(i,a,ge,d,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(d=c[k],d!=null&&Mt(i,a,k,d,c,null))}function bz(i,a,c,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,_=null,k=null,K=null,oe=null,ge=null;for(fe in c){var xe=c[fe];if(c.hasOwnProperty(fe)&&xe!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":K=xe;default:d.hasOwnProperty(fe)||Mt(i,a,fe,null,d,xe)}}for(var ce in d){var fe=d[ce];if(xe=c[ce],d.hasOwnProperty(ce)&&(fe!=null||xe!=null))switch(ce){case"type":v=fe;break;case"name":g=fe;break;case"checked":oe=fe;break;case"defaultChecked":ge=fe;break;case"value":_=fe;break;case"defaultValue":k=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(n(137,a));break;default:fe!==xe&&Mt(i,a,ce,fe,d,xe)}}Xu(i,_,k,K,oe,ge,v,g);return;case"select":fe=_=k=ce=null;for(v in c)if(K=c[v],c.hasOwnProperty(v)&&K!=null)switch(v){case"value":break;case"multiple":fe=K;default:d.hasOwnProperty(v)||Mt(i,a,v,null,d,K)}for(g in d)if(v=d[g],K=c[g],d.hasOwnProperty(g)&&(v!=null||K!=null))switch(g){case"value":ce=v;break;case"defaultValue":k=v;break;case"multiple":_=v;default:v!==K&&Mt(i,a,g,v,d,K)}a=k,c=_,d=fe,ce!=null?Wo(i,!!c,ce,!1):!!d!=!!c&&(a!=null?Wo(i,!!c,a,!0):Wo(i,!!c,c?[]:"",!1));return;case"textarea":fe=ce=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!d.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Mt(i,a,k,null,d,g)}for(_ in d)if(g=d[_],v=c[_],d.hasOwnProperty(_)&&(g!=null||v!=null))switch(_){case"value":ce=g;break;case"defaultValue":fe=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(n(91));break;default:g!==v&&Mt(i,a,_,g,d,v)}kp(i,ce,fe);return;
vendor: 20,244 bytes, line 12
12case"option":for(var ze in c)ce=c[ze],c.hasOwnProperty(ze)&&ce!=null&&!d.hasOwnProperty(ze)&&(ze==="selected"?i.selected=!1:Mt(i,a,ze,null,d,ce));for(K in d)ce=d[K],fe=c[K],d.hasOwnProperty(K)&&ce!==fe&&(ce!=null||fe!=null)&&(K==="selected"?i.selected=ce&&typeof ce!="function"&&typeof ce!="symbol":Mt(i,a,K,ce,d,fe));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ye in c)ce=c[Ye],c.hasOwnProperty(Ye)&&ce!=null&&!d.hasOwnProperty(Ye)&&Mt(i,a,Ye,null,d,ce);for(oe in d)if(ce=d[oe],fe=c[oe],d.hasOwnProperty(oe)&&ce!==fe&&(ce!=null||fe!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(n(137,a));break;default:Mt(i,a,oe,ce,d,fe)}return;default:if(ed(a)){for(var jt in c)ce=c[jt],c.hasOwnProperty(jt)&&ce!==void 0&&!d.hasOwnProperty(jt)&&Uv(i,a,jt,void 0,d,ce);for(ge in d)ce=d[ge],fe=c[ge],!d.hasOwnProperty(ge)||ce===fe||ce===void 0&&fe===void 0||Uv(i,a,ge,ce,d,fe);return}}for(var ne in c)ce=c[ne],c.hasOwnProperty(ne)&&ce!=null&&!d.hasOwnProperty(ne)&&Mt(i,a,ne,null,d,ce);for(xe in d)ce=d[xe],fe=c[xe],!d.hasOwnProperty(xe)||ce===fe||ce==null&&fe==null||Mt(i,a,xe,ce,d,fe)}function sw(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vz(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,c=performance.getEntriesByType("resource"),d=0;d<c.length;d++){var g=c[d],v=g.transferSize,_=g.initiatorType,k=g.duration;if(v&&k&&sw(_)){for(_=0,k=g.responseEnd,d+=1;d<c.length;d++){var K=c[d],oe=K.startTime;if(oe>k)break;var ge=K.transferSize,xe=K.initiatorType;ge&&sw(xe)&&(K=K.responseEnd,_+=ge*(K<k?1:(k-oe)/(K-oe)))}if(--d,a+=8*(v+_)/(g.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Vv=null,Fv=null;function Ch(i){return i.nodeType===9?i:i.ownerDocument}function lw(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cw(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function $v(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Bv=null;function yz(){var i=window.event;return i&&i.type==="popstate"?i===Bv?!1:(Bv=i,!0):(Bv=null,!1)}var uw=typeof setTimeout=="function"?setTimeout:void 0,xz=typeof clearTimeout=="function"?clearTimeout:void 0,dw=typeof Promise=="function"?Promise:void 0,Sz=typeof queueMicrotask=="function"?queueMicrotask:typeof dw<"u"?function(i){return dw.resolve(null).then(i).catch(Ez)}:uw;function Ez(i){setTimeout(function(){throw i})}function ps(i){return i==="head"}function fw(i,a){var c=a,d=0;do{var g=c.nextSibling;if(i.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"||c==="/&"){if(d===0){i.removeChild(g),jc(a);return}d--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")d++;else if(c==="html")Dd(i.ownerDocument.documentElement);else if(c==="head"){c=i.ownerDocument.head,Dd(c);for(var v=c.firstChild;v;){var _=v.nextSibling,k=v.nodeName;v[Hs]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&v.rel.toLowerCase()==="stylesheet"||c.removeChild(v),v=_}}else c==="body"&&Dd(i.ownerDocument.body);c=g}while(c);jc(a)}function pw(i,a){var c=i;i=0;do{var d=c.nextSibling;if(c.nodeType===1?a?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(a?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),d&&d.nodeType===8)if(c=d.data,c==="/$"){if(i===0)break;i--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||i++;c=d}while(c)}function Hv(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Hv(c),Hu(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function Az(i,a,c,d){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(d){if(!i[Hs])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=qi(i.nextSibling),i===null)break}return null}function Rz(i,a,c){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=qi(i.nextSibling),i===null))return null;return i}function hw(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=qi(i.nextSibling),i===null))return null;return i}function Gv(i){return i.data==="$?"||i.data==="$~"}function Wv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function Cz(i,a){var c=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||c.readyState!=="loading")a();else{var d=function(){a(),c.removeEventListener("DOMContentLoaded",d)};c.addEventListener("DOMContentLoaded",d),i._reactRetry=d}}function qi(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var Yv=null;function mw(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="/$"||c==="/&"){if(a===0)return qi(i.nextSibling);a--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||a++}i=i.nextSibling}return null}function gw(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(a===0)return i;a--}else c!=="/$"&&c!=="/&"||a++}i=i.previousSibling}return null}function bw(i,a,c){switch(a=Ch(c),i){case"html":if(i=a.documentElement,!i)throw Error(n(452));return i;case"head":if(i=a.head,!i)throw Error(n(453));return i;case"body":if(i=a.body,!i)throw Error(n(454));return i;default:throw Error(n(451))}}function Dd(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);Hu(i)}var Pi=new Map,vw=new Set;function Th(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var xo=ie.d;ie.d={f:Tz,r:wz,D:_z,C:Oz,L:Iz,m:qz,X:kz,S:Pz,M:Nz};function Tz(){var i=xo.f(),a=bh();return i||a}function wz(i){var a=Ho(i);a!==null&&a.tag===5&&a.type==="form"?DC(a):xo.r(i)}var Nc=typeof document>"u"?null:document;function yw(i,a,c){var d=Nc;if(d&&typeof a=="string"&&a){var g=zn(a);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),vw.has(g)||(vw.add(g),i={rel:i,crossOrigin:c,href:a},d.querySelector(g)===null&&(a=d.createElement("link"),rn(a,"link",i),Tr(a),d.head.appendChild(a)))}}function _z(i){xo.D(i),yw("dns-prefetch",i,null)}function Oz(i,a){xo.C(i,a),yw("preconnect",i,a)}function Iz(i,a,c){xo.L(i,a,c);var d=Nc;if(d&&i&&a){var g='link[rel="preload"][as="'+zn(a)+'"]';a==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+zn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+zn(c.imageSizes)+'"]')):g+='[href="'+zn(i)+'"]';var v=g;switch(a){case"style":v=Dc(i);break;case"script":v=Mc(i)}Pi.has(v)||(i=x({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:i,as:a},c),Pi.set(v,i),d.querySelector(g)!==null||a==="style"&&d.querySelector(Md(v))||a==="script"&&d.querySelector(jd(v))||(a=d.createElement("link"),rn(a,"link",i),Tr(a),d.head.appendChild(a)))}}function qz(i,a){xo.m(i,a);var c=Nc;if(c&&i){var d=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+zn(d)+'"][href="'+zn(i)+'"]',v=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Mc(i)}if(!Pi.has(v)&&(i=x({rel:"modulepreload",href:i},a),Pi.set(v,i),c.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(jd(v)))return}d=c.createElement("link"),rn(d,"link",i),Tr(d),c.head.appendChild(d)}}}function Pz(i,a,c){xo.S(i,a,c);var d=Nc;if(d&&i){var g=Aa(d).hoistableStyles,v=Dc(i);a=a||"default";var _=g.get(v);if(!_){var k={loading:0,preload:null};if(_=d.querySelector(Md(v)))k.loading=5;else{i=x({rel:"stylesheet",href:i,"data-precedence":a},c),(c=Pi.get(v))&&Kv(i,c);var K=_=d.createElement("link");Tr(K),rn(K,"link",i),K._p=new Promise(function(oe,ge){K.onload=oe,K.onerror=ge}),K.addEventListener("load",function(){k.loading|=1}),K.addEventListener("error",function(){k.loading|=2}),k.loading|=4,wh(_,a,d)}_={type:"stylesheet",instance:_,count:1,state:k},g.set(v,_)}}}function kz(i,a){xo.X(i,a);var c=Nc;if(c&&i){var d=Aa(c).hoistableScripts,g=Mc(i),v=d.get(g);v||(v=c.querySelector(jd(g)),v||(i=x({src:i,async:!0},a),(a=Pi.get(g))&&Xv(i,a),v=c.createElement("script"),Tr(v),rn(v,"link",i),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function Nz(i,a){xo.M(i,a);var c=Nc;if(c&&i){var d=Aa(c).hoistableScripts,g=Mc(i),v=d.get(g);v||(v=c.querySelector(jd(g)),v||(i=x({src:i,async:!0,type:"module"},a),(a=Pi.get(g))&&Xv(i,a),v=c.createElement("script"),Tr(v),rn(v,"link",i),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function xw(i,a,c,d){var g=(g=Be.current)?Th(g):null;if(!g)throw Error(n(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(a=Dc(c.href),c=Aa(g).hoistableStyles,d=c.get(a),d||(d={type:"style",instance:null,count:0,state:null},c.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Dc(c.href);var v=Aa(g).hoistableStyles,_=v.get(i);if(_||(g=g.ownerDocument||g,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,_),(v=g.querySelector(Md(i)))&&!v._p&&(_.instance=v,_.state.loading=5),Pi.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Pi.set(i,c),v||Dz(g,i,c,_.state))),a&&d===null)throw Error(n(528,""));return _}if(a&&d!==null)throw Error(n(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Mc(c),c=Aa(g).hoistableScripts,d=c.get(a),d||(d={type:"script",instance:null,count:0,state:null},c.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,i))}}function Dc(i){return'href="'+zn(i)+'"'}function Md(i){return'link[rel="stylesheet"]['+i+"]"}function Sw(i){return x({},i,{"data-precedence":i.precedence,precedence:null})}function Dz(i,a,c,d){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=i.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),rn(a,"link",c),Tr(a),i.head.appendChild(a))}function Mc(i){return'[src="'+zn(i)+'"]'}function jd(i){return"script[async]"+i}function Ew(i,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var d=i.querySelector('style[data-href~="'+zn(c.href)+'"]');if(d)return a.instance=d,Tr(d),d;var g=x({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return d=(i.ownerDocument||i).createElement("style"),Tr(d),rn(d,"style",g),wh(d,c.precedence,i),a.instance=d;case"stylesheet":g=Dc(c.href);var v=i.querySelector(Md(g));if(v)return a.state.loading|=4,a.instance=v,Tr(v),v;d=Sw(c),(g=Pi.get(g))&&Kv(d,g),v=(i.ownerDocument||i).createElement("link"),Tr(v);var _=v;return _._p=new Promise(function(k,K){_.onload=k,_.onerror=K}),rn(v,"link",d),a.state.loading|=4,wh(v,c.precedence,i),a.instance=v;case"script":return v=Mc(c.src),(g=i.querySelector(jd(v)))?(a.instance=g,Tr(g),g):(d=c,(g=Pi.get(v))&&(d=x({},c),Xv(d,g)),i=i.ownerDocument||i,g=i.createElement("script"),Tr(g),rn(g,"link",d),i.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(n(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,wh(d,c.precedence,i));return a.instance}function wh(i,a,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,v=g,_=0;_<d.length;_++){var k=d[_];if(k.dataset.precedence===a)v=k;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(i,a.firstChild))}function Kv(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function Xv(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var _h=null;function Aw(i,a,c){if(_h===null){var d=new Map,g=_h=new Map;g.set(c,d)}else g=_h,d=g.get(c),d||(d=new Map,g.set(c,d));if(d.has(i))return d;for(d.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var v=c[g];if(!(v[Hs]||v[Vr]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(a)||"";_=i+_;var k=d.get(_);k?k.push(v):d.set(_,[v])}}return d}function Rw(i,a,c){i=i.ownerDocument||i,i.head.insertBefore(c,a==="title"?i.querySelector("head > title"):null)}function Mz(i,a,c){if(c===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Cw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function jz(i,a,c,d){if(c.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var g=Dc(d.href),v=a.querySelector(Md(g));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Oh.bind(i),a.then(i,i)),c.state.loading|=4,c.instance=v,Tr(v);return}v=a.ownerDocument||a,d=Sw(d),(g=Pi.get(g))&&Kv(d,g),v=v.createElement("link"),Tr(v);var _=v;_._p=new Promise(function(k,K){_.onload=k,_.onerror=K}),rn(v,"link",d),c.instance=v}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(c,a),(a=c.state.preload)&&(c.state.loading&3)===0&&(i.count++,c=Oh.bind(i),a.addEventListener("load",c),a.addEventListener("error",c))}}var Qv=0;function Lz(i,a){return i.stylesheets&&i.count===0&&qh(i,i.stylesheets),0<i.count||0<i.imgCount?function(c){var d=setTimeout(function(){if(i.stylesheets&&qh(i,i.stylesheets),i.unsuspend){var v=i.unsuspend;i.unsuspend=null,v()}},6e4+a);0<i.imgBytes&&Qv===0&&(Qv=62500*vz());var g=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&qh(i,i.stylesheets),i.unsuspend)){var v=i.unsuspend;i.unsuspend=null,v()}},(i.imgBytes>Qv?50:800)+a);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function Oh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ih=null;function qh(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ih=new Map,a.forEach(zz,i),Ih=null,Oh.call(i))}function zz(i,a){if(!(a.state.loading&4)){var c=Ih.get(i);if(c)var d=c.get(null);else{c=new Map,Ih.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var _=g[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(c.set(_.dataset.precedence,_),d=_)}d&&c.set(null,d)}g=a.instance,_=g.getAttribute("data-precedence"),v=c.get(_)||d,v===d&&c.set(null,g),c.set(_,g),this.count++,d=Oh.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),a.state.loading|=4}}var Ld={$$typeof:q,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function Uz(i,a,c,d,g,v,_,k,K){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.hiddenUpdates=Fu(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function Tw(i,a,c,d,g,v,_,k,K,oe,ge,xe){return i=new Uz(i,a,c,_,K,oe,ge,xe,k),a=1,v===!0&&(a|=24),v=li(3,null,null,a),i.current=v,v.stateNode=i,a=I0(),a.refCount++,i.pooledCache=a,a.refCount++,v.memoizedState={element:d,isDehydrated:c,cache:a},N0(v),i}function ww(i){return i?(i=pc,i):pc}function _w(i,a,c,d,g,v){g=ww(g),d.context===null?d.context=g:d.pendingContext=g,d=rs(a),d.payload={element:c},v=v===void 0?null:v,v!==null&&(d.callback=v),c=ns(i,d,a),c!==null&&(Bn(c,i,a),gd(c,i,a))}function Ow(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function Jv(i,a){Ow(i,a),(i=i.alternate)&&Ow(i,a)}function Iw(i){if(i.tag===13||i.tag===31){var a=Js(i,67108864);a!==null&&Bn(a,i,67108864),Jv(i,67108864)}}function qw(i){if(i.tag===13||i.tag===31){var a=pi();a=$u(a);var c=Js(i,a);c!==null&&Bn(c,i,a),Jv(i,a)}}var Ph=!0;function Vz(i,a,c,d){var g=Y.T;Y.T=null;var v=ie.p;try{ie.p=2,Zv(i,a,c,d)}finally{ie.p=v,Y.T=g}}function Fz(i,a,c,d){var g=Y.T;Y.T=null;var v=ie.p;try{ie.p=8,Zv(i,a,c,d)}finally{ie.p=v,Y.T=g}}function Zv(i,a,c,d){if(Ph){var g=ey(d);if(g===null)zv(i,a,d,kh,c),kw(i,d);else if(Bz(g,i,a,c,d))d.stopPropagation();else if(kw(i,d),a&4&&-1<$z.indexOf(i)){for(;g!==null;){var v=Ho(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=Sn(v.pendingLanes);if(_!==0){var k=v;for(k.pendingLanes|=2,k.entangledLanes|=2;_;){var K=1<<31-Cr(_);k.entanglements[1]|=K,_&=~K}_a(v),(Tt&6)===0&&(mh=j()+500,Pd(0))}}break;case 31:case 13:k=Js(v,2),k!==null&&Bn(k,v,2),bh(),Jv(v,2)}if(v=ey(d),v===null&&zv(i,a,d,kh,c),v===g)break;g=v}g!==null&&d.stopPropagation()}else zv(i,a,d,null,c)}}function ey(i){return i=Ys(i),ty(i)}var kh=null;function ty(i){if(kh=null,i=Sa(i),i!==null){var a=l(i);if(a===null)i=null;else{var c=a.tag;if(c===13){if(i=u(a),i!==null)return i;i=null}else if(c===31){if(i=f(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return kh=i,null}function Pw(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,411 bytes, line 12
12: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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(X()){case Z:return 2;case Ee:return 8;case Re:case Te:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var ry=!1,hs=null,ms=null,gs=null,zd=new Map,Ud=new Map,bs=[],$z="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".split(" ");function kw(i,a){switch(i){case"focusin":case"focusout":hs=null;break;case"dragenter":case"dragleave":ms=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":zd.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ud.delete(a.pointerId)}}function Vd(i,a,c,d,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:a,domEventName:c,eventSystemFlags:d,nativeEvent:v,targetContainers:[g]},a!==null&&(a=Ho(a),a!==null&&Iw(a)),i):(i.eventSystemFlags|=d,a=i.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),i)}function Bz(i,a,c,d,g){switch(a){case"focusin":return hs=Vd(hs,i,a,c,d,g),!0;case"dragenter":return ms=Vd(ms,i,a,c,d,g),!0;case"mouseover":return gs=Vd(gs,i,a,c,d,g),!0;case"pointerover":var v=g.pointerId;return zd.set(v,Vd(zd.get(v)||null,i,a,c,d,g)),!0;case"gotpointercapture":return v=g.pointerId,Ud.set(v,Vd(Ud.get(v)||null,i,a,c,d,g)),!0}return!1}function Nw(i){var a=Sa(i.target);if(a!==null){var c=l(a);if(c!==null){if(a=c.tag,a===13){if(a=u(c),a!==null){i.blockedOn=a,_p(i.priority,function(){qw(c)});return}}else if(a===31){if(a=f(c),a!==null){i.blockedOn=a,_p(i.priority,function(){qw(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Nh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=ey(i.nativeEvent);if(c===null){c=i.nativeEvent;var d=new c.constructor(c.type,c);Ws=d,c.target.dispatchEvent(d),Ws=null}else return a=Ho(c),a!==null&&Iw(a),i.blockedOn=c,!1;a.shift()}return!0}function Dw(i,a,c){Nh(i)&&c.delete(a)}function Hz(){ry=!1,hs!==null&&Nh(hs)&&(hs=null),ms!==null&&Nh(ms)&&(ms=null),gs!==null&&Nh(gs)&&(gs=null),zd.forEach(Dw),Ud.forEach(Dw)}function Dh(i,a){i.blockedOn===a&&(i.blockedOn=null,ry||(ry=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Hz)))}var Mh=null;function Mw(i){Mh!==i&&(Mh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Mh===i&&(Mh=null);for(var a=0;a<i.length;a+=3){var c=i[a],d=i[a+1],g=i[a+2];if(typeof d!="function"){if(ty(d||c)===null)continue;break}var v=Ho(c);v!==null&&(i.splice(a,3),a-=3,ev(v,{pending:!0,data:g,method:c.method,action:d},d,g))}}))}function jc(i){function a(K){return Dh(K,i)}hs!==null&&Dh(hs,i),ms!==null&&Dh(ms,i),gs!==null&&Dh(gs,i),zd.forEach(a),Ud.forEach(a);for(var c=0;c<bs.length;c++){var d=bs[c];d.blockedOn===i&&(d.blockedOn=null)}for(;0<bs.length&&(c=bs[0],c.blockedOn===null);)Nw(c),c.blockedOn===null&&bs.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(d=0;d<c.length;d+=3){var g=c[d],v=c[d+1],_=g[un]||null;if(typeof v=="function")_||Mw(c);else if(_){var k=null;if(v&&v.hasAttribute("formAction")){if(g=v,_=v[un]||null)k=_.formAction;else if(ty(g)!==null)continue}else k=_.action;typeof k=="function"?c[d+1]=k:(c.splice(d,3),d-=3),Mw(c)}}}
12function jw(){function i(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(_){return g=_})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),d||setTimeout(c,20)}function c(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(c,100),function(){d=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function ny(i){this._internalRoot=i}jh.prototype.render=ny.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));var c=a.current,d=pi();_w(c,d,i,a,null,null)},jh.prototype.unmount=ny.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;_w(i.current,2,null,i,null,null),bh(),a[ai]=null}};function jh(i){this._internalRoot=i}jh.prototype.unstable_scheduleHydration=function(i){if(i){var a=wp();i={blockedOn:null,target:i,priority:a};for(var c=0;c<bs.length&&a!==0&&a<bs[c].priority;c++);bs.splice(c,0,i),c===0&&Nw(i)}};var Lw=t.version;if(Lw!=="19.2.5")throw Error(n(527,Lw,"19.2.5"));ie.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=m(a),i=i!==null?b(i):null,i=i===null?null:i.stateNode,i};var Gz={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lh.isDisabled&&Lh.supportsFiber)try{Ht=Lh.inject(Gz),kt=Lh}catch{}}return ef.createRoot=function(i,a){if(!o(i))throw Error(n(299));var c=!1,d="",g=HC,v=GC,_=WC;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=Tw(i,1,!1,null,null,c,d,null,g,v,_,jw),i[ai]=a.current,Lv(i),new ny(a)},ef.hydrateRoot=function(i,a,c){if(!o(i))throw Error(n(299));var d=!1,g="",v=HC,_=GC,k=WC,K=null;return c!=null&&(c.unstable_strictMode===!0&&(d=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(v=c.onUncaughtError),c.onCaughtError!==void 0&&(_=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.formState!==void 0&&(K=c.formState)),a=Tw(i,1,!0,a,c??null,d,g,K,v,_,k,jw),a.context=ww(null),c=a.current,d=pi(),d=$u(d),g=rs(d),g.callback=null,ns(c,g,d),c=d,a.current.lanes=c,En(a,c),_a(a),i[ai]=a.current,Lv(i),new jh(a)},ef.version="19.2.5",ef}var Y4;function jQ(){if(Y4)return Py.exports;Y4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Py.exports=MQ(),Py.exports}var LQ=jQ();const Q6={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_GATEWAY:"https://apprabbit-api-gateway.fly.dev",VITE_ENVIRONMENT:"production",VITE_FACEBOOK_APP_ID:"892347021993401",VITE_FIREBASE_API_KEY:"AIzaSyCwOfv8xvzEbKDsEoxN2QKMb7BfgvfPT8c",VITE_FIREBASE_STORAGE_BUCKET:"mygameplan-4de84.appspot.com",VITE_FLUTTER_PROJECT_DISABLED:"false",VITE_FLUTTER_PROJECT_URL:"https://builder.apprabbit.co",VITE_GOOGLE_CLIENT_ID:"895034616546-fsmhj6s7boi3gss383i2e9m7okuv7uki.apps.googleusercontent.com",VITE_STRIPE_PUBLISH_KEY:"pk_live_51GzsAWCZrJ5XDKMLVQdLpXj6T2FJac1oE1XMh4Eh3RCdWJnGBNBolQClBvITPTRzxDgrpsRqbFCWcewtmEOg0LC100Pivv4iql",VITE_URL_ADDON_SUITE:"https://addon-suite.vercel.app",VITE_URL_LAUNCHBOARD:"https://launchboard.apprabbit.dev"},zQ=["VITE_ENVIRONMENT","VITE_API_GATEWAY","VITE_URL_LAUNCHBOARD","VITE_URL_ADDON_SUITE","VITE_FLUTTER_PROJECT_URL","VITE_FLUTTER_PROJECT_DISABLED","VITE_STRIPE_PUBLISH_KEY","VITE_GOOGLE_CLIENT_ID"],dx=zQ.filter(e=>!Q6[e]),Zc=Q6,UQ=Zc.VITE_ENVIRONMENT==="development",VQ=Zc.VITE_ENVIRONMENT==="heph",FQ={APP_ADMIN:"policy_019311a7d6a476c1b1f566f5837502c0",APP_COACH:"policy_019311a7d6a27322a78bae22d7b40c25"},Fi={ENV:Zc,isDevelopment:UQ,isHeph:VQ,ORIGIN:window.location.origin,FLUTTER:{FLUTTER_PROJECT_URL:Zc.VITE_FLUTTER_PROJECT_URL,FLUTTER_PROJECT_DISABLED:Zc.VITE_FLUTTER_PROJECT_DISABLED==="true"},API_GATEWAY:Zc.VITE_API_GATEWAY,DEFAULT_POLICY_ID_MAP:FQ};dx.length>0;dx.length>0&&(console.error(JSON.stringify(dx,null,2)),alert(`Environment variables are missing! 13Please check the console for more details....`));function We(e){if(e.if)return e.children}
13function K4(e){return new Date(e*1e3).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}function $Q(e){const[t,r]=S.useState(!1);if(t)return null;const n=e.window;if(typeof n.maintenanceStart!="number"||typeof n.maintenanceEnd!="number")return null;const o=`${K4(n.maintenanceStart)} â ${K4(n.maintenanceEnd)}`,l=n.message?n.message:"Scheduled maintenance is coming up.";return p.jsxs(Oe,{position:"fixed",top:"0",left:"0",right:"0",zIndex:9999,alignItems:"center",justifyContent:"center",gap:"12px",px:"16px",py:"10px",backgroundColor:"orange.500",color:"white",fontFamily:"Inter, sans-serif",boxShadow:"md",children:[p.jsxs(_e,{fontSize:"14px",fontWeight:"500",textAlign:"center",children:[l," Maintenance is scheduled for ",o,"."]}),p.jsx(wu,{size:"sm",color:"white","aria-label":"Dismiss maintenance notice",onClick:()=>r(!0)})]})}function U(e,t){const r={...t};return Object.keys(r).forEach(n=>r[n]=r[n].meta({contract:n,contractExport:e})),r}function na(e,t=[]){const r=e.fields,n=Object.fromEntries(Object.entries(r).map(([o,l])=>t.length===0||t.includes(o)?[o,l.optional()]:[o,l]));return e.shape(n)}var Dy,X4;function BQ(){if(X4)return Dy;X4=1;function e(I){this._maxSize=I,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(I){return this._values[I]},e.prototype.set=function(I,P){return this._size>=this._maxSize&&this.clear(),I in this._values||this._size++,this._values[I]=P};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,u=512,f=new e(u),h=new e(u),m=new e(u);Dy={Cache:e,split:x,normalizePath:b,setter:function(I){var P=b(I);return h.get(I)||h.set(I,function(D,O){for(var N=0,V=P.length,J=D;N<V-1;){var W=P[N];if(W==="__proto__"||W==="constructor"||W==="prototype")return D;J=J[P[N++]]}J[P[N]]=O})},getter:function(I,P){var q=b(I);return m.get(I)||m.set(I,function(O){for(var N=0,V=q.length;N<V;)if(O!=null||!P)O=O[q[N++]];else return;return O})},join:function(I){return I.reduce(function(P,q){return P+(T(q)||r.test(q)?"["+q+"]":(P?".":"")+q)},"")},forEach:function(I,P,q){E(Array.isArray(I)?I:x(I),P,q)}};function b(I){return f.get(I)||f.set(I,x(I).map(function(P){return P.replace(l,"$2")}))}function x(I){return I.match(t)||[""]}function E(I,P,q){var D=I.length,O,N,V,J;for(N=0;N<D;N++)O=I[N],O&&(w(O)&&(O='"'+O+'"'),J=T(O),V=!J&&/^\d+$/.test(O),P.call(q,O,J,V,N,I))}function T(I){return typeof I=="string"&&I&&["'",'"'].indexOf(I.charAt(0))!==-1}function C(I){return I.match(n)&&!I.match(r)}function R(I){return o.test(I)}function w(I){return!T(I)&&(C(I)||R(I))}return Dy}var Il=BQ(),My,Q4;function HQ(){if(Q4)return My;Q4=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['â](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['â](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=b=>b.match(e)||[],r=b=>b[0].toUpperCase()+b.slice(1),n=(b,x)=>t(b).join(x).toLowerCase(),o=b=>t(b).reduce((x,E)=>`${x}${x?E[0].toUpperCase()+E.slice(1).toLowerCase():E.toLowerCase()}`,"");return My={words:t,upperFirst:r,camelCase:o,pascalCase:b=>r(o(b)),snakeCase:b=>n(b,"_"),kebabCase:b=>n(b,"-"),sentenceCase:b=>r(n(b," ")),titleCase:b=>t(b).map(r).join(" ")},My}var jy=HQ(),em={exports:{}},J4;function GQ(){if(J4)return em.exports;J4=1,em.exports=function(o){return e(t(o),o)},em.exports.array=e;function e(o,l){var u=o.length,f=new Array(u),h={},m=u,b=r(l),x=n(o);for(l.forEach(function(T){if(!x.has(T[0])||!x.has(T[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});m--;)h[m]||E(o[m],m,new Set);return f;function E(T,C,R){if(R.has(T)){var w;try{w=", node was:"+JSON.stringify(T)}catch{w=""}throw new Error("Cyclic dependency"+w)}if(!x.has(T))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(T));if(!h[C]){h[C]=!0;var I=b.get(T)||new Set;if(I=Array.from(I),C=I.length){R.add(T);do{var P=I[--C];E(P,x.get(P),R)}while(C);R.delete(T)}f[--u]=T}}}function t(o){for(var l=new Set,u=0,f=o.length;u<f;u++){var h=o[u];l.add(h[0]),l.add(h[1])}return Array.from(l)}function r(o){for(var l=new Map,u=0,f=o.length;u<f;u++){var h=o[u];
13l.has(h[0])||l.set(h[0],new Set),l.has(h[1])||l.set(h[1],new Set),l.get(h[0]).add(h[1])}return l}function n(o){for(var l=new Map,u=0,f=o.length;u<f;u++)l.set(o[u],u);return l}return em.exports}var WQ=GQ();const YQ=Fl(WQ),KQ=Object.prototype.toString,XQ=Error.prototype.toString,QQ=RegExp.prototype.toString,JQ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",ZQ=/^Symbol\((.*)\)(.*)$/;function eJ(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Z4(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return eJ(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return JQ.call(e).replace(ZQ,"Symbol($1)");const n=KQ.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+XQ.call(e)+"]":n==="RegExp"?QQ.call(e):null}function Io(e,t){let r=Z4(e,t);return r!==null?r:JSON.stringify(e,function(n,o){let l=Z4(this[n],t);return l!==null?l:o},2)}function J6(e){return e==null?[]:[].concat(e)}let Z6,eN,tN,tJ=/\$\{\s*(\w+)\s*\}/g;Z6=Symbol.toStringTag;class eO{constructor(t,r,n,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Z6]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=o,this.errors=[],this.inner=[],J6(t).forEach(l=>{if(hn.isError(l)){this.errors.push(...l.errors);const u=l.inner.length?l.inner:[l];this.inner.push(...u)}else this.errors.push(l)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}eN=Symbol.hasInstance;tN=Symbol.toStringTag;class hn extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace(tJ,(o,l)=>Io(r[l])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,o,l){const u=new eO(t,r,n,o);if(l)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[tN]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,hn)}static[eN](t){return eO[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let qa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const o=n!=null&&n!==r?` (cast from the value \`${Io(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Io(r,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Io(r,!0)}\``+o}},Hn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},xs={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},fx={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},px={isValue:"${path} field must be ${value}"},Tm={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path}
13 object contains unknown properties: ${properties}"},wm={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},rJ={notType:e=>{const{path:t,value:r,spec:n}=e,o=n.types.length;if(Array.isArray(r)){if(r.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${r.length} for value: \`${Io(r,!0)}\``;if(r.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${r.length} for value: \`${Io(r,!0)}\``}return hn.formatError(qa.notType,e)}};Object.assign(Object.create(null),{mixed:qa,string:Hn,number:xs,date:fx,object:Tm,array:wm,boolean:px,tuple:rJ});const sb=e=>e&&e.__isYupSchema__;class cg{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:o,otherwise:l}=r,u=typeof n=="function"?n:(...f)=>f.every(h=>h===n);return new cg(t,(f,h)=>{var m;let b=u(...f)?o:l;return(m=b?.(h))!=null?m:h})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(l=>l.getValue(r?.value,r?.parent,r?.context)),o=this.fn(n,t,r);if(o===void 0||o===t)return t;if(!sb(o))throw new TypeError("conditions must return a schema object");return o.resolve(r)}}const tm={context:"$",value:"."};function nJ(e,t){return new Vs(e,t)}class Vs{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===tm.context,this.isValue=this.key[0]===tm.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?tm.context:this.isValue?tm.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Il.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let o=this.isContext?n:this.isValue?t:r;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,r){return this.getValue(t,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Vs.prototype.__isYupRef=!0;const sa=e=>e==null;function Fc(e){function t({value:r,path:n="",options:o,originalValue:l,schema:u},f,h){const{name:m,test:b,params:x,message:E,skipAbsent:T}=e;let{parent:C,context:R,abortEarly:w=u.spec.abortEarly,disableStackTrace:I=u.spec.disableStackTrace}=o;const P={value:r,parent:C,context:R};function q(B={}){const L=rN(Object.assign({value:r,originalValue:l,label:u.spec.label,path:B.path||n,spec:u.spec,disableStackTrace:B.disableStackTrace||I},x,B.params),P),z=new hn(hn.formatError(B.message||E,L),r,L.path,B.type||m,L.disableStackTrace);return z.params=L,z}const D=w?f:h;let O={path:n,parent:C,type:m,from:o.from,createError:q,resolve(B){return nN(B,P)},options:o,originalValue:l,schema:u};const N=B=>{hn.isError(B)?D(B):B?h(null):D(q())},V=B=>{hn.isError(B)?D(B):f(B)};if(T&&sa(r))return N(!0);let W;try{var G;if(W=b.call(O,r,O),typeof((G=W)==null?void 0:G.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(N,V)}}catch(B){V(B);return}N(W)}return t.OPTIONS=e,t}function rN(e,t){if(!e)return e;for(const r of Object.keys(e))e[r]=nN(e[r],t);return e}function nN(e,t){return Vs.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function iJ(e,t,r,n=r){let o,l,u;return t?(Il.forEach(t,(f,h,m)=>{let b=h?f.slice(1,f.length-1):f;e=e.resolve({context:n,parent:o,value:r});let x=e.type==="tuple",E=m?parseInt(b,10):0;if(e.innerType||x){if(x&&!m)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(r&&E>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${f}, in the path: ${t}. because there is no value at that index. `);
13o=r,r=r&&r[E],e=x?e.spec.types[E]:e.innerType}if(!m){if(!e.fields||!e.fields[b])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);o=r,r=r&&r[b],e=e.fields[b]}l=b,u=h?"["+f+"]":"."+f}),{schema:e,parent:o,parentPath:l}):{parent:o,parentPath:t,schema:e}}class ug extends Set{describe(){const t=[];for(const r of this.values())t.push(Vs.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new ug(this.values())}merge(t,r){const n=this.clone();return t.forEach(o=>n.add(o)),r.forEach(o=>n.delete(o)),n}}function eu(e,t=new Map){if(sb(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=eu(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,o]of e.entries())r.set(n,eu(o,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(eu(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,o]of Object.entries(e))r[n]=eu(o,t)}else throw Error(`Unable to clone ${e}`);return r}function aJ(e){if(!(e!=null&&e.length))return;const t=[];let r="",n=!1,o=!1;for(let l=0;l<e.length;l++){const u=e[l];if(u==="["&&!o){r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0;continue}if(u==="]"&&!o){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1;continue}if(u==='"'){o=!o;continue}if(u==="."&&!n&&!o){r&&(t.push(r),r="");continue}r+=u}return r&&t.push(...r.split(".").filter(Boolean)),t}function oJ(e,t){const r=t?`${t}.${e.path}`:e.path;return e.errors.map(n=>({message:n,path:aJ(r)}))}function iN(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return oJ(e,t);const n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(o=>iN(o,n))}class Si{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ug,this._blacklist=new ug,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(qa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=eu(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const o=Object.assign({},r.spec,n.spec);return n.spec=o,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(l=>{t.tests.forEach(u=>{l.test(u.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((o,l)=>l.resolve(o,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,o,l;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(l=t.disableStackTrace)!=null?l:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({},r,{value:t})),o=r.assert==="ignore-optionality",l=n._cast(t,r);
13if(r.assert!==!1&&!n.isType(l)){if(o&&sa(l))return l;let u=Io(t),f=Io(l);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". 14 15attempted value: ${u} 16`+(f!==u?`result of cast: ${f}`:""))}return l}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((o,l)=>l.call(this,o,t,this,r),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,o){let{path:l,originalValue:u=t,strict:f=this.spec.strict}=r,h=t;f||(h=this._cast(h,Object.assign({assert:!1},r)));let m=[];for(let b of Object.values(this.internalTests))b&&m.push(b);this.runTests({path:l,value:h,originalValue:u,options:r,tests:m},n,b=>{if(b.length)return o(b,h);this.runTests({path:l,value:h,originalValue:u,options:r,tests:this.tests},n,o)})}runTests(t,r,n){let o=!1,{tests:l,value:u,originalValue:f,path:h,options:m}=t,b=R=>{o||(o=!0,r(R,u))},x=R=>{o||(o=!0,n(R,u))},E=l.length,T=[];if(!E)return x([]);let C={value:u,originalValue:f,path:h,options:m,schema:this};for(let R=0;R<l.length;R++){const w=l[R];w(C,b,function(P){P&&(Array.isArray(P)?T.push(...P):T.push(P)),--E<=0&&x(T)})}}asNestedTest({key:t,index:r,parent:n,parentPath:o,originalParent:l,options:u}){const f=t??r;if(f==null)throw TypeError("Must include `key` or `index` for nested validations");const h=typeof f=="number";let m=n[f];const b=Object.assign({},u,{strict:!0,parent:n,value:m,originalValue:l[f],key:void 0,[h?"index":"key"]:f,path:h||f.includes(".")?`${o||""}[${h?f:`"${f}"`}]`:(o?`${o}.`:"")+t});return(x,E,T)=>this.resolve(b)._validate(m,b,E,T)}validate(t,r){var n;let o=this.resolve(Object.assign({},r,{value:t})),l=(n=r?.disableStackTrace)!=null?n:o.spec.disableStackTrace;return new Promise((u,f)=>o._validate(t,r,(h,m)=>{hn.isError(h)&&(h.value=m),f(h)},(h,m)=>{h.length?f(new hn(h,m,void 0,void 0,l)):u(m)}))}validateSync(t,r){var n;let o=this.resolve(Object.assign({},r,{value:t})),l,u=(n=r?.disableStackTrace)!=null?n:o.spec.disableStackTrace;return o._validate(t,Object.assign({},r,{sync:!0}),(f,h)=>{throw hn.isError(f)&&(f.value=h),f},(f,h)=>{if(f.length)throw new hn(f,t,void 0,void 0,u);l=h}),l}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(hn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(hn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):eu(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Fc({message:r,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Fc({message:r,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=qa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qa.notNull){return this.nullability(!1,t)}required(t=qa.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=qa.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),o=Fc(r),l=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(u=>!(u.OPTIONS.name===r.name&&(l||u.OPTIONS.test===o.OPTIONS.test))),n.tests.push(o),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),o=J6(t).map(l=>new Vs(l));return o.forEach(l=>{l.isSibling&&n.deps.push(l.key)}),n.conditions.push(typeof r=="function"?new cg(o,r):cg.fromOptions(o,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Fc({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=qa.oneOf){let n=this.clone();return t.forEach(o=>{n._whitelist.add(o),n._blacklist.delete(o)}),n.internalTests.whiteList=Fc({message:r,name:"oneOf",skipAbsent:!0,test(o){let l=this.schema._whitelist,u=l.resolveAll(this.resolve);return u.includes(o)?!0:this.createError({params:{values:Array.from(l).join(", "),resolved:u}})}}),n}notOneOf(t,r=qa.notOneOf){let n=this.clone();return t.forEach(o=>{n._blacklist.add(o),n._whitelist.delete(o)}),n.internalTests.blacklist=Fc({message:r,name:"notOneOf",test(o){let l=this.schema._blacklist,u=l.resolveAll(this.resolve);return u.includes(o)?this.createError({params:{values:Array.from(l).join(", "),resolved:u}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:o,optional:l,nullable:u}=r.spec;return{meta:o,label:n,optional:l,nullable:u,default:r.getDefault(t),t
16ype:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((h,m,b)=>b.findIndex(x=>x.OPTIONS.name===h.OPTIONS.name)===m).map(h=>{const m=h.OPTIONS.params&&t?rN(Object.assign({},h.OPTIONS.params),t):h.OPTIONS.params;return{name:h.OPTIONS.name,params:m}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(n){try{return{value:await t.validate(n,{abortEarly:!1})}}catch(o){if(o instanceof hn)return{issues:iN(o)};throw o}}}}}Si.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Si.prototype[`${e}At`]=function(t,r,n={}){const{parent:o,parentPath:l,schema:u}=iJ(this,t,r,n.context);return u[e](o&&o[l],Object.assign({},n,{parent:o,path:t}))};for(const e of["equals","is"])Si.prototype[e]=Si.prototype.oneOf;for(const e of["not","nope"])Si.prototype[e]=Si.prototype.notOneOf;function $(){return new pS}class pS extends Si{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r)=>{if(this.spec.coerce&&!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=px.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return sa(r)||r===!0}})}isFalse(t=px.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return sa(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}$.prototype=pS.prototype;const sJ=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lJ(e){const t=hx(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function hx(e){var t,r;const n=sJ.exec(e);return n?{year:Ao(n[1]),month:Ao(n[2],1)-1,day:Ao(n[3],1),hour:Ao(n[4]),minute:Ao(n[5]),second:Ao(n[6]),millisecond:n[7]?Ao(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:Ao(n[10]),minuteOffset:Ao(n[11])}:null}function Ao(e,t=0){return Number(e)||t}let cJ=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uJ=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dJ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fJ="^\\d{4}-\\d{2}-\\d{2}",pJ="\\d{2}:\\d{2}:\\d{2}",hJ="(([+-]\\d{2}(:?\\d{2})?)|Z)",mJ=new RegExp(`${fJ}T${pJ}(\\.\\d+)?${hJ}$`),gJ=e=>sa(e)||e===e.trim(),bJ={}.toString();function s(){return new hS}class hS extends Si{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r)=>{if(!this.spec.coerce||this.isType(t)||Array.isArray(t))return t;const n=t!=null&&t.toString?t.toString():t;return n===bJ?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||qa.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Hn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Hn.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Hn.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,o,l;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:o,name:l}=r:o=r),this.test({name:l||"matches",message:o||Hn.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&n||u.search(t)!==-1})}email(t=Hn.email){return this.matches(cJ,{name:"email",message:t,excludeEmptyString:!0})}url(t=Hn.url){return this.matches(uJ,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Hn.uuid){return this.matches(dJ,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,o;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:o=void 0}=t:r=t),this.matches(mJ,{name:"datetime",message:r||Hn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Hn.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:l=>{if(!l||n)return!0;const u=hx(l);return u?!!u.z:!1}}).test({name:"datetime_precision",message:r||Hn.datetime_precision,params:{precision:o},skipAbsent:!0,test:l=>{if(!l||o==null)return!0;const u=hx(l);return u?u.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Hn.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:gJ})}lowercase(t=Hn.lowercase){return this.transform(r=>sa(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>sa(r)||r===r.toLowerCase()})}uppercase(t=Hn.uppercase){return this.transform(r=>sa(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>sa(r)||r===r.toUpperCase()})}}s.prototype=hS.prototype;let vJ=e=>e!=+e;function A(){return new mS}class mS extends Si{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!vJ(t)}}),this.withMutation(()=>{this.transform((t,r)=>{if(!this.spec.coerce)return t;let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return this.isType(n)||n===null?n:parseFloat(n)})})}min(t,r=xs.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=xs.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=xs.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=xs.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=xs.positive){return this.moreThan(0,t)}negative(t=xs.negative){return this.lessThan(0,t)}integer(t=xs.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>sa(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for roun
16d() are: "+n.join(", "));return this.transform(o=>sa(o)?o:Math[t](o))}}A.prototype=mS.prototype;let aN=new Date(""),yJ=e=>Object.prototype.toString.call(e)==="[object Date]";function Va(){return new ap}class ap extends Si{constructor(){super({type:"date",check(t){return yJ(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r)=>!this.spec.coerce||this.isType(t)||t===null?t:(t=lJ(t),isNaN(t)?ap.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Vs.isRef(t))n=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=o}return n}min(t,r=fx.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(n)}})}max(t,r=fx.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(n)}})}}ap.INVALID_DATE=aN;Va.prototype=ap.prototype;Va.INVALID_DATE=aN;function xJ(e,t=[]){let r=[],n=new Set,o=new Set(t.map(([u,f])=>`${u}-${f}`));function l(u,f){let h=Il.split(u)[0];n.add(h),o.has(`${f}-${h}`)||r.push([f,h])}for(const u of Object.keys(e)){let f=e[u];n.add(u),Vs.isRef(f)&&f.isSibling?l(f.path,u):sb(f)&&"deps"in f&&f.deps.forEach(h=>l(h,u))}return YQ.array(Array.from(n),r).reverse()}function tO(e,t){let r=1/0;return e.some((n,o)=>{var l;if((l=t.path)!=null&&l.includes(n))return r=o,!0}),r}function oN(e){return(t,r)=>tO(e,t)-tO(e,r)}const sN=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function _m(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=_m(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=_m(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(_m)}):"optional"in e?e.optional():e}const SJ=(e,t)=>{const r=[...Il.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),o=Il.getter(Il.join(r),!0)(e);return!!(o&&n in o)};let rO=e=>Object.prototype.toString.call(e)==="[object Object]";function nO(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const EJ=oN([]);function y(e){return new lN(e)}class lN extends Si{constructor(t){super({type:"object",check(r){return rO(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=EJ,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let o=super._cast(t,r);if(o===void 0)return this.getDefault(r);if(!this._typeCheck(o))return o;let l=this.fields,u=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,f=[].concat(this._nodes,Object.keys(o).filter(x=>!this._nodes.includes(x))),h={},m=Object.assign({},r,{parent:h,__validating:r.__validating||!1}),b=!1;for(const x of f){let E=l[x],T=x in o,C=o[x];if(E){let R;m.path=(r.path?`${r.path}.`:"")+x,E=E.resolve({value:C,context:r.context,parent:h});let w=E instanceof Si?E.spec:void 0,I=w?.strict;if(w!=null&&w.strip){b=b||x in o;continue}R=!r.__validating||!I?E.cast(C,m):C,R!==void 0&&(h[x]=R)}else T&&!u&&(h[x]=C);(T!==x in h||h[x]!==C)&&(b=!0)}return b?h:o}_validate(t,r={},n,o){let{from:l=[],originalValue:u=t,recursive:f=this.spec.recursive}=r;r.from=[{schema:this,value:u},...l],r.__validating=!0,r.originalValue=u,super._validate(t,r,n,(h,m)=>{if(!f||!rO(m)){o(h,m);return}u=u||m;let b=[];for(let x of this._nodes){let E=this.fields[x];!E||Vs.isRef(E)||b.push(E.asNestedTest({options:r,key:x,parent:m,parentPath:r.path,originalParent:u}))}this.runTests({tests:b,value:m,originalValue:u,options:r},n,x=>{o(x.sort(this._sortErrors).concat(h),m)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[o,l]of Object.entries(this.fields)){const u=n[o];n[o]=u===void 0?l:u}return r.withMutation(o=>o.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};
16return this._nodes.forEach(n=>{var o;const l=this.fields[n];let u=t;(o=u)!=null&&o.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[n]})),r[n]=l&&"getDefault"in l?l.getDefault(u):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xJ(t,r),n._sortErrors=oN(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let o=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),o=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),o)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return _m(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,o])=>t.includes(n)&&t.includes(o)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let o=Il.getter(t,!0);return this.transform(l=>{if(!l)return l;let u=l;return SJ(l,t)&&(u=Object.assign({},l),n||delete u[t],u[r]=o(l)),u})}json(){return this.transform(sN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Tm.exact,test(r){if(r==null)return!0;const n=nO(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Tm.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(o){if(o==null)return!0;const l=nO(this.schema,o);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Tm.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const o of Object.keys(r))n[t(o)]=r[o];return n})}camelCase(){return this.transformKeys(jy.camelCase)}snakeCase(){return this.transformKeys(jy.snakeCase)}constantCase(){return this.transformKeys(t=>jy.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[l,u]of Object.entries(r.fields)){var o;let f=t;(o=f)!=null&&o.value&&(f=Object.assign({},f,{parent:f.value,value:f.value[l]})),n.fields[l]=u.describe(f)}return n}}y.prototype=lN.prototype;function M(e){return new cN(e)}class cN extends Si{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let o=!1;const l=n.map((u,f)=>{const h=this.innerType.cast(u,Object.assign({},r,{path:`${r.path||""}[${f}]`,parent:n,originalValue:u,value:u,index:f}));return h!==u&&(o=!0),h});return o?l:n}_validate(t,r={},n,o){var l;let u=this.innerType,f=(l=r.recursive)!=null?l:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(h,m)=>{var b;if(!f||!u||!this._typeCheck(m)){o(h,m);return}let x=new Array(m.length);for(let T=0;T<m.length;T++){var E;x[T]=u.asNestedTest({options:r,index:T,parent:m,parentPath:r.path,originalParent:(E=r.originalValue)!=null?E:t})}this.runTests({value:m,tests:x,originalValue:(b=r.originalValue)!=null?b:t,options:r},n,T=>o(T.concat(h),m))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(sN)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!sb(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Io(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=wm.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||wm.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||wm.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,o,l)=>!t(n,o,l):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[0]})),n.innerType=r.innerType.describe(l)}return n}}M.prototype=cN.prototype;const gS="ApiConfigProvider",iO=y({apiGateways:M(s().required()).required(),ttl:A().integer().required(),disableGateways:$().required()}),AJ=U(`${gS}
16ContractRes`,{Config:iO,ProviderConfig:y({config:iO.required(),provider:s().required(),dynamicRequest:$().required(),dynamicConfig:$().required()})}),RJ=U(`${gS}ContractReq`,{});U(`${gS}Contract`,{...AJ,...RJ});const bS="Maintenance",CJ=U(`${bS}ContractRes`,{Window:y({maintenanceStart:A().integer().nullable(),maintenanceEnd:A().integer().nullable(),message:s().optional()})}),TJ=U(`${bS}ContractReq`,{}),wJ=U(`${bS}Contract`,{...CJ,...TJ}),Qn={MANAGED:"MANAGED",STRIPE_PURCHASED:"STRIPE_PURCHASED",STRIPE_RECURRING:"STRIPE_RECURRING"},mx={TERMS_OF_SERVICE:"TERMS_OF_SERVICE",PRIVACY_POLICY:"PRIVACY_POLICY"},uu={BUILDING:"BUILDING",READY:"READY",IN_REVIEW:"IN_REVIEW",REJECTED:"REJECTED",LIVE:"LIVE"},vS={BACKGROUND_AUDIO:"BACKGROUND_AUDIO",MIGRATE_FIREBASE_AUTH:"MIGRATE_FIREBASE_AUTH",LEGACY_V1:"LEGACY_V1",DISABLE_HEALTHKIT:"DISABLE_HEALTHKIT"},yt={APPLE_APPSTORE:"APPLE_APPSTORE",GOOGLE_PLAYSTORE:"GOOGLE_PLAYSTORE"},uN={PENDING:"PENDING",DOWNLOADING:"DOWNLOADING",UPLOADING:"UPLOADING",SUCCESS:"SUCCESS",FAILED:"FAILED"},_J={QUEUED:"QUEUED",RUNNING:"RUNNING",CANCELED:"CANCELED",FAILED:"FAILED",SUCCESS:"SUCCESS",ORPHANED:"ORPHANED"},dN={QUEUED:"QUEUED",REQUESTED:"REQUESTED",RUNNING:"RUNNING",CANCELED:"CANCELED",FAILED:"FAILED",SUCCESS:"SUCCESS",ORPHANED:"ORPHANED"},dg={DONE_FOR_YOU:"DONE_FOR_YOU",BUILD_IT_YOURSELF:"BUILD_IT_YOURSELF"},gx={CORE:"CORE",LIVESTREAMING:"LIVESTREAMING",BARCODE_SCANNING:"BARCODE_SCANNING",MOBILE_DISTRIBUTION:"MOBILE_DISTRIBUTION",AI_ESSENTIALS:"AI_ESSENTIALS"},Os={ACTIVE:"ACTIVE",TRIALING:"TRIALING",CANCELED:"CANCELED",PAST_DUE:"PAST_DUE",UNPAID:"UNPAID",FREE:"FREE"},OJ={CHECKOUT_INCOMPLETE:"CHECKOUT_INCOMPLETE",AUTHN_EXISTS:"AUTHN_EXISTS",AUTHN_NEW:"AUTHN_NEW"},IJ={BUILT:"BUILT",STAGED:"STAGED",PLATFORM_PROCESSING:"PLATFORM_PROCESSING",RELEASED:"RELEASED"},aO={FLEXIBLE:"FLEXIBLE",LIMITED:"LIMITED"},qJ={SINGLE:"SINGLE",ANNUALLY:"ANNUALLY",MONTHLY:"MONTHLY",WEEKLY:"WEEKLY"},PJ={GRANT:"GRANT",REVOKE:"REVOKE"},yS={DIRECT:"DIRECT",GROUP:"GROUP"},kJ={DRAFT:"DRAFT",LIVE:"LIVE",ERROR:"ERROR",PAUSED:"PAUSED"},fN={QUEUED:"QUEUED",WAITING:"WAITING",RUNNING:"RUNNING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",SKIPPED:"SKIPPED",HALTED:"HALTED"};var pN=(e=>(e.IMMEDIATELY="immediately",e.NEXT_SUNDAY="nextSunday",e.NEXT_MONDAY="nextMonday",e))(pN||{}),xS=(e=>(e.EXERCISE="EXERCISE",e.TEXT="TEXT",e.REST="REST",e))(xS||{}),hN=(e=>(e.ApiVersion="apprabbit-api-version",e))(hN||{}),Wl=(e=>(e.v2025_06_01="2025-06-01",e.v2026_01_01="2026-01-01",e.v2026_06_01="2026-06-01",e))(Wl||{}),SS=(e=>(e.AUTH_METHOD_AUTHN="AUTH_METHOD_AUTHN",e.AUTHN_ACCESS_MARKERS="AUTHN_ACCESS_MARKERS",e.COMMERCE_STOREFRONT="COMMERCE_STOREFRONT",e.LAYOUT_ROWS="LAYOUT_ROWS",e.LAYOUT_CENTER_NAV="LAYOUT_CENTER_NAV",e.LAYOUT_TITLE_NAV="LAYOUT_TITLE_NAV",e.NUTRITION_CORE="NUTRITION_CORE",e.NUTRITION_BARCODE_SCANNING="NUTRITION_BARCODE_SCANNING",e.NUTRITION_RECIPE_SEARCH="NUTRITION_RECIPE_SEARCH",e.NUTRITION_REPORTING_MACROS="NUTRITION_REPORTING_MACROS",e.NUTRITION_FOOD_JOURNAL="NUTRITION_FOOD_JOURNAL",e.FITNESS_TRACKS="FITNESS_TRACKS",e.FITNESS_ADVANCED_CHARTS="FITNESS_ADVANCED_CHARTS",e.FITNESS_REP_RANGES="FITNESS_REP_RANGES",e.FITNESS_SUPERSET_PAGE="FITNESS_SUPERSET_PAGE",e.FITNESS_SCHEDULED_WORKOUTS="FITNESS_SCHEDULED_WORKOUTS",e.FITNESS_WORKOUTS="FITNESS_WORKOUTS",e.FITNESS_VIEW_ALL_NOTES="FITNESS_VIEW_ALL_NOTES",e.FITNESS_MORE_EXERCISE_FIELDS="FITNESS_MORE_EXERCISE_FIELDS",e.FITNESS_CONDENSED_WORKOUT_VIEW="FITNESS_CONDENSED_WORKOUT_VIEW",e.MESSAGING_PREVENT_INITIATING="MESSAGING_PREVENT_INITIATING",e.CLIENT_METRICS="CLIENT_METRICS",e.CLIENT_HABITS="CLIENT_HABITS",e.MEDIA_CLOUDFLARE_VIDEO_UPLOAD="MEDIA_CLOUDFLARE_VIDEO_UPLOAD",e.CLOUDFLARE_FILE_HOSTING="CLOUDFLARE_FILE_HOSTING",e.EXPERIMENTAL_SELF_SIGNUP="EXPERIMENTAL_SELF_SIGNUP",e.EXPERIMENT_FREE_AI_USAGE="EXPERIMENT_FREE_AI_USAGE",e.COACHING="COACHING",e.LIVE_STREAMING="LIVE_STREAMING",e.FORM_BUILDER="FORM_BUILDER",e.COMMUNITY="COMMUNITY",e.USER_PROFILE="USER_PROFILE",e.BOOKMARKS="BOOKMARKS",e.NEW_CLIENT_DASHBOARD="NEW_CLIENT_DASHBOARD",e.DRIP_FEED_SCHEDULED_PROGRAMS="DRIP_FEED_SCHEDULED_PROGRAMS",e.ADMIN_ONLY_MESSAGING="ADMIN_ONLY_MESSAGING",e.PROGRAM_NAVIGATION="PROGRAM_NAVIGATION",e.MIGRATE_FITNESS="MIGRATE_FITNESS",e.MIGRATE_NUTRITION="MIGRATE_NUTRITION",e.MIGRATE_FORMS="MIGRATE_FORMS",e.MIGRATE_MESSAGING="MIGRATE_MESSAGING",e.MIGRATE_USER="MIGRATE_USER",e.MIGRATE_FOL
16DER="MIGRATE_FOLDER",e.MIGRATE_COURSES="MIGRATE_COURSES",e))(SS||{}),_u=(e=>(e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.AUDIO="AUDIO",e.PDF="PDF",e.DOC="DOC",e.OTHER="OTHER",e))(_u||{}),op=(e=>(e.PERSISTENT="PERSISTENT",e.USER_DATA="USER_DATA",e.EPHEMERAL="EPHEMERAL",e.CACHE="CACHE",e.STAGING="STAGING",e.ARCHIVE="ARCHIVE",e))(op||{}),sp=(e=>(e.PUBLIC="PUBLIC",e.APP_MEMBERS="APP_MEMBERS",e.DELEGATED="DELEGATED",e))(sp||{}),fg=(e=>(e.PENDING_UPLOAD="PENDING_UPLOAD",e.UPLOADED="UPLOADED",e.PROCESSING="PROCESSING",e.READY="READY",e.ERROR="ERROR",e))(fg||{}),mN=(e=>(e.CLOUDFLARE_STREAM="CLOUDFLARE_STREAM",e))(mN||{}),gN=(e=>(e.IMAGE_WORKER="IMAGE_WORKER",e.STREAM="STREAM",e.R2="R2",e))(gN||{}),mf=(e=>(e.V1_INITIALIZED_GRANT="V1_INITIALIZED_GRANT",e.V1_MANAGED_GRANT="V1_MANAGED_GRANT",e.V1_STRIPE_SUBSCRIPTION_CREATED="V1_STRIPE_SUBSCRIPTION_CREATED",e.V1_STRIPE_PURCHASED_PRODUCT="V1_STRIPE_PURCHASED_PRODUCT",e))(mf||{}),gf=(e=>(e.REVOKE_ALL_ACCESS="REVOKE_ALL_ACCESS",e.V1_MANAGED_REVOKE="V1_MANAGED_REVOKE",e.V1_MANAGED_GRANT_EXPIRED="V1_MANAGED_GRANT_EXPIRED",e.V1_STRIPE_SUBSCRIPTION_CANCELED="V1_STRIPE_SUBSCRIPTION_CANCELED",e))(gf||{}),Ou=(e=>(e.ROOT="root",e.CREATE="create",e.READ="read",e.WRITE="write",e.DELETE="delete",e.ANY="*",e))(Ou||{}),Iu=(e=>(e.SELF="self",e.OTHERS="others",e.ALL="all",e))(Iu||{});const NJ=e=>Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Object.fromEntries(Object.entries(Ou).map(([n,o])=>[n,Object.fromEntries(Object.entries(Iu).map(([l,u])=>[l,`${r}.${o}.${u}`]))]))])),DJ=e=>Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Object.fromEntries(Object.entries(Ou).map(([n,o])=>[n,Object.fromEntries(Object.entries(Iu).map(([l,u])=>[l,new ra(`${r}.${o}.${u}`)]))]))])),MJ=e=>Object.values(e).flatMap(t=>Object.values(Ou).flatMap(r=>Object.values(Iu).map(n=>`${t}.${r}.${n}`))),jJ=Error(`Invalid policy! Valid options are ${Object.values(Ou).join(", ")}`),LJ=Error(`Invalid policyTarget! Valid options are ${Object.values(Iu).join(", ")}`);class ra{static parsePolicy(t){const r=t.split(".");if(r.length!==3)throw Error("Invalid resource policy!");if(!Object.values(Ou).includes(r[1]))throw jJ;if(!Object.values(Iu).includes(r[2]))throw LJ;return[r[0],r[1],r[2]]}static parseResourcePolicies(t){return(Array.isArray(t)?t:[t]).map(function(o){return o instanceof ra?o:new ra(o)})}static multiAuthorizedTo(t,r,n="any"){const o=ra.parseResourcePolicies(t),l=ra.parseResourcePolicies(r),u=n==="all",f=n==="any";if(l.length===0)return!0;for(const h of o)for(const m of l){const b=h.authorizedTo(m);if(!b&&u)return!1;if(b&&f)return!0}return u}static canDo=this.multiAuthorizedTo;static canDoAny(t,r){return ra.canDo(t,r,"any")}static canDoAll(t,r){return ra.canDo(t,r,"all")}constructor(t,r,n){[this.resource,this.policy,this.target]=r&&n?[t,r,n]:ra.parsePolicy(t)}toString(){return`${this.resource}.${this.policy}.${this.target}`}policyAuthorizedTo(t){return this.resource!==t.resource?!1:this.policy==="root"||t.policy==="*"||this.policy===t.policy||this.policy==="write"&&t.policy==="read"?!0:this.policy==="create"?["write","read"].includes(t.policy):this.policy==="delete"?["write","read"].includes(t.policy):!1}policyTargetAuthorizedTo(t){return this.target==="all"||this.target===t.target}authorizedTo(t){return this.policyAuthorizedTo(t)?this.policyTargetAuthorizedTo(t):!1}static asStrings(t){return t.map(r=>r.toString())}static multiple(...t){return ra.parseResourcePolicies(t)}}var bN=(e=>(e.IAM_Root="iam-root",e.IAM_OrgAdmin="iam-org-admin",e.IAM_AppAdmin="iam-app-admin",e.IAM_AppCoach="iam-app-coach",e.IAM_AppUser="iam-app-user",e))(bN||{}),vN=(e=>(e.ManageOrgAdmin="manage-org-admin",e.ManageAppAdmin="manage-app-admin",e.ManageAppCoach="manage-app-coach",e.ManageAppUser="manage-app-user",e))(vN||{}),yN=(e=>(e.QueryOrgs="query-orgs",e.DistributeApps="distribute-apps",e.StripeMetrics="stripe-metrics",e.QueryApps="query-apps",e.QueryMarketingLeads="query-marketing-leads",e.SpoofAuthn="spoof-authn",e))(yN||{}),xN=(e=>(e.OrgVerification="org-verification",e.OrgSettings="org-settings",e))(xN||{}),SN=(e=>(e.AppBuilder="app-builder",e.AppIntegrationSettings="app-zapier-settings",e.AppStripeSettings="app-stripe-settings",e.AppSubscriptionSettings="app-subscription-settings",e.AppPricingPlans="app-pricing-plans",e.AppDistributionSettings="app-distribution-settings",e.AppBrandingSettings="app-branding-settings",e))(SN||{}),EN=(e=>(e.AppContent="app-content",e.AppStreams="app-streams",e.AppCommunity="app-community",e.AppCommunityGroup="app-community-group",e.AppForms="app-forms",e.AppMessaging="app-messaging",e))(EN||{});const ES={...bN,...vN,...yN,...xN,...SN,...EN},pg=ra;NJ(ES);const nn=DJ(ES),zJ=MJ(ES);var ou=(e=>(e.AUTHORIZATION_CODE="AUTHORIZATION_CODE",e.REFRESH_TOKEN="REFRESH_TOKEN",e))(ou||{}),lb=(e=>(e.NONE="NONE",e.CLIENT_SECRET_BASIC="CLIENT_SECRET_BASIC",e.CLIENT_SECRET_POST="CLIENT_SECRET_POST",e))(lb||{}),AS=(e=>(e.S256="S256",e.PLAIN="PLAIN",e))(AS||{}),du=(e=>(e.USER="USER",e.ASSISTANT="ASSISTANT",e.TOOL="TOOL",e.SYSTEM="SYSTEM",e))(du||{}),AN=(e=>(e.STOP="STOP",e.TOOL_CALLS="TOOL_CALLS",e.LENGTH="LENGTH",e.ERROR="ERROR",e))(AN||{}),cb=(e=>
16(e.APPRABBIT_STUDIO_MULTIPURPOSE_AGENT="APPRABBIT_STUDIO_MULTIPURPOSE_AGENT",e.APPRABBIT_MESSAGE_BOT="APPRABBIT_MESSAGE_BOT",e.APPRABBIT_STUDIO_WORKFLOW_DESIGNER="APPRABBIT_STUDIO_WORKFLOW_DESIGNER",e))(cb||{}),RN=(e=>(e.ISOLATED="ISOLATED",e.FULL="FULL",e))(RN||{}),CN=(e=>(e.MESSAGING_AGENT_AUTO_SEND="MESSAGING_AGENT_AUTO_SEND",e.MESSAGING_AGENT_TEST="MESSAGING_AGENT_TEST",e.WORKFLOW_AI_REASONING="WORKFLOW_AI_REASONING",e))(CN||{}),TN=(e=>(e.GEMINI_2_5_PRO="GEMINI_2_5_PRO",e.GEMINI_2_5_FLASH="GEMINI_2_5_FLASH",e.GEMINI_2_5_FLASH_LITE="GEMINI_2_5_FLASH_LITE",e.GEMINI_2_0_FLASH="GEMINI_2_0_FLASH",e.GPT_5_1="GPT_5_1",e.GPT_5_1_MINI="GPT_5_1_MINI",e.GPT_4_1="GPT_4_1",e.GPT_4_1_MINI="GPT_4_1_MINI",e.GPT_4O="GPT_4O",e.GPT_4O_MINI="GPT_4O_MINI",e.O3="O3",e.O4_MINI="O4_MINI",e))(TN||{});const UJ={WEEK:"WEEK",MONTH:"MONTH",QUARTER:"QUARTER",HALF_YEAR:"HALF_YEAR",YEAR:"YEAR"},VJ={DRAFT:"DRAFT",FINALIZED:"FINALIZED",PAID:"PAID",WAIVED:"WAIVED"};var wN=(e=>(e.STANDARD="STANDARD",e.COACHING="COACHING",e))(wN||{}),Om=(e=>(e.APPUSER_CANCEL="APPUSER_CANCEL",e.APPUSER_SIGNUP="APPUSER_SIGNUP",e.AUTHN_CREATED="AUTHN_CREATED",e))(Om||{}),_N=(e=>(e.SEND_PUSH_NOTIFICATION="SEND_PUSH_NOTIFICATION",e.CREATE_AUTHN="CREATE_AUTHN",e.CANCEL_SUBSCRIPTION="CANCEL_SUBSCRIPTION",e.UPDATE_SUBSCRIPTION="UPDATE_SUBSCRIPTION",e.CREATE_COMMUNITY_POST="CREATE_COMMUNITY_POST",e.SET_MANAGED_ACCESS="SET_MANAGED_ACCESS",e.UPSERT_AUTHN_AND_ACCESS="UPSERT_AUTHN_AND_ACCESS",e))(_N||{}),ON=(e=>(e.GET_AUTHN_BY_EMAIL="GET_AUTHN_BY_EMAIL",e.GET_AUTHN_BY_ID="GET_AUTHN_BY_ID",e))(ON||{});const et={..._N,...ON};var bx=(e=>(e.CREATE_COMMUNITY_POST="CREATE_COMMUNITY_POST",e.SEND_PUSH_NOTIFICATION="SEND_PUSH_NOTIFICATION",e))(bx||{});const FJ=["Primary","Books","Business","Developer Tools","Education","Entertainment","Finance","Food & Drink","Games","Graphics & Design","Health & Fitness","Lifestyle","Magazines & Newspapers","Medical","Music","Navigation","News","Photo & Video","Productivity","Reference","Shopping","Social Networking","Sports","Stickers","Travel","Utilities","Weather"];var IN=(e=>(e.APP_NAME="APP_NAME",e.APP_CREATED="APP_CREATED",e.APP_REVENUE_TOTAL="APP_REVENUE_TOTAL",e.APP_REVENUE_MONTHLY="APP_REVENUE_MONTHLY",e))(IN||{}),qN=(e=>(e.ALL="ALL",e.ACTIVE="ACTIVE",e.TRIAL="TRIAL",e.INACTIVE="INACTIVE",e.DEMO="DEMO",e.TEST_ACCOUNT="TEST_ACCOUNT",e.APP_STATUS_LIVE="APP_STATUS_LIVE",e.APP_STATUS_REVIEW="APP_STATUS_REVIEW",e.APP_STATUS_REJECTED="APP_STATUS_REJECTED",e.APP_STATUS_READY="APP_STATUS_READY",e))(qN||{}),PN=(e=>(e.SUBSCRIPTION_ACTIVE="SUBSCRIPTION_ACTIVE",e.SUBSCRIPTION_TRIALING="SUBSCRIPTION_TRIALING",e.SUBSCRIPTION_INACTIVE="SUBSCRIPTION_INACTIVE",e.PURCHASE_COMPLETED="PURCHASE_COMPLETED",e))(PN||{}),kN=(e=>(e.CREATE_SETUP_INTENT="CREATE_SETUP_INTENT",e.ATTACH_PAYMENT_METHOD="ATTACH_PAYMENT_METHOD",e))(kN||{}),RS=(e=>(e.AIX="aix",e.DARWIN="darwin",e.FREEBSD="freebsd",e.LINUX="linux",e.OPENBSD="openbsd",e.SUNOS="sunos",e.WINDOWS="win32",e))(RS||{}),CS=(e=>(e.All="All",e.ExpiredAppleAgreements="ExpiredAppleAgreements",e.StagingBuildNewer="StagingBuildNewer",e.Updateable="Updatable",e.ReadyToLaunch="ReadyToLaunch",e.Rejected="Rejected",e.InReview="InReview",e))(CS||{}),TS=(e=>(e.LaunchboardMonitor="LaunchboardMonitor",e.LaunchboardRunner="LaunchboardRunner",e))(TS||{}),ub=(e=>(e.RELEASE="release",e.ALPHA="alpha",e.BETA="beta",e.RELEASE_CANDIDATE="rc",e.DEV="dev",e.NIGHTLY="nightly",e.SNAPSHOT="snapshot",e.EXPERIMENTAL="experimental",e.TEST="test",e.PREVIEW="preview",e.DEMO="demo",e.HOTFIX="hotfix",e))(ub||{}),NN=(e=>(e.CREATE="CREATE",e.UPDATE="UPDATE",e))(NN||{});const wS={COMMUNITY_POST:"COMMUNITY_POST",COMMUNITY_COMMENT:"COMMUNITY_COMMENT",COMPLETED_WORKOUT_DAY:"COMPLETED_WORKOUT_DAY",COMPLETED_LESSON:"COMPLETED_LESSON",COMPLETED_DAILY_HABITS:"COMPLETED_DAILY_HABITS",COMPLETED_HABIT_STREAK:"COMPLETED_HABIT_STREAK",COMPLETED_SINGLE_HABIT:"COMPLETED_SINGLE_HABIT",COMPLETED_FORM:"COMPLETED_FORM",LOGGED_MEAL:"LOGGED_MEAL",COMPLETED_CHALLENGE:"COMPLETED_CHALLENGE",AWARDED_POINTS:"AWARDED_POINTS"},$J={TOTAL:"TOTAL",CURRENT_PERIOD:"CURRENT_PERIOD"},BJ={EVENT:"EVENT",REQUEST:"REQUEST",RESPONSE:"RESPONSE",STREAM:"STREAM"},HJ={UI_NAVIGATE:"UI_NAVIGATE"};var DN=(e=>(e.APPRABBIT_DASHBOARD="APPRABBIT_DASHBOARD",e.APPRABBIT_STUDIO="APPRABBIT_STUDIO",e.ADDON_SUITE="ADDON_SUITE",e))(DN||{}),vx=(e=>(e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL",e))(vx||{}),_S=(e=>(e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.AUDIO="AUDIO",e.PDF="PDF",e))(_S||{}),MN=(e=>(e.ALL="ALL",e.GROUP="GROUP",e.USERS="USERS",e))(MN||{}),db=(e=>(e.REORDER="REORDER",e))(db||{}),fb=(e=>(e.REORDER="REORDER",e))(fb||{}),pb=(e=>(e.REORDER="REORDER",e))(pb||{}),hb=(e=>(e.PROGRAM="PROGRAM",e.COURSE="COURSE",e.MEAL_PLAN="MEAL_PLAN",e.FORM="FORM",e.TARGET="TARGET",e))(hb||{}),mb=(e=>(e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR",e))(mb||{}),OS=(e=>(e.AUTHN_ID="AUTHN_ID",e.APP_ID="APP_ID",e))(OS||{}),gb=(e=>(e.MON="MON",e.TUE="TUE",e.WED="WED",e.THU="THU",e.FRI="FRI",e.SAT="SAT",e.SUN="SUN",e.ON_DAY="ON_DAY",e.OFF_DAY="OFF_DAY",e))(gb||{}),jN=(e=>(e.MEAL="MEAL",e.TEMPLATE="TEMPLATE",e.SAVED="SAVED",e.PLANNED="PLANNED",e.LOGGED="LOGGED",e))(jN||{}),IS=(e=>(e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.REJECTED="REJECTED",e))(IS||{}),LN=(e=>(e.ERROR="ERROR",e.WARNING="WARNING",e))(LN||{}),GJ=(e=>(e.UPPERCASE="UPPERCASE",e.LOWERCASE="LOWERCASE",e.TRIM="TRIM",e.CAPITALIZE="CAPITALIZE",e.DEFAULT_IF_EMPTY="DEFAULT_IF_EMPTY",e.SPLIT_FIRST="SPLIT_FIRST",e.SPLIT_LAST="SPLIT_LAST",e.LENGTH="LENGTH",e.ROUND="ROUND",e.ABSOLUTE="ABSOLUTE",e.TO_NUMBER="TO_NUMBER",e.DATE_YEAR="DATE_YEAR",e))(GJ||{}),WJ=(e=>(e.ALL="ALL",e.FIRST="FIRST",e))(WJ||{}),YJ=(e=>(e.OBJECT="OBJECT",e.LIST="LIST",e))(YJ||{}),zN=(e=>(e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.DATE="DATE",e.LIST="LIST",e.OBJECT="OBJECT",e))(zN||{}),KJ=(e=>(e.EQUALS="EQUALS",e.NOT_EQUALS="NOT_EQUALS",e.CONTAINS="CONTAINS",e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EXISTS="EXISTS",e))(KJ||{}),XJ=(e=>(e.SYSTEM="SYSTEM",e.APP_EVENT="APP_EVENT",e))(XJ||{}),Yt=(e=>(e.HTTP="HTTP",e.SCHEDULE="SCHEDULE",e.USER_CREATED="USER_CREATED",e.USER_ADDED_TO_GROUP="USER_ADDED_TO_GROUP",e.CHECKIN_SUBMITTED="CHECKIN_SUBMITTED",e.MESSAGE_SENT="MESSAGE_SENT",e.WORKOUT_COMPLETED="WORKOUT_COMPLETED",e.PROGRAM_COMPLETED="PROGRAM_COMPLETED",e))(Yt||{});const R2e={HTTP:"SYSTEM",SCHEDULE:"SYSTEM",USER_CREATED:"APP_EVENT",USER_ADDED_TO_GROUP:"APP_EVENT",CHECKIN_SUBMITTED:"APP_EVENT",MESSAGE_SENT:"APP_EVENT",WORKOUT_COMPLETED:"APP_EVENT",PROGRAM_COMPLETED:"APP_EVENT"},C2e={SYSTEM:"System",APP_EVENT:"App events"};var UN=(e=>(e.HTTP="HTTP",e.SCHEDULE="SCHEDULE",e.USER_CREATED="USER_CREATED",e.USER_ADDED_TO_GROUP="USER_ADDED_TO_GROUP",e.CHECKIN_SUBMITTED="CHECKIN_SUBMITTED",e.MESSAGE_SENT="MESSAGE_SENT",e.WORKOUT_COMPLETED="WORKOUT_COMPLETED",e.PROGRAM_COMPLETED="PROGRAM_COMPLETED",e.TRIGGER_UNSET="TRIGGER_UNSET",e.HTTP_REQUEST="HTTP_REQUEST",e.FORMAT="FORMAT",e.DELAY="DELAY",e.CALL_WORKFLOW="CALL_WORKFLOW",e.FILTER="FILTER",e.APP_ACTION="APP_ACTION",e.PICK_RANDOM="PICK_RANDOM",e.JSON_EXTRACT="JSON_EXTRACT",e.JOIN="JOIN",e.AI_REASONING="AI_REASONING",e.QUERY="QUERY",e.WORKFLOW_INPUT="WORKFLOW_INPUT",e.WORKFLOW_OUTPUT="WORKFLOW_OUTPUT",e.BRANCH="BRANCH",e.SWITCH="SWITCH",e.CASE="CASE",e.CASE_ELSE="CASE_ELSE",e.END="END",e))(UN||{}),VN=(e=>
16(e.TRIGGER="TRIGGER",e.ACTION="ACTION",e.BRANCH="BRANCH",e.INPUT="INPUT",e.OUTPUT="OUTPUT",e))(VN||{}),FN=(e=>(e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e))(FN||{}),$N=(e=>(e.BODY="BODY",e.QUERY="QUERY",e.HEADER="HEADER",e))($N||{}),On=(e=>(e.AUTHN_INFO="AUTHN_INFO",e.APP_INFO="APP_INFO",e.LIST_USERS_BY_ROLE="LIST_USERS_BY_ROLE",e.AUTHN_GROUP_QUERY="AUTHN_GROUP_QUERY",e.AUTHN_BY_EMAIL="AUTHN_BY_EMAIL",e.CONVERSATION_INFO="CONVERSATION_INFO",e.WORKOUT_INFO="WORKOUT_INFO",e))(On||{});const T2e={AUTHN_INFO:"User info",APP_INFO:"App info",LIST_USERS_BY_ROLE:"List users by role",AUTHN_GROUP_QUERY:"Group query",AUTHN_BY_EMAIL:"User by email",CONVERSATION_INFO:"Conversation info",WORKOUT_INFO:"Workout info"},w2e={AUTHN_INFO:"Account info (id, email, name) for a user by ID.",APP_INFO:"Basic info about the current app (id, name).",LIST_USERS_BY_ROLE:"Users (id, email, name) whose role policy includes a given policy string.",AUTHN_GROUP_QUERY:"Audience groups (id, name, description) for this app, optionally filtered by name.",AUTHN_BY_EMAIL:"Account info (id, email, name) for users with a given email in this app.",CONVERSATION_INFO:"Conversation by conversation ID. Returns kind (DIRECT for a 1:1, ADMIN for an admin thread, GROUP for a group), plus name and group id which are only set for a group.",WORKOUT_INFO:"Workout day entry (date, kind, program id, day id, title, notes) by entry ID."},_2e={SEND_MESSAGE:"Send message",MESSAGE_ALL:"Message all clients",MESSAGE_GROUP:"Message a group",SEND_PUSH:"Send push notification",PUSH_ALL:"Push to all clients",PUSH_GROUP:"Push to a group",ADD_USER_TO_GROUP:"Add user to group"},O2e={MESSAGING:"Messaging",NOTIFICATION:"Notifications",GROUPS:"Groups"};var hg=(e=>(e.CHECKBOX="CHECKBOX",e.SIGNATURE="SIGNATURE",e))(hg||{}),qS=(e=>(e.DRAFT="DRAFT",e.PUBLISHED="PUBLISHED",e.ARCHIVED="ARCHIVED",e))(qS||{});const PS="AppuserForm",QJ=y({id:s().required(),appId:s().required(),platform:s().required().oneOf(Object.values(yt)),enabled:$().required(),status:s().required().oneOf(Object.values(uu)),deployedSuccessfully:A().nullable(),submitted:A().nullable(),stagingBuild:s().nullable(),productionBuild:s().nullable(),publicLink:s().nullable()}).nullable().notRequired().default(void 0);y(Object.keys(yt).reduce((e,t)=>(e[yt[t]]=QJ,e),{}));y({firebaseAppId:s().required(),appStripeAccountId:s().nullable().defined().strict(),appName:s().nullable().defined().strict(),formId:s().required(),licenseAgreement:s().required(),iconUrl:s().nullable().defined().strict(),formType:s().required().oneOf(["free","stripe"])});const JJ=U(`${PS}ContractRes`,{FormCreateNewAppuser:y({displayName:s().required(),email:s().email().required().lowercase(),password:s().required().min(8)}),FormNextUrl:y({nextUrl:s().required()}),FormDecision:y({decision:s().required().oneOf(["legacy","v2"]).default("v2")}).required(),AppuserFormVersion:y({appuserFormVersion:s().required().oneOf(["legacy-v1","v2","branded"])})}),ZJ=U(`${PS}ContractReq`,{}),mg=U(`${PS}Contract`,{...JJ,...ZJ}),kS="AppuserActivation",eZ=U(`${kS}ContractRes`,{AppuserActivationProbe:y({email:s().nullable().defined(),pin:s().nullable().defined(),nextUrl:s().nullable().defined(),intentState:s().required().oneOf(Object.values(OJ))}),AppuserActivationActivated:y({nextUrl:s().required()})}),tZ=U(`${kS}ContractReq`,{ActivateAppuser:y({email:s().email().lowercase().required(),password:s().required().min(8).max(256)})});U(`${kS}Contract`,{...eZ,...tZ});function hr(e){return e.optional().nullable().default(void 0)}function Fe(e){return y({items:M(e.required()).required(),more:$().required(),next:s().nullable().defined(),prev:s().nullable().defined()})}const Is=e=>{if(!(e instanceof hS||e instanceof mS||e instanceof pS))throw new Error("basicRecord only supports y.string(), y.number(), or y.boolean() value schemas");return y().test("basic-record","Each entry value must satisfy the value schema",n=>{if(n==null)return!0;if(typeof n!="object"||Array.isArray(n))return!1;for(const o of Object.values(n))if(!e.isValidSync(o))return!1;return!0}).default(void 0)},NS="FreeSignup",oO=y({id:s().required(),shortReference:s().required(),appId:s().required(),title:s().defined()}),rZ=U(`${NS}ContractRes`,{V1FreeLink:oO,V1FreeLinkData:Fe(oO)}),nZ=U(`${NS}ContractReq`,{CreateV1FreeLink:y({title:s().required()}),PatchV1FreeLink:y({title:s().required()}),Reorder:y({orderedIds:M(s().required().required()).required()})}),sO=U(`${NS}Contract`,{...rZ,...nZ}),DS="PricingPlan",iZ=U(`${DS}ContractRes`,{}),aZ=U(`${DS}ContractReq`,{Reorder:y({orderedIds:M(s().required().required()).required()})}),oZ=U(`${DS}Contract`,{...iZ,...aZ}),MS="Stripe",BN=y({stripeAccountId:s().nullable().defined(),stripeAccountConnected:$(
16).required(),stripeAccountConnectUrl:s().nullable().defined()}),sZ=U(`${MS}ContractRes`,{AppStripeSettings:BN,AppAccountManagementUrl:y({managementLink:s().required()}),AppServicesStripeProduct:y({stripeProducts:M(y({id:s().required(),name:s().defined()}).required()).required()}),AppServicesCustomCheckoutLink:y({url:s().required()}),CreateSetupIntentResponse:y({clientSecret:s().required(),customerId:s().required()}),AttachPaymentMethodResponse:y({subscriptionId:s().required(),defaultPaymentMethodId:s().required()})}),lZ=U(`${MS}ContractReq`,{AppServicesCustomCheckout:y({appId:s().required(),pricingData:M(y({stripeProductId:s().required(),amount:A().required(),pricingType:s().required().oneOf(["one-time","recurring"]),quantity:A().required().min(0).max(10).integer()}).required()).required()}),CreateSetupIntentPayload:y({}),AttachPaymentMethodPayload:y({paymentMethodId:s().required()}),BillingCommand:y({command:s().required().oneOf(Object.values(kN)),payload:y().required()})}),Im=U(`${MS}Contract`,{...sZ,...lZ}),jS="SalesPage",cZ=y({unitAmount:A().required(),title:s().required(),description:s().defined(),recurranceInterval:s().defined().nullable(),pricingType:s().required().oneOf(["one-time","recurring"]),currencyCode:s().required(),checkoutUrl:s().required()}),uZ=U(`${jS}ContractRes`,{SalesPageVersionOneData:y({title:s().required(),subtitle:s().required(),bannerUrl:s().required(),products:M(cZ).required()})}),dZ=U(`${jS}ContractReq`,{});U(`${jS}Contract`,{...uZ,...dZ});const LS="Storefront",Ly=y({id:s().required(),appProductBundleId:s().required(),appProductId:s().required(),minorUnits:A().required(),taxInclusive:$().required(),recurring:$().required(),hidden:$().required()}),qm=y({id:s().required(),appId:s().required(),shortReference:s().required(),name:s().required(),description:s().nullable(),hidden:$().required(),archived:$().required(),currencyCode:s().required(),billingIntervalCount:A().required(),billingInterval:s().required().oneOf(Object.values(qJ)),trialPeriodDays:A().required()}
16),ql=y({id:s().required(),appId:s().required(),stripeProductId:s().required(),name:s().required(),description:s().nullable()}),Pm=y({id:s().required(),appProductId:s().required(),status:s().required().oneOf(Object.values(PN)),groupId:s().required(),autoRemove:$().required()}),lO=y({appProductBundleId:s().required()}),HN=y({id:s().required(),minorUnits:A().required(),taxInclusive:$().required(),recurring:$().required(),product:ql.required(),hidden:$().required()}),cO=qm.concat(y({bundleItems:M(HN.required()).required()})),uO=ql.concat(y({handlers:M(Pm.required()).required().max(20)})),fZ=y({id:s().required(),name:s().required()}),rm=y({id:s().required(),authnId:s().required(),appProducts:M(ql.required()).required(),stripeSubscriptionId:s().required(),stripeSubscriptionStatus:s().required(),lastSyncedAt:A().required(),nextSyncAt:A().nullable()}),nm=y({id:s().required(),authnId:s().required(),createdAt:A().required(),stripeCheckoutSessionId:s().required(),minorUnits:A().required(),currencyCode:s().required(),appProduct:ql.required()}),pZ=U(`${LS}ContractRes`,{AppCustomerSubscription:rm,AppCustomerPurchaseHistoryItem:nm,AppProductBundleItem:Ly,AppProductBundle:qm,AppProduct:ql,AppProductPurchaseHandlerSchema:Pm,PartialAppCustomerSubscription:na(rm),PartialAppCustomerPurchaseHistoryItem:na(nm),PartialAppProductBundleItem:na(Ly).concat(y({appProductBundleId:s().optional()})),PartialAppProductBundle:na(qm),PartialAppProduct:na(ql).concat(y({appId:s().optional().nullable()})),PartialAppProductPurchaseHandlerSchema:Pm.omit(["id"]),CreateAppCustomerSubscription:na(rm,["id"]),CreateAppCustomerPurchaseHistoryItem:na(nm,["id"]),CreateAppProductBundleItem:Ly.omit(["id","appProductBundleId"]),CreateAppProductBundle:qm.omit(["id"]).concat(y({shortReference:s().optional()})),CreateAppProduct:ql.omit(["id","appId","stripeProductId"]),CreateAppProductPurchaseHandlerSchema:Pm.omit(["id"]),AppStoreProduct:uO,AppStoreBundle:cO,AppStoreBundleItem:HN,AppStorefrontSettings:y({accessModel:s().required().oneOf(Object.values(aO)),externalAccountManagementUrl:s().nullable().defined(),postCheckoutRedirectUrl:s().optional().nullable()}),AppStorefrontData:y({bundleData:Fe(cO),accessModel:s().required().oneOf(Object.values(aO)),externalAccountManagementUrl:s().nullable().defined()}),AppCustomerProfile:y({email:s().required(),createdAt:A().required(),accessEnabled:$().required()}),PaginatedCustomerSubscriptions:Fe(rm),PaginatedPurchaseHistory:Fe(nm),AppStorefrontProducts:Fe(uO),AppProductGroupOptions:Fe(fZ)}),hZ=U(`${LS}ContractReq`,{CartCheckoutBundle:lO,CartCheckout:y({bundles:M(lO.required()).required()})}),Ro=U(`${LS}Contract`,{...pZ,...hZ}),zS="Auth",GN=y({id:s().required(),appId:s().required(),email:s().required(),displayName:s().defined(),authPolicyId:s().required(),accessEnabled:$().required(),accessSource:s().required().oneOf(Object.values(Qn))}),mZ=y({records:M(GN.required()).required(),totalRecords:A().required()}),WN=y({email:s().optional(),createdAt:A().optional(),authPolicyId:s().optional(),avatar:s().nullable().optional(),lastLoginAt:A().nullable().optional(),coaching:hr(y({authnId:s().required(),name:s().required()})),groupIds:M(s().required()).optional(),tags:M(s().required()).optional(),metadata:hr(y()),lastCheckinAt:A().nullable().optional(),lastCheckinFormId:s().nullable().optional(),lastCheckinSubmissionId:s().nullable().optional()}),YN=y({authnId:s().required(),displayName:s().defined(),active:$().required(),additionalFields:WN.defined()}),gZ=Fe(YN.required()),KN=y({sendActivationEmail:$().nullable().optional(),category:s().oneOf(Object.values(wN)).nullable().optional(),fitness:hr(y({coachingCategory:s().optional(),coachAuthnId:s().optional()}))}),XN=y({appId:s().required(),email:s().required(),password:s().nullable().optional(),displayName:s().required(),authPolicyId:s().required(),managedAccessEnabled:$().required().default(!1),extraData:hr(KN)}),bZ=y({data:M(XN.required()).required()}),bb=y({id:s().required(),appId:s().required(),email:s().required(),displayName:s().required(),authPolicyId:s().required(),accessSource:s().required().oneOf(Object.values(Qn)),hash:s().notRequired().test("no-hash","Hash should not be leaked!",e=>!e)}
16),vZ=bb.concat(y({avatar:s().defined().nullable().strict(),phoneNumber:s().defined().nullable().strict(),createdAt:A().required(),firebaseCustomerId:s().required()}));y({authnId:s().required(),refreshTokenId:s().required()});const zy=y({accessToken:s().required(),refreshToken:s().required()}),dO=y({authn:bb.required(),policies:M(s().required().oneOf(zJ)).required()}),fO=y({authn:bb.required(),policies:M(s().required()).required()}),yZ=U(`${zS}ContractRes`,{FirebaseLoginData:y({kind:s().required(),localId:s().required(),email:s().required(),displayName:s().defined(),idToken:s().required(),expiresIn:s().required(),refreshToken:s().required(),registered:$().defined().required()}),AuthnCore:bb,Authn:vZ,AuthnTokens:zy.required(),LoginOptions:y({availableApps:M(y({appName:s().required(),appIcon:s().defined().nullable(),appId:s().required()})).required()}),Credentials:dO,CredentialsWithTokens:dO.concat(y({authnTokens:zy.required()}).required()),LoosePolicyCredentials:fO,LoosePolicyCredentialsWithTokens:fO.concat(y({authnTokens:zy.required()}).required()),LegacyCredentials:y({user:y({id:s().required(),displayName:s().required(),email:s().email().required(),googleId:s().nullable(),facebookId:s().nullable(),accessToken:s().required(),rolePolicyId:s().required(),userApp:y().nullable(),firstName:s().nullable(),lastName:s().nullable(),avatar:s().nullable(),subscriptionId:s().nullable(),subscriptionStatus:s().nullable(),account:s().nullable(),signupStatus:s().nullable(),firebaseAppId:s().nullable(),freeTrialEndDate:Va().nullable()}).required(),resourcePolicies:M(s().required()).required(),token:s().required()}),AuthnQueriedRecord:GN,AuthnQuery:mZ,QueriedAuthn:YN,QueriedAuthnAdditionalFields:WN,QueriedAuthnQuery:gZ,AuthnNexusWhoamiResponse:y({authnId:s().required(),appId:s().required(),appName:s().required(),email:s().required()})}),xZ=U(`${zS}ContractReq`,{PostgresUserSpoof:y({appownerId:s().required()}).required(),LoginRequest:y({email:s().required()}),Login:y({email:s().required(),password:s().required()}),AuthnTokenRefresh:y({refreshToken:s().required()}),SendResetPasswordEmail:y({email:s().required(),appId:s().required()}),ResetPasswordByToken:y({token:s().required(),password:s().required()}),LegacySendResetPasswordEmail:y({email:s().required(),firebaseAppId:s().required()}),AuthnCreate:XN,AuthnQueryRequest:y({appId:s().optional(),accessEnabled:$().optional(),authPolicyIds:M(s().required()).optional(),offset:A().optional(),limit:A().optional()}),ChangePassword:y({newPassword:s().required()}),PatchAuthn:y({displayName:s().strict(),email:s().email().strict(),avatarUrl:s().nullable().strict(),authPolicyId:s().optional()}),PatchAuthnEmail:y({email:s().email().required()}),AuthnActivationEmailJob:y({appId:s().required(),authnId:s().required()}),AuthnCreateRequest:bZ,AuthnCreateExtraData:KN}),br=U(`${zS}Contract`,{...yZ,...xZ}),qu="OAuth",Uy=y({id:s().required(),clientPublicId:s().required(),name:s().required(),redirectUris:M(s().required()).required(),scopes:M(s().required()).required(),grantKinds:M(s().required().oneOf(Object.values(ou))).required(),oauthClientAuthKind:s().required().oneOf(Object.values(lb)),appId:s().defined().nullable(),authnId:s().defined().nullable(),dynamicallyRegistered:$().required(),createdAt:A().required()}),SZ=y({accessToken:s().required(),tokenKind:s().required().default("Bearer"),expiresIn:A().required(),refreshToken:s().required(),scopes:M(s().required()).required()}),EZ=y({issuer:s().required(),authorizationEndpoint:s().required(),tokenEndpoint:s().required(),registrationEndpoint:s().required(),revocationEndpoint:s().defined(),scopesSupported:M(s().required()).required(),responseKindsSupported:M(s().required()).required(),grantKindsSupported:M(s().required().oneOf(Object.values(ou))).required(),oauthClientAuthKindsSupported:M(s().required().oneOf(Object.values(lb))).required(),codeChallengeKindsSupported:M(s().required().oneOf(Object.values(AS))).required()}),AZ=y({id:s().required(),oauthClientId:s().required(),clientName:s().required(),scopes:M(s().required()).required(),lastUsedAt:A().required(),createdAt:A().required(),expiresAt:A().required()}),RZ=U(`${qu}ContractRes`,{OAuthClientCore:Uy,OAuthClientRegistration:Uy.concat(y({clientSecret:s().defined().nullable(),clientIdIssuedAt:A().required(),clientSecretExpiresAt:A().defined().nullable()})),OAuthAuthorizeApprove:y({redirectTo:s().required()}),OAuthTokenSet:SZ,OAuthAuthorizationServerMetadata:EZ,OAuthProtectedResourceMetadata:y({resource:s().required(),authorizationServers:M(s().required()).required(),scopesSupported:M(s().required()).required(),bearerMethodsSupported:M(s().required()).required()}),OAuthClientList:y({records:M(Uy.required()).required(),totalRecords:A().required()}),OAuthSessionList:y({records:M(AZ.required()).required(),totalRecords:A().required()})}),CZ=U(`${qu}ContractReq`,{OAuthClientRegister:y({name:s().required(),redirectUris:M(s().required()).required().min(1),scopes:M(s().required()).required(),grantKinds:M(s().required().oneOf(Object.values(ou))).required().min(1),oauthClientAuthKind:s().required().oneOf(Object.values(lb)),appId:s().optional()}),OAuthAuthorizeApprove:y({clientPublicId:s().required(),redirectUri:s().required(),scopes:M(s().required()).required(),codeChallenge:s().required(),codeChallengeKind:s().required().oneOf(Object.values(AS)),state:s().optional(),resources:M(s().required()).optional()}),OAuthTokenExchangeAuthorizationCode:y({grantKind:s().required().oneOf([ou.AUTHORIZATION_CODE]),code:s().required(),redirectUri:s().required(),clientPublicId:s().required(),codeVerifier:s().required(),clientSecret:s().optional()}),OAuthTokenExchangeRefresh:y({grantKind:s().required().oneOf([ou.REFRESH_TOKEN]),refreshToken:s().required(),clientPublicId:s().required(),clientSecret:s().optional(),scopes:M(s().required()).optional()}),OAuthTokenRevoke:y({token:s().required(),clientPublicId:s().required(),clientSecret:s().optional()}),OAuthClientRevoke:y({id:s().required()}),OAuthSessionRevoke:y({id:s().required()}),OAuthClientListRequest:y({appId:s().optional(),offset:A().optional(),limit:A().optional()}),OAuthSessionListRequest:y({oauthClientId:s().optional(),offset:A().optional(),limit:A().optional()})}),TZ=y({grant_type:s().required(),code:s().optional(),redirect_uri:s().optional(),client_id:s().optional(),client_secret:s().optional(),code_verifier:s().optional(),refresh_token:s().optional(),scope:s().optional(),resource:M(s().required()).optional()}),wZ=y({access_token:s().required(),token_type:s().required(),expires_in:A().required(),refresh_token:s().defined(),scope:s().defined()}),_Z=y({token:s().required(),token_type_hint:s().optional(),client_id:s().optional(),client_secret:s().optional()}),OZ=y({client_name:s().required(),redirect_uris:M(s().required()).required().min(1),scope:s().defined(),grant_types:M(s().required()).required().min(1),token_endpoint_auth_method:s().optional(),application_type:s().optional()}),IZ=y({client_id:s().required(),client_secret:s().defined().nullable(),client_id_issued_at:A().required(),client_secret_expires_at:A().optional(),client_name:s().required(),redirect_uris:M(s().required()).required(),scope:s().defined(),grant_types:M(s().required()).required(),token_endpoint_auth_method:s().required()}),qZ=y({iss:s().required(),sub:s().required(),aud:M(s().required()).required(),exp:A().required(),iat:A().required(),jti:s().required(),client_id:s().required(),scope:s().defined()}),PZ=U(`${qu}WireContractReq`,{OAuthTokenWireRequest:TZ,OAuthRevocationWireRequest:_Z,OAuthRegistrationWireRequest:OZ}),kZ=U(`${qu}WireContractRes`,{OAuthTokenWireResponse:wZ,OAuthRegistrationWireResponse:IZ,OAuthAccessTokenPayload:qZ});U(`${qu}Contract`,{...RZ,...CZ});U(`${qu}WireContract`,{...PZ,...kZ});const vb="Ai",QN=y({id:s().required(),name:s().required(),args:y().required()}),US=y({role:s().required().oneOf(Object.values(du)),content:s().defined(),toolCalls:M(QN.required()).optional(),toolCallId:s().optional(),toolName:s().optional()}),JN=y({id:s().required(),kind:s().nullable().defined(),sortOrder:A().integer().required(),label:s().required(),body:s().required(),createdAt:Va().required(),updatedAt:Va().required()}),NZ=y({kind:s().nullable().defined(),sortOrder:A().integer().required(),label:s().required().min(1).max(128),body:s().required()}),DZ=y({kind:s().nullable().optional(),sortOrder:A().integer().optional(),label:s().min(1).max(128).optional(),body:s().optional()}
16),MZ=Fe(JN),ZN=y({name:s().required(),description:s().required(),category:s().nullable().defined()}),jZ=y({description:s().required(),category:s().nullable().optional()}),LZ=Fe(ZN),eD=y({kind:s().required().oneOf(Object.values(CN)),callCount:A().integer().required(),successCount:A().integer().required(),errorCount:A().integer().required(),promptTokens:A().integer().required(),responseTokens:A().integer().required()}),zZ=y({windowDays:A().integer().required(),buckets:M(eD.required()).required()}),tD=y({provider:s().required(),model:s().required(),isDefault:$().required()}),UZ=y({providers:M(tD.required()).required()}),rD=y({text:s().defined(),promptTokens:A().integer().nullable().defined(),responseTokens:A().integer().nullable().defined(),latencyMs:A().integer().required(),finishReason:s().oneOf(Object.values(AN)).nullable().defined(),success:$().required(),errorMessage:s().nullable().defined()}),VZ=y({id:s().optional(),kind:s().nullable().defined(),sortOrder:A().integer().required(),label:s().required(),body:s().required()}),FZ=y({mode:s().required().oneOf(Object.values(RN)),kind:s().required().oneOf(Object.values(cb)),draftFragments:M(VZ.required()).required(),userMessage:s().required().min(1)}),$Z=y({systemPrompt:s().required(),result:rD.required()}),BZ=U(`${vb}ContractReq`,{AiChatSocketMessageRequest:y({conversationId:s().required(),kind:s().required().oneOf(Object.values(cb)),messages:M(US.required()).required(),dryRun:$().optional()}),AiPromptFragmentCreateRequest:NZ,AiPromptFragmentUpdateRequest:DZ,McpToolDeclarationUpsertRequest:jZ,AiPromptPreviewRequest:FZ}),HZ=U(`${vb}ContractRes`,{AiChatSocketMessageResponse:y({correlationId:s().required()}),AiPromptFragmentResponse:JN,PaginatedAiPromptFragments:MZ,McpToolDeclarationResponse:ZN,PaginatedMcpToolDeclarations:LZ,AppAiUsageResponse:zZ,AppAiUsageBucket:eD,AppAiProvidersResponse:UZ,AppAiProviderEntry:tD,CollectedChatResult:rD,AiPromptPreviewResponse:$Z}),GZ=y({correlationId:s().required(),authnId:s().required(),appId:s().required(),conversationId:s().required(),systemPrompt:s().required(),model:s().required(),messages:M(US.required()).required(),dryRun:$().optional()}),WZ=U(`${vb}ContractJobs`,{AiChatStreamJob:GZ}),Oa=U(`${vb}Contract`,{...BZ,...HZ,...WZ,AiChatMessage:US,AiChatToolCall:QN}),VS="AiCredit",yx=y({id:s().required(),periodStartEpoch:A().integer().required(),periodEndEpoch:A().integer().required(),totalInputTokens:A().integer().required(),totalOutputTokens:A().integer().required(),totalInputCredits:A().required(),totalOutputCredits:A().required(),totalUsageCredits:A().required(),creditsApplied:A().required(),netBillableCredits:A().required(),netBillableUsd:A().required(),status:s().required().oneOf(Object.values(VJ)),waived:$().required(),str
16ipeInvoiceUrl:s().defined().nullable(),createdAtEpoch:A().integer().required()}),xx=y({key:s().required(),label:s().required(),inputTokens:A().integer().required(),outputTokens:A().integer().required(),credits:A().required(),usd:A().required()}),YZ=U(`${VS}ContractRes`,{AiCreditBalance:y({balanceCredits:A().required(),balanceUsd:A().required(),lifetimeGrantedCredits:A().required(),outstandingCount:A().integer().required(),blocked:$().required()}),AiCreditStatement:yx.required(),PaginatedAiCreditStatements:Fe(yx),AiUsageBreakdown:y({periodStartEpoch:A().integer().required(),periodEndEpoch:A().integer().required(),totalCredits:A().required(),totalUsd:A().required(),totalInputTokens:A().integer().required(),totalOutputTokens:A().integer().required(),byModel:M(xx.required()).required(),byFeature:M(xx.required()).required()})}),KZ=U(`${VS}ContractReq`,{AiCreditGrantRequest:y({amountUsd:A().positive().required(),reason:s().optional()}),AiUsageBreakdownQuery:y({period:s().required().oneOf(Object.values(UJ))})}),$c=U(`${VS}Contract`,{...YZ,...KZ,AiCreditStatement:yx,AiUsageSlice:xx}),FS="AppAiConfiguration",XZ=U(`${FS}ContractRes`,{AppAiConfiguration:y({defaultModel:s().defined().nullable(),spendingLimitCredits:A().defined().nullable(),spendingLimitUsd:A().defined().nullable()})}),QZ=U(`${FS}ContractReq`,{AppAiConfigurationUpdateRequest:y({defaultModel:s().oneOf(Object.values(TN)).defined().nullable(),spendingLimitCredits:A().min(0).defined().nullable()})}),Vy=U(`${FS}Contract`,{...XZ,...QZ}),$S="AppAiGlobalPrompt",JZ=y({id:s().required(),appId:s().required(),appGlobalPrompt:s().nullable().defined(),createdAt:A().required(),updatedAt:A().required()}),ZZ=y({appId:s().required(),authnId:s().required(),personalGlobalPrompt:s().nullable().defined()}),eee=y({appGlobalPrompt:s().nullable().optional()}),tee=y({personalGlobalPrompt:s().nullable().optional()}),ree=U(`${$S}ContractRes`,{AppAiGlobalPrompt:JZ,AppAiPersonalGlobalPrompt:ZZ}),nee=U(`${$S}ContractReq`,{UpdateAppAiGlobalPromptRequest:eee,UpdateAppAiPersonalGlobalPromptRequest:tee}),Bc=U(`${$S}Contract`,{...ree,...nee}),BS="AppAccess",iee=U(`${BS}ContractRes`,{AuthnAccessData:y({stripeCustomerId:s().optional(),accessSource:s().oneOf(Object.values(Qn)).required(),appAccessEnabled:$().required(),[Qn.MANAGED]:y({enabled:$().required(),disableAt:A().optional().nullable()}).required(),[Qn.STRIPE_PURCHASED]:y({stripeChargeId:s().required(),enabled:$().required(),disableAt:A().optional().nullable()}).defined().nullable(),[Qn.STRIPE_RECURRING]:y({stripeSubscriptionId:s().required(),str
16ipeSubscriptionStatus:s().required()}).defined().nullable()}),AuthnHasAccess:y({enabled:$().required()}),AuthnAccessSourceDataStripeRecurring:y({accessSource:s().oneOf(Object.values(Qn)).required(),sourceData:y({stripeCustomerPortalLink:s().required(),stripeCustomerId:s().required(),stripeSubscriptionId:s().required(),stripeSubscriptionStatus:s().required()}).required()})}),aee=U(`${BS}ContractReq`,{ManagedAccessUpdate:y({enabled:$().required(),disableAt:A().optional().nullable()}),AccessSourceUpdate:y({accessSource:s().required().oneOf(Object.values(Qn))})}),im=U(`${BS}Contract`,{...aee,...iee}),HS="AppAccessMarkerMetadata",pO=y({accessMarker:$().required(),id:s().required(),authnId:s().required(),accessDelta:s().required().oneOf(Object.values(PJ)),kind:s().required(),blame:s().required(),metadata:s().defined().nullable(),createdAt:A().required()}),oee=U(`${HS}ContractRes`,{LogWithMarker:pO,PaginatedLogsWithMarkers:Fe(pO)}),see=U(`${HS}ContractReq`,{[mf.V1_INITIALIZED_GRANT]:y({source:s().required()}),[mf.V1_MANAGED_GRANT]:y({revokeAt:A().optional().nullable(),revoked:$().optional().nullable()}),[mf.V1_STRIPE_SUBSCRIPTION_CREATED]:y({stripeSubscriptionId:s().required(),str
16ipeSubscriptionStatus:s().required(),stripeCheckoutSessionId:s().required()}),[mf.V1_STRIPE_PURCHASED_PRODUCT]:y({stripeCheckoutSessionId:s().required()}),[gf.REVOKE_ALL_ACCESS]:y({source:s().required()}),[gf.V1_MANAGED_REVOKE]:y({source:s().required()}),[gf.V1_MANAGED_GRANT_EXPIRED]:y({markerLogId:s().required()}),[gf.V1_STRIPE_SUBSCRIPTION_CANCELED]:y({stripeSubscriptionId:s().required(),stripeSubscriptionStatus:s().required()})}),lee=U(`${HS}Contract`,{...see,...oee}),GS="AppDistribution",Sx=y({id:s().required(),majorVersion:A().required().integer().min(0),minorVersion:A().required().integer().min(0),tag:s().required().oneOf(Object.values(ub)),tagVersion:A().required().integer().min(0),supportedApiVersion:s().required().oneOf(Object.values(Wl)),gitCommit:s().required(),createdAt:A().required()}),cee=y({id:s().required(),appId:s().required(),platform:s().required().oneOf(Object.values(yt)),buildNumber:A().integer().required(),versionString:s().required(),configId:s().required(),createdAt:A().required()}),nD=y({id:s().required(),appId:s().required(),platform:s().required().oneOf(Object.values(yt)),enabled:$().required(),status:s().required().oneOf(Object.values(uu)),deployedSuccessfully:Va().nullable().defined().strict(),submitted:Va().nullable(),stagingBuild:s().nullable(),productionBuild:s().nullable(),buildNumber:A().required(),publicLink:s().nullable()}).nullable().notRequired().default(void 0),iD=y({id:s().required(),appId:s().required(),platform:s().required().oneOf(Object.values(yt)),enabled:$().required(),status:s().required().oneOf(Object.values(uu)),deployedSuccessfully:A().nullable(),submitted:A().nullable(),stagingBuild:s().nullable(),productionBuild:s().nullable(),buildNumber:A().required(),publicLink:s().nullable()}).nullable().notRequired().default(void 0),uee=y(Object.keys(yt).reduce((e,t)=>(e[yt[t]]=nD,e),{})),yb=y(Object.keys(yt).reduce((e,t)=>(e[yt[t]]=iD,e),{})),dee=U(`${GS}ContractRes`,{DatabaseAppDist:nD,SendableAppDist:iD,DatabaseDistObjSchema:uee,SendableDistObjSchema:yb,DistributionStatus:y({mobileDistributionAvailable:$().required(),appleAccountSetup:$().required(),appDetailsSetup:$().required(),distributionPending:$().required(),distributionPartial:$().required(),distributionComplete:$().required()}),AppReleaseConfiguration:Sx.required(),QueriedAppReleaseConfiguration:y({releases:M(Sx.required()).required()}),AppDistributionRelease:cee.required()}),fee=U(`${GS}ContractReq`,{CreateAppReleaseConfiguration:Sx.concat(y({id:s().notRequired(),createdAt:A().notRequired()})),QueryAppReleaseConfiguration:y({offset:A().optional(),limit:A().optional(),searchKey:s().optional(),tag:s().optional(),gitCommit:s().optional(),supportedApiVersion:s().optional()}),DistributionStatusContext:y({platformIdentifiers:y({[yt.APPLE_APPSTORE]:s().defined().nullable(),[yt.GOOGLE_PLAYSTORE]:s().defined().nullable()}).required(),expiredAppstoreConnectAgreements:$().required(),expiredAppleDeveloperAgreements:$().required()})}),pee=U(`${GS}Contract`,{...dee,...fee}),WS="AppQuery",hO=y({id:s().required(),name:s().required(),iconUrl:s().defined().nullable(),coreService:y({status:s().required().oneOf(Object.values(Os)),trialExpires:A().defined().nullable()}).required(),orgId:s().nullable().defined(),orgName:s().nullable().defined(),orgLogoUrl:s().nullable().defined(),createdAt:A().defined(),appRevenueMonthly:A().required(),appRevenueTotal:A().required(),appDists:yb}),hee=U(`${WS}ContractRes`,{AppRecord:hO,AppRecordQuery:y({searchKey:s().notRequired(),records:M(hO.required()).required(),totalRecords:A().required()})}),mee=U(`${WS}ContractReq`,{AppsQueryRequest:y({offset:A().optional(),limit:A().optional(),searchKey:s().optional(),orderBy:s().oneOf(["DESC","ASC"]).optional(),sortBy:s().oneOf(Object.values(IN)).optional(),appStatusFilter:s().oneOf(Object.values(qN)).optional(),orgId:s().optional()})}),gee=U(`${WS}Contract`,{...hee,...mee}),YS="AdminAuthnQuery",mO=y({id:s().required(),email:s().required(),appId:s().required(),appName:s().defined()}),bee=U(`${YS}ContractRes`,{AdminAuthnRecord:mO,AdminAuthnRecordQuery:y({searchKey:s().notRequired(),records:M(mO.required()).required(),totalRecords:A().required()})}),vee=U(`${YS}ContractReq`,{AuthnQueryRequest:y({offset:A().optional(),limit:A().optional(),searchKey:s().optional()})}),yee=U(`${YS}Contract`,{...bee,...vee}),KS="MarketingQuery",Ex=y({id:s().required(),name:s().required(),email:s().required(),phoneNumber:s().required(),leadType:s().required().oneOf(Object.values(dg)),createdAt:A().required(),appCoreService:y({status:s().required().oneOf(Object.values(Os)),trialExpires:A().defined().nullable()}).required()}),xee=Ex.concat(y({appId:s().required(),notes:s().defined().strict()})),See=U(`${KS}ContractRes`,{MarketingLeadRecord:Ex,MarketingLead:xee,MarketingLeadQuery:y({searchKey:s().notRequired(),records:M(Ex.required()).required(),totalRecords:A().required()})}),Eee=U(`${KS}ContractReq`,{MarketingLeadQueryRequest:y({offset:A().optional(),limit:A().optional(),searchKey:s().optional(),orderBy:s().oneOf(["DESC","ASC"]).optional()}),PatchMarketingLead:y({marketingLeadId:s().required(),notes:s().optional().nonNullable()})}),Fy=U(`${KS}Contract`,{...See,...Eee}),XS="Typeform",aD=y({type:s().required(),field:y({id:s().required(),type:s().required(),ref:s().required()}).required()}),Aee=y({form_response:y({form_id:s().required(),hidden:y({}),definition:y({id:s().required(),title:s().defined(),fields:M(y({id:s().required(),ref:s().required(),type:s().required(),title:s().defined()}).required()).required(),endings:M(y({id:s().required(),ref:s().required(),type:s().required(),title:s().defined()}).required()).required()}),answers:M(aD.required()).required(),ending:y({id:s().required(),ref:s().required()})})}),Ree=y({id:s().required(),label:s().defined(),ref:s().required()}),Cee=U(`${XS}ContractRes`,{}),Tee=U(`${XS}
16ContractReq`,{WebhookPayload:Aee,BaseAnswer:aD,AnswerChoice:Ree});U(`${XS}Contract`,{...Cee,...Tee});const QS="AppleApi",wee=U(`${QS}ContractRes`,{AppstoreConnectToken:y({token:s().required()}),AppleAppstoreCodesigningContext:y({iosAppId:s().defined().nullable(),bundleId:s().defined().nullable(),teamId:s().defined().nullable(),provisioningProfile:s().defined().nullable(),matchBranchUrl:s().defined().nullable()})}),_ee=U(`${QS}ContractReq`,{BundleCheck:y({apiKeyId:s().required(),apiKeyIssuerId:s().required(),apiKey:s().required()})});U(`${QS}Contract`,{...wee,..._ee});const JS="AppleAccount",km=y({teamId:s().required(),teamName:s().required(),iosPushNotificationKeyId:s().required(),iosPushNotificationKey:s().required(),iosAppPurchasesKeyId:s().defined(),iosAppPurchasesKey:s().defined(),apiKeyId:s().required(),apiKeyIssuerId:s().required(),apiKey:s().required(),provisioningProfile:s().required()}),gO=km.omit(["provisioningProfile"]).concat(y({iosAppPurchasesKeyId:s().optional(),iosAppPurchasesKey:s().optional()})),Oee=U(`${JS}ContractRes`,{}),Iee=U(`${JS}ContractReq`,{ApiKeyCheckAppStoreConnect:y({apiKeyId:s().required(),apiKeyIssuerId:s().required(),apiKey:s().required()}),ApiKeyCheckPushNotifications:y({iosPushNotificationKey:s().required(),iosPushNotificationKeyId:s().required(),teamId:s().required()}),AppleAccount:km,AppleAccountSetup:gO,AppleAccountSetupPartial:na(gO),AppleAccountPartial:na(km),MaskedAppleAccount:km.omit(["apiKey","iosPushNotificationKey","iosAppPurchasesKey"]),AgreementsStatus:y({expiredAppstoreConnectAgreements:$().required(),expiredAppleDeveloperAgreements:$().required()})}),Sl=U(`${JS}Contract`,{...Oee,...Iee}),ZS="GooglePlaystoreAccount",qee=y({serviceAccountSet:$().required(),keystoreDataSet:$().required(),keystorePasswordSet:$().required()}),Pee=y({serviceAccount:s().required(),keystoreData:s().required(),keystorePassword:s().required()}),kee=U(`${ZS}ContractRes`,{}),Nee=U(`${ZS}ContractReq`,{GooglePlaystoreAccount:Pee,MaskedGooglePlaystoreAccount:qee});U(`${ZS}Contract`,{...kee,...Nee});const eE="AppDetail",Ax=y({name:s().required(),description:s().required(),promotion:s().required(),subtitle:s().defined(),categoryIos:s().required().oneOf(FJ),keywords:s().required(),supportUrl:s().url().defined(),marketingUrl:s().url().optional().nullable(),privacyPolicyUrl:s().defined(),screenshotFiles:M(s().required()).required(),screenshotUrls:M(s().required()).required()}),bO=Ax.concat(y({subtitle:s().optional(),supportUrl:s().optional(),privacyPolicyUrl:s().optional(),screenshotFiles:M(s().required()).optional(),screenshotUrls:M(s().required()).optional()})),Dee=U(`${eE}ContractRes`,{}),Mee=U(`${eE}ContractReq`,{AppDetail:Ax,AppDetailPartial:na(Ax),AppDetailSetup:bO,AppDetailSetupPartial:na(bO)}),Af=U(`${eE}Contract`,{...Dee,...Mee}),tE="Launchboard",vO=y({totalCount:A().required(),id:s().uuid().required(),firebaseId:s().required(),slug:s().required(),bundleId:s().required(),packageName:s().required(),provisioningProfile:s().required(),releaseName:s().required(),mobileNameOverride:s().nullable(),buildOptions:M(s().required().oneOf(Object.values(vS))).required(),releaseIcon:s().required(),expiredConnectAgreements:$().required(),expiredDeveloperAgreements:$().required(),dists:yb.required()}).required(),jee=y({id:s().required(),gitCommit:s().required(),buildNumber:A().required(),versionString:s().required(),storeVersionString:s().required(),apiVersion:s().required().oneOf(Object.values(Wl)),releaseNotes:s().required(),automaticallyRelease:$().required()}),Lee=y({appId:s().required("App ID is required"),firebaseAppId:s().required(),bundleId:s().required("Bundle ID is required"),packageName:s().required("Package Name is required")}),zee=y({firebaseProjectName:s().defined().nullable(),iosAppId:s().defined().nullable(),androidAppId:s().defined().nullable()}),Uee=y({serviceAccount:s().required(),keystoreData:s().required(),keystorePassword:s().required()}),Vee=y({appName:s().required(),iconUrl:s().required(),logoUrl:s().required().nullable(),splashScreenUrl:s().defined().nullable(),mobileNameOverride:s().defined().nullable()}),yO=y({actionId:s().nullable(),actionVersion:s().required(),identifiers:Lee.required(),appDistributionPlatform:s().required().oneOf(Object.values(yt)),platformDistributed:$().required(),buildOptions:M(s().required().oneOf(Object.values(vS))).required(),legacyAppBuildContext:zee.defined().nullable(),brandingContext:Vee.required(),releaseContext:jee.required(),appleAccount:Sl.AppleAccount.required(),appListing:Af.AppDetail.required(),googlePlaystoreAccount:Uee.required()}),Fee=U(`${tE}ContractRes`,{GetLaunchboardApps:M(vO).required(),LaunchboardApp:vO}),$ee=U(`${tE}ContractReq`,{AppPatformReleaseAction:yO.required(),AppId:y({appId:s().required()}),UpdateAndroidVersions:M(y({appId:s().required(),productionBuild:s().required(),stagingBuild:s().required()})).required(),Query:y({majorVersion:s().optional(),minorVersion:s().optional(),versionDiscrimnator:s().oneOf(["MIN","MAX"]).optional(),filterType:s().required().oneOf(Object.values(CS)),orderBy:s().oneOf(["DESC","ASC"]).notRequired().nonNullable(),limit:A(),offset:A(),searchKey:s(),appId:s()}).required().meta({vixType:"LaunchboardContractReqQuery"}),ActionPayload:y({actionId:s().required(),platformRelease:yO.required()})});U(`${tE}Contract`,{...Fee,...$ee});const rE="LaunchboardV2",nE=y({actionsGitRef:s().required(),buildNumber:A().required(),releaseNotes:s().required(),releaseAutomatically:$().required(),releaseType:s().defined().oneOf(Object.values(NN)).nullable()}
16),Bee=nE.concat(y({id:s().required(),gitCommit:s().required(),versionString:s().required(),storeVersionString:s().required(),apiVersion:s().required().oneOf(Object.values(Wl))})),Hee=y({appId:s().required("App ID is required"),firebaseAppId:s().required(),bundleId:s().required("Bundle ID is required"),packageName:s().required("Package Name is required")}),Gee=y({firebaseProjectName:s().defined().nullable(),iosAppId:s().defined().nullable(),androidAppId:s().defined().nullable()}),Wee=y({serviceAccount:s().required(),keystoreData:s().required(),keystorePassword:s().required()}),Yee=y({appName:s().required(),iconUrl:s().required(),logoUrl:s().required().nullable(),splashScreenUrl:s().defined().nullable(),mobileNameOverride:s().defined().nullable()}),oD=y({extraEnv:y().defined().nullable()}),sD=y({identifiers:Hee.required(),appDistributionPlatform:s().required().oneOf(Object.values(yt)),platformDistributed:$().required(),buildOptions:M(s().required().oneOf(Object.values(vS))).required(),legacyAppBuildContext:Gee.defined().nullable(),brandingContext:Yee.required(),releaseContext:Bee.required(),appleAccount:Sl.AppleAccount.required(),appListing:Af.AppDetail.required(),googlePlaystoreAccount:Wee.required(),extraConfig:oD.defined().nullable()}),lD=y({releaseJobId:s().required(),buildContext:sD.required()}),xb=y({id:s().required(),tag:s().required().oneOf(Object.values(ub)),tagVersion:A().required(),majorVersion:A().required(),minorVersion:A().required(),gitCommit:s().required(),supportedApiVersion:s().required().oneOf(Object.values(Wl))}),cD=y({platform:s().required().oneOf(Object.values(yt)),submitAt:A().defined().nullable(),createdAt:A().required(),releaseId:s().required(),releaseConfig:xb.required(),buildReady:$().required()}),uD=y({id:s().required(),stage:s().required().oneOf(Object.values(IJ)),platform:s().required().oneOf(Object.values(yt)),buildNumber:A().required(),releaseConfig:xb.required()}),dD=y({status:s().required().oneOf(Object.values(uu)),platform:s().required().oneOf(Object.values(yt))}),Rx=y({id:s().required(),firebaseId:s().required(),name:s().required(),iconUrl:s().required(),distributions:M(dD.required()).defined().nullable(),latestReleases:M(uD.required()).defined().nullable(),expiredAppleAgreements:$().defined().nullable()}),Kee=Rx.concat(y({distributionIdentifiers:y({packageName:s().defined().nullable(),bundleId:s().defined().nullable()}),ascEntityName:s().defined().nullable()})),Cx=y({id:s().required(),appId:s().required(),status:s().required().oneOf(Object.values(dN)),platform:s().required().oneOf(Object.values(yt)),priority:A().required().integer(),appName:s().defined(),startedAt:A().optional().nullable(),completedAt:A().optional().nullable(),createdAt:A().optional().nullable(),versionString:s().required()}),Xee=Cx.concat(y({logs:M(s().defined()).required()})),Qee=y({trigger:s().required().oneOf(["cancel","retry","delete"])}),Jee=y({trigger:s().required().oneOf(["disconnect","restart","terminate"])}),Tx=y({id:s().required(),majorVersion:A().required().integer().min(0),minorVersion:A().required().integer().min(0),tag:s().required().oneOf(Object.values(ub)),tagVersion:A().required().integer().min(0),supportedApiVersion:s().required().oneOf(Object.values(Wl)),gitCommit:s().required(),createdAt:A().required()}),xO=y({commit:s().required(),name:s().required(),branch:s().required()}),SO=cD.concat(y({appId:s().required(),appName:s().defined()})),EO=y({id:s().required(),connectedAt:A().required(),hostname:s().defined(),connectedFrom:s().required(),runnerOS:s().required().oneOf(Object.values(RS)),supportedAppDistributionPlatforms:M(s().required().oneOf(Object.values(yt))).required(),available:$().required(),activeReleaseJobId:s().nullable().defined()}),iE=y({token:s().required(),socketType:s().required().oneOf([TS.LaunchboardRunner]),runnerOS:s().required().oneOf(Object.values(RS)),supportedAppDistributionPlatforms:M(s().required().oneOf(Object.values(yt))).required(),hostname:s().defined()}),Zee=y({token:s().required(),socketType:s().required().oneOf([TS.LaunchboardMonitor])}),ete=iE.omit(["token"]).concat(y({available:$().required(),checkingAvailability:$().required()})),tte=iE.omit(["token"]),rte=y({releaseJob:lD.defined().nullable()}),nte=y({monitorSocketId:s().required()}),AO=y({id:s().required(),appId:s().required(),releaseJobId:s().required(),platform:s().required().oneOf(Object.values(yt)),buildNumber:A().required(),status:s().required().oneOf(Object.values(uN)),releaseConfig:xb.required(),createdAt:A().required()}),ite=y({id:s().required(),appId:s().required(),releaseId:s().defined().nullable(),platform:s().required().oneOf(Object.values(yt)),status:s().required().oneOf(Object.values(uN)),error:s().defined().nullable(),createdAt:A().required(),completedAt:A().defined().nullable()}),ate=y({releaseJobId:s().required(),success:$().required(),logs:M(s().defined()).required()}),ote=U(`${rE}ContractRes`,{ReleaseConfig:xb,PendingReleaseSubmission:cD,PendingReleaseSubmissionWithApp:SO,AppDistributionRelease:uD,AppDistribution:dD,AppWithReleases:Rx,ReleaseJobPreview:Cx,ReleaseJobProcessPayload:lD,ReleaseJobBuildContext:sD,ReleaseParams:nE,ReleaseJobWithLogs:Xee,ReleaseConfiguration:Tx,GitReference:xO,ReleaseJobRunnerPreview:EO,PaginatedReleaseJobs:Fe(Cx),PaginatedAppWithReleases:Fe(Rx),PaginatedReleaseConfigurations:Fe(Tx),PaginatedGitReferences:Fe(xO),PaginatedPendingReleaseSubmissionWithApp:Fe(SO),PaginatedReleaseJobRunnerPreviews:Fe(EO),BuildListItem:AO,BuildUploadStatus:ite,StoreUploadResult:ate,PaginatedBuildListItems:Fe(AO),ReleaseJobRunnerRequestProcessResponse:rte,ReleaseInitiatedResponse:y({responses:M(y({releaseJobId:s().nullable().defined(),platform:s().required().oneOf(Object.values(yt)),appId:s().required(),appName:s().required(),status:s().required().oneOf(["success","error"]),error:s().defined().nullable()}).required()).required()}),AppInspectorData:Kee,BulkReleaseJobResult:y({count:A().required()})}),ste=U(`${rE}ContractReq`,{ReleaseJobExtraConfig:oD,CreateReleaseConfiguration:Tx.concat(y({id:s().notRequired(),createdAt:A().notRequired()})),CreateReleaseRequest:y({appIds:M(s().required()).required(),actionsGitRef:s().required(),releaseConfigurationId:s().required(),appDistributionPlatforms:M(s().required().oneOf(Object.values(yt))).required(),autoSubmit:$().required(),releaseNotes:s().defined().nullable(),priority:A().defined().nullable()}),SubmitRelease:y({submitAt:s().required()}),ReleaseJobLogStore:y({releaseJobId:s().required(),logs:M(s().defined()).required()}),ReleaseJobRequest:y({runnerId:s().required(),supportedAppDistributionPlatforms:M(s().required().oneOf(Object.values(yt))).required()}),ReleaseJobRequeue:y({releaseJobId:s().required(),incrementBuildNumber:$().required()}),ReleaseJobComplete:y({releaseJobId:s().required(),exitCode:A().defined().nullable()}),ReleaseJobRunnerHandshake:iE,ReleaseJobMonitorHandshake:Zee,ReleaseJobRunnerSocketData:ete,ReleaseJobMonitorSocketData:tte,ReleaseJobMonitorAddData:nte,ReleaseJobTrigger:Qee,BulkReleaseJobTrigger:y({trigger:s().required().oneOf(["cancel","retry","delete"]),statuses:M(s().required().oneOf(Object.values(dN))).required().min(1)}),ReleaseJobRunnerTrigger:Jee,AddReleaseJob:y({appId:s().required(),platform:s().required().oneOf(Object.values(yt)),priority:A().required(),appReleaseConfigId:s().required(),appReleaseParams:nE.required()}),PresignedUrlResponse:y({url:s().required()}),PatchPendingSubmission:y({submitAt:A().nullable().defined()}),TriggerBuildUpload:y({buildId:s().required()}),TriggerBuildSubmission:y({buildId:s().required()})});U(`${rE}Contract`,{...ote,...ste});const aE="LaunchboardInternal",lte=U(`${aE}ContractRes`,{}),cte=U(`${aE}ContractReq`,{LaunchboardEventTrigger:y({logs:M(s().required()).required(),appId:s().required(),handler:s().required(),label:s().required()}),ActionConfigObject:y({appId:s().required(),configType:s().required(),actionsVersion:s().required(),appDistributionPlatform:s().required().oneOf(Object.values(yt)),appReleaseConfigId:s().required()}),MassActionConfigObject:y({configType:s().required(),actionsVersion:s().required(),appDistributionPlatform:s().oneOf(Object.values(yt))}),CustomAppMessageRequest:y({label:s().required(),trigger:s().required()}),ActionIdRequest:y({actionId:s().required()}),MultiActionIdRequest:y({actionIds:M(s().required()).required()}),ActionSyncRequest:y({actionId:s().required(),clientId:s().required()}),ActionUpdateVersions:y({appId:s().required(),versionAndroid:s(),versionIos:s()}),BuildCore:y({appReleaseConfigId:s().required(),appDistributionPlatform:s().oneOf(Object.values(yt)).required(),actionsVersion:s().required()}),BuildRef:y({appReleaseConfigId:s().required(),appDistributionPlatform:s().oneOf(Object.values(yt)).required(),actionsVersion:s().required(),appId:s().required()}),ReleaseLaunch:y({appReleaseConfigId:s().required(),appDistributionPlatform:s().oneOf(Object.values(yt)).required(),actionsVersion:s().required(),appFilter:s().oneOf(Object.values(CS)),appId:s(),releaseNotes:s().required(),autoSubmitUpdates:$().required()}),ActionClear:y({status:s().required().oneOf(Object.values(_J)),action:s().required().oneOf(["delete","cancel","requeue"])}),MercuryAppId:y({appId:s().required()}),MercuryBasicLogin:y({email:s().email().required(),password:s().required()}),RunnerId:y({runnerId:s().required()})});U(`${aE}Contract`,{...lte,...cte});const oE="AppData",fD=y({id:s().required(),postgresAppId:s().required(),path:s(),order:A().nullable(),restricted:$(),adminEmail
16:s().email().nullable(),backgroundColor:s().required(),backgroundUrl:s().nullable(),active:$().nullable(),isExample:$().nullable(),coaching:$().nullable(),iconUrl:s().nullable(),logoUrl:s().nullable(),metric:$(),free:$().nullable(),showCommunity:$().nullable(),showUserProfile:$().nullable(),advancedCharts:$().nullable(),name:s(),splashScreenUrl:s().nullable(),showLogoOnSplash:$().nullable(),lightenSplash:$().nullable(),themeColor:s(),toolbarColor:s(),cardColor:s(),welcomeMessage:s().nullable(),applePurchases:M(s()).nullable(),googlePurchases:M(s()).nullable(),earliestBuild:A(),videoLimit:A().nullable(),config:s().nullable(),privacyPolicyUrl:s().nullable(),licenseAgreementUrl:s().nullable(),accountManagementUrl:s().nullable(),customDomain:s().nullable(),nutritionSettings:hr(y({bmrFormula:s(),caloriesCalculation:s()})),pointsSettings:y({}).required(),featureFlags:hr(y()),signUpSteps:M(s()).nullable(),slug:s().required(),activeFeatures:M(y({flag:s().required(),description:s().required(),title:s().required(),elementType:s().nullable()})),bookmarks:$().nullable(),logo:s().nullable(),hasIap:$().nullable(),showIap:$().nullable(),launch_status:s().nullable(),showNutrition:$().nullable(),community:$().nullable(),userId:s().nullable(),barcodeScanning:$().nullable(),tags:M(s().required()),smartReps:$().nullable(),macroRatios:M(A()).nullable(),textColor:s().nullable(),introVideoUrl:s().nullable(),displayType:s().nullable(),darkMode:$().nullable(),appDesign:s().nullable(),appTemplate:s().nullable(),appName:s().nullable(),font:s().nullable(),appleAppstorePublicLink:s().nullable(),googlePlaystorePublicLink:s().nullable(),formsShowArBranding:$().required(),webAppLink:s().required(),locale:s().nullable().optional(),latestIOSBuild:A().nullable(),latestAndroidBuild:A().nullable()}).required(),ute=U(`${oE}ContractRes`,{AppData:fD}),dte=U(`${oE}ContractReq`,{AppId:s().required(),AppData:fD});U(`${oE}Contract`,{...ute,...dte});const sE="Apps",pD=M(y({id:s().required(),email:s().required(),displayName:s().required(),basicRole:s().required().oneOf(["coach","admin"]),rolePolicy:y({id:s().required(),name:s().required()})})).required(),fte=U(`${sE}ContractRes`,{AppDTO:y().shape({id:s().required(),userId:s().nullable(),firebaseId:s().nullable(),buildToggle:$().required("Build Toggle is required"),statusIos:s().oneOf(Object.values(uu)).required("iOS Status is required"),statusAndroid:s().oneOf(Object.values(uu)).required("Android Status is required"),deployedLastIos:s().nullable(),deployedLastAndroid:s().nullable(),bundleId:s().nullable(),packageName:s().nullable(),versionIos:s().nullable(),versionAndroid:s().nullable(),website:s().nullable(),socialMedia:s().nullable(),socialMediaHandler:s().nullable(),appLinkIos:s().nullable(),appLinkAndroid:s().nullable(),appLinkWeb:s().nullable(),redirectUrl:s().nullable(),createdAt:s().nullable(),updatedAt:s().nullable(),deletedAt:s().nullable(),appDesign:s().nullable(),appTemplate:s().nullable(),pushyApiKey:s().nullable(),formsShowArBranding:$().required(),slug:s().required(),zapierIntegrated:$().required()}),TeamData:y({teamData:pD.required()}).required()}),pte=U(`${sE}ContractReq`,{TeamMemberMutate:y({id:s().required(),role:s().required().oneOf(["admin","coach"])}).required(),TeamMemberCreate:y({email:s().required(),role:s().required().oneOf(["admin","coach"])}).required(),TeamArray:pD});U(`${sE}Contract`,{...fte,...pte});const lE="Metrics",hte=U(`${lE}ContractRes`,{OverviewMetrics:y({appsOnboarded:A().required(),appsActive:A().required(),appsTrialing:A().required(),appsLive:A().required(),appsInReview:A().required(),appsReady:A().required()}),AppOverviewMetrics:y({activeUsers:A().required(),totalUsers:A().required(),appRevenueMonthly:A().required(),appRevenueTotal:A().required(),subscriptionsDaily:A().required(),subscriptionsWeekly:A().required(),subscriptionsMonthly:A().required()}),OnboardCount:y({onboardCount:A().required()})}),mte=U(`${lE}ContractReq`,{GetRangedAppOnboards:y({startEpoch:A().required(),endEpoch:A().required()})}),gte=U(`${lE}Contract`,{...hte,...mte}),cE="Admin",bte=U(`${cE}ContractRes`,{}),vte=U(`${cE}ContractReq`,{MassEmail:y({title:s().required(),body:s().required(),applicationSubscriptionStatus:s().required().oneOf([Os.ACTIVE,Os.TRIALING])}),MassEmailTest:y({email:s().required(),title:s().required(),body:s().required()})}),RO=U(`${cE}Contract`,{...bte,...vte}),uE="ZapierActions",yte=U(`${uE}ContractRes`,{}),xte=U(`${uE}ContractReq`,{[bx.CREATE_COMMUNITY_POST]:y({communityGroupId:s().defined().nullable(),message:s().required()}),[bx.SEND_PUSH_NOTIFICATION]:y({title:s().required(),message:s().required()})});U(`${uE}Contract`,{...yte,...xte});const dE="Organization",wx=y({id:s().required(),name:s().required(),logoUrl:s().required(),verified:$().required()}),hD=y({authnId:s().required(),appId:s().required(),email:s().required(),displayName:s().defined()}),Ste=wx.concat(y({onboardCompleted:$().optional().nonNullable(),orgAdmins:M(hD.required()).defined().optional().nonNullable()})),Ete=U(`${dE}
16ContractRes`,{CoreOrganization:wx.required(),Organization:Ste.required(),ListOrgs:y({orgs:M(wx.required()).required(),total:A().required()}),AdminOverviewDataOrgAdmin:hD.required()}),Ate=U(`${dE}ContractReq`,{OrganizationCreate:y({name:s().required(),logoUrl:s().required().url()}),OrgsQuery:y({limit:A().optional(),offset:A().optional()}),OrganizationUpdate:y({name:s().optional(),verified:$().optional(),logoUrl:s().url().optional(),onboardCompleted:$().optional()})}),$y=U(`${dE}Contract`,{...Ate,...Ete}),fE="Organization",CO=y({id:s().required(),name:s().required(),logoUrl:s().required(),commissionPercentage:A().required(),onboardCompleted:$().required(),verified:$().required(),stripeAccountId:s().nullable().defined().strict()}),TO=y({authnId:s().required(),appId:s().required(),email:s().required(),displayName:s().defined()}),Rte=U(`${fE}ContractRes`,{Organization:CO.required(),ListOrgs:y({orgs:M(CO.required()).required(),total:A().required()}),OrgPricingTable:y({pricingTableId:s().nullable().defined().strict()}),OrgStripeConnect:y({connected:$().required()}),OrgStripeConnectUrl:y({stripeConnectUrl:s().required()}),AdminOverviewDataOrgAdmin:TO.required(),OrgAdminOverview:y({orgAdmins:M(TO.required()).required()})}),Cte=U(`${fE}ContractReq`,{OrganizationCreate:y({name:s().required(),logoUrl:s().required().url()}),StripePricingUpdate:y({commissionPercentage:A().optional(),stripePricingTable:s().optional()}),ListQuery:y({limit:A().optional(),offset:A().optional()}),OrganizationUpdate:y({name:s().required(),commissionPercentage:A().required(),str
16ipeAccountId:s().nullable().strict(),stripePricingTable:s().defined().nullable().strict()})});U(`${fE}Contract`,{...Cte,...Rte});const pE="AppInstance",mD=y({status:s().required().oneOf(Object.values(Os)),nextSyncAt:A().defined().nullable(),lastSyncedAt:A().defined().nullable(),trialExpires:A().defined().nullable(),isEnabled:$().required(),stripeCustomerId:s().required(),stripeSubscriptionId:s().required()}),wO=y({authnId:s().required(),firebaseCustomerId:s().required(),email:s().required(),displayName:s().defined(),phoneNumber:s().nullable().defined()}),gD=y({id:s().required(),firebaseAppId:s().required(),name:s().required(),subscription:mD.nullable().optional(),appDists:yb.defined(),appLinkWeb:s().required(),orgId:s().nullable().defined(),appIcon:s().defined().nullable(),coreService:y({status:s().required().oneOf(Object.values(Os)),trialExpires:A().defined().nullable(),isEnabled:$().required()}).required()}),_O=gD.concat(y({stripeSettings:BN.optional().nullable(),builderDisabled:$().required()})),Tte=y({flags:M(y({flag:s().required().oneOf(Object.values(SS)),value:s().defined()}).required()).required()}),wte=U(`${pE}ContractRes`,{AppId:y({appId:s().required()}),AppInstanceCore:gD.required(),AppInstance:_O.required(),AdminOverviewDataAppAdmin:wO,AdminOverviewData:_O.concat(y({appAdmins:M(wO.required()).required(),str
16ipeCustomerId:s().required(),commissions:y({appuserApprabbit:A().required(),appuserOrganization:A().required()}).required()})),AppWebUrls:y({appLinkWeb:s().required(),appLinkSlug:s().required()}),AppSubscription:mD.required(),AppStyles:y({appName:s().required(),bg:s().required(),font:s().required(),color:s().required(),highlight:s().required(),secondaryBg:s().required(),secondaryColor:s().required(),logoUrl:s().required(),iconUrl:s().url().required(),showApprabbitBranding:$().required(),darkMode:$().required(),locale:s().required()}),AppLinks:y({web:s().required(),[yt.APPLE_APPSTORE]:s().defined().nullable(),[yt.GOOGLE_PLAYSTORE]:s().defined().nullable(),locale:s().required()}),OpengraphData:y({title:s().required(),description:s().required(),image:s().required(),favicon:s().required()}),AppMetrics:y({stripeMetrics:y({revenueMonthly:A().required(),revenueTotal:A().required(),apprabbitCommissionsMonthly:A().required(),apprabbitCommissionsTotal:A().required()}).nullable().defined(),totalUsers:A().required()}),AppQueryId:y({apps:M(y({id:s().required()}).required()).required()}),AppFeatureFlags:Tte}),_te=U(`${pE}ContractReq`,{CreateApplicationCustomerAndSubscription:y({appId:s().required(),name:s().required(),email:s().required()}),UpgradeApplicationSubscription:y({stripePriceId:s().required()}),ExtendApplicationSubscription:y({trialEndEpoch:A().required()}),PatchApplication:y({name:s().optional(),iconUrl:s().nullable().optional(),commissions:hr(y({appuserApprabbit:A().min(0).max(100).optional(),appuserOrganization:A().min(0).max(20).optional()})),orgId:s().nullable().optional(),builderDisabled:$().nullable().optional()})}),ia=U(`${pE}Contract`,{...wte,..._te}),hE="AppBranding",bD=y({backgroundColor:s().required(),cardColor:s().required(),toolbarColor:s().required(),themeColor:s().required(),font:s().required(),iconUrl:s().required(),logoUrl:s().required(),splashScreenUrl:s().nullable().defined(),backgroundUrl:s().nullable().defined(),appDesign:s().nullable().defined(),showLogoOnSplash:$().required(),lightenSplash:$().required(),darkMode:$().required()}),Ote=U(`${hE}ContractRes`,{AppBranding:bD}),Ite=U(`${hE}ContractReq`,{PutAppBranding:bD});U(`${hE}Contract`,{...Ote,...Ite});const vD="AppInstagramBranding",qte=U(`${vD}ContractReq`,{DetectInstagramBranding:y({instagramHandle:s().required()})});U(`${vD}Contract`,{...qte});const mE="AppServices",yD=y({id:s().required(),service:s().required().oneOf(Object.values(gx)),status:s().required().oneOf(Object.values(Os)),isEnabled:$().required(),trialExpires:A().defined().nullable(),stripeObjectId:s().required(),str
16ipeObjectStatus:s().required(),nextSyncAt:A().defined().nullable(),lastSyncedAt:A().defined().nullable()}).nullable().notRequired().default(void 0),Pte=y(Object.keys(gx).reduce((e,t)=>(e[gx[t]]=yD,e),{})),kte=U(`${mE}ContractRes`,{ApplicationService:yD.required(),ApplicationServices:Pte,CheckoutSessionUrl:y({sessionUrl:s().required()})}),Nte=U(`${mE}ContractReq`,{}),By=U(`${mE}Contract`,{...kte,...Nte}),gE="Onboarding",Dte=U(`${gE}ContractRes`,{Onboardable:y({onboardable:$().required()})}),Mte=U(`${gE}ContractReq`,{PhoneVerify:y({phoneNumber:s().required()}),PhoneVerifyCheck:y({phoneNumber:s().required(),code:s().required()}),OnboardableCheck:y({email:s().required()}),OnboardAuthn:y({displayName:s().required(),email:s().required(),password:s().required(),phoneNumber:s().required(),orgId:s().optional(),marketingLeadType:s().required().oneOf(Object.values(dg))})}),am=U(`${gE}Contract`,{...Dte,...Mte}),bE="Integrations",jte=U(`${bE}ContractRes`,{IntegrationsActive:y({intercom:$().required(),zapier:$().required(),oneSignal:$().required()}),IntercomKeys:y({intercomAppId:s().required(),intercomAndroidKey:s().defined().nullable(),intercomIosKey:s().defined().nullable()}),OneSignalClient:y({oneSignalAppId:s().nullable().defined()}),OneSignalExtendedClient:y({oneSignalAppId:s().nullable().defined(),oneSignalApiKeySet:$().required(),oneSignalPushLimit:A().required().min(0)}),ZapierApiKey:y({apiKey:s().required()})}),Lte=U(`${bE}ContractReq`,{}),zte=U(`${bE}Contract`,{...jte,...Lte}),vE="AppuserOnboarding",xD=y({title:s().required(),body:s().required(),enabled:$().required(),includePlatformLinks:M(s().required().oneOf(Object.values(yt))).required(),includeWebLink:$().required()}),Ute=U(`${vE}ContractRes`,{WelcomeEmailPreview:y({title:s().required(),body:s().required()}),WelcomeEmail:xD}),Vte=U(`${vE}ContractReq`,{RegisterWelcomeEmail:xD}),Hy=U(`${vE}Contract`,{...Ute,...Vte}),yE="AppTeam",SD=y({id:s().required(),email:s().required(),displayName:s().required(),accessManaged:$().required(),basicRole:s().required().oneOf(["coach","admin"])}).required(),Fte=M(SD.required()).required(),$te=U(`${yE}ContractRes`,{TeamMember:SD.required(),TeamData:y({teamData:Fte.required()}).required()}),Bte=U(`${yE}ContractReq`,{TeamMemberRoleChange:y({role:s().required().oneOf(["admin","coach"])}).required(),TeamMemberCreate:y({email:s().required(),role:s().required().oneOf(["admin","coach"])}).required()});U(`${yE}Contract`,{...$te,...Bte});const xE="AuthnExerciseEntry",ED=y({id:s().required(),appId:s().required(),authnId:s().required(),exerciseId:s().required(),exerciseAssignmentId:s().nullable().optional(),fitnessProgramId:s().nullable().defined(),fitnessDayId:s().nullable().defined(),order:A().required(),forDate:s().required(),notes:s().nullable().optional(),reps:A().nullable().optional(),weight:A().nullable().optional(),distanceUnit:s().nullable().optional(),distances:M(A().required()).required(),times:M(A().required()).required(),calories:A().nullable().optional(),videoUrl:s().nullable().optional(),isWarmUp:$().required(),rightSideId:s().nullable().optional(),firebaseId:s().nullable().optional(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional()}),Hte=Fe(ED.required()),OO=y({exerciseId:s().required(),exerciseAssignmentId:s().nullable().defined(),fitnessProgramId:s().nullable().defined(),fitnessDayId:s().nullable().defined(),order:A().required(),forDate:s().required(),notes:s().nullable().defined(),reps:A().nullable().defined(),weight:A().nullable().defined(),distanceUnit:s().nullable().defined(),distances:M(A().required()).required(),times:M(A().required()).required(),calories:A().nullable().defined(),videoUrl:s().nullable().defined(),isWarmUp:$().required(),firebaseId:s().nullable().defined()}),Gte=OO.concat(y({rightSide:OO.nullable().defined()})),IO=y({id:s().required(),exerciseAssignmentId:s().nullable().defined(),fitnessProgramId:s().nullable().defined(),fitnessDayId:s().nullable().defined(),order:A().required(),forDate:s().required(),notes:s().nullable().defined(),reps:A().nullable().defined(),weight:A().nullable().defined(),distanceUnit:s().nullable().defined(),distances:M(A().required()).required(),times:M(A().required()).required(),calories:A().nullable().defined(),videoUrl:s().nullable().defined(),isWarmUp:$().required(),firebaseId:s().nullable().defined()}),Wte=IO.concat(y({rightSide:IO.nullable()})),Yte=U(`${xE}ContractRes`,{AuthnExerciseEntriesResponse:Hte}),Kte=U(`${xE}ContractReq`,{AuthnExerciseEntry:ED,CreateAuthnExerciseEntryRequest:Gte,PutAuthnExerciseEntryRequest:Wte});U(`${xE}Contract`,{...Yte,...Kte});const SE="AuthnExerciseDayEntry",AD=y({id:s().required(),appId:s().required(),authnId:s().required(),kind:s().required().oneOf(Object.values(xS)),forDate:s().required(),fitnessProgramId:s().nullable().defined(),fitnessDayId:s().nullable().defined(),title:s().nullable().optional(),notes:s().nullable().optional(),firebaseId:s().nullable().optional(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional()}),Xte=Fe(AD.required()),Qte=y({kind:s().required().oneOf(Object.values(xS)),forDate:s().required(),fitnessProgramId:s().nullable().defined(),fitnessDayId:s().nullable().defined(),title:s().nullable().defined(),notes:s().nullable().defined(),firebaseId:s().nullable().defined()}),Jte=U(`${SE}ContractRes`,{AuthnExerciseDayEntriesResponse:Xte}),Zte=U(`${SE}ContractReq`,{AuthnExerciseDayEntry:AD,CreateAuthnExerciseDayEntryRequest:Qte});U(`${SE}Contract`,{...Jte,...Zte});const EE="AuthnProgramProgress",RD=y({id:s().required(),appId:s().required(),authnId:s().required(),fitnessProgramId:s().required(),fitnessWeekId:s().required(),fitnessDayId:s().required(),forDate:s().nullable().optional(),firebaseId:s().nullable().optional(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional()}),ere=Fe(RD.required()),tre=y({fitnessProgramId:s().required(),fitnessWeekId:s().required(),fitnessDayId:s().required(),forDate:s().nullable().defined(),firebaseId:s().nullable().defined()}),rre=y({id:s().required(),fitnessProgramId:s().required(),fitnessWeekId:s().required(),fitnessDayId:s().required(),forDate:s().nullable().defined(),firebaseId:s().nullable().defined()}),nre=U(`${EE}ContractRes`,{AuthnProgramProgressListResponse:ere}),ire=U(`${EE}ContractReq`,{AuthnProgramProgress:RD,CreateAuthnProgramProgressRequest:tre,PutAuthnProgramProgressRequest:rre});U(`${EE}Contract`,{...nre,...ire});const AE="AuthnFoodJournalEntry",CD=y({id:s().required(),appId:s().required(),authnId:s().required(),imageUrl:s().required(),note:s().nullable().optional(),entryDate:s().required(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional()}),are=Fe(CD.required()),ore=y({imageUrl:s().required(),note:s().nullable().defined(),entryDate:s().required()}),sre=y({entries:M(ore.required()).min(1).required()}),lre=y({id:s().required(),note:s().nullable().defined(),entryDate:s().required()}),cre=U(`${AE}ContractRes`,{AuthnFoodJournalEntryListResponse:are}),ure=U(`${AE}ContractReq`,{AuthnFoodJournalEntry:CD,CreateAuthnFoodJournalEntriesRequest:sre,PutAuthnFoodJournalEntryRequest:lre});U(`${AE}Contract`,{...cre,...ure});const RE="Groups",gg=y({isLeaderboardTeam:$().required(),legacyProductsDeclaration:M(s().required()).required()}),TD=y({firebaseFormId:s().required(),recurring:s(),recurringDay:A()}),wD=y({firebaseProgramId:s().required(),startAt:s().required().oneOf(Object.values(pN))}),_D=y({firebaseCommunityId:s().required()}),bg=y({addToFreeUsers:$().required(),freeFormIds:M(s().required()).optional(),formConfigHandlers:M(TD.required()).defined(),programConfigHandlers:M(wD.required()).defined(),communityConfigHandlers:M(_D.required()).defined(),userCategoryConfigHandler:s().optional()}),qO=y({id:s().required(),name:s().defined(),appId:s().required(),description:s().defined(),firebaseGroupId:s().required(),grantsAccess:$().required(),extraData:gg.optional().default(void 0),handlerData:bg.optional().default(void 0),memberCount:A().required()}),PO=y({authnId:s().required(),firebaseCustomerId:s().nullable().default(null),email:s().nullable().default(null),displayName:s().nullable().default(null),profilePicUrl:s().nullable().default(null)}),dre=U(`${RE}ContractRes`,{GroupExtraData:gg.required(),GroupHandlerData:bg.required(),GroupFormConfigHandler:TD.required(),GroupProgramConfigHandler:wD.required(),GroupCommunityConfigHandler:_D.required(),AuthnAppGroup:qO.required(),GroupMember:PO.required(),ApplyAppAuthnGroupJob:y({appId:s().required(),authnId:s().required(),groupIds:M(s().required()).required()}),QueriedGroups:Fe(qO),QueriedGroupMembers:Fe(PO)}),fre=U(`${RE}ContractReq`,{ExcludedAutomationIds:y({excludedAutomationIds:M(s().required()).required(),appId:s().required(),groupId:s().required()}),CreateGroupRequest:y({name:s().required(),description:s().defined(),grantsAccess:$().optional(),extraData:hr(gg),handlerData:hr(bg)}),UpdateGroupRequest:y({name:s().required(),description:s().defined(),grantsAccess:$().required(),extraData:gg.nullable().default(null),handlerData:bg.nullable().default(null)}),PutAuthnGroupsRequest:y({groupIds:M(s().required()).required(),excludedAutomationIds:M(s().required()).optional()})}),pre=U(`${RE}Contract`,{...dre,...fre}),CE="PushNotification",_x=y({title:s().optional(),body:s().optional(),extraData:hr(y())}),hre=y({appId:s().required(),authnIds:M(s().required()).required().min(1),executeAt:A().optional(),notification:_x.required()}),kO=y({accessEnabled:$().optional(),groupIds:M(s().required()).required(),authnIds:M(s().required()).required()}),mre=U(`${CE}ContractRes`,{}),gre=U(`${CE}ContractReq`,{PushNotification:_x,PushNotificationRequestAuthn:hre,PushNotificationRequestSelectors:kO,PushNotificationSendRequest:y({selectors:kO.required(),notification:_x.required()})}),bre=U(`${CE}Contract`,{...mre,...gre}),TE="AppAutomatedRule",OD=y({id:s().required(),appId:s().required(),enabled:$().required(),automationRuleKind:s().required(),triggerData:s().required(),createdAt:A().nullable().optional(),updatedAt:A().nullable().optional(),deletedAt:A().nullable().optional()}),vre=U(`${TE}ContractRes`,{AppAutomatedRule:OD.required()}),yre=U(`${TE}ContractReq`,{CreateAppAutomatedRule:y({appId:s().required(),enabled:$().required(),automationRuleKind:s().required(),triggerData:s().required()}),UpdateAppAutomatedRule:y({id:s().required(),enabled:$().optional(),automationRuleKind:s().optional(),triggerData:s().optional()}),AppAutomatedRule:OD});U(`${TE}Contract`,{...vre,...yre});const wE="AppFeatureFlag",NO=y({flag:s().required(),flagConfigId:s().required(),customValue:s().defined().nullable(),defaultValue:s().defined().nullable(),deprecated:$().required()}),xre=U(`${wE}ContractRes`,{FlagAndValue:NO,PaginatedFlagsAndValues:Fe(NO)}),Sre=U(`${wE}ContractReq`,{UpdateFlagValue:y({value:s().required()}),UpdateFlagConfigDefault:y({defaultValue:s().nullable().defined()})}),Gy=U(`${wE}Contract`,{...xre,...Sre}),Ere="AppMediaAttachment",lp=y({id:s().required(),kind:s().oneOf(Object.values(_S)).required(),url:s().required(),metadata:y().required()}),cp=y({kind:s().oneOf(Object.values(_S)).required(),url:s().required(),metadata:y().optional().default(void 0)});U(`${Ere}Contract`,{AppMediaAttachment:lp,CreateAppMediaAttachmentRequest:cp});const _E="AppCommunityPost",Are=y({authnId:s().required(),displayName:s().required(),avatar:s().nullable().optional()}),Rre=y({authnId:s().required(),text:s().required()}),ID=y({id:s().required(),firebasePostId:s().nullable().optional(),communityGroupId:s().required(),authnId:s().required(),text:s().defined(),imageUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),audioUrl:s().nullable().optional(),reported:$().required(),hidden:$().required(),pinned:$().required(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional(),author:Are.required(),reactions:M(Rre.required()).required(),commentCount:A().required(),taggedUserIds:M(s().required()),attachments:M(lp.required()).required()}),Cre=y({posts:M(ID.required()).required()}),Tre=y({communityGroupId:s().required(),authnId:s().required(),text:s().defined(),imageUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),audioUrl:s().nullable().optional(),taggedUserIds:M(s().required()).nullable().optional(),attachments:M(cp.required()).optional()}),wre=y({text:s().nullable().optional(),imageUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),audioUrl:s().nullable().optional(),taggedUserIds:M(s().required()).nullable().optional()}),_re=y({hidden:$().required()}),Ore=y({pinned:$().required()}),Ire=y({reported:$().required()}),qre=U(`${_E}ContractRes`,{AppCommunityPostsResponse:Cre}),Pre=U(`${_E}ContractReq`,{AppCommunityPost:ID,CreateAppCommunityPostRequest:Tre,UpdateAppCommunityPostRequest:wre,UpdateAppCommunityPostHiddenRequest:_re,UpdateAppCommunityPostPinnedRequest:Ore,UpdateAppCommunityPostReportedRequest:Ire});U(`${_E}Contract`,{...qre,...Pre});const OE="AppCommunityPostComment",kre=y({authnId:s().required(),displayName:s().required(),avatar:s().nullable().optional()}),qD=y({id:s().required(),firebaseCommentId:s().nullable().optional(),postId:s().required(),authnId:s().required(),text:s().defined(),firebasePostId:s().nullable().optional(),imageUrl:s().nullable().optional(),reported:$().required(),hidden:$().required(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional(),author:kre.required(),taggedUserIds:M(s().required()).nullable().optional(),attachments:M(lp.required()).required()}),Nre=y({comments:M(qD.required()).required()}),Dre=y({authnId:s().required(),firebaseCommentId:s().nullable().optional(),text:s().defined(),imageUrl:s().nullable().optional(),postId:s().required(),taggedUserIds:M(s().required()).nullable().optional(),attachments:M(cp.required()).optional()}),Mre=y({text:s().nullable().optional(),imageUrl:s().nullable().optional(),taggedUserIds:M(s().required()).nullable().optional()}),jre=U(`${OE}ContractRes`,{AppCommunityPostCommentsResponse:Nre,AppMediaAttachment:lp}),Lre=U(`${OE}ContractReq`,{AppCommunityPostComment:qD,CreateAppCommunityPostCommentRequest:Dre,UpdateAppCommunityPostCommentRequest:Mre});U(`${OE}Contract`,{...jre,...Lre});const IE="AppCommunityPostLike",PD=y({postId:s().required(),authnId:s().required(),text:s().required(),firebasePostId:s().nullable().optional()}),zre=y({postId:s().required(),authnId:s().required(),text:s().required(),firebasePostId:s().nullable().optional()}),Ure=y({reactions:M(PD).required()}),Vre=U(`${IE}ContractRes`,{AppCommunityPostReactionsResponse:Ure}),Fre=U(`${IE}ContractReq`,{AppCommunityPostReaction:PD,CreateAppCommunityPostReactionRequest:zre});U(`${IE}Contract`,{...Vre,...Fre});const qE="AppCommunityGroup",kD=y({id:s().required(),appId:s().required(),name:s().defined(),icon:A().integer().nullable().optional(),imageUrl:s().nullable().optional(),public:$().required(),isDefault:$().required(),firebaseCommunityId:s().nullable().optional(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional(),newPost
16Count:A().nullable().optional()}),$re=y({memberIds:M(s().required())}),Bre=y({groups:M(kD.required()).required()}),Hre=y({appId:s().required(),name:s().defined(),icon:A().integer().nullable().optional(),imageUrl:s().nullable().optional(),public:$().required(),isDefault:$().optional(),firebaseCommunityId:s().nullable().optional()}),Gre=y({name:s().optional(),icon:A().integer().nullable().optional(),imageUrl:s().nullable().optional(),public:$().optional(),isDefault:$().optional()}),Wre=y({authnId:s().required()}),Yre=U(`${qE}ContractRes`,{AppCommunityGroup:kD,AppCommunityGroupsResponse:Bre,AppCommunityGroupMembersResponse:$re}),Kre=U(`${qE}ContractReq`,{CreateAppCommunityGroupRequest:Hre,UpdateAppCommunityGroupRequest:Gre,AddUserToGroupRequest:Wre});U(`${qE}Contract`,{...Yre,...Kre});const PE="ContentPolicies",Xre=y({id:s().required(),whiteListedAccessGroupIds:M(s().required()).required(),whitelistedVisibleGroupIds:M(s().required()).required(),published:$().required(),metadata:y().defined().nullable(),createdAt:s().required(),updatedAt:s().required(),deletedAt:s().defined().nullable()}),Qre=U(`${PE}ContractRes`,{ContentPolicy:Xre}),Jre=U(`${PE}ContractReq`,{CreateContentPolicy:y({whiteListedAccessGroupIds:M(s().required()).required(),whitelistedVisibleGroupIds:M(s().required()).required(),published:$().required(),metadata:y().defined().nullable()}),PutContentPolicy:y({whiteListedAccessGroupIds:M(s().required()).required(),whitelistedVisibleGroupIds:M(s().required()).required(),published:$().required(),metadata:y().defined().nullable()}),PatchContentPolicy:y({whiteListedAccessGroupIds:M(s().required()).optional(),whitelistedVisibleGroupIds:M(s().required()).optional(),published:$().optional(),metadata:y().defined().nullable().optional().default(void 0)}),PutContentPolicyOmittingMetadata:y({whiteListedAccessGroupIds:M(s().required()).required(),whitelistedVisibleGroupIds:M(s().required()).required(),published:$().required()}),PatchContentPolicyOmittingMetadata:y({whiteListedAccessGroupIds:M(s().required()).optional(),whitelistedVisibleGroupIds:M(s().required()).optional(),published:$().optional()})});U(`${PE}Contract`,{...Qre,...Jre});const kE="AppAgreement",Ox=y({label:s().required(),url:s().required()}),Ix=y({id:s().required(),agreementId:s().required(),version:A().required(),body:s().required(),externalLinks:M(Ox.required()).defined().nullable(),publishedAt:A().defined().nullable(),publishedBy:s().defined().nullable(),effectiveAt:A().defined().nullable(),changeNote:s().defined().nullable(),createdAt:A().required()}),DO=y({id:s().required(),appId:s().required(),kind:s().oneOf(Object.values(mx)).defined().nullable(),title:s().required(),required:$().required(),acceptanceKind:s().oneOf(Object.values(hg)).required(),status:s().oneOf(Object.values(qS)).required(),latestVersion:Ix.defined().nullable(),createdAt:A().required(),updatedAt:A().required()}),Zre=y({id:s().required(),appId:s().required(),authnId:s().required(),agreementVersionId:s().required(),acceptedAt:A().required(),signatureText:s().defined().nullable(),createdAt:A().required()}),ene=U(`${kE}ContractRes`,{AppAgreement:DO,AppAgreements:M(DO.required()).required(),AppAgreementVersion:Ix,AppAgreementVersions:M(Ix.required()).required(),AppAgreementAcceptance:Zre}),tne=U(`${kE}ContractReq`,{CreateAppAgreement:y({kind:s().oneOf(Object.values(mx)).nullable().optional(),title:s().required(),required:$().optional(),acceptanceKind:s().oneOf(Object.values(hg)).optional()}),PutAppAgreement:y({kind:s().oneOf(Object.values(mx)).defined().nullable(),title:s().required(),required:$().required(),acceptanceKind:s().oneOf(Object.values(hg)).required(),status:s().oneOf(Object.values(qS)).required()}),CreateAppAgreementVersion:y({body:s().required(),externalLinks:M(Ox.required()).nullable().optional(),effectiveAt:A().nullable().optional(),changeNote:s().nullable().optional()}),PutAppAgreementVersion:y({body:s().required(),externalLinks:M(Ox.required()).defined().nullable(),effectiveAt:A().defined().nullable(),changeNote:s().defined().nullable()}),AcceptAppAgreement:y({signatureText:s().nullable().optional()})});U(`${kE}Contract`,{...ene,...tne});const NE="AppForm",vg=y({richTitle:s().nullable().optional(),richSubtitle:s().nullable().optional(),imageUrl:s().nullable().optional(),thumbnail:s().nullable().optional(),checkOff:$().nullable().optional(),showTitle:$
16().nullable().optional(),fullWidth:$().nullable().optional(),borderRadius:A().nullable().optional(),backgroundColor:s().nullable().optional(),hasShadow:$().nullable().optional(),size:s().nullable().optional(),font:s().nullable().optional()}),yg=y({repeat:s().nullable().optional(),endMessage:s().nullable().optional(),endBottomText:s().nullable().optional(),prefill:$().nullable().optional(),endPagePath:s().nullable().optional(),trackIds:M(s().required()).nullable().optional(),programIds:M(s().required()).nullable().optional(),showToNewUsers:$().nullable().optional()}),rne=y({id:s().required(),formId:s().required(),firebaseQuestionId:s().defined().nullable(),prompt:s().defined().nullable(),kind:s().defined().nullable(),responses:M(s().required()).required(),description:s().defined().nullable(),options:y().defined().nullable(),displayOrder:A().required(),whitelistedGroupIds:M(s().required()).required(),createdAt:A().required(),updatedAt:A().required()}),MO=y({id:s().required(),appId:s().required(),firebaseFormId:s().defined().nullable(),title:s().defined().nullable(),subtitle:s().defined().nullable(),isCheckInForm:$().required(),shouldNotify:$().required(),style:vg.required(),config:yg.required(),questions:M(rne.required()).required(),createdAt:A().required(),updatedAt:A().required()}),nne=U(`${NE}ContractRes`,{AppForm:MO.required(),AppForms:M(MO.required()).required()}),ine=U(`${NE}ContractReq`,{CreateAppForm:y({title:s().nullable().optional(),subtitle:s().nullable().optional(),isCheckInForm:$().optional(),shouldNotify:$().optional(),style:vg.nullable().optional(),config:yg.nullable().optional()}),UpdateAppForm:y({title:s().nullable().optional(),subtitle:s().nullable().optional(),isCheckInForm:$().optional(),shouldNotify:$().optional(),style:vg.nullable().optional(),config:yg.nullable().optional()}),CreateAppFormQuestion:y({prompt:s().nullable().optional(),kind:s().nullable().optional(),responses:M(s().required()).nullable().optional(),description:s().nullable().optional(),options:hr(y()),whitelistedGroupIds:M(s().required()).nullable().optional()}),UpdateAppFormQuestion:y({prompt:s().nullable().optional(),kind:s().nullable().optional(),responses:M(s().required()).nullable().optional(),description:s().nullable().optional(),options:hr(y()),whitelistedGroupIds:M(s().required()).nullable().optional()}),ReorderAppFormQuestions:y({ids:M(s().required()).required()})});U(`${NE}Contract`,{...nne,...ine,AppFormStyle:vg,AppFormConfig:yg});const DE="AppFormSubmission",Cl=y({weight:A().nullable().optional(),frontPhotoUrl:s().nullable().optional(),sidePhotoUrl:s().nullable().optional(),backPhotoUrl:s().nullable().optional()}),xg=y({imageUrls:M(s().required()).nullable().optional(),videoUrls:M(s().required()).nullable().optional()}),ane=y({id:s().required(),submissionId:s().required(),formQuestionId:s().defined().nullable(),value:s().required(),displayOrder:s().required(),attributes:Cl.required(),createdAt:A().required()}),jO=y({id:s().required(),formId:s().required(),formTitle:s().nullable().optional(),firebaseSubmissionId:s().defined().nullable(),authnId:s().required(),submittedAt:A().defined().nullable(),reviewed:$().required(),attributes:Cl.required(),hasUnreadMessages:$().required(),questionAnswers:M(ane.required()).required(),createdAt:A().required(),updatedAt:A().required()}),LO=y({id:s().required(),submissionId:s().required(),firebaseFeedbackId:s().defined().nullable(),authorId:s().required(),authorName:s().nullable().optional(),text:s().required(),readAuthnIds:M(s().required()).required(),attributes:xg.required(),sentAt:A().required(),createdAt:A().required()}),one=U(`${DE}ContractRes`,{AppFormSubmission:jO.required(),PaginatedAppFormSubmissions:Fe(jO),AppFormSubmissionMessage:LO.required(),PaginatedAppFormSubmissionMessages:Fe(LO)}),sne=U(`${DE}ContractReq`,{CreateAppFormSubmission:y({authnId:s().required(),submittedAt:A().nullable().optional(),attributes:Cl.nullable().optional(),answers:M(y({formQuestionId:s().nullable().optional(),value:s().required(),displayOrder:s().nullable().optional(),attributes:Cl.nullable().optional()}).required()).required()}),UpdateAppFormSubmission:y({submittedAt:A().nullable().optional(),reviewed:$().nullable().optional(),attributes:Cl.nullable().optional(),answers:M(y({formQuestionId:s().nullable().optional(),value:s().required(),displayOrder:s().nullable().optional(),attributes:Cl.nullable().optional()}).required()).nullable().optional()}),CreateAppFormSubmissionMessage:y({authorId:s().required(),text:s().required(),attributes:xg.nullable().optional(),sentAt:A().required()}),UpdateAppFormSubmissionMessage:y({text:s().nullable().optional(),attributes:xg.nullable().optional(),readAuthnIds:M(s().required()).nullable().optional()})});U(`${DE}Contract`,{...one,...sne,SubmissionAttributes:Cl,MessageAttributes:xg});const ME="Nutrition",Sb=y({id:s().required(),appId:s().required(),authnId:s().defined().nullable(),parentMealId:s().defined().nullable(),title:s().required(),subtitle:s().defined().nullable(),description:s().defined().nullable(),videoUrl:s().defined().nullable(),pdfUrl:s().defined().nullable(),imageUrl:s().defined().nullable(),thumbnail:s().defined().nullable(),showTitle:$
16().required(),soundOn:$().required(),quillJson:s().defined().nullable(),size:s().required(),calories:A().defined().nullable(),fat:A().defined().nullable(),protein:A().defined().nullable(),carbs:A().defined().nullable(),fiber:A().defined().nullable(),sugar:A().defined().nullable(),sodium:A().defined().nullable(),includeInRecipes:$().required(),firebaseMealId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),ND=y({id:s().required(),appId:s().required(),name:s().required(),firebaseMealTagId:s().defined().nullable(),createdAt:A().required()}),Eb=y({id:s().required(),appId:s().required(),title:s().required(),notes:s().defined().nullable(),diet:s().required(),hidden:$().required(),imageUrl:s().required(),mealPlanKind:s().required(),assignedAuthnId:s().defined().nullable(),firebaseMealPlanId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),DD=y({id:s().required(),appMealPlanId:s().required(),day:s().required().oneOf(Object.values(gb)),title:s().required(),associatedId:s().defined().nullable(),order:A().required(),firebaseMealPlanDayMealId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required()}),lne=y({appId:s().required(),barcode:s().required(),title:s().required(),brand:s().defined().nullable(),calories:A().required(),carbs:A().required(),fat:A().required(),protein:A().required(),imageUrl:s().defined().nullable(),createdAt:A().required()}),Ab=y({id:s().required(),appId:s().required(),title:s().required(),brand:s().defined().nullable(),foodFirebaseId:s().defined().nullable(),externalId:s().defined().nullable(),caloriesPerHundredGrams:A().required(),fatPerHundredGrams:A().required(),proteinPerHundredGrams:A().required(),carbsPerHundredGrams:A().required(),baseServingOptions:M(y().required()).required(),metadata:y().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),jE=y({id:s().required(),appId:s().required(),authnId:s().defined().nullable(),foodId:s().defined().nullable(),title:s().required(),brand:s().defined().nullable(),source:s().defined().nullable(),imageUrl:s().defined().nullable(),thumbnail:s().defined().nullable(),showTitle:$().required(),quantityText:s().defined().nullable(),servingQuantity:A().defined().nullable(),servingUnit:s().defined().nullable(),metricServingQuantity:A().defined().nullable(),metricServingUnit:s().defined().nullable(),servingsConsumed:A().defined().nullable(),calories:A().defined().nullable(),carbs:A().defined().nullable(),fat:A().defined().nullable(),protein:A().defined().nullable(),fiber:A().defined().nullable(),sugar:A().defined().nullable(),sodium:A().defined().nullable(),associatedId:s().defined().nullable(),saved:$().required(),occurredAt:s().defined().nullable(),firebaseMealItemId:s().defined().nullable(),firebaseIngredientId:s().defined().nullable(),firebaseIngredientAssignmentId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),MD=y({id:s().required(),appId:s().required(),authnId:s().required(),appMealId:s().required(),firebaseSavedMealId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),jD=y({id:s().required(),appId:s().required(),authnId:s().required(),appMealId:s().required(),order:A().required(),firebasePlannedMealId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),LD=y({id:s().required(),appId:s().required(),authnId:s().required(),appMealId:s().required(),occurredAt:s().required(),saved:$().required(),firebaseLoggedMealId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),cne=y({id:s().required(),parentKind:s().required().oneOf(Object.values(jN)),parentId:s().required(),appMealItemId:s().required(),order:A().required()}),zD=y({id:s().required(),appId:s().required(),appMealId:s().required(),order:A().required(),firebaseMealTemplateId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),une=Fe(Sb.required()),dne=Fe(Ab.required()),fne=Fe(ND.required()),pne=Fe(Eb.required()),hne=Fe(DD.required()),mne=Fe(jE.required()),gne=Fe(zD.required()),bne=Fe(MD.required()),vne=Fe(jD.required()),yne=Fe(LD.required()),xne=Sb.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Sne=Sb.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Ene=y({title:s().optional(),subtitle:s().defined().nullable().optional().default(void 0),description:s().defined().nullable().optional().default(void 0),videoUrl:s().defined().nullable().optional().default(void 0),pdfUrl:s().defined().nullable().optional().default(void 0),imageUrl:s().defined().nullable().optional().default(void 0),thumbnail:s().defined().nullable().optional().default(void 0),showTitle:$
16().optional(),soundOn:$().optional(),quillJson:s().defined().nullable().optional().default(void 0),size:s().optional(),calories:A().defined().nullable().optional().default(void 0),fat:A().defined().nullable().optional().default(void 0),protein:A().defined().nullable().optional().default(void 0),carbs:A().defined().nullable().optional().default(void 0),fiber:A().defined().nullable().optional().default(void 0),sugar:A().defined().nullable().optional().default(void 0),sodium:A().defined().nullable().optional().default(void 0),includeInRecipes:$().optional()}),Ane=Eb.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Rne=Eb.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Cne=y({title:s().optional(),notes:s().defined().nullable().optional().default(void 0),diet:s().optional(),hidden:$().optional(),imageUrl:s().optional(),mealPlanKind:s().optional(),assignedAuthnId:s().defined().nullable().optional().default(void 0)}),Tne=y({appMealPlanId:s().required(),day:s().required().oneOf(Object.values(gb)),title:s().required(),associatedId:s().defined().nullable(),order:A().required(),authnMealItemIds:M(s().required()).required(),firebaseMealPlanDayMealId:s().defined().nullable()}),wne=y({appMealPlanId:s().required(),day:s().required().oneOf(Object.values(gb)),orderedIds:M(s().required()).required()}),_ne=jE.omit(["id","appId","createdAt","updatedAt","deletedAt"]),One=y({title:s().optional(),foodId:s().defined().nullable().optional().default(void 0),brand:s().defined().nullable().optional().default(void 0),source:s().defined().nullable().optional().default(void 0),imageUrl:s().defined().nullable().optional().default(void 0),servingQuantity:A().optional(),servingUnit:s().optional(),metricServingQuantity:A().defined().nullable().optional().default(void 0),metricServingUnit:s().defined().nullable().optional().default(void 0),servingsConsumed:A().defined().nullable().optional().default(void 0),calories:A().optional(),carbs:A().optional(),fat:A().optional(),protein:A().optional(),fiber:A().defined().nullable().optional().default(void 0),sugar:A().defined().nullable().optional().default(void 0),sodium:A().defined().nullable().optional().default(void 0),saved:$().optional()}),Ine=y({appMealId:s().required(),order:A().required(),firebaseMealTemplateId:s().defined().nullable()}),qne=y({appMealId:s().required(),order:A().required()}),Pne=y({appMealId:s().optional(),order:A().optional()}),kne=y({appMealId:s().required(),firebaseSavedMealId:s().defined().nullable()}),Nne=y({appMealId:s().required(),order:A().required(),firebasePlannedMealId:s().defined().nullable()}),Dne=y({appMealId:s().optional(),order:A().optional()}),Mne=y({orderedIds:M(s().required()).required()}),jne=y({appMealId:s().required(),occurredAt:s().required(),saved:$().required(),firebaseLoggedMealId:s().defined().nullable()}),Lne=y({appMealId:s().optional(),occurredAt:s().optional(),saved:$().optional()}),zne=Ab.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Une=Ab.omit(["id","appId","createdAt","updatedAt","deletedAt"]),Vne=y({title:s().optional(),brand:s().defined().nullable().optional().default(void 0),foodFirebaseId:s().defined().nullable().optional().default(void 0),externalId:s().defined().nullable().optional().default(void 0),caloriesPerHundredGrams:A().optional(),fatPerHundredGrams:A().optional(),proteinPerHundredGrams:A().optional(),carbsPerHundredGrams:A().optional(),baseServingOptions:M(y().required()).optional(),metadata:y().defined().nullable().optional().default(void 0)}),Fne=y({barcode:s().required(),title:s().required(),brand:s().defined().nullable(),calories:A().required(),carbs:A().required(),fat:A().required(),protein:A().required(),imageUrl:s().defined().nullable()}),$ne=U(`${ME}ContractRes`,{AppMealsResponse:une,AppFoodsResponse:dne,AppMealTagsResponse:fne,AppMealPlansResponse:pne,AppMealPlanDayMealsResponse:hne,AppMealItemsResponse:mne,AppMealTemplatesResponse:gne,AuthnSavedMealsResponse:bne,AuthnPlannedMealsResponse:vne,AuthnLoggedMealsResponse:yne}),Bne=U(`${ME}ContractReq`,{AppMeal:Sb,AppMealTag:ND,AppMealPlan:Eb,AppMealPlanDayMeal:DD,AppFoodBarcode:lne,AppFood:Ab,AppMealItem:jE,AppMealTemplate:zD,AuthnSavedMeal:MD,AuthnPlannedMeal:jD,AuthnLoggedMeal:LD,AppMealItemLink:cne,CreateAppMealRequest:xne,PutAppMealRequest:Sne,PatchAppMealRequest:Ene,CreateAppMealPlanRequest:Ane,PutAppMealPlanRequest:Rne,PatchAppMealPlanRequest:Cne,CreateAppMealPlanDayMealRequest:Tne,ReorderAppMealPlanDayMealsRequest:wne,CreateAppMealItemRequest:_ne,PatchAppMealItemRequest:One,CreateAppMealTemplateRequest:Ine,PutAppMealTemplateRequest:qne,PatchAppMealTemplateRequest:Pne,CreateAuthnSavedMealRequest:kne,CreateAuthnPlannedMealRequest:Nne,PatchAuthnPlannedMealRequest:Dne,ReorderAuthnPlannedMealsRequest:Mne,CreateAuthnLoggedMealRequest:jne,PatchAuthnLoggedMealRequest:Lne,PutAppFoodBarcodeRequest:Fne,CreateAppFoodRequest:zne,PutAppFoodRequest:Une,PatchAppFoodRequest:Vne});U(`${ME}Contract`,{...$ne,...Bne});const LE="AppChallenge",UD=y({id:s().required(),appId:s().required(),title:s().required(),description:s().required(),badgeUrl:s().defined().nullable(),isStreak:$().required(),daysRequired:A().defined().nullable(),points:A().required(),needsManualVerification:$().required(),startsAt:s().required(),endsAt:s().required(),firebaseChallengeId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),VD=y({id:s().required(),appId:s().required(),authnId:s().required(),challengeId:s().required(),forDate:s().required(),firebaseChallengeEntryId:s().defined().nullable(),createdAt:A().required()}),FD=y({id:s().required(),appId:s().required(),authnId:s().required(),challengeId:s().required(),challengeEntryId:s().defined().nullable(),verificationStatus:s().required().oneOf(Object.values(IS)),firebaseChallengeRequestId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),Hne=Fe(UD.required()),Gne=Fe(VD.required()),Wne=Fe(FD.required()),Yne=y({title:s().required(),description:s().required(),badgeUrl:s().defined().nullable(),isStreak:$().required(),daysRequired:A().defined().nullable(),points:A().required(),needsManualVerification:$().required(),startsAt:s().required(),endsAt:s().required(),firebaseChallengeId:s().defined().nullable()}),Kne=y({title:s().required(),description:s().required(),badgeUrl:s().defined().nullable(),isStreak:$().required(),daysRequired:A().defined().nullable(),points:A().required(),needsManualVerification:$().required(),startsAt:s().required(),endsAt:s().required()}),Xne=y({title:s().optional(),description:s().optional(),badgeUrl:s().defined().nullable().optional().default(void 0),isStreak:$().optional(),daysRequired:A().defined().nullable().optional().default(void 0),points:A().optional(),needsManualVerification:$().optional(),startsAt:s().optional(),endsAt:s().optional()}),Qne=y({challengeId:s().required(),forDate:s().required(),firebaseChallengeEntryId:s().defined().nullable()}),Jne=y({challengeId:s().required(),challengeEntryId:s().defined().nullable(),firebaseChallengeRequestId:s().defined().nullable()}),Zne=y({verificationStatus:s().required().oneOf(Object.values(IS))}),eie=U(`${LE}ContractRes`,{AppChallengesResponse:Hne,AuthnChallengeEntriesResponse:Gne,AppChallengeRequestsResponse:Wne}),tie=U(`${LE}ContractReq`,{AppChallenge:UD,AuthnChallengeEntry:VD,AppChallengeRequest:FD,CreateAppChallengeRequest:Yne,PutAppChallengeRequest:Kne,PatchAppChallengeRequest:Xne,CreateAuthnChallengeEntryRequest:Qne,SubmitAppChallengeRequest:Jne,ResolveAppChallengeRequest:Zne});U(`${LE}Contract`,{...eie,...tie});const zE="AppCalendarEvent",$D=y({calendarEventId:s().required(),participantKind:s().oneOf(Object.values(OS)).required(),participantId:s().required(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),BD=y({id:s().required(),appId:s().required(),title:s().defined().nullable(),description:s().defined().nullable(),startDate:s().required(),startTime:A().required(),duration:A().required(),itemKind:s().oneOf(Object.values(hb)).defined().nullable(),itemId:s().defined().nullable(),repeatInterval:A().defined().nullable(),repeatUnit:s().oneOf(Object.values(mb)).defined().nullable(),repeatEndAt:s().defined().nullable(),firebaseCalendarEventId:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),rie=Fe(BD.required()),nie=Fe($D.required()),iie=y({title:s().defined().nullable(),description:s().defined().nullable(),startDate:s().required(),startTime:A().required(),duration:A().required(),itemKind:s().oneOf(Object.values(hb)).defined().nullable(),itemId:s().defined().nullable(),repeatInterval:A().defined().nullable(),repeatUnit:s().oneOf(Object.values(mb)).defined().nullable(),repeatEndAt:s().defined().nullable(),firebaseCalendarEventId:s().defined().nullable()}),aie=y({title:s().defined().nullable(),description:s().defined().nullable(),startDate:s().required(),startTime:A().required(),duration:A().required(),itemKind:s().oneOf(Object.values(hb)).defined().nullable(),itemId:s().defined().nullable(),repeatInterval:A().defined().nullable(),repeatUnit:s().oneOf(Object.values(mb)).defined().nullable(),repeatEndAt:s().defined().nullable()}),oie=y({calendarEventId:s().required(),participantKind:s().oneOf(Object.values(OS)).required(),participantId:s().required()}),sie=U(`${zE}ContractRes`,{AppCalendarEventsResponse:rie,AppCalendarEventParticipantsResponse:nie}),lie=U(`${zE}ContractReq`,{AppCalendarEvent:BD,AppCalendarEventParticipant:$D,CreateAppCalendarEventRequest:iie,PutAppCalendarEventRequest:aie,CreateAppCalendarEventParticipantRequest:oie});U(`${zE}Contract`,{...sie,...lie});const UE="Messaging",Rb=y({authnId:s().required(),displayName:s().required(),avatar:s().nullable().optional()}),qx=y({authnId:s().required(),mutedConversation:$().required(),archivedConversation:$().required(),lastReadMessageAt:A().nullable().optional(),author:Rb.nullable().optional()}),HD=y({id:s().required(),text:s().nullable().optional(),sender:Rb.required()}),cie=y({id:s().required(),appId:s().required(),kind:s().oneOf(Object.values(yS)).required(),isAdminThread:$().required(),groupId:s().nullable().optional(),latestMessageId:s().nullable().optional(),unreadCount:A().required(),createdAt:A().required(),participants:Fe(qx)}),Lf=y({id:s().required(),conversationId:s().required(),senderAuthnId:s().required(),sender:Rb.required(),text:s().nullable().optional(),attachmentIds:M(s().required()).defined(),attachments:M(lp.required()).defined(),reactions:M(s().required()).defined(),mentionedAuthnIds:M(s().required()).defined(),parentMessageId:s().nullable().optional(),parentMessage:HD.nullable().optional(),createdAt:A().required(),firebaseMessageId:s().nullable().optional()}),zO=Lf.shape({context:M(Lf.required()).nullable().optional()}),uie=y({otherAuthnId:s().required(),isAdminThread:$().nullable().optional()}),GD=y({text:s().nullable().optional(),attachmentIds:M(s().required()).optional(),attachments:M(cp.required()).optional(),parentMessageId:s().nullable().optional(),toAuthnIds:M(s().required()).optional(),conversationId:s().nullable().optional(),mentionedAuthnIds:M(s().required()).optional()}),die=y({audienceKind:s().oneOf(Object.values(MN)).required(),audienceId:s().nullable().optional(),recipientAuthnIds:M(s().required()).optional(),text:s().nullable().optional(),attachments:M(cp.required()).optional(),mentionedAuthnIds:M(s().required()).optional()}
16),fie=y({recipientCount:A().required(),jobCount:A().required()}),pie=y({messageId:s().nullable().optional(),timestamp:A().nullable().optional()}),hie=y({emoji:s().required()}),mie=GD,gie=y({conversationId:s().required(),messageId:s().nullable().optional()}),bie=y({messageId:s().required(),emoji:s().required()}),vie=y({messageId:s().required()}),yie=y({messageId:s().required()}),xie=y({conversationId:s().required(),typing:$().required()}),Sie=y({conversationId:s().required()}),Eie=Lf,Aie=y({conversationId:s().required(),authnId:s().required(),messageId:s().nullable().optional()}),Rie=y({conversationId:s().required(),messageId:s().required(),authnId:s().required(),emoji:s().nullable().optional(),reactions:M(s().required()).defined()}),Cie=y({conversationId:s().required(),messageId:s().required()}),Tie=y({conversationId:s().required(),authnId:s().required(),typing:$().required()}),wie=y({conversationId:s().required(),senderAuthnId:s().required(),preview:s().nullable().optional()}),_ie=y({conversationId:s().required()}),Oie=y({groupId:s().required()}),UO=y({id:s().required(),kind:s().oneOf(Object.values(yS)).required(),isAdminThread:$().required(),groupId:s().nullable().optional(),displayName:s().nullable().optional(),displayImage:s().nullable().optional(),unreadCount:A().required(),latestMessage:Lf.nullable().defined()}),Iie=y({id:s().required(),kind:s().oneOf(Object.values(yS)).required(),isAdminThread:$().required(),groupId:s().nullable().optional(),displayName:s().nullable().optional(),displayImage:s().nullable().optional(),unreadCount:A().required(),createdAt:A().required()}),qie=U(`${UE}ContractRes`,{AppMessageAuthor:Rb,AppMessageParentPreview:HD,AppConversationParticipant:qx,AppConversation:cie,AppMessage:Lf,AppMessageWithContext:zO,AppConversationListing:UO,AppConversationHeader:Iie,QueriedConversations:Fe(UO),PaginatedMessages:Fe(zO),PaginatedParticipants:Fe(qx),MessagingSocketNewEvent:Eie,MessagingSocketReadEvent:Aie,MessagingSocketReactionEvent:Rie,MessagingSocketDeletedEvent:Cie,MessagingSocketTypingEvent:Tie,MessagingSocketInboxEvent:wie,MessagingSocketArchivedEvent:_ie,MessagingSocketGroupDeletedEvent:Oie,BulkMessagingSendResponse:fie}),Pie=U(`${UE}ContractReq`,{SendMessageRequest:GD,MarkReadRequest:pie,AddReactionRequest:hie,FindOrCreateDirectConversationRequest:uie,MessagingSocketSendRequest:mie,MessagingSocketReadRequest:gie,MessagingSocketReactionAddRequest:bie,MessagingSocketReactionRemoveRequest:vie,MessagingSocketDeleteRequest:yie,MessagingSocketTypingRequest:xie,MessagingSocketArchiveRequest:Sie,BulkMessagingSendRequest:die});U(`${UE}Contract`,{...qie,...Pie});const VE="MessagingAgent",Cb=y({question:s().required(),answer:s().required()}),kie=y({id:s().required(),appId:s().required(),masterPromptOverride:s().nullable().defined(),tone:s().nullable().defined(),niche:s().nullable().defined(),avoid:s().nullable().defined(),faq:M(Cb.required()).nullable().defined(),autoResponseEnabled:$().required(),autoResponseDelayMin:A().integer().min(10).required(),providerOverride:s().nullable().defined(),modelOverride:s().nullable().defined(),createdAt:A().required(),updatedAt:A().required()}),Nie=y({appId:s().required(),authnId:s().required(),masterPromptOverride:s().nullable().defined(),tone:s().nullable().defined(),niche:s().nullable().defined(),avoid:s().nullable().defined(),faq:M(Cb.required()).nullable().defined(),autoResponseEnabled:$().nullable().defined(),autoResponseDelayMin:A().integer().min(10).nullable().defined()}),WD=y({masterPromptOverride:s().nullable().optional(),tone:s().nullable().optional(),niche:s().nullable().optional(),avoid:s().nullable().optional(),faq:M(Cb.required()).nullable().optional(),autoResponseEnabled:$().optional(),autoResponseDelayMin:A().integer().min(10).optional(),providerOverride:s().nullable().optional(),modelOverride:s().nullable().optional()}),Die=y({masterPromptOverride:s().nullable().optional(),tone:s().nullable().optional(),niche:s().nullable().optional(),avoid:s().nullable().optional(),faq:M(Cb.required()).nullable().optional(),autoResponseEnabled:$().nullable().optional(),autoResponseDelayMin:A().integer().min(10).nullable().optional()}),Mie=y({configOverride:WD.nullable().optional(),customerMessage:s().required().min(1)}),jie=y({text:s().required(),provider:s().required(),model:s().required(),promptTokens:A().integer().nullable().defined(),responseTokens:A().integer().nullable().defined(),latencyMs:A().integer().nullable().defined()}),Lie=U(`${VE}
16ContractRes`,{MessagingAgentConfig:kie,MessagingAgentPersonalConfig:Nie,TestMessagingAgentResponse:jie}),zie=U(`${VE}ContractReq`,{UpdateMessagingAgentConfigRequest:WD,UpdateMessagingAgentPersonalConfigRequest:Die,TestMessagingAgentRequest:Mie}),ys=U(`${VE}Contract`,{...Lie,...zie}),FE="AppAuthnTag",VO=y({id:s().required(),appId:s().required(),name:s().required(),createdAt:A().required(),deletedAt:A().nullable().optional()}),FO=y({id:s().required(),appAuthnTagId:s().required(),authnId:s().required(),createdAt:A().required()}),Uie=y({appId:s().required(),name:s().required()}),Vie=y({appAuthnTagId:s().required(),authnId:s().required()}),Fie=U(`${FE}ContractRes`,{AppAuthnTag:VO,AppAuthnTagLink:FO,PaginatedAppAuthnTags:Fe(VO),PaginatedAppAuthnTagLinks:Fe(FO)}),$ie=U(`${FE}ContractReq`,{CreateAppAuthnTagRequest:Uie,LinkAppAuthnTagRequest:Vie});U(`${FE}Contract`,{...Fie,...$ie});const $E="AuthnProfile",Px=y({legacyFreeformLocation:s().defined().nullable().strict(),legacyTrainingFrequency:A().defined().nullable().strict(),onboardingDate:s().defined().nullable().strict(),offboardingDate:s().defined().nullable().strict()}),Bie=U(`${$E}ContractRes`,{AuthnProfile:y({authnId:s().required(),nickname:s().defined().nullable().strict(),bio:s().defined().nullable().strict(),gender:s().defined().nullable().strict(),height:A().defined().nullable().strict(),birthday:s().defined().nullable().strict(),metric:$().required(),completedOnboarding:$().required(),badgeUrls:M(s().required()).required(),metadata:Px.defined().nullable(),updatedAt:A().required()}),PublicAuthnProfile:y({authnId:s().required(),profileName:s().required(),avatar:s().defined().nullable(),bio:s().defined().nullable(),badgeUrls:M(s().required()).required(),createdAt:A().required()}),AuthnProfileMetadata:Px}),Hie=U(`${$E}ContractReq`,{PutAuthnProfileRequest:y({nickname:s().defined().nullable().strict(),bio:s().defined().nullable().strict(),gender:s().defined().nullable().strict(),metric:$().required(),height:A().defined().nullable().strict(),birthday:s().defined().nullable().strict(),completedOnboarding:$().required(),badgeUrls:M(s().required()).required(),metadata:Px.defined().nullable()}),PutAuthnProfileSelfMetadataRequest:y({legacyFreeformLocation:s().defined().nullable().strict(),legacyTrainingFrequency:A().defined().nullable().strict()}).noUnknown(!0).strict(),PutAuthnProfileCoachMetadataRequest:y({onboardingDate:s().defined().nullable().strict(),offboardingDate:s().defined().nullable().strict()}).noUnknown(!0).strict()});U(`${$E}Contract`,{...Bie,...Hie});const BE="AuthnFitnessMacroRatio",Gie=U(`${BE}ContractRes`,{AuthnFitnessMacroRatio:y({authnId:s().required(),protein:A().required(),fat:A().required(),carbs:A().required(),title:s().required(),calorieTarget:A().required(),fiberTarget:A().defined().nullable().strict(),sodiumTarget:A().defined().nullable().strict(),sugarTarget:A().defined().nullable().strict(),updatedAt:A().required()})}),Wie=U(`${BE}ContractReq`,{PutAuthnFitnessMacroRatioRequest:y({protein:A().required(),fat:A().required(),carbs:A().required(),title:s().required(),calorieTarget:A().required(),fiberTarget:A().defined().nullable().strict(),sodiumTarget:A().defined().nullable().strict(),sugarTarget:A().defined().nullable().strict()})});U(`${BE}Contract`,{...Gie,...Wie});const HE="AuthnFitnessGoal";var GE=(e=>(e.LOSE="LOSE",e.MAINTAIN="MAINTAIN",e.GAIN="GAIN",e))(GE||{});const Yie=U(`${HE}ContractRes`,{AuthnFitnessGoal:y({authnId:s().required(),startWeight:A().defined().nullable().strict(),targetWeight:A().defined().nullable().strict(),weightGoal:s().oneOf(Object.values(GE)).defined().nullable().strict(),weightTargetDate:s().defined().nullable().strict(),updatedAt:A().required()})}),Kie=U(`${HE}ContractReq`,{PutAuthnFitnessGoalRequest:y({startWeight:A().defined().nullable().strict(),targetWeight:A().defined().nullable().strict(),weightGoal:s().oneOf(Object.values(GE)).defined().nullable().strict(),weightTargetDate:s().defined().nullable().strict()})});U(`${HE}Contract`,{...Yie,...Kie});const WE="AuthnBlockedAuthn",$O=y({id:s().required(),authnId:s().required(),blockedAuthnId:s().required(),createdAt:A().required()}),Xie=U(`${WE}ContractRes`,{AuthnBlockedAuthn:$O,PaginatedAuthnBlockedAuthns:Fe($O)}),Qie=U(`${WE}ContractReq`,{CreateAuthnBlockedAuthn:y({blockedAuthnId:s().required()}),DeleteAuthnBlockedAuthn:y({blockedAuthnId:s().required()})});U(`${WE}Contract`,{...Xie,...Qie});const YE="AuthnCensoredContent",BO=y({authnId:s().required(),contentId:s().required(),createdAt:A().required()}),Jie=U(`${YE}ContractRes`,{AuthnCensoredContent:BO,PaginatedAuthnCensoredContent:Fe(BO)}),Zie=U(`${YE}ContractReq`,{CreateAuthnCensoredContent:y({contentId:s().required()}),DeleteAuthnCensoredContent:y({contentId:s().required()})});U(`${YE}Contract`,{...Jie,...Zie});const KE="AuthnLiveStreamProfile",eae=y({authnId:s().required(),owncastId:s().required(),accessToken:s().required(),createdAt:A().required(),updatedAt:A().required()}),tae=U(`${KE}ContractRes`,{AuthnLiveStreamProfile:eae}),rae=U(`${KE}ContractReq`,{});U(`${KE}Contract`,{...tae,...rae});const XE="AppAuthnCoaching",nae=y({authnId:s().required(),coachAuthnId:s().defined().nullable().str
16ict(),coachingCategory:s().required()}),iae=U(`${XE}ContractRes`,{AppAuthnCoaching:nae}),aae=U(`${XE}ContractReq`,{AssignCoachRequest:y({coachAuthnId:s().required()}).noUnknown(!0).strict(),SetCoachingCategoryRequest:y({coachingCategory:s().required()}).noUnknown(!0).strict()});U(`${XE}Contract`,{...iae,...aae});const QE="AppAuthnRoles",oae=y({authnId:s().required(),isAdmin:$().required(),isCoach:$().required()}),sae=U(`${QE}ContractRes`,{AppAuthnRoles:oae}),lae=U(`${QE}ContractReq`,{});U(`${QE}Contract`,{...sae,...lae});const JE="AppFitnessProgram",Tb=y({subtitle:s().nullable().optional(),description:s().nullable().optional(),imageUrl:s().nullable().optional(),thumbnail:s().nullable().optional(),size:s().nullable().optional(),fullWidth:$().nullable().optional(),borderRadius:A().nullable().optional(),showTitle:$().nullable().optional(),backgroundColor:s().nullable().optional(),hasShadow:$().nullable().optional(),videoUrl:s().nullable().optional()}),ZE=y({isDripFeed:$().nullable().optional(),locked:$().nullable().optional(),lockedMessage:s().nullable().optional(),visible:$().nullable().optional(),repeat:A().integer().nullable().optional(),soundOn:$().nullable().optional(),showOverviewTile:$().nullable().optional(),isPublished:$().nullable().optional()}),eA=y({trackFirebaseId:s().nullable().optional()}),kx=y({id:s().required(),appId:s().required(),firebaseProgramId:s().nullable().optional(),title:s().nullable().defined(),style:Tb.nullable().optional(),coachPreference:ZE.nullable().optional(),createdForAuthnId:s().nullable().optional(),isVideoProgram:$().required(),archived:$().required(),tags:M(s().required()).required(),metadata:eA.nullable().optional()}),tA=y({locked:$().nullable().optional(),lockedMessage:s().nullable().optional(),visible:$().nullable().optional()}),Nx=y({id:s().required(),appId:s().required(),firebaseWeekId:s().nullable().optional(),title:s().nullable().defined(),programId:s().required(),coachPreference:tA.nullable().optional(),order:A().integer().required()}),Sg=y({id:s().required(),appId:s().required(),firebaseDayId:s().nullable().optional(),title:s().nullable().defined(),programWeekId:s().nullable().optional(),order:A().integer().required(),isTemplate:$().required()}),rA={repetitions:M(A().integer().required()).nullable().optional(),duration:A().integer().nullable().optional(),distance:A().nullable().optional(),times:M(A().required()).nullable().optional(),rpePerSet:M(A().required()).nullable().optional(),rirPerSet:M(A().required()).nullable().optional(),percentOf1RM:M(A().required()).nullable().optional(),percentOfWW:M(A().required()).nullable().optional(),weightsPerSet:M(A().required()).nullable().optional(),caloriesPerSet:M(A().required()).nullable().optional(),notes:s().nullable().optional(),isWarmup:$().nullable().optional()},Dx=y({id:s().required(),appId:s().required(),programAssignmentId:s().required(),...rA}),Eg=y({id:s().required(),appId:s().required(),firebaseAssignmentId:s().nullable().optional(),firebaseExerciseReferenceId:s().nullable().optional(),exerciseReferenceId:s().nullable().optional(),intensityKind:s().nullable().optional(),programDayId:s().required(),setCount:A().integer().nullable().optional(),restTime:A().integer().nullable().optional(),hasClientRecording:$().nullable().optional(),custom:Is(s().required()).nullable().optional(),alternativeExerciseIds:M(s().required()).required(),sets:M(Dx.required()).nullable().optional()}),nA=y({showBackground:$().nullable().optional(),backgroundColor:s().nullable().optional(),dropShadow:$().nullable().optional(),expandable:$().nullable().optional(),borderRadius:A().nullable().optional()}),Mx=y({id:s().required(),appId:s().required(),firebaseTextId:s().nullable().optional(),programDayId:s().required(),richText:s().nullable().optional(),style:nA.nullable().optional()}),HO=y({id:s().required(),appId:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer().nullable().optional()}),GO=y({id:s().required(),appId:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer().nullable().optional(),splitExercisesIntoSets:$().nullable().optional(),logKind:s().nullable().optional(),restTimer:A().integer().nullable().optional()}),WO=y({id:s().required(),appId:s().required(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer().nullable().optional()}),jx=y({id:s().required(),appId:s().required(),programDayId:s().required(),thumbnailUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),notes:s().nullable().optional()}),cae=y({appId:s().required(),firebaseProgramId:s().nullable().optional(),title:s().nullable().optional(),style:Tb.nullable().optional(),coachPreference:ZE.nullable().optional(),createdFor:s().nullable().optional(),isVideoProgram:$().nullable().optional(),tags:M(s().required()).required(),metadata:eA.nullable().optional()}),uae=y({id:s().required(),firebaseProgramId:s().nullable().optional(),title:s().nullable().optional(),style:Tb.nullable().optional(),coachPreference:ZE.nullable().optional(),isVideoProgram:$().nullable().optional(),tags:M(s().required()).required(),metadata:eA.nullable().optional(),ar
16chived:$()}),dae=y({appId:s().required(),firebaseWeekId:s().nullable().optional(),title:s().required(),programId:s().required(),coachPreference:tA.nullable().optional(),order:A().integer().required()}),fae=y({id:s().required(),firebaseWeekId:s().nullable().optional(),title:s(),coachPreference:tA.nullable().optional(),order:A().integer().required()}),pae=y({appId:s().required(),firebaseDayId:s().nullable().optional(),title:s().required(),programWeekId:s().nullable().optional(),order:A().integer().required()}),hae=y({id:s().required(),firebaseDayId:s().nullable().optional(),title:s(),order:A().integer().required()}),mae=y({appId:s().required(),firebaseAssignmentId:s().nullable().optional(),firebaseExerciseReferenceId:s().nullable().optional(),exerciseReferenceId:s().nullable().optional(),programDayId:s().required(),intensityKind:s().nullable().optional(),setCount:A().integer().nullable().optional(),restTime:A().integer().nullable().optional(),hasClientRecording:$().nullable().optional(),custom:Is(s().required()).nullable().optional(),alternativeExerciseIds:M(s().required()).nullable().optional()}),gae=y({id:s().required(),firebaseAssignmentId:s().nullable().optional(),firebaseExerciseReferenceId:s().nullable().optional(),exerciseReferenceId:s().nullable().optional(),intensityKind:s().nullable().optional(),setCount:A().integer().nullable().optional(),restTime:A().integer().nullable().optional(),hasClientRecording:$().nullable().optional(),custom:Is(s().required()).nullable().optional(),alternativeExerciseIds:M(s().required()).nullable().optional()}),bae=y({appId:s().required(),programAssignmentId:s().required(),...rA}),vae=y({id:s().required(),...rA}),yae=y({appId:s().required(),firebaseTextId:s().nullable().optional(),programDayId:s().required(),richText:s().nullable().optional(),style:nA.nullable().optional()}),xae=y({id:s().required(),firebaseTextId:s().nullable().optional(),richText:s().nullable().optional(),style:nA.nullable().optional()}),Sae=y({appId:s().required(),programDayId:s().required(),order:A().integer().required(),kind:s().required(),contentId:s().nullable().optional()}),Eae=y({id:s().required(),order:A().integer(),kind:s(),contentId:s().nullable().optional()}),Aae=y({appId:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer()}),Rae=y({id:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()),numberOfRounds:A().integer()}),Cae=y({appId:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer(),splitExercisesIntoSets:$(),logKind:s().nullable().optional(),restTimer:A().integer()}),Tae=y({id:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()),numberOfRounds:A().integer(),splitExercisesIntoSets:$(),logKind:s().nullable().optional(),restTimer:A().integer()}),wae=y({appId:s().required(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer()}),_ae=y({id:s().required(),exerciseAssignmentIds:M(s().required()),numberOfRounds:A().integer()}),Oae=y({appId:s().required(),programDayId:s().required(),thumbnailUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),notes:s().nullable().optional()}),Iae=y({id:s().required(),thumbnailUrl:s().nullable().optional(),videoUrl:s().nullable().optional(),notes:s().nullable().optional()}),YD=y({id:s().required(),appId:s().required(),kind:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer().required(),splitExercisesIntoSets:$().nullable().optional(),logKind:s().nullable().optional(),restTimer:A().integer().nullable().optional(),exerciseAssignments:M(Eg.required()).nullable().optional()}),Lx=y({id:s().required(),appId:s().required(),programDayId:s().required(),order:A().integer().required(),kind:s().required(),contentId:s().nullable().optional(),assignment:Eg.nullable().optional(),text:Mx.nullable().optional(),video:jx.nullable().optional(),specialAssignment:YD.nullable().optional()}),KD=Sg.shape({content:M(Lx.required()).required()}),qae=Nx.shape({days:M(KD.required()).required()}),Pae=kx.shape({weeks:M(qae.required()).required()}),kae=y({appId:s().required(),kind:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()).required(),numberOfRounds:A().integer(),splitExercisesIntoSets:$().nullable().optional(),logKind:s().nullable().optional(),restTimer:A().integer().nullable().optional()}),Nae=y({id:s().required(),richText:s().nullable().optional(),exerciseAssignmentIds:M(s().required()),numberOfRounds:A().integer(),splitExercisesIntoSets:$().nullable().optional(),logKind:s().nullable().optional(),restTimer:A().integer().nullable().optional()}),Dae=y({kind:s().required(),richText:s().nullable().optional(),numberOfRounds:A().integer().nullable().optional(),splitExercisesIntoSets:$().nullable().optional(),logKind:s().nullable().optional(),restTimer:A().integer().nullable().optional()}),Mae=y({appId:s().required(),title:s().required()}),jae=y({action:s().oneOf(Object.values(db)).required(),data:y({ids:M(s().required()).required()}).required()}),Lae=y({action:s().oneOf(Object.values(db)).required(),data:y({ids:M(s().required()).required()}).required()}),zae=y({action:s().oneOf(Object.values(db)).required(),payload:y({ids:M(s().required()).required()}).required()}),Uae=zae,Vae=y({action:s().oneOf(Object.values(fb)).required(),data:y({ids:M(s().required()).required()}).required()}),Fae=y({action:s().oneOf(Object.values(fb)).required(),data:y({ids:M(s().required()).required()}).required()}),$ae=y({action:s().oneOf(Object.values(fb)).required(),payload:y({ids:M(s().required()).required()}).required()}),Bae=$ae,Hae=y({action:s().oneOf(Object.values(pb)).required(),data:y({ids:M(s().required()).required()}).required()}),Gae=y({action:s().oneOf(Object.values(pb)).required(),data:y({ids:M(s().required()).required()}).required()}),Wae=y({action:s().oneOf(Object.values(pb)).required(),payload:y({ids:M(s().required()).required()}).required()}),Yae=Wae,Kae=Fe(Sg.required()).required(),Xae=U(`${JE}ContractRes`,{Style:Tb,AppFitnessProgram:kx.required(),PaginatedAppFitnessPrograms:Fe(kx.required()).required(),AppFitnessProgramWeek:Nx.required(),PaginatedAppFitnessProgramWeeks:Fe(Nx.required()).required(),AppFitnessProgramWeekCommandResult:Uae.required(),AppFitnessProgramDay:Sg.required(),AppFitnessProgramDayCommandResult:Bae.required(),AppFitnessProgramContentCommandResult:Yae.required(),AppFitnessProgramDays:M(Sg.required()).required(),PaginatedAppFitnessProgramDays:Kae,AppFitnessProgramExerciseAssignment:Eg.required(),AppFitnessProgramExerciseAssignments:M(Eg.required()).required(),AppFitnessProgramExerciseAssignmentSet:Dx.required(),AppFitnessProgramExerciseAssignmentSetList:M(Dx.required()).required(),AppFitnessProgramText:Mx.required(),AppFitnessProgramTexts:M(Mx.required()).required(),AppFitnessProgramVideo:jx.required(),AppFitnessProgramVideos:M(jx.required()).required(),AppFitnessProgramDayContent:Lx.required(),AppFitnessProgramDayContents:M(Lx.required()).required(),AppFitnessProgramSuperset:HO.required(),AppFitnessProgramSupersets:M(HO.required()).required(),AppFitnessProgramSection:GO.required(),AppFitnessProgramSections:M(GO.required()).required(),AppFitnessProgramVideoCircuit:WO.required(),AppFitnessProgramVideoCircuits:M(WO.required()).required(),AppFitnessProgramSpecialAssignment:YD.required(),AppFitnessProgramWithStructure:Pae.required(),AppFitnessProgramDayWithContent:KD.required()}),Qae=U(`${JE}ContractReq`,{CreateAppFitnessProgram:cae,PutAppFitnessProgram:uae,CreateAppFitnessProgramWeek:dae,PutAppFitnessProgramWeek:fae,PutAppFitnessProgramWeeksReorderCommand:jae,PutAppFitnessProgramWeeksCommand:Lae,CreateAppFitnessProgramDay:pae,PutAppFitnessProgramDay:hae,PutAppFitnessProgramDaysReorderCommand:Vae,PutAppFitnessProgramDaysCommand:Fae,PutAppFitnessProgramContentReorderCommand:Hae,PutAppFitnessProgramContentCommand:Gae,CreateAppFitnessProgramExerciseAssignment:mae,PutAppFitnessProgramExerciseAssignment:gae,CreateAppFitnessProgramExerciseAssignmentSet:bae,PutAppFitnessProgramExerciseAssignmentSet:vae,CreateAppFitnessProgramText:yae,PutAppFitnessProgramText:xae,CreateAppFitnessProgramDayContent:Sae,PutAppFitnessProgramDayContent:Eae,CreateAppFitnessProgramSuperset:Aae,PutAppFitnessProgramSuperset:Rae,CreateAppFitnessProgramSection:Cae,PutAppFitnessProgramSection:Tae,CreateAppFitnessProgramVideoCircuit:wae,PutAppFitnessProgramVideoCircuit:_ae,CreateAppFitnessProgramVideo:Oae,PutAppFitnessProgramVideo:Iae,CreateAppFitnessProgramSpecialAssignment:kae,PutAppFitnessProgramSpecialAssignment:Nae,PutAppFitnessProgramGroupConvert:Dae,CreateAppFitnessProgramTemplateDay:Mae});U(`${JE}Contract`,{...Xae,...Qae});const iA="AppFitnessExercise",wb=y({subtitle:s().nullable(),instruction:s().nullable(),videoUrl:s().nullable(),imageUrl:s().nullable(),thumbnail:s().nullable(),logKind:s().nullable(),pdfUrl:s().nullable(),soundOn:$().nullable(),unilateral:$().nullable()}),Wy=y({id:s().required(),appId:s().required(),firebaseExerciseId:s().nullable(),title:s().defined(),alternateExerciseIds:M(s().required()).nullable(),style:wb.nullable(),primaryMuscles:M(s().required()).nullable(),bodyRegion:M(s().required()).nullable(),equipment:M(s().required()).nullable(),movementPattern:M(s().required()).nullable(),intent:M(s().required()).nullable(),tags:M(s().required()).nullable(),createdAt:Va().required(),updatedAt:Va().required(),deletedAt:Va().nullable()}),Jae=y({appId:s().required(),firebaseExerciseId:s().nullable(),title:s().defined(),alternateExerciseIds:M(s().required()).nullable(),style:wb.nullable(),primaryMuscles:M(s().required()).nullable(),bodyRegion:M(s().required()).nullable(),equipment:M(s().required()).nullable(),movementPattern:M(s().required()).nullable(),intent:M(s().required()).nullable(),tags:M(s().required()).nullable()}),Zae=y({id:s().required(),firebaseExerciseId:s().nullable(),title:s().defined(),alternateExerciseIds:M(s().required()).nullable(),style:wb.nullable(),primaryMuscles:M(s().required()).nullable(),bodyRegion:M(s().required()).nullable(),equipment:M(s().required()).nullable(),movementPattern:M(s().required()).nullable(),intent:M(s().required()).nullable(),tags:M(s().required()).nullable()}),eoe=U(`${iA}ContractRes`,{Style:wb,AppFitnessExercise:Wy.required(),AppFitnessExercises:M(Wy.required()).required(),PaginatedAppFitnessExercises:Fe(Wy.required()).required()}),toe=U(`${iA}ContractReq`,{CreateAppFitnessExercise:Jae,PutAppFitnessExercise:Zae});U(`${iA}Contract`,{...eoe,...toe});const aA="PrebuiltFitnessExercise",YO=y({id:s().required(),title:s().required(),subtitle:s().nullable(),description:s().nullable(),videoUrl:s().nullable(),imageUrl:s().nullable(),thumbnail:s().nullable(),logKind:A().nullable(),tags:M(s().required()).required(),alternates:M(s().required()).required()}),roe=U(`${aA}ContractRes`,{PrebuiltFitnessExercise:YO.required(),PaginatedPrebuiltFitnessExercises:Fe(YO.required()).required()}),noe=U(`${aA}ContractReq`,{});U(`${aA}Contract`,{...roe,...noe});
16const oA="HooksInboundAction",Kn={[et.CREATE_COMMUNITY_POST]:y({appId:s().required(),communityGroupId:s().defined().nullable(),message:s().required()}),[et.SEND_PUSH_NOTIFICATION]:y({appId:s().required(),title:s().required(),message:s().required()}),[et.CREATE_AUTHN]:y({appId:s().required(),email:s().required(),password:s().required(),displayName:s().required(),subscriptionStatus:s().required().oneOf(["active","inactive"]).default("active")}),[et.CANCEL_SUBSCRIPTION]:y({appId:s().required(),authnId:s().required()}),[et.UPDATE_SUBSCRIPTION]:y({appId:s().required(),authnId:s().required(),subscriptionStatus:s().required().oneOf(["active","inactive"])}),[et.SET_MANAGED_ACCESS]:y({appId:s().required(),authnId:s().required(),status:s().required().oneOf(["enabled","disabled"]),disableAt:A().optional().nullable()}),[et.UPSERT_AUTHN_AND_ACCESS]:y({appId:s().required(),email:s().required(),authnGroupIds:M(s().required()).required(),managedAccessEnabled:$().optional(),displayName:s().required(),sendActivationEmail:$().required()})},Ag={[et.GET_AUTHN_BY_EMAIL]:y({appId:s().required(),email:s().required()}),[et.GET_AUTHN_BY_ID]:y({appId:s().required(),authnId:s().required()})},ioe=U(`${oA}ContractRes`,{AuthnInfo:y({id:s().required(),name:s().required(),email:s().required(),accessSource:s().oneOf(Object.values(Qn))})}),aoe=U(`${oA}ContractReq`,{[et.CREATE_COMMUNITY_POST]:Kn[et.CREATE_COMMUNITY_POST],[et.SEND_PUSH_NOTIFICATION]:Kn[et.SEND_PUSH_NOTIFICATION],[et.CREATE_AUTHN]:Kn[et.CREATE_AUTHN],[et.CANCEL_SUBSCRIPTION]:Kn[et.CANCEL_SUBSCRIPTION],[et.UPDATE_SUBSCRIPTION]:Kn[et.UPDATE_SUBSCRIPTION],[et.SET_MANAGED_ACCESS]:Kn[et.SET_MANAGED_ACCESS],[et.UPSERT_AUTHN_AND_ACCESS]:Kn[et.UPSERT_AUTHN_AND_ACCESS],[et.GET_AUTHN_BY_EMAIL]:Ag[et.GET_AUTHN_BY_EMAIL],[et.GET_AUTHN_BY_ID]:Ag[et.GET_AUTHN_BY_ID]});U(`${oA}Contract`,{...ioe,...aoe});const sA="HooksOutbound",ooe=U(`${sA}ContractRes`,{}),soe=U(`${sA}ContractReq`,{[Om.APPUSER_SIGNUP]:y({authnId:s().required(),displayName:s().required(),email:s().required()}),[Om.AUTHN_CREATED]:y({authnId:s().required(),displayName:s().required(),email:s().required(),accessSource:s().oneOf(Object.values(Qn))}),[Om.APPUSER_CANCEL]:y({authnid:s().required(),displayName:s().required(),email:s().required()})});U(`${sA}Contract`,{...ooe,...soe});const lA="ZapierHooksInbound",loe=U(`${lA}ContractRes`,{}),coe=U(`${lA}ContractReq`,{[et.CREATE_COMMUNITY_POST]:Kn[et.CREATE_COMMUNITY_POST].omit(["appId"]),[et.SEND_PUSH_NOTIFICATION]:Kn[et.SEND_PUSH_NOTIFICATION].omit(["appId"]),[et.CREATE_AUTHN]:Kn[et.CREATE_AUTHN].omit(["appId"]),[et.CANCEL_SUBSCRIPTION]:Kn[et.CANCEL_SUBSCRIPTION].omit(["appId"]),[et.UPDATE_SUBSCRIPTION]:Kn[et.UPDATE_SUBSCRIPTION].omit(["appId"]),[et.SET_MANAGED_ACCESS]:Kn[et.SET_MANAGED_ACCESS].omit(["appId"]),[et.UPSERT_AUTHN_AND_ACCESS]:Kn[et.UPSERT_AUTHN_AND_ACCESS].omit(["appId"]),[et.GET_AUTHN_BY_EMAIL]:Ag[et.GET_AUTHN_BY_EMAIL].omit(["appId"]),[et.GET_AUTHN_BY_ID]:Ag[et.GET_AUTHN_BY_ID].omit(["appId"])});U(`${lA}Contract`,{...loe,...coe});const cA="ZapierRegistration",uoe=U(`${cA}ContractRes`,{}),doe=U(`${cA}ContractReq`,{HookUpsert:y({webhook:s().required()}),HookDelete:y({webhook:s().required()})});U(`${cA}Contract`,{...uoe,...doe});const uA="AppCloudflareVideo",XD=y({id:s().required(),appId:s().required(),authnId:s().required(),cloudflareUid:s().required(),status:s().required(),playbackUrl:s().nullable().optional(),thumbnailUrl:s().nullable().optional(),duration:A().nullable().optional(),meta:hr(y()),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().nullable().optional()}),foe=y({videos:M(XD.required()).required()}),poe=y({uploadURL:s().required(),videoId:s().required(),cloudflareUid:s().required()}),hoe=y({fileSize:A().integer().positive().required()}),moe=U(`${uA}ContractRes`,{AppCloudflareVideo:XD,AppCloudflareVideosResponse:foe,CreateAppCloudflareVideoUploadResponse:poe}),goe=U(`${uA}ContractReq`,{CreateAppCloudflareVideoUploadRequest:hoe});U(`${uA}Contract`,{...moe,...goe});const dA="AppFile",Pu=y({id:s().required(),appId:s().required(),authnId:s().required(),fileKind:s().required().oneOf(Object.values(_u)),fileCategory:s().required(),fileContentType:s().required(),size:A().required(),storageKind:s().required().oneOf(Object.values(op)),storageKey:s().required(),visibility:s().required().oneOf(Object.values(sp)),status:s().required().oneOf(Object.values(fg)),streamProvider:s().defined().nullable().oneOf([null,...Object.values(mN)]),streamSource:s().defined().nullable(),metadata:y().defined().nullable(),createdAt:A().required(),updatedAt:A().required(),deletedAt:A().defined().nullable()}),boe=y({files:M(Pu.required()).required()}),voe=y({fileKind:s().required().oneOf(Object.values(_u)),fileCategory:s().required(),fileContentType:s().required(),size:A().integer().positive().required(),storageKind:s().required().oneOf(Object.values(op)),visibility:s().required().oneOf(Object.values(sp)),partCount:A().integer().min(1).max(1e4).required(),originalFilename:s().optional()}),yoe=y({appFile:Pu.required(),uploadId:s().required(),partUrls:M(s().required()).required()}),xoe=y({partNumber:A().integer().min(1).required(),etag:s().required()}),Soe=y({uploadId:s().required(),parts:M(xoe.required()).min(1).required()}),Eoe=y({appFile:Pu.required(),stableUrl:s().defined().nullable()}),Aoe=y({fileKind:s().required().oneOf(Object.values(_u)),fileCategory:s().required(),fileContentType:s().required(),size:A().integer().positive().required(),storageKind:s().required().oneOf(Object.values(op)),visibility:s().required().oneOf(Object.values(sp)),originalFilename:s().optional()}),Roe=y({appFile:Pu.required(),uploadUrl:s().required()}),Coe=y({etag:s().optional()}),Toe=y({appFile:Pu.required(),stableUrl:s().defined().nullable()}),woe=y({fileKind:s().required().oneOf(Object.values(_u)),fileCategory:s().required(),fileContentType:s().required(),size:A().integer().positive().required(),storageKind:s().required().oneOf(Object.values(op)),storageKey:s().required(),visibility:s().required().oneOf(Object.values(sp)),status:s().defined().oneOf(Object.values(fg)).default(fg.PENDING_UPLOAD),metadata:y().defined().nullable().default(null)}),_oe=y({urlKind:s().required().oneOf(Object.values(gN)),url:s().required(),expiresAt:A().required(),streamToken:s().defined().nullable()}),Ooe=U(`${dA}ContractRes`,{AppFile:Pu,AppFilesResponse:boe,MultipartCreateResponse:yoe,MultipartCompleteResponse:Eoe,SinglePutCreateResponse:Roe,SinglePutCompleteResponse:Toe,AppFileUrlResponse:_oe}),Ioe=U(`${dA}ContractReq`,{MultipartCreateRequest:voe,MultipartCompleteRequest:Soe,SinglePutCreateRequest:Aoe,SinglePutCompleteRequest:Coe,CreateAppFileRequest:woe});U(`${dA}Contract`,{...Ooe,...Ioe});const fA="AppMediaLibraryEntry",QD=y({id:s().required(),appId:s().required(),appFileId:s().defined().nullable(),fileUrl:s().defined().nullable(),fileKind:s().required().oneOf(Object.values(_u)),name:s().defined().nullable(),createdAt:A().required(),updatedAt:A().required()}),qoe=Fe(QD.required()),Poe=y({appFileId:s().required(),name:s().defined().nullable()}),koe=y({name:s().defined().nullable()}),Noe=U(`${fA}ContractRes`,{AppMediaLibraryEntry:QD,AppMediaLibraryEntriesResponse:qoe}),Doe=U(`${fA}ContractReq`,{CreateAppMediaLibraryEntryRequest:Poe,UpdateAppMediaLibraryEntryRequest:koe});U(`${fA}Contract`,{...Noe,...Doe});const pA="Points",Moe=y({appId:s().required(),authnId:s().required(),sourceId:s().optional().nullable(),sourceKind:s().required().oneOf(Object.values(wS)),points:A().optional(),forDate:s().required(),firebaseSourceId:s().optional().nullable(),streakNumber:A().optional().default(0)}),joe=y({appId:s().required(),authnId:s().required(),sourceId:s().optional().nullable(),firebaseSourceId:s().optional().nullable(),sourceKind:s().required().oneOf(Object.values(wS))}),Loe=y({appId:s().required(),authnId:s().required()}),zoe=y({appId:s().required()}),Uoe=y({}),Mi=y({points:A().required(),dailyMax:A().required(),dailyLimitable:$().required(),config:hr(y())}),Voe=y({points:A().required(),dailyMax:A().required(),dailyLimitable:$().required(),config:hr(y({habitScoring:s().oneOf(["any","all"]).optional()}))}),hA=y({limit:A().required()}),mA=y({communityPost:Mi.required(),communityComment:Mi.required(),completedWorkoutDay:Mi.required(),completedLesson:Mi.required(),completedSingleHabit:Mi.required(),completedDailyHabits:Mi.required(),completedForm:Mi.required(),loggedMeal:Mi.required(),completedHabitStreak:Voe.required(),completedChallenge:Mi.required(),awardedPoints:Mi.required(),leaderboard:hr(hA)}),Foe=y({id:s().required(),appId:s().required(),config:mA.required(),pointsLastResetAt:A().defined().nullable(),createdAt:A().required(),updatedAt:A().required()}),JD=y({COMMUNITY_POST:A().nullable().defined(),COMMUNITY_COMMENT:A().nullable().defined(),COMPLETED_WORKOUT_DAY:A().nullable().defined(),COMPLETED_LESSON:A().nullable().defined(),COMPLETED_DAILY_HABITS:A().nullable().defined(),COMPLETED_HABIT_STREAK:A().nullable().defined(),COMPLETED_SINGLE_HABIT:A().nullable().defined(),COMPLETED_FORM:A().nullable().defined(),LOGGED_MEAL:A().nullable().defined(),COMPLETED_CHALLENGE:A().nullable().defined(),AWARDED_POINTS:A().nullable().defined()}),$oe=y({authnId:s().required(),kind:s().required().oneOf(Object.values($J)),totalPoints:A().required(),breakdowns:JD.required()}),Boe=M(y({authnId:s().required(),totalPoints:A().required()})),ZD=y({authnId:s().required(),totalPoints:A().required(),displayName:s().nullable().defined(),imageUrl:s().nullable().defined(),badgeUrls:M(s().required()).nullable().defined()}),Hoe=Fe(ZD),e8=y({groupId:s().required(),name:s().required(),imageUrl:s().nullable().defined(),totalPoints:A().required()}),Goe=Fe(e8),t8=y({id:s().required(),appId:s().required(),authnId:s().required(),sourceId:s().nullable().defined(),firebaseSourceId:s().nullable().defined(),sourceKind:s().required().oneOf(Object.values(wS)),points:A().required(),forDate:A().required(),createdAt:A().required(),streakNumber:A().required()}),Woe=Fe(t8),Yoe=y({points:A().required()}),Koe=U(`${pA}ContractRes`,{LeaderboardEntry:y({authnId:s().required(),totalPoints:A().required()}),PointTypeConfiguration:Mi,LeaderboardConfiguration:hA,PointsConfiguration:mA,AppPointsConfiguration:Foe,PointsBreakdown:JD,PointsSummary:$oe,PointsLeaderboard:Boe,EnrichedLeaderboardEntry:ZD,PaginatedEnrichedLeaderboard:Hoe,TeamsLeaderboardEntry:e8,PaginatedTeam
16sLeaderboard:Goe,PointEntry:t8,PaginatedPointEntries:Woe}),Xoe=U(`${pA}ContractReq`,{PointsAward:Moe,PointsRemove:joe,PointsRecalcUser:Loe,PointsRecalcApp:zoe,PointsRecalcAll:Uoe,PointTypeConfiguration:Mi,LeaderboardConfiguration:hA,PointsConfiguration:mA,ManualPointsAward:Yoe});U(`${pA}Contract`,{...Koe,...Xoe});const gA="Nexus",bA=y({ts:A().required(),origin:s().optional(),target:s().optional(),correlationId:s().optional(),sequence:A().optional(),authnId:s().optional(),appId:s().optional(),sessionId:s().optional()}),r8=y({id:s().required(),kind:s().oneOf(Object.values(BJ)).required(),topic:s().required(),payload:y().defined(),meta:hr(bA)}),Qoe=y({code:s().required(),message:s().required(),detail:s().optional(),data:hr(y()),topic:s().required(),error:$().required()}),Joe=U(`${gA}ContractRes`,{NexusMessageMeta:bA,NexusMessageEnvelope:r8,NexusError:Qoe}),Zoe=U(`${gA}ContractReq`,{NexusMessageMeta:bA,NexusMessageEnvelope:r8});U(`${gA}Contract`,{...Joe,...Zoe});const n8="WorkflowTrigger",Co={[Yt.HTTP]:y({method:s().required(),body:s().defined(),headers:Is(s().defined()).required(),query:Is(s().defined()).required()}),[Yt.SCHEDULE]:y({timestamp:s().required()}),[Yt.USER_CREATED]:y({authnId:s().required(),email:s().required(),displayName:s().required()}),[Yt.USER_ADDED_TO_GROUP]:y({authnId:s().required(),email:s().optional(),displayName:s().optional(),groupId:s().required(),groupName:s().optional(),addedAt:s().required()}),[Yt.CHECKIN_SUBMITTED]:y({authnId:s().required(),email:s().defined(),displayName:s().defined(),formId:s().required(),formName:s().defined(),submissionId:s().required(),submittedAt:s().required()}),[Yt.MESSAGE_SENT]:y({authnId:s().required(),email:s().defined(),displayName:s().defined(),conversationId:s().required(),messageId:s().required(),text:s().defined(),sentAt:s().required()}),[Yt.WORKOUT_COMPLETED]:y({authnId:s().required(),email:s().optional(),displayName:s().optional(),dayEntryId:s().required(),programId:s().defined(),completedAt:s().required()}),[Yt.PROGRAM_COMPLETED]:y({authnId:s().required(),email:s().optional(),displayName:s().optional(),programId:s().required(),completedAt:s().required()})},ese=U(`${n8}ContractReq`,{[Yt.HTTP]:Co[Yt.HTTP],[Yt.SCHEDULE]:Co[Yt.SCHEDULE],[Yt.USER_CREATED]:Co[Yt.USER_CREATED],[Yt.USER_ADDED_TO_GROUP]:Co[Yt.USER_ADDED_TO_GROUP],[Yt.CHECKIN_SUBMITTED]:Co[Yt.CHECKIN_SUBMITTED],[Yt.MESSAGE_SENT]:Co[Yt.MESSAGE_SENT],[Yt.WORKOUT_COMPLETED]:Co[Yt.WORKOUT_COMPLETED],[Yt.PROGRAM_COMPLETED]:Co[Yt.PROGRAM_COMPLETED]}),I2e=U(`${n8}Contract`,{...ese}),_b="Workflow",tse=Object.values(UN),rse=Object.values(VN),nse=Object.values(FN),ise=Object.values($N),ase=y({key:s().defined(),label:s().defined(),kind:s().required().oneOf(nse),required:$().optional(),source:s().oneOf(ise).optional()}),ose=y({key:s().defined(),label:s().defined(),value:s().defined(),required:$().required()}),sse=y({id:s().required(),stepKind:s().required().oneOf(tse),kind:s().required().oneOf(rse),label:s().defined(),config:Is(s().defined()).required(),params:M(ase.required()).required(),returns:M(ose.required()).required(),refWorkflowId:s().nullable().defined(),inputMap:Is(s().defined()).required(),position:hr(y({x:A().required(),y:A().required()}))}),lse=y({id:s().required(),source:s().required(),target:s().required(),sourceHandle:s().nullable().optional(),label:s().nullable().optional()}),Rg=y({nodes:M(sse.required()).required(),edges:M(lse.required()).required()}),fu=y({message:s().required(),nodeId:s().nullable().optional(),level:s().required().oneOf(Object.values(LN))}),cse=y({key:s().required(),label:s().required()}),use=y({key:s().required(),label:s().required(),required:$().required()}),i8=y({inputs:M(cse.required()).required(),returns:M(use.required()).required()}),dse=y({refWorkflowId:s().required(),callNodeId:s().required(),mappedInputKeys:M(s().required()).required(),consumedReturnKeys:M(s().required()).required()}),vA=y({nodeCount:A().required(),triggerCount:A().required(),hasBranch:$().required(),hasCall:$().required()}),fse=y({valid:$().required(),issues:M(fu.required()).required()}),a8=y({contract:i8.required(),callsOut:M(dse.required()).required(),triggerKinds:M(s().required()).required(),stats:vA.required(),validation:fse.required()}),pse=y({valid:$().required(),errorCount:A().required(),warningCount:A().required()}),hse=y({contract:i8.required(),stats:vA.required(),validation:pse.required()}),o8=y({id:s().required(),appId:s().required(),name:s().required(),description:s().nullable().defined(),status:s().required().oneOf(Object.values(kJ)),isCallable:$().required(),createdAt:s().required(),updatedAt:s().required()}),KO=o8.concat(y({projection:hse.required()})),mse=o8.concat(y({projection:a8.required(),draftGraph:Rg.required()})),s8=y({id:s().required(),appId:s().required(),workflowId:s().required(),version:A().required().integer(),stats:vA.required(),publishedAt:s().required(),graph:hr(Rg)}
16),gse=y({id:s().required(),runId:s().required(),nodeId:s().required(),kind:s().required(),status:s().required().oneOf(Object.values(fN)),inputData:y().required(),outputData:y().required(),error:y().nullable().defined(),startedAt:s().nullable().defined(),finishedAt:s().nullable().defined()}),yA=y({id:s().required(),appId:s().required(),workflowId:s().required(),versionId:s().required(),status:s().required().oneOf(Object.values(fN)),error:y().nullable().defined(),startedAt:s().nullable().defined(),finishedAt:s().nullable().defined(),createdAt:s().required()}),bse=yA.concat(y({triggerPayload:y().required(),steps:M(gse.required()).required()})),vse=y({workflowId:s().required(),name:s().required(),newIssues:M(fu.required()).required()}),yse=y({workflowId:s().required(),name:s().required(),issues:M(fu.required()).required()}),xse=y({valid:$().required(),issues:M(fu.required()).required(),ownIssues:M(fu.required()).required(),impact:M(vse.required()).required(),rootCauses:M(yse.required()).required()}),Sse=Fe(s8.required()),Ese=Fe(yA.required()),Ase=y({workflowId:s().required(),name:s().required(),callNodeId:s().required(),valid:$().required()}),Rse=y({items:M(Ase.required()).required()}),Cse=U(`${_b}ContractRes`,{Workflow:mse.required(),WorkflowSummary:KO.required(),Workflows:M(KO.required()).required(),WorkflowVersion:s8.required(),WorkflowVersions:Sse.required(),WorkflowRun:yA.required(),WorkflowRunDetail:bse.required(),WorkflowRuns:Ese.required(),WorkflowDependents:Rse.required(),WorkflowDiagnostics:xse.required(),WorkflowWebhook:y({token:s().nullable().defined()})}),Tse=U(`${_b}ContractReq`,{CreateWorkflow:y({name:s().required(),description:s().nullable().optional()}),SaveWorkflow:y({name:s().optional(),description:s().nullable().optional(),graph:hr(Rg)}),DiagnoseGraph:y({graph:Rg.required()}),RunWorkflow:y({inputs:Is(s().defined()).optional(),http:hr(Co[Yt.HTTP])})}),wse=U(`${_b}ContractShared`,{Projection:a8,Issue:fu}),Kr=U(`${_b}Contract`,{...Cse,...Tse,...wse}),Ob="WorkflowQuery",_se=U(`${Ob}ContractRes`,{[On.AUTHN_INFO]:y({id:s().required(),email:s().required(),name:s().required()}),[On.APP_INFO]:y({id:s().required(),name:s().required()}),[On.LIST_USERS_BY_ROLE]:y({id:s().required(),email:s().required(),name:s().required(),createdAt:s().required()}),[On.AUTHN_GROUP_QUERY]:y({id:s().required(),name:s().required(),description:s().required()}),[On.AUTHN_BY_EMAIL]:y({id:s().required(),email:s().required(),name:s().required()}),[On.CONVERSATION_INFO]:y({id:s().required(),kind:s().required(),name:s().defined(),groupId:s().defined(),createdAt:s().required()}),[On.WORKOUT_INFO]:y({id:s().required(),authnId:s().required(),kind:s().required(),forDate:s().required(),programId:s().defined(),dayId:s().defined(),title:s().defined(),notes:s().defined(),createdAt:s().required()})}),Ose=U(`${Ob}ContractReq`,{[On.AUTHN_INFO]:y({authnId:s().required()}),[On.APP_INFO]:y({}),[On.LIST_USERS_BY_ROLE]:y({role:s().required()}),[On.AUTHN_GROUP_QUERY]:y({name:s().defined()}),[On.AUTHN_BY_EMAIL]:y({email:s().required()}),[On.CONVERSATION_INFO]:y({conversationId:s().required()}),[On.WORKOUT_INFO]:y({dayEntryId:s().required()})}),q2e=U(`${Ob}Contract`,{...Ose});U(`${Ob}ResultContract`,{..._se});const l8="WorkflowShape",Cg=Object.values(zN),Ise=y({key:s().defined(),type:s().required().oneOf(Cg),elementType:s().oneOf(Cg).optional()}),qse=y({type:s().required().oneOf(Cg),elementType:s().oneOf(Cg).optional(),fields:M(Ise.required()).optional()}),Pse=y({key:s().defined(),shape:qse.required()}),kse=U(`${l8}ContractRes`,{WorkflowShapes:y({nodes:M(y({nodeId:s().required(),outputs:M(Pse.required()).required()}).required()).required()})}),Nse=U(`${l8}Contract`,{...kse}),c8="WorkflowActionCatalog",Dse=y({key:s().required(),required:$().required()}),Mse=y({kind:s().required(),label:s().required(),description:s().required(),category:s().required(),config:M(Dse.required()).required()}),jse=U(`${c8}ContractRes`,{WorkflowActions:y({items:M(Mse.required()).required()})}),Lse=U(`${c8}Contract`,{...jse}),xA="ApiConfigProvider",zse=y({limit:A().required().integer(),startCursor:s().nullable().defined(),endCursor:s().nullable().defined(),searchKey:s().optional()}),Use=U(`${xA}ContractRes`,{}),Vse=U(`${xA}ContractReq`,{PaginatedQuery:zse});U(`${xA}Contract`,{...Use,...Vse});const Fse="/maintenance.json",$se=1440*60,Bse=4e3;function Hse(e){if(typeof e.maintenanceStart!="number"||typeof e.maintenanceEnd!="number")return{status:"none"};const t=Math.floor(Date.now()/1e3);if(t>=e.maintenanceStart&&t<=e.maintenanceEnd)return{status:"active",window:e};const r=e.maintenanceStart-t;return r>0&&r<=$se?{status:"upcoming",window:e}:{status:"none"}}function Gse(e){try{return wJ.Window.validateSync(e,{stripUnknown:!0})}catch{return null}}function Wse(){const[e,t]=S.useState({status:"checking"});return S.useEffect(()=>{let r=!1;async function n(){const o=new AbortController,l=setTimeout(()=>
16o.abort(),Bse),u=await fetch(Fse,{signal:o.signal,cache:"no-store"}).then(h=>h.ok?h.json():Promise.reject(new Error(`status ${h.status}`))).catch(h=>h);if(clearTimeout(l),r)return;if(u instanceof Error)return t({status:"none"});const f=Gse(u);if(f===null)return t({status:"none"});t(Hse(f))}return n(),()=>{r=!0}},[]),e}const Yse="modulepreload",Kse=function(e){return"/"+e},XO={},Xe=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");o=h(r.map(m=>{if(m=Kse(m),m in XO)return;XO[m]=!0;const b=m.endsWith(".css"),x=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${x}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":Yse,b||(E.as="script"),E.crossOrigin="",E.href=m,f&&E.setAttribute("nonce",f),document.head.appendChild(E),b)return new Promise((T,C)=>{E.addEventListener("load",T),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};var Zi={},QO;function Xse(){if(QO)return Zi;QO=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.parseCookie=f,Zi.parse=f,Zi.stringifyCookie=h,Zi.stringifySetCookie=m,Zi.serialize=m,Zi.parseSetCookie=b,Zi.stringifySetCookie=m,Zi.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,o=/^-?\d+$/,l=Object.prototype.toString,u=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function f(w,I){const P=new u,q=w.length;if(q<2)return P;const D=I?.decode||C;let O=0;do{const N=E(w,O,q);if(N===-1)break;const V=x(w,O,q);if(N>V){O=w.lastIndexOf(";",N-1)+1;continue}const J=T(w,O,N);P[J]===void 0&&(P[J]=D(T(w,N+1,V))),O=V+1}while(O<q);return P}function h(w,I){const P=I?.encode||encodeURIComponent,q=[];for(const D of Object.keys(w)){const O=w[D];if(O===void 0)continue;if(!e.test(D))throw new TypeError(`cookie name is invalid: ${D}`);const N=P(O);if(!t.test(N))throw new TypeError(`cookie val is invalid: ${O}`);q.push(`${D}=${N}`)}return q.join("; ")}function m(w,I,P){const q=typeof w=="object"?w:{...P,name:w,value:String(I)},O=(typeof I=="object"?I:P)?.encode||encodeURIComponent;if(!e.test(q.name))throw new TypeError(`argument name is invalid: ${q.name}`);const N=q.value?O(q.value):"";if(!t.test(N))throw new TypeError(`argument val is invalid: ${q.value}`);let V=q.name+"="+N;if(q.maxAge!==void 0){if(!Number.isInteger(q.maxAge))throw new TypeError(`option maxAge is invalid: ${q.maxAge}`);V+="; Max-Age="+q.maxAge}if(q.domain){if(!r.test(q.domain))throw new TypeError(`option domain is invalid: ${q.domain}`);V+="; Domain="+q.domain}if(q.path){if(!n.test(q.path))throw new TypeError(`option path is invalid: ${q.path}`);V+="; Path="+q.path}if(q.expires){if(!R(q.expires)||!Number.isFinite(q.expires.valueOf()))throw new TypeError(`option expires is invali
16d: ${q.expires}`);V+="; Expires="+q.expires.toUTCString()}if(q.httpOnly&&(V+="; HttpOnly"),q.secure&&(V+="; Secure"),q.partitioned&&(V+="; Partitioned"),q.priority)switch(typeof q.priority=="string"?q.priority.toLowerCase():void 0){case"low":V+="; Priority=Low";break;case"medium":V+="; Priority=Medium";break;case"high":V+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${q.priority}`)}if(q.sameSite)switch(typeof q.sameSite=="string"?q.sameSite.toLowerCase():q.sameSite){case!0:case"strict":V+="; SameSite=Strict";break;case"lax":V+="; SameSite=Lax";break;case"none":V+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${q.sameSite}`)}return V}function b(w,I){const P=I?.decode||C,q=w.length,D=x(w,0,q),O=E(w,0,D),N=O===-1?{name:"",value:P(T(w,0,D))}:{name:T(w,0,O),value:P(T(w,O+1,D))};let V=D+1;for(;V<q;){const J=x(w,V,q),W=E(w,V,J),G=W===-1?T(w,V,J):T(w,V,W),B=W===-1?void 0:T(w,W+1,J);switch(G.toLowerCase()){case"httponly":N.httpOnly=!0;break;case"secure":N.secure=!0;break;case"partitioned":N.partitioned=!0;break;case"domain":N.domain=B;break;case"path":N.path=B;break;case"max-age":B&&o.test(B)&&(N.maxAge=Number(B));break;case"expires":if(!B)break;const L=new Date(B);Number.isFinite(L.valueOf())&&(N.expires=L);break;case"priority":if(!B)break;const z=B.toLowerCase();(z==="low"||z==="medium"||z==="high")&&(N.priority=z);break;case"samesite":if(!B)break;const ee=B.toLowerCase();(ee==="lax"||ee==="strict"||ee==="none")&&(N.sameSite=ee);break}V=J+1}return N}function x(w,I,P){const q=w.indexOf(";",I);return q===-1?P:q}function E(w,I,P){const q=w.indexOf("=",I);return q<P?q:-1}function T(w,I,P){let q=I,D=P;do{const O=w.charCodeAt(q);if(O!==32&&O!==9)break}while(++q<D);for(;D>q;){const O=w.charCodeAt(D-1);if(O!==32&&O!==9)break;D--}return w.slice(q,D)}function C(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function R(w){return l.call(w)==="[object Date]"}return Zi}var Nm=Xse();function Qse(){const e=typeof globalThis>"u"?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Jse(e){return typeof e=="string"?Nm.parse(e):typeof e=="object"&&e!==null?e:{}}function Yy(e,t={}){const r=Zse(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function Zse(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class ele{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=Nm.parse(document.cookie),this._checkChanges(o)};const n=typeof document>"u"?"":document.cookie;this.cookies=Jse(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=Qse()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Yy(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Yy(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Yy(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const o=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Nm.serialize(t,o,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Nm.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}const tle=S.createContext(null),{Provider:rle,Consumer:P2e}=tle,nle=e=>{const t=S.useMemo(()=>e.cookies?e.cookies:new ele(void 0,e.defaultSetOptions),[e.cookies,e.defaultSetOptions]);return S.createElement(rle,{value:t},e.children)};var Ky={exports:{}},It={};var JO;function ile(){if(JO)return It;JO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function q(O){if(typeof O=="object"&&O!==null){var N=O.$$typeof;switch(N){case t:switch(O=O.type,O){case h:case m:case n:case l:case o:case x:return O;default:switch(O=O&&O.$$typeof,O){case f:case b:case C:case T:case u:return O;default:return N}}case r:return N}}}function D(O){return q(O)===m}return It.AsyncMode=h,It.ConcurrentMode=m,It.ContextConsumer=f,It.ContextProvider=u,It.Element=t,It.ForwardRef=b,It.Fragment=n,It.Lazy=C,It.Memo=T,It.Portal=r,It.Profiler=l,It.StrictMode=o,It.Suspense=x,It.isAsyncMode=function(O){return D(O)||q(O)===
16h},It.isConcurrentMode=D,It.isContextConsumer=function(O){return q(O)===f},It.isContextProvider=function(O){return q(O)===u},It.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},It.isForwardRef=function(O){return q(O)===b},It.isFragment=function(O){return q(O)===n},It.isLazy=function(O){return q(O)===C},It.isMemo=function(O){return q(O)===T},It.isPortal=function(O){return q(O)===r},It.isProfiler=function(O){return q(O)===l},It.isStrictMode=function(O){return q(O)===o},It.isSuspense=function(O){return q(O)===x},It.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===m||O===l||O===o||O===x||O===E||typeof O=="object"&&O!==null&&(O.$$typeof===C||O.$$typeof===T||O.$$typeof===u||O.$$typeof===f||O.$$typeof===b||O.$$typeof===w||O.$$typeof===I||O.$$typeof===P||O.$$typeof===R)},It.typeOf=q,It}var ZO;function ale(){return ZO||(ZO=1,Ky.exports=ile()),Ky.exports}var Xy,eI;function ole(){if(eI)return Xy;eI=1;var e=ale(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=n,l[e.Memo]=o;function u(C){return e.isMemo(C)?o:l[C.$$typeof]||t}var f=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,E=Object.prototype;function T(C,R,w){if(typeof R!="string"){if(E){var I=x(R);I&&I!==E&&T(C,I,w)}var P=h(R);m&&(P=P.concat(m(R)));for(var q=u(C),D=u(R),O=0;O<P.length;++O){var N=P[O];if(!r[N]&&!(w&&w[N])&&!(D&&D[N])&&!(q&&q[N])){var V=b(R,N);try{f(C,N,V)}catch{}}}}return C}return Xy=T,Xy}ole();var tI="popstate";function rI(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function sle(e={}){function t(n,o){let l=o.state?.masked,{pathname:u,search:f,hash:h}=l||n.location;return zx("",{pathname:u,search:f,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default",l?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,o){return typeof o=="string"?o:zf(o)}return cle(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $i(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lle(){return Math.random().toString(36).substring(2,10)}function nI(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function zx(e,t,r=null,n,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ku(t):t,state:r,key:t&&t.key||n||lle(),unstable_mask:o}}function zf({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ku(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function cle(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:l=!1}=n,u=o.history,f="POP",h=null,m=b();m==null&&(m=0,u.replaceState({...u.state,idx:m},""));function b(){return(u.state||{idx:null}).idx}function x(){f="POP";let w=b(),I=w==null?null:w-m;m=w,h&&h({action:f,location:R.location,delta:I})}function E(w,I){f="PUSH";let P=rI(w)?w:zx(R.location,w,I);m=b()+1;let q=nI(P,m),D=R.createHref(P.unstable_mask||P);try{u.pushState(q,"",D)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(D)}l&&h&&h({action:f,location:R.location,delta:1})}function T(w,I){f="REPLACE";let P=rI(w)?w:zx(R.location,w,I);m=b();let q=nI(P,m),D=R.createHref(P.unstable_mask||P);u.replaceState(q,"",D),l&&h&&h({action:f,location:R.location,delta:0})}function C(w){return ule(w)}let R={get action(){return f},get location(){return e(o,u)},listen(w){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(tI,x),h=w,()=>{o.removeEventListener(tI,x),h=null}},createHref(w){return t(o,w)},createURL:C,encodeLocation(w){let I=C(w);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:E,replace:T,go(w){return u.go(w)}};return R}function ule(e,t=!1){let r="http://localhost";
16typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),lr(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:zf(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function u8(e,t,r="/"){return dle(e,t,r,!1)}function dle(e,t,r,n){let o=typeof t=="string"?ku(t):t,l=No(o.pathname||"/",r);if(l==null)return null;let u=d8(e);fle(u);let f=null;for(let h=0;f==null&&h<u.length;++h){let m=Ale(l);f=Sle(u[h],m,n)}return f}function d8(e,t=[],r=[],n="",o=!1){let l=(u,f,h=o,m)=>{let b={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(n)&&h)return;lr(b.relativePath.startsWith(n),`Absolute route path "${b.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(n.length)}let x=ua([n,b.relativePath]),E=r.concat(b);u.children&&u.children.length>0&&(lr(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),d8(u.children,t,E,x,h)),!(u.path==null&&!u.index)&&t.push({path:x,score:yle(x,u.index),routesMeta:E})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))l(u,f);else for(let h of f8(u.path))l(u,f,!0,h)}),t}function f8(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return o?[l,""]:[l];let u=f8(n.join("/")),f=[];return f.push(...u.map(h=>h===""?l:[l,h].join("/"))),o&&f.push(...u),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function fle(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:xle(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var ple=/^:[\w-]+$/,hle=3,mle=2,gle=1,ble=10,vle=-2,iI=e=>e==="*";function yle(e,t){let r=e.split("/"),n=r.length;return r.some(iI)&&(n+=vle),t&&(n+=mle),r.filter(o=>!iI(o)).reduce((o,l)=>o+(ple.test(l)?hle:l===""?gle:ble),n)}function xle(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Sle(e,t,r=!1){let{routesMeta:n}=e,o={},l="/",u=[];for(let f=0;f<n.length;++f){let h=n[f],m=f===n.length-1,b=l==="/"?t:t.slice(l.length)||"/",x=Tg({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},b),E=h.route;if(!x&&m&&r&&!n[n.length-1].route.index&&(x=Tg({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},b)),!x)return null;
16Object.assign(o,x.params),u.push({params:o,pathname:ua([l,x.pathname]),pathnameBase:wle(ua([l,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(l=ua([l,x.pathnameBase]))}return u}function Tg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ele(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let l=o[0],u=l.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:n.reduce((m,{paramName:b,isOptional:x},E)=>{if(b==="*"){let C=f[E]||"";u=l.slice(0,l.length-C.length).replace(/(.)\/+$/,"$1")}const T=f[E];return x&&!T?m[b]=void 0:m[b]=(T||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:u,pattern:e}}function Ele(e,t=!1,r=!0){$i(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,h,m,b)=>{if(n.push({paramName:f,isOptional:h!=null}),h){let x=b.charAt(m+u.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Ale(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $i(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function No(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var Rle=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Cle(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ku(e):e,l;return r?(r=p8(r),r.startsWith("/")?l=aI(r.substring(1),"/"):l=aI(r,t)):l=t,{pathname:l,search:_le(n),hash:Ole(o)}}function aI(e,t){let r=wg(t).split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Qy(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tle(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function SA(e){let t=Tle(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Ib(e,t,r,n=!1){let o;typeof e=="string"?o=ku(e):(o={...e},lr(!o.pathname||!o.pathname.includes("?"),Qy("?","pathname","search",o)),lr(!o.pathname||!o.pathname.includes("#"),Qy("#","pathname","hash",o)),lr(!o.search||!o.search.includes("#"),Qy("#","search","hash",o)));let l=e===""||o.pathname==="",u=l?"/":o.pathname,f;if(u==null)f=r;else{let x=t.length-1;if(!n&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),x-=1;o.pathname=E.join("/")}f=x>=0?t[x]:"/"}let h=Cle(o,f),m=u&&u!=="/"&&u.endsWith("/"),b=(l||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(m||b)&&(h.pathname+="/"),h}var p8=e=>e.replace(/\/\/+/g,"/"),ua=e=>p8(e.join("/")),wg=e=>e.replace(/\/+$/,""),wle=e=>wg(e).replace(/^\/*/,"/"),_le=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ole=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ile=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function qle(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ple(e){let t=e.map(r=>r.route.path).filter(Boolean);return ua(t)||"/"}var h8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function m8(e,t){let r=e;if(typeof r!="string"||!Rle.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(h8)try{let l=new URL(window.location.href),u=r.startsWith("//")?new URL(l.protocol+r):new URL(r),f=No(u.pathname,t);u.origin===l.origin&&f!=null?r=f+u.search+u.hash:o=!0}catch{$i(!1,`<Link to="${r}">
16 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var g8=["POST","PUT","PATCH","DELETE"];new Set(g8);var kle=["GET",...g8];new Set(kle);var Nu=S.createContext(null);Nu.displayName="DataRouter";var qb=S.createContext(null);qb.displayName="DataRouterState";var b8=S.createContext(!1);function Nle(){return S.useContext(b8)}var v8=S.createContext({isTransitioning:!1});v8.displayName="ViewTransition";var Dle=S.createContext(new Map);Dle.displayName="Fetchers";var Mle=S.createContext(null);Mle.displayName="Await";var Ei=S.createContext(null);Ei.displayName="Navigation";var up=S.createContext(null);up.displayName="Location";var ma=S.createContext({outlet:null,matches:[],isDataRoute:!1});ma.displayName="Route";var EA=S.createContext(null);EA.displayName="RouteError";var y8="REACT_ROUTER_ERROR",jle="REDIRECT",Lle="ROUTE_ERROR_RESPONSE";function zle(e){if(e.startsWith(`${y8}:${jle}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ule(e){if(e.startsWith(`${y8}:${Lle}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ile(t.status,t.statusText,t.data)}catch{}}function Vle(e,{relative:t}={}){lr(Du(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=S.useContext(Ei),{hash:o,pathname:l,search:u}=dp(e,{relative:t}),f=l;return r!=="/"&&(f=l==="/"?r:ua([r,l])),n.createHref({pathname:f,search:u,hash:o})}function Du(){return S.useContext(up)!=null}function yn(){return lr(Du(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(up).location}var x8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function S8(e){S.useContext(Ei).static||S.useLayoutEffect(e)}function ga(){let{isDataRoute:e}=S.useContext(ma);return e?ece():Fle()}function Fle(){lr(Du(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Nu),{basename:t,navigator:r}=S.useContext(Ei),{matches:n}=S.useContext(ma),{pathname:o}=yn(),l=JSON.stringify(SA(n)),u=S.useRef(!1);return S8(()=>{u.current=!0}),S.useCallback((h,m={})=>{if($i(u.current,x8),!u.current)return;if(typeof h=="number"){r.go(h);return}let b=Ib(h,JSON.parse(l),o,m.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ua([t,b.pathname])),(m.replace?r.replace:r.push)(b,m.state,m)},[t,r,l,o,e])}S.createContext(null);function Mu(){let{matches:e}=S.useContext(ma);return e[e.length-1]?.params??{}}function dp(e,{relative:t}={}){let{matches:r}=S.useContext(ma),{pathname:n}=yn(),o=JSON.stringify(SA(r));return S.useMemo(()=>Ib(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function $le(e,t){return E8(e,t)}function E8(e,t,r){lr(Du(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=S.useContext(Ei),{matches:o}=S.useContext(ma),l=o[o.length-1],u=l?l.params:{},f=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let w=m&&m.path||"";R8(f,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 17 18Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let b=yn(),x;if(t){let w=typeof t=="string"?ku(t):t;lr(h==="/"||w.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${w.pathname}" was given in the \`location\` prop.`),x=w}else x=b;let E=x.pathname||"/",T=E;if(h!=="/"){let w=h.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(w.length).join("/")}let C=u8(e,{pathname:T});$i(m||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),$i(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Yle(C&&C.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:ua([h,n.encodeLocation?n.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:ua([h,n.encodeLocation?n.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,r);return t&&R?S.createElement(up.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},R):R}function Ble(){let e=Zle(),t=qle(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},l={padding:"2px 4px",backgroundColor:n},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"ð¿ Hey developer ð"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application
18Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:o},r):null,u)}var Hle=S.createElement(Ble,null),A8=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Ule(e.digest);r&&(e=r)}let t=e!==void 0?S.createElement(ma.Provider,{value:this.props.routeContext},S.createElement(EA.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(Gle,{error:e},t):t}};A8.contextType=b8;var Jy=new WeakMap;function Gle({children:e,error:t}){let{basename:r}=S.useContext(Ei);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=zle(t.digest);if(n){let o=Jy.get(t);if(o)throw o;let l=m8(n.location,r);if(h8&&!Jy.get(t))if(l.isExternal||n.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:n.replace}));throw Jy.set(t,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Wle({routeContext:e,match:t,children:r}){let n=S.useContext(Nu);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ma.Provider,{value:e},r)}function Yle(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=n?.errors;if(l!=null){let b=o.findIndex(x=>x.route.id&&l?.[x.route.id]!==void 0);lr(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let u=!1,f=-1;if(r&&n){u=n.renderFallback;for(let b=0;b<o.length;b++){let x=o[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(f=b),x.route.id){let{loaderData:E,errors:T}=n,C=x.route.loader&&!E.hasOwnProperty(x.route.id)&&(!T||T[x.route.id]===void 0);if(x.route.lazy||C){r.isStatic&&(u=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let h=r?.onError,m=n&&h?(b,x)=>{h(b,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Ple(n.matches),errorInfo:x})}:void 0;return o.reduceRight((b,x,E)=>{let T,C=!1,R=null,w=null;n&&(T=l&&x.route.id?l[x.route.id]:void 0,R=x.route.errorElement||Hle,u&&(f<0&&E===0?(R8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,w=null):f===E&&(C=!0,w=x.route.hydrateFallbackElement||null)));let I=t.concat(o.slice(0,E+1)),P=()=>{let q;return T?q=R:C?q=w:x.route.Component?q=S.createElement(x.route.Component,null):x.route.element?q=x.route.element:q=b,S.createElement(Wle,{match:x,routeContext:{outlet:b,matches:I,isDataRoute:n!=null},children:q})};return n&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?S.createElement(A8,{location:n.location,revalidation:n.revalidation,component:R,error:T,children:P(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:m}):P()},null)}function AA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kle(e){let t=S.useContext(Nu);return lr(t,AA(e)),t}function Xle(e){let t=S.useContext(qb);return lr(t,AA(e)),t}function Qle(e){let t=S.useContext(ma);return lr(t,AA(e)),t}function RA(e){let t=Qle(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Jle(){return RA("useRouteId")}function Zle(){let e=S.useContext(EA),t=Xle("useRouteError"),r=RA("useRouteError");return e!==void 0?e:t.errors?.[r]}function ece(){let{router:e}=Kle("useNavigate"),t=RA("useNavigate"),r=S.useRef(!1);return S8(()=>{r.current=!0}),S.useCallback(async(o,l={})=>{$i(r.current,x8),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var oI={};function R8(e,t,r){!t&&!oI[e]&&(oI[e]=!0,$i(!1,r))}S.memo(tce);function tce({routes:e,future:t,state:r,isStatic:n,onError:o}){return E8(e,void 0,{state:r,isStatic:n,onError:o})}function Do({to:e,replace:t,state:r,relative:n}){lr(Du(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=S.useContext(Ei);$i(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=S.useContext(ma),{pathname:u}=yn(),f=ga(),h=Ib(e,SA(l),u,n==="path"),m=JSON.stringify(h);return S.useEffect(()=>{f(JSON.parse(m),{replace:t,state:r,relative:n})},[f,m,n,t,r]),null}function Cs(e){lr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rce({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:l=!1,unstable_useTransitions:u}){lr(!Du(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:f,navigator:o,static:l,unstable_useTransitions:u,future:{}}),[f,o,l,u]);typeof r=="string"&&(r=ku(r));
18let{pathname:m="/",search:b="",hash:x="",state:E=null,key:T="default",unstable_mask:C}=r,R=S.useMemo(()=>{let w=No(m,f);return w==null?null:{location:{pathname:w,search:b,hash:x,state:E,key:T,unstable_mask:C},navigationType:n}},[f,m,b,x,E,T,n,C]);return $i(R!=null,`<Router basename="${f}"> is not able to match the URL "${m}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:S.createElement(Ei.Provider,{value:h},S.createElement(up.Provider,{children:t,value:R}))}function CA({children:e,location:t}){return $le(Ux(e),t)}function Ux(e,t=[]){let r=[];return S.Children.forEach(e,(n,o)=>{if(!S.isValidElement(n))return;let l=[...t,o];if(n.type===S.Fragment){r.push.apply(r,Ux(n.props.children,l));return}lr(n.type===Cs,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let u={id:n.props.id||l.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=Ux(n.props.children,l)),r.push(u)}),r}var Dm="get",Mm="application/x-www-form-urlencoded";function Pb(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function nce(e){return Pb(e)&&e.tagName.toLowerCase()==="button"}function ice(e){return Pb(e)&&e.tagName.toLowerCase()==="form"}function ace(e){return Pb(e)&&e.tagName.toLowerCase()==="input"}function oce(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sce(e,t){return e.button===0&&(!t||t==="_self")&&!oce(e)}function Vx(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function lce(e,t){let r=Vx(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(l=>{r.append(o,l)})}),r}var om=null;function cce(){if(om===null)try{new FormData(document.createElement("form"),0),om=!1}catch{om=!0}return om}var uce=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zy(e){return e!=null&&!uce.has(e)?($i(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mm}"`),null):e}function dce(e,t){let r,n,o,l,u;if(ice(e)){let f=e.getAttribute("action");n=f?No(f,t):null,r=e.getAttribute("method")||Dm,o=Zy(e.getAttribute("enctype"))||Mm,l=new FormData(e)}else if(nce(e)||ace(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(n=h?No(h,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Dm,o=Zy(e.getAttribute("formenctype"))||Zy(f.getAttribute("enctype"))||Mm,l=new FormData(f,e),!cce()){let{name:m,type:b,value:x}=e;if(b==="image"){let E=m?`${m}.`:"";l.append(`${E}x`,"0"),l.append(`${E}y`,"0")}else m&&l.append(m,x)}}else{if(Pb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Dm,n=null,o=Mm,u=e}return l&&o==="text/plain"&&(u=l,l=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:l,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function TA(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function C8(e,t,r,n){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:o.pathname==="/"?o.pathname=`_root.${n}`:t&&No(o.pathname,t)==="/"?o.pathname=`${wg(t)}
18/_root.${n}`:o.pathname=`${wg(o.pathname)}.${n}`,o}async function fce(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pce(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function hce(e,t,r){let n=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let u=await fce(l,r);return u.links?u.links():[]}return[]}));return vce(n.flat(1).filter(pce).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function sI(e,t,r,n,o,l){let u=(h,m)=>r[m]?h.route.id!==r[m].route.id:!0,f=(h,m)=>r[m].pathname!==h.pathname||r[m].route.path?.endsWith("*")&&r[m].params["*"]!==h.params["*"];return l==="assets"?t.filter((h,m)=>u(h,m)||f(h,m)):l==="data"?t.filter((h,m)=>{let b=n.routes[h.route.id];if(!b||!b.hasLoader)return!1;if(u(h,m)||f(h,m))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function mce(e,t,{includeHydrateFallback:r}={}){return gce(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function gce(e){return[...new Set(e)]}function bce(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function vce(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let l=JSON.stringify(bce(o));return r.has(l)||(r.add(l),n.push({key:l,link:o})),n},[])}function wA(){let e=S.useContext(Nu);return TA(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function yce(){let e=S.useContext(qb);return TA(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var _A=S.createContext(void 0);_A.displayName="FrameworkContext";function OA(){let e=S.useContext(_A);return TA(e,"You must render this element inside a <HydratedRouter> element"),e}function xce(e,t){let r=S.useContext(_A),[n,o]=S.useState(!1),[l,u]=S.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:m,onMouseLeave:b,onTouchStart:x}=t,E=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let R=I=>{I.forEach(P=>{u(P.isIntersecting)})},w=new IntersectionObserver(R,{threshold:.5});return E.current&&w.observe(E.current),()=>{w.disconnect()}}},[e]),S.useEffect(()=>{if(n){let R=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(R)}}},[n]);let T=()=>{o(!0)},C=()=>{o(!1),u(!1)};return r?e!=="intent"?[l,E,{}]:[l,E,{onFocus:tf(f,T),onBlur:tf(h,C),onMouseEnter:tf(m,T),onMouseLeave:tf(b,C),onTouchStart:tf(x,T)}]:[!1,E,{}]}function tf(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Sce({page:e,...t}){let r=Nle(),{router:n}=wA(),o=S.useMemo(()=>u8(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?r?S.createElement(Ace,{page:e,matches:o,...t}):S.createElement(Rce,{page:e,matches:o,...t}):null}function Ece(e){let{manifest:t,routeModules:r}=OA(),[n,o]=S.useState([]);return S.useEffect(()=>{let l=!1;return hce(e,t,r).then(u=>{l||o(u)}),()=>{l=!0}},[e,t,r]),n}function Ace({page:e,matches:t,...r}){let n=yn(),{future:o}=OA(),{basename:l}=wA(),u=S.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let f=C8(e,l,o.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,m=[];for(let b of t)typeof b.route.shouldRevalidate=="function"?h=!0:m.push(b.route.id);return h&&m.length>0&&f.searchParams.set("_routes",m.join(",")),[f.pathname+f.search]},[l,o.unstable_trailingSlashAwareDataRequests,e,n,t]);return S.createElement(S.Fragment,null,u.map(f=>S.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})))}function Rce({page:e,matches:t,...r}){let n=yn(),{future:o,manifest:l,routeModules:u}=OA(),{basename:f}=wA(),{loaderData:h,matches:m}=yce(),b=S.useMemo(()=>sI(e,t,m,l,n,"data"),[e,t,m,l,n]),x=S.useMemo(()=>sI(e,t,m,l,n,"assets"),[e,t,m,l,n]),E=S.useMemo(()=>
18{if(e===n.pathname+n.search+n.hash)return[];let R=new Set,w=!1;if(t.forEach(P=>{let q=l.routes[P.route.id];!q||!q.hasLoader||(!b.some(D=>D.route.id===P.route.id)&&P.route.id in h&&u[P.route.id]?.shouldRevalidate||q.hasClientLoader?w=!0:R.add(P.route.id))}),R.size===0)return[];let I=C8(e,f,o.unstable_trailingSlashAwareDataRequests,"data");return w&&R.size>0&&I.searchParams.set("_routes",t.filter(P=>R.has(P.route.id)).map(P=>P.route.id).join(",")),[I.pathname+I.search]},[f,o.unstable_trailingSlashAwareDataRequests,h,n,l,b,t,e,u]),T=S.useMemo(()=>mce(x,l),[x,l]),C=Ece(x);return S.createElement(S.Fragment,null,E.map(R=>S.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),T.map(R=>S.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),C.map(({key:R,link:w})=>S.createElement("link",{key:R,nonce:r.nonce,...w,crossOrigin:w.crossOrigin??r.crossOrigin})))}function Cce(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Tce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tce&&(window.__reactRouterVersion="7.14.2")}catch{}function wce({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=S.useRef();o.current==null&&(o.current=sle({window:n,v5Compat:!0}));let l=o.current,[u,f]=S.useState({action:l.action,location:l.location}),h=S.useCallback(m=>{r===!1?f(m):S.startTransition(()=>f(m))},[r]);return S.useLayoutEffect(()=>l.listen(h),[l,h]),S.createElement(rce,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:l,unstable_useTransitions:r})}var T8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mo=S.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:l,replace:u,unstable_mask:f,state:h,target:m,to:b,preventScrollReset:x,viewTransition:E,unstable_defaultShouldRevalidate:T,...C},R){let{basename:w,navigator:I,unstable_useTransitions:P}=S.useContext(Ei),q=typeof b=="string"&&T8.test(b),D=m8(b,w);b=D.to;let O=Vle(b,{relative:o}),N=yn(),V=null;if(f){let te=Ib(f,[],N.unstable_mask?N.unstable_mask.pathname:"/",!0);w!=="/"&&(te.pathname=te.pathname==="/"?w:ua([w,te.pathname])),V=I.createHref(te)}let[J,W,G]=xce(n,C),B=qce(b,{replace:u,unstable_mask:f,state:h,target:m,preventScrollReset:x,relative:o,viewTransition:E,unstable_defaultShouldRevalidate:T,unstable_useTransitions:P});function L(te){t&&t(te),te.defaultPrevented||B(te)}let z=!(D.isExternal||l),ee=S.createElement("a",{...C,...G,href:(z?V:void 0)||D.absoluteURL||O,onClick:z?L:t,ref:Cce(R,W),target:m,"data-discover":!q&&r==="render"?"true":void 0});return J&&!q?S.createElement(S.Fragment,null,ee,S.createElement(Sce,{page:O})):ee});Mo.displayName="Link";var _ce=S.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:l,to:u,viewTransition:f,children:h,...m},b){let x=dp(u,{relative:m.relative}),E=yn(),T=S.useContext(qb),{navigator:C,basename:R}=S.useContext(Ei),w=T!=null&&Mce(x)&&f===!0,I=C.encodeLocation?C.encodeLocation(x).pathname:x.pathname,P=E.pathname,q=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;r||(P=P.toLowerCase(),q=q?q.toLowerCase():null,I=I.toLowerCase()),q&&R&&(q=No(q,R)||q);const D=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let O=P===I||!o&&P.startsWith(I)&&P.charAt(D)==="/",N=q!=null&&(q===I||!o&&q.startsWith(I)&&q.charAt(I.length)==="/"),V={isActive:O,isPending:N,isTransitioning:w},J=O?t:void 0,W;typeof n=="function"?W=n(V):W=[n,O?"active":null,N?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let G=typeof l=="function"?l(V):l;return S.createElement(Mo,{...m,"aria-current":J,className:W,ref:b,style:G,to:u,viewTransition:f},typeof h=="function"?h(V):h)});_ce.displayName="NavLink";var Oce=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:l,method:u=Dm,action:f,onSubmit:h,relative:m,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:E,...T},C)=>{let{unstable_useTransitions:R}=S.useContext(Ei),w=Nce(),I=Dce(f,{relative:m}),P=u.toLowerCase()==="get"?"get":"post",q=typeof f=="string"&&T8.test(f),D=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,V=N?.getAttribute("formmethod")||u,J=()=>w(N||O.currentTarget,{fetcherKey:t,method:V,navigate:r,replace:o,state:l,relative:m,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:E});R&&r!==!1?S.startTransition(()=>J()):J()};return S.createElement("form",{ref:C,method:P,action:I,onSubmit:n?h:D,...T,"data-discover":!q&&e==="render"?"true":void 0})});Oce.displayName="Form";function Ice(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w8(e){let t=S.useContext(Nu);return lr(t,Ice(e)),t}function qce(e,{target:t,replace:r,unstable_mask:n,state:o,preventScrollReset:l,relative:u,viewTransition:f,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let b=ga(),x=yn(),E=dp(e,{relative:u});return S.useCallback(T=>{if(sce(T,t)){T.preventDefault();let C=r!==void 0?r:zf(x)===zf(E),R=()=>b(e,{replace:C,unstable_mask:n,state:o,preventScrollReset:l,relative:u,viewTransition:f,unstable_defaultShouldRevalidate:h});m?S.startTransition(()=>R()):R()}},[x,b,E,r,n,o,t,e,l,u,f,h,m])}function fp(e){$i(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Vx(e)),r=S.useRef(!1),n=yn(),o=S.useMemo(()=>lce(n.search,r.current?null:t.current),[n.search]),l=ga(),u=S.useCallback((f,h)=>{const m=Vx(typeof f=="function"?f(new URLSearchParams(o)):f);r.current=!0,l("?"+m,h)},[l,o]);return[o,u]}var Pce=0,kce=()=>`__${String(++Pce)}__`;function Nce(){let{router:e}=w8("useSubmit"),{basename:t}=S.useContext(Ei),r=Jle(),n=e.fetch,o=e.navigate;return S.useCallback(async(l,u={})=>{let{action:f,method:h,encType:m,formData:b,body:x}=dce(l,t);
18if(u.navigate===!1){let E=u.fetcherKey||kce();await n(E,r,u.action||f,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:x,formMethod:u.method||h,formEncType:u.encType||m,flushSync:u.flushSync})}else await o(u.action||f,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:x,formMethod:u.method||h,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,o,t,r])}function Dce(e,{relative:t}={}){let{basename:r}=S.useContext(Ei),n=S.useContext(ma);lr(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),l={...dp(e||".",{relative:t})},u=yn();if(e==null){l.search=u.search;let f=new URLSearchParams(l.search),h=f.getAll("index");if(h.some(b=>b==="")){f.delete("index"),h.filter(x=>x).forEach(x=>f.append("index",x));let b=f.toString();l.search=b?`?${b}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:ua([r,l.pathname])),zf(l)}function Mce(e,{relative:t}={}){let r=S.useContext(v8);lr(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=w8("useViewTransitionState"),o=dp(e,{relative:t});if(!r.isTransitioning)return!1;let l=No(r.currentLocation.pathname,n)||r.currentLocation.pathname,u=No(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Tg(o.pathname,u)!=null||Tg(o.pathname,l)!=null}function jce(e={}){const{nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}=e,[o,l]=S.useState(!1),u=S.useRef(r);u.current=r;const f=S.useRef(n);return f.current=n,S.useEffect(()=>{const h=document.createElement("script");return h.src="https://accounts.google.com/gsi/client",h.async=!0,h.defer=!0,h.nonce=t,h.onload=()=>{var m;l(!0),(m=u.current)===null||m===void 0||m.call(u)},h.onerror=()=>{var m;l(!1),(m=f.current)===null||m===void 0||m.call(f)},document.body.appendChild(h),()=>{document.body.removeChild(h)}},[t]),o}const _8=S.createContext(null);function Lce({clientId:e,nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n,children:o}){const l=jce({nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}),u=S.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:l}),[e,l]);return Pe.createElement(_8.Provider,{value:u},o)}function zce(){const e=S.useContext(_8);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function Uce({flow:e="implicit",scope:t="",onSuccess:r,onError:n,onNonOAuthError:o,overrideScope:l,state:u,...f}){const{clientId:h,scriptLoadedSuccessfully:m}=zce(),b=S.useRef(),x=S.useRef(r);x.current=r;const E=S.useRef(n);E.current=n;const T=S.useRef(o);T.current=o,S.useEffect(()=>{var w,I;if(!m)return;const P=e==="implicit"?"initTokenClient":"initCodeClient",q=(I=(w=window?.google)===null||w===void 0?void 0:w.accounts)===null||I===void 0?void 0:I.oauth2[P]({client_id:h,scope:l?t:`openid profile email ${t}`,callback:D=>{var O,N;if(D.error)return(O=E.current)===null||O===void 0?void 0:O.call(E,D);(N=x.current)===null||N===void 0||N.call(x,D)},error_callback:D=>{var O;(O=T.current)===null||O===void 0||O.call(T,D)},state:u,...f});b.current=q},[h,m,e,t,u]);const C=S.useCallback(w=>{var I;return(I=b.current)===null||I===void 0?void 0:I.requestAccessToken(w)},[]),R=S.useCallback(()=>{var w;return(w=b.current)===null||w===void 0?void 0:w.requestCode()},[]);return e==="implicit"?C:R}const O8=S.createContext({googleEnabled:!1,setGoogleEnabled:()=>{},activeApp:void 0,setActiveApp:()=>{},activeOrg:void 0,setActiveOrg:()=>{}}),Vce=({children:e})=>{const[t,r]=S.useState(!1),[n,o]=S.useState(),[l,u]=S.useState();return p.jsx(O8.Provider,{value:{googleEnabled:t,setGoogleEnabled:r,activeApp:n,setActiveApp:o,activeOrg:l,setActiveOrg:u},children:e})},ju=()=>S.useContext(O8),Fce=y({code:s().required(),ts:A().required(),status:A().required().integer().positive(),msg:s().required(),loc:s().optional(),detail:s().optional(),data:y().optional()});
18class Ma extends Error{constructor(t,r,n,o){super(n),this.code=t,this.httpStatus=r,this.message=n,this.code=t,this.name="ApiClientError",this.httpStatus=r,this.message=n,this.detail=o?.detail,this.location=o?.location,this.data=o?.data,this.timestamp=o?.timestamp??Math.floor(Date.now()/1e3)}code;httpStatus;message;timestamp;isError=t=>this.code===t.code;isSerialized=t=>this.code===t.code;serialize(){return{code:this.code,msg:this.message,status:this.httpStatus,loc:this.location,detail:this.detail,data:this.data,ts:this.timestamp}}static fromSerialized(t){return new Ma(t.code,t.status,t.msg,{detail:t.detail,location:t.loc,data:t.data,timestamp:t.ts})}}function $ce(e,t,r,n){if(r==null)return;if(!Array.isArray(r))return e.append(t,`${r}`);if(n==="scalar")throw new Error(`ApiClient query: array value for "${t}" is not allowed in 'scalar' mode`);const o=r.filter(l=>l!=null).map(l=>`${l}`);n==="json-api"?e.append(t,o.join(",")):n==="brackets"?o.forEach(l=>e.append(`${t}[]`,l)):n==="indices"?o.forEach((l,u)=>e.append(`${t}[${u}]`,l)):o.forEach(l=>e.append(t,l))}class qr{apiBase;requestMethod;endpointStatic;responseType;requestContract;responseContract;requestContractStrict;responseContractStrict;requestQuery;queryMode;requestHeaders;requestBody;requestParams;authMethod;constructor(t){if(typeof t=="string"){this.endpointStatic=t,this.requestMethod="GET",this.requestHeaders={},this.responseType="RESPONSE";return}this.apiBase=t?.apiBase,this.requestMethod=t?.requestMethod??"GET",this.endpointStatic=t?.endpoint??"",this.responseType=t?.responseType??"RESPONSE",this.requestContract=t?.requestContract,this.requestContractStrict=t?.requestContractStrict,this.responseContract=t?.responseContract,this.responseContractStrict=t?.responseContractStrict,this.requestHeaders=t?.requestHeaders??{},this.requestBody=t?.requestBody,this.requestParams=t?.requestParams,this.authMethod=t?.authMethod,this.requestQuery=t?.requestQuery,this.queryMode=t?.queryMode}config(){return{apiBase:this.apiBase,requestMethod:this.requestMethod,endpoint:this.endpointStatic,responseType:this.responseType,requestContract:this.requestContract,responseContract:this.responseContract,requestContractStrict:this.requestContractStrict,responseContractStrict:this.responseContractStrict,requestHeaders:this.requestHeaders,requestQuery:this.requestQuery,queryMode:this.queryMode,requestBody:this.requestBody,requestParams:this.requestParams,authMethod:this.authMethod}}_methodChange=t=>new qr({...this.config(),requestMethod:t});get=()=>this._methodChange("GET");post=()=>this._methodChange("POST");put=()=>this._methodChange("PUT");patch=()=>this._methodChange("PATCH");delete=()=>this._methodChange("DELETE");reqContract=(t,r=!0)=>new qr({...this.config(),requestContract:t,requestContractStrict:r});resContract(t,r=!0){return new qr({...this.config(),responseContract:t,responseContractStrict:r,responseType:"CONTRACT"})}ok(){return new qr({...this.config(),responseType:"OK"})}raw(){return new qr({...this.config(),responseType:"RESPONSE"})}any(){return new qr({...this.config(),responseType:"DATA"})}text(){return new qr({...this.config(),responseType:"TEXT"})}err(){return new qr({...this.config(),responseType:"ERR"})}json(t){if(!t)return new qr({...this.config()});this.requestContract&&this.requestContract.validateSync(t,{stripUnknown:this.requestContractStrict,abortEarly:!1});const r={...this.requestHeaders,"Content-Type":"application/json"},n={...this.config(),requestHeaders:r,requestBody:JSON.stringify(t)};return new qr(n)}params(t){if(!t)return new qr({...this.config()});for(const r in t){const n=`:${r}`;if(!this.endpointStatic.includes(n))throw new Error(`Param '${n}' in ${this.endpointStatic}`)}return new qr({...this.config(),requestParams:t})}endpoint=t=>new qr({...this.config(),endpoint:t,requestParams:{}});base=t=>new qr({...this.config(),apiBase:t});headers=t=>new qr({...this.config(),requestHeaders:{...this.config().requestHeaders,...t}});query(t,r){if(!t)return new qr({...this.config()});const n={...this.config().requestQuery};
18for(const o in t)t[o]!==null&&t[o]!==void 0&&(n[o]=t[o]);return new qr({...this.config(),requestQuery:n,queryMode:r?.mode??this.queryMode??"json-api"})}auth(t){return new qr({...this.config(),authMethod:t})}cReq=this.reqContract;cRes=this.resContract;jsonExec(){return t=>this.json(t).exec()}paramsExec(){return t=>this.params(t).exec()}queryExec(){return(t,r)=>this.query(t,r).exec()}api(){return t=>this.params(t?.params).json(t?.data).query(t?.query,{mode:t?.queryMode}).headers(t?.headers??{}).exec()}_prepareRequestUrl(){let t=`${this.apiBase??""}${this.endpointStatic}`;for(const r in this.requestParams){const n=`:${r}`;t=t.replaceAll(n,this.requestParams[r])}if(this.requestQuery){const r=new URLSearchParams,n=this.queryMode??"json-api";for(const l in this.requestQuery)$ce(r,l,this.requestQuery[l],n);const o=r.toString();o&&(t=`${t}?${o}`)}return t}async exec(){const t=this._prepareRequestUrl(),r=this.authMethod?await this.authMethod():{},n={...this.requestHeaders,...r},o=await fetch(t,{method:this.requestMethod,headers:n,body:this.requestBody});if(this.responseType==="OK")return o.ok;if(this.responseType==="RESPONSE")return o;if(this.responseType==="TEXT")return o.text();if(this.responseType==="ERR"&&o.ok)return;if(this.responseType==="ERR")return this.handleErrorResponse(t,o).catch(f=>f);o.ok||await this.handleErrorResponse(t,o);const l=await o.json();if(this.responseType==="DATA"||!this.responseContract)return l;const u={stripUnknown:this.responseContractStrict,abortEarly:!1};return this.responseContract.validate(l,u)}async handleErrorResponse(t,r){const{status:n,statusText:o}=r,u=await r.json().catch(()=>{})??await r.text().catch(()=>{});if(!u)throw new Ma(`HTTP:${n}`,n,o,{location:t});const f=typeof u=="string"?u:void 0,h=u&&typeof u!="string"?u:void 0;if(f)throw new Ma(`HTTP:${n}`,n,o,{data:h,detail:f,location:t});const m=await Fce.validate(h).catch(()=>{});throw m?Ma.fromSerialized(m):new Ma(`HTTP:${n}`,n,o,{data:h,detail:f,location:t})}}const pp=e=>new qr(e);var Ba=(e=>(e.USER_REFRESH_TOKEN="ar.userRefreshToken",e.SPOOF_REFRESH_TOKEN="ar.spoofRefreshToken",e.FLUTTER_DEBUG_MODE="ar.flutterDebugMode",e))(Ba||{}),jo=(e=>(e.USER_ACCESS_TOKEN="ar.userAccessToken",e.SPOOF_ACCESS_TOKEN="ar.spoofAccessToken",e.DESKTOP_HANDOFF_DISMISSED="ar.desktopHandoffDismissed",e))(jo||{}),Bce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I8=new Map;for(let e=0;e<64;e++){let t=e.toString(2),r=6-t.length;t="0".repeat(r)+t,I8.set(Bce.charCodeAt(e),t)}function Hce(e){let t="";for(let n=0;n<e.length;n++)t+=I8.get(e.charCodeAt(n));t=t.slice(0,t.length-t.length%8);let r=[];for(let n=0;n<t.length/8;n++)r.push(t.slice(n*8,n*8+8));return r}function Gce(e){return e=e.replaceAll("=",""),e=e.replaceAll("-","+"),e=e.replaceAll("_","/"),Hce(e).map(t=>parseInt(t,2))}function Wce(e){let t="",r,n=e.length;for(let o=0;o<n;o++)r=e[o],t+=String.fromCodePoint(r>251&&r<254&&o+5<n?(r-252)*1073741824+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>247&&r<252&&o+4<n?(r-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>239&&r<248&&o+3<n?(r-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:r>223&&r<240&&o+2<n?(r-224<<12)+(e[++o]-128<<6)+e[++o]-128:r>191&&r<224&&o+1<n?(r-192<<6)+e[++o]-128:r);return t}function Yce(e){try{if(typeof e!="string"||e.split(".").length!==3)return null;let t=e.split(".")[1],r=Wce(Gce(t));return JSON.parse(r)}catch(t){return console.error("There was an error decoding token: ",t),null}}function Kce(e){let t=Yce(e),r=!0;if(t&&t.exp){let n=new Date(0);n.setUTCSeconds(t.exp),r=n.valueOf()<new Date().valueOf()}return r}const St=YH({placement:"top-end",pauseOnPageIdle:!0,max:3});function Xce(){return p.jsx(Vo,{children:p.jsx(SQ,{toaster:St,insetInline:{mdDown:"4"},children:e=>p.jsxs(EQ,{width:{md:"sm"},children:[e.type==="loading"?p.jsx(ab,{size:"sm",color:"blue.solid"}):p.jsx(_Q,{}),p.jsxs(Pn,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&p.jsx(RQ,{children:e.title}),e.description&&p.jsx(CQ,{children:e.description})]}),e.action&&p.jsx(TQ,{children:e.action.label}),e.meta?.closable&&p.jsx(AQ,{})]})})})}const Qce=()=>IA("ACTIVE"),Jce=()=>IA("USER"),Zce=()=>IA("SPOOF"),ln=Fi.API_GATEWAY,Uf={v1:()=>`${ln}/mercury-backend`,v2:()=>`${ln}/api-v2`},eue=()=>Uf.v2(),k2e=()=>eue(),q8={raw:()=>({}
18),active:Qce,spoof:Zce,user:Jce},pe=Object.fromEntries(Object.entries(Wl).map(([e,t])=>[e,Object.fromEntries(Object.entries(q8).map(([r,n])=>[r,(o,l)=>pp(o).base(Uf.v2()).auth(n).headers({[hN.ApiVersion]:t??l})]))]));function $r(e,t=!0){if(!(e instanceof Ma)){console.error(e instanceof Error?e.stack:e),St.error({description:"An unexpected error occured, please check the console."});return}(t||e.httpStatus===500)&&console.error(e.serialize());const r=e.message,n=e.detail;St.error({title:r,description:n})}for(const e in Uf)if(!Uf[e])throw Error(`API Base '${e}' not found!`);const or=Object.fromEntries(Object.entries(Uf).map(([e,t])=>[e,Object.fromEntries(Object.entries(q8).map(([r,n])=>[r,o=>pp(o).base(t()).auth(n)]))])),tue={RefreshToken:pe.v2025_06_01.raw("/api/auth/authn/refresh").post().cReq(br.AuthnTokenRefresh).cRes(br.AuthnTokens).jsonExec()};function lI(e){return e?Kce(e):!0}async function rue(){const e=window.localStorage.getItem(Ba.USER_REFRESH_TOKEN),t=window.localStorage.getItem(Ba.SPOOF_REFRESH_TOKEN),[r,n]=await Promise.all([Fx(e),Fx(t)]);r&&pu("USER",r),n&&pu("SPOOF",n)}function pu(e,t){const{accessToken:r,refreshToken:n}=t;e==="USER"&&(window.localStorage.setItem(Ba.USER_REFRESH_TOKEN,n),window.sessionStorage.setItem(jo.USER_ACCESS_TOKEN,r)),e==="SPOOF"&&(window.localStorage.setItem(Ba.SPOOF_REFRESH_TOKEN,n),window.sessionStorage.setItem(jo.SPOOF_ACCESS_TOKEN,r))}function Rf(e="ALL"){(e==="USER"||e==="ALL")&&(window.localStorage.removeItem(Ba.USER_REFRESH_TOKEN),window.sessionStorage.removeItem(jo.USER_ACCESS_TOKEN)),(e==="SPOOF"||e==="ALL")&&(window.localStorage.removeItem(Ba.SPOOF_REFRESH_TOKEN),window.sessionStorage.removeItem(jo.SPOOF_ACCESS_TOKEN))}async function IA(e="ACTIVE"){const t=await nue(e);return t?{Authorization:`Bearer ${t}`}:{}}async function nue(e="ACTIVE"){const{accessToken:t,refreshToken:r,source:n}=qs(e);if(!r)return Rf();const[o,l]=[lI(t),lI(r)];if(l)return Rf();if(!o)return t;const u=await Fx(r);return u?(pu(n,u),u.accessToken):Rf()}function qs(e){const t=window.localStorage.getItem(Ba.USER_REFRESH_TOKEN),r=window.sessionStorage.getItem(jo.USER_ACCESS_TOKEN),n=window.localStorage.getItem(Ba.SPOOF_REFRESH_TOKEN),o=window.sessionStorage.getItem(jo.SPOOF_ACCESS_TOKEN);return e==="USER"?{accessToken:r,refreshToken:t,source:"USER"}:e==="ACTIVE"&&!n?{accessToken:r,refreshToken:t,source:"USER"}:{accessToken:o,refreshToken:n,source:"SPOOF"}}const Fx=e=>e?tue.RefreshToken({refreshToken:e}):null,hu={LoginOptions:pe.v2025_06_01.raw("/api/auth/authn/login").cRes(br.LoginOptions).queryExec(),RefreshToken:pe.v2025_06_01.active("/api/auth/authn/refresh").cReq(br.AuthnTokenRefresh).cRes(br.AuthnTokens).api(),LoginApp:pe.v2025_06_01.raw("/api/auth/authn/login/:appId").post().cReq(br.Login).cRes(br.AuthnTokens).api(),GetAuthAndCredentials:pe.v2025_06_01.user("/api/auth/authn/:authnId").query({includeTokens:"true"}).cRes(br.LoosePolicyCredentialsWithTokens).paramsExec(),UserCredentials:pe.v2025_06_01.user("/api/auth/authn/me").cRes(br.LoosePolicyCredentials).paramsExec(),SpoofCredentials:pe.v2025_06_01.spoof("/api/auth/authn/me").cRes(br.LoosePolicyCredentials).paramsExec(),SendPasswordResetEmail:pe.v2025_06_01.raw("/api/auth/authn/password/reset?sendEmail=true").cReq(br.SendResetPasswordEmail).post().ok().jsonExec(),ResetPasswordByToken:pe.v2025_06_01.raw("/api/auth/authn/password/reset").cReq(br.ResetPasswordByToken).err().post().jsonExec(),ChangePassword:pe.v2025_06_01.active("/api/auth/authn/:authnId/password").put().cReq(br.ChangePassword).err().api(),GetSelf:pe.v2025_06_01.active("/api/authn/me").cRes(br.Authn).api(),PatchSelf:pe.v2025_06_01.active("/api/authn/:authnId").patch().cReq(br.PatchAuthn).err().api(),GetAuthn:pe.v2025_06_01.active("/api/authn/:authnId").cRes(br.Authn).paramsExec(),ClearPassword:pe.v2025_06_01.user("/api/auth/authn/:authnId/password").delete().err().paramsExec()},Yl={PublicInfo:pe.v2025_06_01.raw("/api/app/:appId/").cRes(ia.AppInstanceCore).paramsExec(),GetAdminOverviewData:pe.v2025_06_01.user("/api/admin/apps/:appId").cRes(ia.AdminOverviewData).paramsExec(),GetAppInstance:pe.v2025_06_01.active("/api/app/:appId").cRes(ia.AppInstance).paramsExec(),GetAppServiceObject:pe.v2025_06_01.active("/api/app/:appId/services").cRes(By.ApplicationServices).paramsExec(),RootGetAppServiceObject:pe.v2025_06_01.user("/api/app/:appId/services").cRes(By.ApplicationServices).paramsExec(),ConfigureAppStripeConnect:pe.v2025_06_01.active("/api/app/:appId/settings/stripe").patch().cRes(Im.AppStripeSettings).paramsExec(),RootCreateAppServiceTrial:pe.v2025_06_01.user("/api/app/:appId/services/:serviceType").post().err().paramsExec(),RootPatchAppService:pe.v2025_06_01.user("/api/app/:appId/services/:serviceType").patch().cReq(ia.ExtendApplicationSubscription).err().api(),RootCancelAppService:pe.v2025_06_01.user("/api/app/:appId/services/:serviceType").delete().err().paramsExec(),GetAppStyles:pe.v2025_06_01.raw("/api/app/:appId/styles").get().cRes(ia.AppStyles).paramsExec(),GetAppLinks:pe.v2025_06_01.raw("/api/app/:appId/links").get().cRes(ia.AppLinks).paramsExec(),CreateAppserviceCheckoutSession:pe.v2025_06_01.active("/api/app/:appId/services/checkout/:serviceType").post().cRes(By.CheckoutSessionUrl).paramsExec(),PatchApp:pe.v2025_06_01.active("/api/app/:appId").patch().cReq(ia.PatchApplication).err().api(),GetFeatureFlags:pe.v2026_01_01.active("/api/app/:appId/flags").get().cRes(Gy.PaginatedFlagsAndValues).paramsExec(),GetFeatureFlagsList:pe.v2026_01_01.active("/api/app/:appId/flags").get().cRes(Gy.PaginatedFlagsAndValues).api(),UpsertFeatureFlagValue:pe.v2026_01_01.active("/api/app/:appId/flags/:appFeatureFlagConfigId").put().cReq(Gy.UpdateFlagValue).err().api(),ResetFeatureFlag:pe.v2026_01_01.active("/api/app/:appId/flags/:appFeatureFlagConfigId").delete().err().paramsExec()},sm={OnboardApp:pe.v2025_06_01.raw("/api/app").post().cReq(am.OnboardAuthn).cRes(br.CredentialsWithTokens).jsonExec(),OnboardOrg:pe.v2025_06_01.raw("/api/orgs").post().cReq(am.OnboardAuthn).cRes(br.CredentialsWithTokens).jsonExec(),PhoneVerificationRequest:pe.v2025_06_01.raw("/api/auth/verification/sms").post().cReq(am.PhoneVerify).ok().jsonExec(),PhoneVerification:pe.v2025_06_01.raw("/api/auth/verification/sms").post().cReq(am.PhoneVerifyCheck).query({check:!0}).ok().jsonExec()},iue={GetAppDistributionStatus:pe.v2025_06_01.active("/api/app/:appId/distribution").cRes(pee.DistributionStatus).paramsExec(),RequestAppDistribution:pe.v2025_06_01.active("/api/app/:appId/distribution").post().ok().paramsExec(),CheckApiKeyAppStore
18Connect:pe.v2025_06_01.active("/api/app/:appId/distribution/apple-account/keys/check").post().cReq(Sl.ApiKeyCheckAppStoreConnect).query({keyType:"app-store-connect"}).err().api(),CheckApiKeyPushNotifications:pe.v2025_06_01.active("/api/app/:appId/distribution/apple-account/keys/check").post().cReq(Sl.ApiKeyCheckPushNotifications).query({keyType:"push-notifications"}).err().api(),SetupAppleAccount:pe.v2025_06_01.active("/api/app/:appId/distribution/apple-account").post().cReq(Sl.AppleAccountSetup).err().api(),SetupAppDetails:pe.v2025_06_01.active("/api/app/:appId/distribution/detail").post().cReq(Af.AppDetailSetup).err().api(),GetAppleAccount:pe.v2025_06_01.active("/api/app/:appId/distribution/apple-account").get().cRes(Sl.MaskedAppleAccount).api(),GetAppDetails:pe.v2025_06_01.active("/api/app/:appId/distribution/detail").get().cRes(Af.AppDetail).api(),UpdateAppleAccount:pe.v2025_06_01.active("/api/app/:appId/distribution/apple-account").patch().cReq(Sl.AppleAccountPartial).api(),UpdateAppDetails:pe.v2025_06_01.active("/api/app/:appId/distribution/detail").patch().cReq(Af.AppDetailPartial).api()},Pl={QueryApps:pe.v2025_06_01.active("/api/admin/apps").cRes(gee.AppRecordQuery).api(),AdminQueryAuthn:pe.v2025_06_01.active("/api/admin/authns").cRes(yee.AdminAuthnRecordQuery).queryExec(),QueryMarketingLeads:pe.v2025_06_01.active("/api/marketing/leads").get().cRes(Fy.MarketingLeadQuery).queryExec(),GetMarketingLead:pe.v2025_06_01.active("/api/marketing/leads/:marketingLeadId").cRes(Fy.MarketingLead).paramsExec(),PatchMarketingLead:pe.v2025_06_01.active("/api/marketing/leads/:marketingLeadId").patch().cReq(Fy.PatchMarketingLead).err().api(),NotiferEmailTest:pe.v2025_06_01.user("/api/admin/notifier/email/test").post().cReq(RO.MassEmailTest).err().jsonExec(),NotiferEmailBlast:pe.v2025_06_01.user("/api/admin/notifier/email/blast").post().cReq(RO.MassEmail).err().jsonExec(),NotifierPushSingle:pe.v2025_06_01.user("/api/admin/notifier/push/single").post().cReq(bre.PushNotificationRequestAuthn).err().jsonExec(),GetAuthnAppAccessData:pe.v2025_06_01.user("/api/authn/:authnId/access").cRes(im.AuthnAccessData).paramsExec(),ChangeAuthnAppAccessSource:pe.v2025_06_01.user("/api/authn/:authnId/access").patch().cReq(im.AccessSourceUpdate).err().api(),UpdateManagedAppAccess:pe.v2025_06_01.user(`/api/authn/:authnId/access/${Qn.MANAGED}`).patch().cReq(im.ManagedAccessUpdate).err().api(),UpdateStripePurchasedAppAccess:pe.v2025_06_01.user(`/api/authn/:authnId/access/${Qn.STRIPE_PURCHASED}`).patch().cReq(im.ManagedAccessUpdate).err().api(),SyncStripeRecurringAppAccess:pe.v2025_06_01.user(`/api/authn/:authnId/access/${Qn.STRIPE_RECURRING}`).get().err().paramsExec(),CancelStripeRecurringAppAccess:pe.v2025_06_01.user(`/api/authn/:authnId/access/${Qn.STRIPE_RECURRING}`).delete().err().paramsExec(),GetAppServicesStripeProducts:pe.v2025_06_01.user("/api/app/:appId/services/products").cRes(Im.AppServicesStripeProduct).api(),CreateCustomAppServicesCheckoutLink:pe.v2025_06_01.user("/api/app/:appId/services/checkout/custom").post().cReq(Im.AppServicesCustomCheckout).cRes(Im.AppServicesCustomCheckoutLink).jsonExec(),QueryAiPromptFragments:pe.v2025_06_01.user("/api/admin/ai/prompt-fragments").cRes(Oa.PaginatedAiPromptFragments).queryExec(),CreateAiPromptFragment:pe.v2025_06_01.user("/api/admin/ai/prompt-fragments").post().cReq(Oa.AiPromptFragmentCreateRequest).cRes(Oa.AiPromptFragmentResponse).api(),UpdateAiPromptFragment:pe.v2025_06_01.user("/api/admin/ai/prompt-fragments/:id").patch().cReq(Oa.AiPromptFragmentUpdateRequest).cRes(Oa.AiPromptFragmentResponse).api(),DeleteAiPromptFragment:pe.v2025_06_01.user("/api/admin/ai/prompt-fragments/:id").delete().err().api(),QueryMcpToolDeclarations:pe.v2025_06_01.user("/api/admin/ai/mcp-tool-declarations").c
18Res(Oa.PaginatedMcpToolDeclarations).queryExec(),UpsertMcpToolDeclaration:pe.v2025_06_01.user("/api/admin/ai/mcp-tool-declarations/:name").put().cReq(Oa.McpToolDeclarationUpsertRequest).cRes(Oa.McpToolDeclarationResponse).api(),DeleteMcpToolDeclaration:pe.v2025_06_01.user("/api/admin/ai/mcp-tool-declarations/:name").delete().err().api(),PreviewAiPrompt:pe.v2025_06_01.user("/api/admin/ai/prompt-preview").post().cReq(Oa.AiPromptPreviewRequest).cRes(Oa.AiPromptPreviewResponse).api()},aue={ListOrgs:pe.v2025_06_01.active("/api/orgs").cRes($y.ListOrgs).queryExec(),UpdateOrganization:pe.v2025_06_01.active("/api/orgs/:organizationId").patch().cReq($y.OrganizationUpdate).err().api(),GetOrganization:pe.v2025_06_01.active("/api/orgs/:organizationId").get().cRes($y.Organization).paramsExec(),AddAppToOrganization:pe.v2025_06_01.user("/api/app/:appId").patch().cReq(ia.PatchApplication).err().api(),RemoveAppFromOrganization:pe.v2025_06_01.user("/api/app/:appId").patch().cReq(ia.PatchApplication).err().api()},N2e={GenerateZapierApiKey:pe.v2025_06_01.active("/api/app/:appId/integrations/zapier/configure").post().cRes(zte.ZapierApiKey).paramsExec()},D2e={GetOverview:pe.v2025_06_01.active("/api/metrics/apprabbit").get().cRes(gte.OverviewMetrics).queryExec(),GetAppMetrics:pe.v2025_06_01.user("/api/metrics/app/:appId").get().cRes(ia.AppMetrics).paramsExec()},qA={LegacyOnboard:or.v1.raw("/mobile/v1/onboarding").post().err(),FetchAllProducts:or.v1.active("/product/all").any().api(),FetchAllCoupons:or.v1.active("/coupon/all").any().api(),CreateCoupon:or.v1.active("/coupon").post().err().jsonExec(),UpdateCoupon:or.v1.active("/coupon").patch().err().jsonExec(),DeleteCoupon:or.v1.active("/coupon/:stripePromoCodeId").delete().err().paramsExec(),GetFormSettings:or.v1.active("/f/settings").any().api(),FetchFreeForms:or.v1.active("/free-signup/all").any().api(),GetAppuserFormVersionByForm:or.v2.raw("/api/v1/commerce/form/stripe/:stripeFormId/appuserFormVersion").cRes(mg.AppuserFormVersion).paramsExec(),GetAppuserFormVersionByAppId:or.v2.raw("/api/v1/commerce/form/appuserFormVersion/:appId/app").cRes(mg.AppuserFormVersion).paramsExec(),GetSalespageData:or.v1.active("/product/salesPage/:appId").any().paramsExec(),SetSalespageImage:or.v1.active("/product/salesPage/:appId/imageUrl").post().err().api(),SetSalespageTitle:or.v1.active("/product/salesPage/:appId/title").post().err().api(),SetSalespageSubtitle:or.v1.active("/product/salesPage/:appId/subtitle").post().err().api(),SaveFormSettings:or.v1.active("/f/settings").put().err().jsonExec(),DeleteFreeForm:or.v1.active("/free-signup/:formId").delete().err().paramsExec(),CreateFreeForm:or.v1.active("/free-signup").post().err().jsonExec(),UpdateFreeForm:or.v1.active("/free-signup/:formId").patch().err().api(),DeleteStripeProduct:or.v1.active("/product/:stripeProductId").delete().err().paramsExec(),CreateStripeForm:or.v1.active("/product").post().err().jsonExec(),UpdateStripeProduct:or.v1.active("/product").patch().err().jsonExec(),ReorderStripeProducts:or.v1.active("/product/sales/page/reorder").patch().cReq(oZ.Reorder).err().jsonExec()},M2e={GetAppuserWelcomePreview:pe.v2025_06_01.active("/api/app/:appId/settings/welcome-email/preview").cRes(Hy.WelcomeEmailPreview).api(),SendAppuserWelcomeEmailPreview:pe.v2025_06_01.active("/api/app/:appId/settings/welcome-email/preview").post().err().api(),GetAppownerWelc
18omeForm:pe.v2025_06_01.active("/api/app/:appId/settings/welcome-email").cRes(Hy.WelcomeEmail).api(),UpsertAppownerWelcomeForm:pe.v2025_06_01.active("/api/app/:appId/settings/welcome-email").post().cReq(Hy.RegisterWelcomeEmail).err().jsonExec()},_g={GetAppId:or.v2.raw("/api/v2/commerce/form/:formVariant/:formId/appId").cRes(ia.AppId).paramsExec(),AppuserSignup:or.v2.raw("/api/v2/commerce/form/:formVariant/:formId").post().cReq(mg.FormCreateNewAppuser).cRes(mg.FormNextUrl).api()},j2e={CreateAuthn:pe.v2026_01_01.active("/api/authn").post().cReq(br.AuthnCreateRequest).err().jsonExec(),PatchAuthn:pe.v2025_06_01.active("/api/authn/:authnId").patch().cReq(br.PatchAuthn).err().api(),DeactivateAuthn:pe.v2025_06_01.active("/api/authn/:authnId/access").delete().err().paramsExec(),QueryAuthn:pe.v2025_06_01.active("/api/authn").get().cRes(br.AuthnQuery).queryExec(),GetAccessMarkers:pe.v2026_01_01.active("/api/authn/:authnId/access/marker").get().cRes(lee.PaginatedLogsWithMarkers).paramsExec(),RevokeAccessMarker:pe.v2026_01_01.active("/api/authn/:authnId/access/marker/:markerLogId").delete().err().paramsExec()},L2e={GetProducts:pe.v2025_06_01.raw("/api/commerce/storefront/:appId/products").get().cRes(Ro.AppStorefrontProducts).paramsExec(),CreateProduct:pe.v2025_06_01.active("/api/app/:appId/commerce/product/").post().cReq(Ro.CreateAppProduct).cRes(Ro.AppProduct).api(),GetProduct:pe.v2025_06_01.raw("/api/app/:appId/commerce/product/:appProductId").get().cRes(Ro.AppProduct).paramsExec(),PatchProduct:pe.v2025_06_01.active("/api/app/:appId/commerce/product/:appProductId").patch().cReq(Ro.PartialAppProduct).err().api(),QueryProductHandlers:pe.v2025_06_01.raw("/api/app/:appId/commerce/product/:appProductId/handler").get().paramsExec(),CreateProductHandler:pe.v2025_06_01.active("/api/app/:appId/commerce/product/:appProductId/handler").post().cReq(Ro.CreateAppProductPurchaseHandlerSchema).cRes(Ro.AppProductPurchaseHandlerSchema).api(),GetProductHandler:pe.v2025_06_01.raw("/api/app/:appId/commerce/product/:appProductId/handler/:appProductPurchaseHandlerId").get().cRes(Ro.AppProductPurchaseHandlerSchema).paramsExec(),PatchProductHandler:pe.v2025_06_01.active("/api/app/:appId/commerce/product/:appProductId/handler/:appProductPurchaseHandlerId").patch().cReq(Ro.PartialAppProductPurchaseHandlerSchema).err().api(),DeleteProductHandler:pe.v2025_06_01.active("/api/app/:appId/commerce/product/:appProductId/handler/:appProductPurchaseHandlerId").delete().err().paramsExec(),QueryGroups:pe.v2025_06_01.active("/api/app/:appId/group").get().cRes(pre.QueriedGroups).api(),QueryAppFreeLinks:pe.v2026_01_01.active("/api/app/:appId/commerce/free").get().cRes(sO.V1FreeLinkData).paramsExec(),CreateAppFreeLink:pe.v2026_01_01.active("/api/app/:appId/commerce/free").post().cReq(sO.CreateV1FreeLink).err().api(),DeleteAppFreeLink:pe.v2026_01_01.active("/api/app/:appId/commerce/free/:legacyFreeFormId").delete().err().paramsExec()},z2e={GetAppGlobalPrompt:pe.v2025_06_01.active("/api/app/:appId/ai/prompts/global").cRes(Bc.AppAiGlobalPrompt).api(),UpdateAppGlobalPrompt:pe.v2025_06_01.active("/api/app/:appId/ai/prompts/global").put().cReq(Bc.UpdateAppAiGlobalPromptRequest).cRes(Bc.AppAiGlobalPrompt).api(),GetPersonalGlobalPrompt:pe.v2025_06_01.active("/api/app/:appId/ai/prompts/personal/:authnId").cRes(Bc.AppAiPersonalGlobalPrompt).api(),UpdatePersonalGlobalPrompt:pe.v2025_06_01.active("/api/app/:appId/ai/prompts/personal/:authnId").put().cReq(Bc.UpdateAppAiPersonalGlobalPromptRequest).cRes(Bc.AppAiPersonalGlobalPrompt).api(),GetMessagingAgentConfig:pe.v2025_06_01.active("/api/app/:appId/messaging/agent/config").cRes(ys.MessagingAgentConfig).api(),UpdateMessagingAgentConfig:pe.v2025_06_01.active("/api/app/:appId/messaging/agent/config").put().cReq(ys.UpdateMessagingAgentConfigRequest).cRes(ys.MessagingAgentConfig).api(),GetMessagingAgentPersonalConfig:pe.v2025_06_01.active("/api/app/:appId/messaging/agent/personal/:authnId").cRes(ys.MessagingAgentPersonalConfig).api(),UpdateMessagingAgentPersonalConfig:pe.v2025_06_01.active("/api/app/:appId/messaging/agent/personal/:authnId").put().cReq(ys.UpdateMessagingAgentPersonalConfigRequest).cRes(ys.MessagingAgentPersonalConfig).api(),TestMessagingAgent:pe.v2025_06_01.active("/api/app/:appId/messaging/agent/test").post().cReq(ys.TestMessagingAgentRequest).cRes(ys.TestMessagingAgentResponse).api()},U2e={GetBalance:pe.v2025_06_01.active("/api/app/:appId/ai/usage/balance").cRes($c.AiCreditBalance).api(),GetStatements:pe.v2025_06_01.active("/api/app/:appId/ai/usage/statements").cRes($c.PaginatedAiCreditStatements).api(),GetBreakdown:pe.v2025_06_01.active("/api/app/:appId/ai/usage/breakdown").c
18Res($c.AiUsageBreakdown).api(),GetConfiguration:pe.v2025_06_01.active("/api/app/:appId/ai/usage/configuration").cRes(Vy.AppAiConfiguration).api(),UpdateConfiguration:pe.v2025_06_01.active("/api/app/:appId/ai/usage/configuration").put().cReq(Vy.AppAiConfigurationUpdateRequest).cRes(Vy.AppAiConfiguration).api(),GrantCredit:pe.v2025_06_01.user("/api/app/:appId/ai/usage/credits").put().cReq($c.AiCreditGrantRequest).cRes($c.AiCreditBalance).api(),WaiveStatement:pe.v2025_06_01.user("/api/app/:appId/ai/usage/statements/:statementId/waive").put().cRes($c.AiCreditStatement).api()},V2e={ListWorkflows:pe.v2026_06_01.active("/api/app/:appId/workflows").cRes(Kr.Workflows).api(),CreateWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows").post().cReq(Kr.CreateWorkflow).cRes(Kr.Workflow,!1).api(),GetWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId").cRes(Kr.Workflow,!1).api(),SaveWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId").patch().cReq(Kr.SaveWorkflow).cRes(Kr.Workflow,!1).api(),DeleteWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId").delete().err().api(),PublishWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/versions").post().cRes(Kr.WorkflowVersion).api(),ListWorkflowVersions:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/versions").cRes(Kr.WorkflowVersions,!1).api(),GetWorkflowWebhook:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/webhook").cRes(Kr.WorkflowWebhook).api(),RotateWorkflowWebhook:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/webhook/rotate").post().cRes(Kr.WorkflowWebhook).api(),GetSavedDiagnostics:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/graph/diagnostics").cRes(Kr.WorkflowDiagnostics).api(),DiagnoseGraph:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/graph/diagnostics").post().cReq(Kr.DiagnoseGraph).cRes(Kr.WorkflowDiagnostics).api(),GetWorkflowDependents:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/graph/dependents").cRes(Kr.WorkflowDependents).api(),RunWorkflow:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/runs").post().cReq(Kr.RunWorkflow).cRes(Kr.WorkflowRun).api(),ListWorkflowRuns:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/runs").cRes(Kr.WorkflowRuns).api(),GetWorkflowRun:pe.v2026_06_01.active("/api/app/:appId/runs/:runId").cRes(Kr.WorkflowRunDetail,!1).api(),TestQueryStep:pe.v2026_06_01.active("/api/app/:appId/workflows/step/query").post().any().api(),GetShapes:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/shapes").cRes(Nse.WorkflowShapes).api(),TestTrigger:pe.v2026_06_01.active("/api/app/:appId/workflows/:workflowId/trigger-test").post().any().api(),GetActions:pe.v2026_06_01.active("/api/app/:appId/workflows/actions").cRes(Lse.WorkflowActions).api()},oue={SendBuilderHandoffEmail:pe.v2025_06_01.active("/api/marketing/builder-handoff/email").post().ok().jsonExec()},sue=pp({apiBase:"https://www.googleapis.com/oauth2/v1"}),F2e=pp({apiBase:"https://openexchangerates.org/api"}),PA={auth:!1,policies:[],spoofPolicies:[],activePolicies:[],logout:()=>{},login:async()=>{},spoof:async()=>{},unspoof:()=>{},authInit:async()=>{},authRefresh:async()=>{},loading:!1,initialized:!1,authn:void 0,activeAuthn:void 0},P8=S.createContext(PA),Ai=()=>S.useContext(P8);function lue(){return Rf(),{...PA,initialized:!0}}function cue(e,t){const{authn:r,policies:n}=t;return{...e,...{authn:r,policies:n,activeAuthn:r,activePolicies:n},auth:!0}}function uue(e,t){const{authn:r,policies:n}=t;return{...e,...{spoofAuthn:r,spoofPolicies:n,activeAuthn:r,activePolicies:n}}}function due(e){const{authn:t,policies:r}=e,n={activeAuthn:t,activePolicies:r,spoofAuthn:void 0,spoofPolicies:[]};return Rf("SPOOF"),{...e,...n}}const fue=(e,t)=>({...e,loading:t.loading}),pue=(e,t)=>({...e,initialized:t.initialized});function hue(e,t){return t.type===0?cue(e,t):t.type===2?uue(e,t):t.type===1?lue():t.type===3?due(e):t.type===4?fue(e,t):t.type===5?pue(e,t):e}const mue=({children:e})=>{const[t,r]=S.useReducer(hue,PA);async function n(T,C){r({type:4,loading:!0});const R=pg.parseResourcePolicies(C);r({type:0,authn:T,policies:R}),r({type:4,loading:!1})}async function o(T,C){r({type:4,loading:!0});const R=pg.parseResourcePolicies(C);r({type:2,authn:T,policies:R}),r({type:4,loading:!1})}const l=()=>r({type:1}),u=()=>r({type:3}),f=S.useRef(null);function h(){if(f.current)return f.current;const T=m().finally(()=>f.current=null);return f.current=T,T}async function m(){await rue().catch(R=>{R instanceof Ma&&R.httpStatus<500&&l()});const T=qs("USER"),C=qs("SPOOF");if(!T?.refreshToken)return r({type:5,initialized:!0});try{const R=await hu.UserCredentials(),w=C?.refreshToken?await hu.SpoofCredentials().catch(()=>{}):void 0;await n(R.authn,R.policies),w&&await o(w.authn,w.policies)}finally{r({type:5,initialized:!0})}}
18const x={...t,logout:l,login:n,spoof:o,unspoof:u,authInit:h,authRefresh:()=>h()},E=S.useMemo(()=>x,[t,r]);return p.jsx(P8.Provider,{value:E,children:e})};function gue(){const{authInit:e,auth:t,activeAuthn:r}=Ai(),{setActiveApp:n,setActiveOrg:o}=ju(),[l,u]=S.useState(!1);window.location.pathname.startsWith("/redirect_to_web_app"),S.useEffect(()=>{e(),f()},[]),S.useEffect(h,[t,r?.id]);function f(){const E=document.getElementById("loading");E&&(E.style.display="none",E.parentNode?.removeChild(E))}function h(){m().catch(E=>console.error(E)),b().catch(E=>console.error(E))}async function m(){!t||!r||x().catch(E=>console.error(E))}async function b(){r?.id||n(void 0)}async function x(){if(!t||!r)return;const E=await Yl.GetAppInstance({appId:r.appId}).catch(C=>$r(C));if(!E)return;if(n(E),!E.orgId)return o(void 0);const T=await aue.GetOrganization({organizationId:E.orgId}).catch(C=>$r(C));T&&o(T)}}function bue(){navigator.serviceWorker.register("/service-worker.js").then(e=>{console.info("Service Worker registered: ",e)}).catch(e=>{console.info("Service Worker registration failed: ",e)})}function vue(){"serviceWorker"in navigator&&window.addEventListener("load",bue)}const Ha=Object.create(null);Ha.open="0";Ha.close="1";Ha.ping="2";Ha.pong="3";Ha.message="4";Ha.upgrade="5";Ha.noop="6";const jm=Object.create(null);Object.keys(Ha).forEach(e=>{jm[Ha[e]]=e});const $x={type:"error",data:"parser error"},k8=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",N8=typeof ArrayBuffer=="function",D8=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kA=({type:e,data:t},r,n)=>k8&&t instanceof Blob?r?n(t):cI(t,n):N8&&(t instanceof ArrayBuffer||D8(t))?r?n(t):cI(new Blob([t]),n):n(Ha[e]+(t||"")),cI=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function uI(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let e1;function yue(e,t){if(k8&&e.data instanceof Blob)return e.data.arrayBuffer().then(uI).then(t);if(N8&&(e.data instanceof ArrayBuffer||D8(e.data)))return t(uI(e.data));kA(e,!1,r=>{e1||(e1=new TextEncoder),t(e1.encode(r))})}const dI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<dI.length;e++)bf[dI.charCodeAt(e)]=e;const xue=e=>{let t=e.length*.75,r=e.length,n,o=0,l,u,f,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),b=new Uint8Array(m);for(n=0;n<r;n+=4)l=bf[e.charCodeAt(n)],u=bf[e.charCodeAt(n+1)],f=bf[e.charCodeAt(n+2)],h=bf[e.charCodeAt(n+3)],b[o++]=l<<2|u>>4,b[o++]=(u&15)<<4|f>>2,b[o++]=(f&3)<<6|h&63;return m},Sue=typeof ArrayBuffer=="function",NA=(e,t)=>{if(typeof e!="string")return{type:"message",data:M8(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:Eue(e.substring(1),t)}:jm[r]?e.length>1?{type:jm[r],data:e.substring(1)}:{type:jm[r]}:$x},Eue=(e,t)=>{if(Sue){const r=xue(e);return M8(r,t)}else return{base64:!0,data:e}},M8=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,j8="�",Aue=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((l,u)=>{kA(l,!1,f=>{n[u]=f,++o===r&&t(n.join(j8))})})},Rue=(e,t)=>{const r=e.split(j8),n=[];for(let o=0;o<r.length;o++){const l=NA(r[o],t);if(n.push(l),l.type==="error")break}return n};function Cue(){return new TransformStream({transform(e,t){yue(e,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const l=new DataView(o.buffer);l.setUint8(0,126),l.setUint16(1,n)}else{o=new Uint8Array(9);const l=new DataView(o.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let t1;function lm(e){return e.reduce((t,r)=>t+r.length,0)}function cm(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function Tue(e,t){t1||(t1=new TextDecoder);const r=[];let n=0,o=-1,l=!1;return new TransformStream({transform(u,f){for(r.push(u);;){if(n===0){if(lm(r)<1)break;const h=cm(r,1);
18l=(h[0]&128)===128,o=h[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(lm(r)<2)break;const h=cm(r,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),n=3}else if(n===2){if(lm(r)<8)break;const h=cm(r,8),m=new DataView(h.buffer,h.byteOffset,h.length),b=m.getUint32(0);if(b>Math.pow(2,21)-1){f.enqueue($x);break}o=b*Math.pow(2,32)+m.getUint32(4),n=3}else{if(lm(r)<o)break;const h=cm(r,o);f.enqueue(NA(l?h:t1.decode(h),t)),n=0}if(o===0||o>e){f.enqueue($x);break}}}})}const L8=4;function jr(e){if(e)return wue(e)}function wue(e){for(var t in jr.prototype)e[t]=jr.prototype[t];return e}jr.prototype.on=jr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};jr.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};jr.prototype.off=jr.prototype.removeListener=jr.prototype.removeAllListeners=jr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};jr.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};jr.prototype.emitReserved=jr.prototype.emit;jr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};jr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const kb=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),zi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),_ue="arraybuffer";function z8(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const Oue=zi.setTimeout,Iue=zi.clearTimeout;function Nb(e,t){t.useNativeTimers?(e.setTimeoutFn=Oue.bind(zi),e.clearTimeoutFn=Iue.bind(zi)):(e.setTimeoutFn=zi.setTimeout.bind(zi),e.clearTimeoutFn=zi.clearTimeout.bind(zi))}const que=1.33;function Pue(e){return typeof e=="string"?kue(e):Math.ceil((e.byteLength||e.size)*que)}function kue(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function U8(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Nue(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function Due(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let l=r[n].split("=");
18t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class Mue extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class DA extends jr{constructor(t){super(),this.writable=!1,Nb(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Mue(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=NA(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=Nue(t);return r.length?"?"+r:""}}class jue extends DA{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Rue(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Aue(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=U8()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}}let V8=!1;try{V8=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Lue=V8;function zue(){}class Uue extends jue{constructor(t){if(super(t),typeof location<"u"){const r=location.protocol==="https:";let n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,l)=>{this.onError("xhr post error",o,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}class Fa extends jr{constructor(t,r,n){super(),this.createRequest=t,Nb(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const r=z8(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Fa.requestsCount++,Fa.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=zue,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Fa.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Fa.requestsCount=0;Fa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",fI);else if(typeof addEventListener=="function"){const e="onpagehide"in zi?"pagehide":"unload";addEventListener(e,fI,!1)}}function fI(){for(let e in Fa.requests)Fa.requests.hasOwnProperty(e)&&Fa.requests[e].abort()}const Vue=(function(){const e=F8({xdomain:!1});return e&&e.responseType!==null})();class Fue extends Uue{constructor(t){super(t);const r=t&&t.forceBase64;this.supportsBinary=Vue&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Fa(F8,this.uri(),t)}}function F8(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Lue))return new XMLHttpRequest}catch{}if(!t)try{return new zi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const $8=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class $ue extends DA{get name(){return"websocket"}doOpen(){const t=this.uri(),r=this.opts.protocols,n=$8?{}:z8(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}
18this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],o=r===t.length-1;kA(n,this.supportsBinary,l=>{try{this.doWrite(n,l)}catch{}o&&kb(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=U8()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}}const r1=zi.WebSocket||zi.MozWebSocket;class Bue extends $ue{createSocket(t,r,n){return $8?new r1(t,r,n):r?new r1(t,r):new r1(t)}doWrite(t,r){this.ws.send(r)}}class Hue extends DA{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const r=Tue(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=Cue();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const l=()=>{n.read().then(({done:f,value:h})=>{f||(this.onPacket(h),l())}).catch(f=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&kb(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Gue={websocket:Bue,webtransport:Hue,polling:Fue},Wue=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bx(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=Wue.exec(e||""),l={},u=14;for(;u--;)l[Yue[u]]=o[u]||"";return r!=-1&&n!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=Kue(l,l.path),l.queryKey=Xue(l,l.query),l}function Kue(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Xue(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,l){o&&(r[o]=l)}),r}const Hx=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lm=[];Hx&&addEventListener("offline",()=>{Lm.forEach(e=>e())},!1);class Ts extends jr{constructor(t,r){if(super(),this.binaryType=_ue,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){const n=Bx(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Bx(r.host).host);Nb(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={}
18,r.transports.forEach(n=>{const o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Due(this.opts.query)),Hx&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Lm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=L8,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ts.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Ts.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(r+=Pue(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,kb(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const l={type:t,data:r,options:n};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Ts.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=Lm.indexOf(this._offlineEventListener);n!==-1&&Lm.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}}Ts.protocol=L8;class Que extends Ts{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;Ts.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",x=>{if(!n)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ts.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(b(),this.setTransport(r),r.send([{type:"upgrade"}
18]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=r.name,this.emitReserved("upgradeError",E)}}))};function l(){n||(n=!0,b(),r.close(),r=null)}const u=x=>{const E=new Error("probe error: "+x);E.transport=r.name,l(),this.emitReserved("upgradeError",E)};function f(){u("transport closed")}function h(){u("socket closed")}function m(x){r&&x.name!==r.name&&l()}const b=()=>{r.removeListener("open",o),r.removeListener("error",u),r.removeListener("close",f),this.off("close",h),this.off("upgrading",m)};r.once("open",o),r.once("error",u),r.once("close",f),this.once("close",h),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}}let Jue=class extends Que{constructor(t,r={}){const n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Gue[o]).filter(o=>!!o)),super(t,n)}};function Zue(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Bx(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const l=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+l+":"+n.port+t,n.href=n.protocol+"://"+l+(r&&r.port===n.port?"":":"+n.port),n}const ede=typeof ArrayBuffer=="function",tde=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,B8=Object.prototype.toString,rde=typeof Blob=="function"||typeof Blob<"u"&&B8.call(Blob)==="[object BlobConstructor]",nde=typeof File=="function"||typeof File<"u"&&B8.call(File)==="[object FileConstructor]";function MA(e){return ede&&(e instanceof ArrayBuffer||tde(e))||rde&&e instanceof Blob||nde&&e instanceof File}function zm(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(zm(e[r]))return!0;return!1}if(MA(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return zm(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&zm(e[r]))return!0;return!1}function ide(e){const t=[],r=e.data,n=e;return n.data=Gx(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Gx(e,t){if(!e)return e;if(MA(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Gx(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Gx(e[n],t));return r}return e}function ade(e,t){return e.data=Wx(e.data,t),delete e.attachments,e}function Wx(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Wx(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Wx(e[r],t));return e}const ode=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var bt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(bt||(bt={}));class sde{constructor(t){this.replacer=t}encode(t){return(t.type===bt.EVENT||t.type===bt.ACK)&&zm(t)?this.encodeAsBinary({type:t.type===bt.EVENT?bt.BINARY_EVENT:bt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===bt.BINARY_EVENT||t.type===bt.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=ide(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}}class jA extends jr{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const n=r.type===bt.BINARY_EVENT;n||r.type===bt.BINARY_ACK?(r.type=n?bt.EVENT:bt.ACK,this.reconstructor=new lde(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(MA(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(bt[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===bt.BINARY_EVENT||n.type===bt.BINARY_ACK){const l=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const u=t.substring(l,r);if(u!=Number(u)||t.charAt(r)!=="-")throw new Error("Illegal attachments");const f=Number(u);
18if(!cde(f)||f<0)throw new Error("Illegal attachments");if(f>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=f}if(t.charAt(r+1)==="/"){const l=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(l,r)}else n.nsp="/";const o=t.charAt(r+1);if(o!==""&&Number(o)==o){const l=r+1;for(;++r;){const u=t.charAt(r);if(u==null||Number(u)!=u){--r;break}if(r===t.length)break}n.id=Number(t.substring(l,r+1))}if(t.charAt(++r)){const l=this.tryParse(t.substr(r));if(jA.isPayloadValid(n.type,l))n.data=l;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case bt.CONNECT:return pI(r);case bt.DISCONNECT:return r===void 0;case bt.CONNECT_ERROR:return typeof r=="string"||pI(r);case bt.EVENT:case bt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&ode.indexOf(r[0])===-1);case bt.ACK:case bt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class lde{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=ade(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const cde=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function pI(e){return Object.prototype.toString.call(e)==="[object Object]"}const ude=Object.freeze(Object.defineProperty({__proto__:null,Decoder:jA,Encoder:sde,get PacketType(){return bt}},Symbol.toStringTag,{value:"Module"}));function aa(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const dde=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class H8 extends jr{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[aa(t,"open",this.onopen.bind(this)),aa(t,"packet",this.onpacket.bind(this)),aa(t,"error",this.onerror.bind(this)),aa(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,l;if(dde.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const u={type:bt.EVENT,data:r};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const b=this.ids++,x=r.pop();this._registerAckCallback(b,x),u.id=b}const f=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!f||(h?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,r){var n;const o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);r.call(this,new Error("operation has timed out"))},o),u=(...f)=>{this.io.clearTimeoutFn(l),r.apply(this,f)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...r){return new Promise((n,o)=>{const l=(u,f)=>u?o(u):n(f);l.withError=!0,r.push(l),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...l)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...l)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:bt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}
vendor: 7,089 bytes, line 18
18_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case bt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case bt.EVENT:case bt.BINARY_EVENT:this.onevent(t);break;case bt.ACK:case bt.BINARY_ACK:this.onack(t);break;case bt.DISCONNECT:this.ondisconnect();break;case bt.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let n=!1;return function(...o){n||(n=!0,r.packet({type:bt.ACK,id:t,data:o}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:bt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function Lu(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Lu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Lu.prototype.reset=function(){this.attempts=0};Lu.prototype.setMin=function(e){this.ms=e};Lu.prototype.setMax=function(e){this.max=e};Lu.prototype.setJitter=function(e){this.jitter=e};class Yx extends jr{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Nb(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const o=r.parser||ude;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Jue(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=aa(r,"open",function(){n.onopen(),t&&t()}),l=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},u=aa(r,"error",l);if(this._timeout!==!1){const f=this._timeout,h=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),r.close()},f);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(aa(t,"ping",this.onping.bind(this)),aa(t,"data",this.ondata.bind(this)),aa(t,"error",this.onerror.bind(this)),aa(t,"close",this.onclose.bind(this)),aa(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){kb(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new H8(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}
18cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const rf={};function Um(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=Zue(e,t.path||"/socket.io"),n=r.source,o=r.id,l=r.path,u=rf[o]&&l in rf[o].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let h;return f?h=new Yx(n,t):(rf[o]||(rf[o]=new Yx(n,t)),h=rf[o]),r.query&&!t.query&&(t.query=r.queryKey),h.socket(r.path,t)}Object.assign(Um,{Manager:Yx,Socket:H8,io:Um,connect:Um});
18class ji extends Error{constructor(t,r,n,o,l){super(r),this.code=t,this.topic=n,this.detail=o,this.name="NexusError",this.timestamp=l??Date.now()}code;topic;detail;timestamp;isError=t=>this.code===t.code;isSerialized=t=>this.code===t.code;serialize(){return{code:this.code,message:this.message,topic:this.topic,detail:this.detail,ts:this.timestamp}}static fromSerialized(t){return new ji(t.code,t.message,t.topic,t.detail,t.ts)}}let fde=0;const hI=()=>`${Date.now()}-${++fde}`;class pde{socket;pending=new Map;topicHandlers=new Map;errorHandler;requestTimeout;joinedRooms=new Set;_connected=!1;_authnId=null;_appId=null;_sessionId=null;tokenRefresh;currentToken;connectListeners=[];disconnectListeners=[];reconnectListeners=[];constructor(t){this.requestTimeout=t.requestTimeout??1e4,this.errorHandler=t.onError??null,this.tokenRefresh=t.onTokenRefresh??null,this.currentToken=t.token,this.socket=Um(t.url,{auth:{token:t.token},transports:t.transports??["websocket"],forceNew:!0,...t.path?{path:t.path}:{}}),this.socket.on("msg:receive",r=>{this.handleReceive(r)}),this.socket.on("msg:error",r=>{this.emitError(new ji(r.code,r.message,r.topic??"unknown"))}),this.socket.on("msg:replay",r=>{for(const n of r){const o=this.topicHandlers.get(n.topic);if(o?.length)for(const{handler:l,schema:u}of o)if(u)try{l(u.validateSync(n.payload,{stripUnknown:!0}),n.meta)}catch{}else l(n.payload,n.meta)}}),this.socket.on("disconnect",r=>{this._connected=!1;for(const n of this.disconnectListeners)n(r);for(const{reject:n,timer:o}of this.pending.values())clearTimeout(o),n(new ji("DISCONNECTED","Connection lost","unknown"));this.pending.clear()}),this.socket.io.on("reconnect",async()=>{try{this.tokenRefresh&&(this.currentToken=await this.tokenRefresh(),this.socket.auth={token:this.currentToken})}catch{this.socket.disconnect()}}),this.socket.on("auth.success",r=>{const n=this._connected;if(this._connected=!0,this._authnId=r.authnId,this._appId=r.appId,this._sessionId=r.sessionId,n===!1&&this.connectListeners.length===0&&this.reconnectListeners.length>0){this.resubscribeRooms();for(const o of this.reconnectListeners)o(r)}})}resubscribeRooms(){for(const t of this.joinedRooms)this.socket.emit("msg:subscribe",{room:t})}handleReceive(t){const r=t.meta?.correlationId;if(r&&this.pending.has(r)){const l=this.pending.get(r);this.pending.delete(r),clearTimeout(l.timer);const u=t.payload;u?.error?l.reject(new ji(String(u.code),String(u.message),t.topic,u.detail)):l.resolve(u);return}const n=this.topicHandlers.get(t.topic);if(n?.length){for(const{handler:l,schema:u}of n)if(u)try{const f=u.validateSync(t.payload,{stripUnknown:!0});l(f,t.meta)}catch{this.emitError(new ji("CLIENT_VALIDATION",`Received invalid payload for '${t.topic}'`,t.topic))}else l(t.payload,t.meta);return}const o=t.payload;o?.error&&this.emitError(new ji(String(o.code),String(o.message),t.topic,o.detail))}emitError(t){this.errorHandler&&this.errorHandler(t)}connect(){return new Promise((t,r)=>{const n=l=>{this._connected=!0,this._authnId=l.authnId,this._appId=l.appId,this._sessionId=l.sessionId,this.socket.off("auth.error",o),this.connectListeners.splice(0),t(l)},o=l=>{this.socket.off("auth.success",n),r(new Error(l.error??"Authentication failed"))};this.socket.once("auth.success",n),this.socket.once("auth.error",o)})}request(t,r,n){const o=hI(),l=n??this.requestTimeout;return new Promise((u,f)=>{const h=setTimeout(()=>{this.pending.delete(o),f(new ji("TIMEOUT",`Request to '${t}' timed out after ${l}ms`,t))},l);this.pending.set(o,{resolve:u,reject:f,timer:h}),this.socket.emit("msg:send",{id:o,kind:"REQUEST",topic:t,payload:r,meta:{ts:Date.now(),correlationId:o}})})}async poll(t,r,n){const{until:o,interval:l=2e3,onProgress:u,timeout:f,requestTimeout:h}=n,m=f?Date.now()+f:Number.POSITIVE_INFINITY;for(;this._connected&&Date.now()<m;){const b=await this.request(t,r,h);if(u?.(b),o(b))return b;const x=m-Date.now();if(x<=0)break;await new Promise(E=>{let T=!1;const C=()=>{if(T)return;T=!0,clearTimeout(R);const I=this.disconnectListeners.indexOf(w);I!==-1&&this.disconnectListeners.splice(I,1),E()},R=setTimeout(C,Math.min(l,x)),w=C;this.disconnectListeners.push(w)})}throw this._connected?new ji("POLL_TIMEOUT",`Polling '${t}' timed out after ${f}ms`,t):new ji("DISCONNECTED","Connection lost",t)}emit(t,r){const n=hI();return this.socket.emit("msg:send",{id:n,kind:"EVENT",topic:t,payload:r,meta:{ts:Date.now()}}),n}on(t,r,n){const u={handler:typeof r=="function"?r:n,schema:typeof r=="function"?void 0:r},f=this.topicHandlers.get(t)??[];return f.push(u),this.topicHandlers.set(t,f),()=>{const h=this.topicHandlers.get(t);h&&this.topicHandlers.set(t,h.filter(m=>m!==u))}}onError(t){this.errorHandler=t}subscribe(t){this.joinedRooms.add(t),this.socket.emit("msg:subscribe",{room:t})}unsubscribe(t){this.joinedRooms.delete(t),this.socket.emit("msg:unsubscribe",{room:t})}cancel(t){this.socket.emit("msg:cancel",{id:t})}onInvalidated(t){this.socket.on("auth.invalidated",r=>t(r.reason))}onShutdown(t){this.socket.on("server.shutdown",t)}onDisconnect(t){this.disconnectListeners.push(t)}onReconnect(t){this.reconnectListeners.push(t)}get connected(){return this._connected}get authnId(){return this._authnId}get appId(){return this._appId}get sessionId(){return this._sessionId}disconnect(){this.socket.disconnect();for(const{timer:t}of this.pending.values())clearTimeout(t);this.pending.clear(),this.joinedRooms.clear(),this._connected=!1}get raw(){return this.socket}}const LA=S.createContext({client:null,connected:!1,authnId:null});function hde({children:e,onError:t,onDisconnect:r,onReconnect:n,...o}){const[l,u]=S.useState({client:null,connected:!1,authnId:null}),f=S.useRef(t);f.current=t;const h=S.useRef(r);h.current=r;const m=S.useRef(n);return m.current=n,S.useEffect(()=>{const b=new pde({...o,onError:x=>f.current?.(x)});return b.connect().then(x=>u({client:b,connected:!0,authnId:x.authnId})).catch(()=>u({client:b,connected:!1,authnId:null})),b.onInvalidated(()=>u(x=>({...x,connected:!1,authnId:null}))),b.onShutdown(()=>u(x=>({...x,connected:!1}))),b.onDisconnect(x=>{u(E=>({...E,connected:!1})),h.current?.(x)}),b.onReconnect(x=>{u(E=>({...E,connected:!0,authnId:x.authnId})),m.current?.(x)}),()=>{b.disconnect(),u({client:null,connected:!1,authnId:null})}},[o.url,o.token]),S.createElement(LA.Provider,{value:l},e)}function mde(){const{client:e,connected:t,authnId:r}=S.useContext(LA),n=S.useCallback((h,m,b)=>e?e.request(h,m,b):Promise.reject(new ji("NOT_CONNECTED","Nexus client not connected",h)),[e]),o=S.useCallback((h,m)=>e?e.emit(h,m):"",[e]),l=S.useCallback(h=>e?(e.subscribe(h),()=>e.unsubscribe(h)):()=>{},[e]),u=S.useCallback((h,m,b)=>e?e.poll(h,m,b):Promise.reject(new ji("NOT_CONNECTED","Nexus client not connected",h)),[e]),f=S.useCallback(h=>{e?.cancel(h)},[e]);return{client:e,connected:t,authnId:r,request:n,emit:o,subscribe:l,cancel:f,poll:u}}function gde(e,t,r){const{client:n}=S.useContext(LA),o=typeof t=="function"?void 0:t,l=typeof t=="function"?t:r;S.useEffect(()=>{if(n)return o?n.on(e,o,l):n.on(e,l)},[n,e,o,l])}function bde(){const e=ga();
18gde(HJ.UI_NAVIGATE,t=>{const r=t;if(r.appTarget===DN.APPRABBIT_DASHBOARD){if(r.type===vx.INTERNAL&&r.route)return St.create({title:`Navigating to ${r.label}`,type:"info",duration:2e3}),e(r.route);r.type===vx.EXTERNAL&&r.url&&(St.create({title:`Opening ${r.label}`,type:"info",duration:2e3}),window.open(r.url,"_blank"))}})}function vde(e){const t=ga();return S.useEffect(()=>{e.open&&(e.close(),t("/settings/services"))},[e.open]),p.jsx(p.Fragment,{})}var G8={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},mI=Pe.createContext&&Pe.createContext(G8),yde=["attr","size","title"];function xde(e,t){if(e==null)return{};var r,n,o=Sde(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Sde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(null,arguments)}function gI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gI(Object(r),!0).forEach(function(n){Ede(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ede(e,t,r){return(t=Ade(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ade(e){var t=Rde(e,"string");return typeof t=="symbol"?t:t+""}function Rde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W8(e){return e&&e.map((t,r)=>Pe.createElement(t.tag,Ig({key:r},t.attr),W8(t.child)))}function he(e){return t=>Pe.createElement(Cde,Og({attr:Ig({},e.attr)},t),W8(e.child))}function Cde(e){var t=r=>{var{attr:n,size:o,title:l}=e,u=xde(e,yde),f=o||r.size||"1em",h;return r.className&&(h=r.className),e.className&&(h=(h?h+" ":"")+e.className),Pe.createElement("svg",Og({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,u,{className:h,style:Ig(Ig({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&Pe.createElement("title",null,l),e.children)};return mI!==void 0?Pe.createElement(mI.Consumer,null,r=>t(r)):t(G8)}function B2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 8c0-2.21-1.79-4-4-4S5 5.79 5 8s1.79 4 4 4 4-1.79 4-4zm-2 0c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM1 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4zm2 0c.2-.71 3.3-2 6-2 2.69 0 5.78 1.28 6 2H3zm17-3v-3h3v-2h-3V7h-2v3h-3v2h3v3h2z"},child:[]}]})(e)}function Tde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"},child:[]}]})(e)}function Y8(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"},child:[]}]})(e)}function wde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm
181.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58A2.01 2.01 0 0 0 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85A6.95 6.95 0 0 0 20 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"},child:[]}]})(e)}function H2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0z"},child:[]}]},{tag:"path",attr:{d:"M22 9V7h-2v2h-2v2h2v2h2v-2h2V9zM8 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zM8 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zM12.51 4.05C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95zM16.53 13.83C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17z"},child:[]}]})(e)}function G2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94A5.01 5.01 0 0 0 11 15.9V19H7v2h10v-2h-4v-3.1a5.01 5.01 0 0 0 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z"},child:[]}]})(e)}function _de(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89zm-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5l1.93-.01zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31V5zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41a1.42 1.42 0 0 1-.33-1.07zm-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17zM5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19H5z"},child:[]}]})(e)}function Ode(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20.57 14.86 22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"},child:[]}]})(e)}function W2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function Y2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function K2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function Ide(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function X2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function K8(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function Q2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(e)}function J2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function qde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"},child:[]}]})(e)}function Pde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function Z2e(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"},child:[]}]})(e)}function eSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62z"},child:[]},{tag:"circle",attr:{cx:"9",cy:"13",r:"1"},child:[]},{tag:"circle",attr:{cx:"15",cy:"13",r:"1"},child:[]},{tag:"path",attr:{d:"M18 11.03A6.04 6.04 0 0 0 12.05 6c-3.03 0-6.29 2.51-6.03 6.45a8.075 8.075 0 0 0 4.86-5.89c1.31 2.63 4 4.44 7.12 4.47z"},child:[]}]})(e)}function kde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"},child:[]}]})(e)}function Nde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
18,{tag:"path",attr:{d:"M16.01 7 16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"},child:[]}]})(e)}function tSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"},child:[]}]})(e)}function Dde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m8.1 13.34 2.83-2.83L3.91 3.5a4.008 4.008 0 0 0 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-1.59 1.59-2.09 3.74-1.38 5.27L3.7 19.87l1.41 1.41L12 14.41l6.88 6.88 1.41-1.41L13.41 13l1.47-1.47z"},child:[]}]})(e)}function Mde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m18 3-3 3V3H9C6.24 3 4 5.24 4 8h5v3h6V8l3 3h2V3h-2zM9 13v7c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-7H9z"},child:[]}]})(e)}function rSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m9.78 11.16-1.42 1.42a7.282 7.282 0 0 1-1.79-2.94l1.94-.49c.32.89.77 1.5 1.27 2.01zM11 6 7 2 3 6h3.02c.02.81.08 1.54.19 2.17l1.94-.49C8.08 7.2 8.03 6.63 8.02 6H11zm10 0-4-4-4 4h2.99c-.1 3.68-1.28 4.75-2.54 5.88-.5.44-1.01.92-1.45 1.55-.34-.49-.73-.88-1.13-1.24L9.46 13.6c.93.85 1.54 1.54 1.54 3.4v5h2v-5c0-2.02.71-2.66 1.79-3.63 1.38-1.24 3.08-2.78 3.2-7.37H21z"},child:[]}]})(e)}function jde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 1h6v2H9zM19.03 7.39l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4a9 9 0 0 0-9 9c0 4.97 4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM13 14h-2V8h2v6z"},child:[]}]})(e)}function nSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3.2"},child:[]},{tag:"path",attr:{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},child:[]}]})(e)}function Lde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function iSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96a.996.996 0 0 0 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05a.996.996 0 0 0 0-1.41l-2.33-2.35zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12-2.44 2.44z"},child:[]}]})(e)}function X8(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z"},child:[]}]})(e)}function zde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fillRule:"evenodd"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"},child:[]}]}]})(e)}function aSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"},child:[]}]})(e)}function oSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
18,{tag:"path",attr:{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"},child:[]}]})(e)}function sSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function Q8(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h6l-2 2v1h8v-1l-2-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(e)}function lSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"},child:[]}]})(e)}function cSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"},child:[]}]})(e)}function uSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Ude(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"},child:[]}]})(e)}function dSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function fSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function pSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"},child:[]}]})(e)}function hSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"},child:[]}]})(e)}function mSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7zM21 10c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4h-1z"},child:[]}]})(e)}function Vde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"},child:[]}]})(e)}function gSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m18 22-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22h12zM8 7.5V4h8v3.5l-4 4-4-4z"},child:[]}]})(e)}function Fde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(e)}function bSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function vSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"},child:[]}]})(e)}function $de(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"},child:[]}]})(e)}function ySe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"},child:[]},{tag:"path",attr:{d:"M13 16h-2v2h2zM13 10h-2v5h2z"},child:[]}]})(e)}function xSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
18,{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)}function SSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Bde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"},child:[]}]})(e)}function ESe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"},child:[]}]})(e)}function ASe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.59 9.17 5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"},child:[]}]})(e)}function RSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(e)}function CSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"},child:[]}]})(e)}function TSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"},child:[]}]})(e)}function Hde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(e)}function wSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function _Se(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},child:[]}]})(e)}function OSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m17 17 5-5-5-5-1.41 1.41L18.17 11H9v2h9.17l-2.58 2.59z"}
18,child:[]},{tag:"path",attr:{d:"M19 19H5V5h14v2h2V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-2h-2v2z"},child:[]}]})(e)}function ISe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"},child:[]}]})(e)}function Gde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"},child:[]}]})(e)}function qSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"},child:[]}]})(e)}function PSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"ellipse",attr:{cx:"12",cy:"12",rx:"3",ry:"5.74"},child:[]},{tag:"path",attr:{d:"M9.04 16.87c-.33.08-.68.13-1.04.13-2.76 0-5-2.24-5-5s2.24-5 5-5c.36 0 .71.05 1.04.13.39-.56.88-1.12 1.49-1.63C9.75 5.19 8.9 5 8 5c-3.86 0-7 3.14-7 7s3.14 7 7 7c.9 0 1.75-.19 2.53-.5-.61-.51-1.1-1.07-1.49-1.63zM16 5c-.9 0-1.75.19-2.53.5.61.51 1.1 1.07 1.49 1.63.33-.08.68-.13 1.04-.13 2.76 0 5 2.24 5 5s-2.24 5-5 5c-.36 0-.71-.05-1.04-.13-.39.56-.88 1.12-1.49 1.63.78.31 1.63.5 2.53.5 3.86 0 7-3.14 7-7s-3.14-7-7-7z"},child:[]}]})(e)}function kSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14a2 2 0 0 0-2-2zM11 16l4-4-4-4v3H1v2h10v3z"},child:[]}]})(e)}function NSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"},child:[]},{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z"},child:[]}]})(e)}function DSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 3a9 9 0 0 0-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.954 8.954 0 0 0 13 21a9 9 0 0 0 0-18zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"},child:[]}]})(e)}function Wde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"},child:[]}]})(e)}function MSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24m0 24H0"},child:[]},{tag:"path",attr:{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]}]})(e)}function jSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function LSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function Yde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"},child:[]}]})(e)}function Kde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},child:[]}]})(e)}function Xde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z",clipRule:"evenodd"},child:[]},{tag:"path",attr:{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4
181.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"},child:[]}]})(e)}function zSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m14 12-2 2-2-2 2-2 2 2zm-2-6 2.12 2.12 2.5-2.5L12 1 7.38 5.62l2.5 2.5L12 6zm-6 6 2.12-2.12-2.5-2.5L1 12l4.62 4.62 2.5-2.5L6 12zm12 0-2.12 2.12 2.5 2.5L23 12l-4.62-4.62-2.5 2.5L18 12zm-6 6-2.12-2.12-2.5 2.5L12 23l4.62-4.62-2.5-2.5L12 18z"},child:[]}]})(e)}function USe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"},child:[]}]})(e)}function Qde(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function VSe(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 0 0 5 3.5v17A2.5 2.5 0 0 0 7.5 23h8a2.5 2.5 0 0 0 2.5-2.5v-17A2.5 2.5 0 0 0 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"},child:[]}]})(e)}const Kx="--desktop-handoff-offset";function bI(e){const t=document.documentElement;e.offsetHeight>0?t.style.setProperty(Kx,`${e.offsetHeight+8}px`):t.style.removeProperty(Kx)}function Jde(e){if(!e)return()=>{};bI(e);const t=new ResizeObserver(()=>bI(e));return t.observe(e),()=>{t.disconnect(),document.documentElement.style.removeProperty(Kx)}}function Zde({onOpen:e,onDismiss:t}){const r=S.useRef(null);return S.useEffect(()=>Jde(r.current),[]),p.jsx(Vo,{children:p.jsxs(Oe,{ref:r,display:{base:"flex",md:"none"},pos:"fixed",top:"0",left:"0",right:"0",zIndex:1450,align:"center",gap:"10px",bg:"primary.500/8",color:"text.body",borderBottomWidth:"1px",borderColor:"neutral.400",px:"14px",pt:"calc(env(safe-area-inset-top, 0px) + 10px)",pb:"10px",children:[p.jsx(Oe,{w:"34px",h:"34px",borderRadius:"8px",bg:"primary.500/15",color:"primary.500",align:"center",justify:"center",flexShrink:0,children:p.jsx(Q8,{size:20})}),p.jsx(_e,{flex:"1",fontSize:"13px",fontWeight:"500",lineHeight:"1.3",children:"For the best experience, view AppRabbit on desktop."}),p.jsx(ut,{size:"xs",colorPalette:"primary",onClick:e,flexShrink:0,children:"View on desktop"}),p.jsx(wu,{size:"sm",color:"text.light",_hover:{bg:"neutral.300"},"aria-label":"Dismiss",onClick:t,flexShrink:0})]})})}const efe="/assets/desktop-builder-preview-4IO3-_WD.png";function vI(){return sessionStorage.getItem(jo.DESKTOP_HANDOFF_DISMISSED)==="true"}function J8(){sessionStorage.setItem(jo.DESKTOP_HANDOFF_DISMISSED,"true")}const tfe=[{icon:Lde,title:"Edit everything",desc:"Edit programs, meal plans, and personalized plans for your clients."},{icon:Yde,title:"Plug into your Claude Code",desc:"Connect your existing Claude Code project for complete AI control over your app."},{icon:Ude,title:"Unlimited app updates",desc:"Make unlimited updates and see changes in real time."},{icon:Y8,title:"Manage more, effortlessly",desc:"View more clients, data, and insightsâall in one place."}];function rfe({open:e,onClose:t}){const{activeAuthn:r}=Ai(),n=r?.email,[o,l]=S.useState(!1),[u,f]=S.useState(!1);async function h(){l(!0);try{if(await oue.SendBuilderHandoffEmail()===!1){St.error({description:"Couldn't send the link. Please try again."});return}f(!0),J8()}catch(b){$r(b)}finally{l(!1)}}function m(){navigator.clipboard.writeText(Fi.ORIGIN).then(()=>St.success({description:"Desktop URL copied"})).catch(()=>St.error({description:"Couldn't copy the URL"}))}return p.jsx(oS,{size:"full",scrollBehavior:"inside",open:e,onOpenChange:b=>{b.open||t()},children:p.jsxs(Vo,{children:[p.jsx(cS,{}),p.jsx(U6,{children:p.jsxs(sS,{bg:"bg.dialogBody",children:[p.jsx(lS,{asChild:!0,children:p.jsx(wu,{})}),p.jsx(uS,{px:"24px",py:"40px",children:p.jsxs(Cm,{gap:"22px",maxW:"440px",mx:"auto",align:"stretch",children:[p.jsx(Oe,{alignSelf:"center",w:"56px",h:"56px",borderRadius:"14px",bg:"primary.500/12",color:"primary.500",align:"center",justify:"center",children:p.jsx(Q8,{size:28})}),p.jsxs(vr,{textAlign:"center",fontSize:"27px",lineHeight:"1.2",fontWeight:"800",color:"text.body",children:["App
18Rabbit is built for desktop."," ",p.jsx(_e,{as:"span",color:"primary.500",children:"Do more, move faster."})]}),p.jsx(_e,{textAlign:"center",color:"text.light",fontSize:"15px",children:"Get the full power of AppRabbit on a bigger screen and take complete control of your business."}),p.jsx(Pn,{gap:"0",children:tfe.map((b,x)=>p.jsxs(Oe,{align:"flex-start",gap:"14px",py:"16px",borderTopWidth:x>0?"1px":"0",borderColor:"neutral.400",children:[p.jsx(De,{color:"primary.500",flexShrink:0,pt:"2px",display:"flex",children:p.jsx(b.icon,{size:22})}),p.jsxs(De,{children:[p.jsx(_e,{fontWeight:"700",fontSize:"15px",color:"text.body",children:b.title}),p.jsx(_e,{color:"text.light",fontSize:"13px",lineHeight:"1.4",children:b.desc})]})]},b.title))}),p.jsx(nr,{src:efe,alt:"AppRabbit on desktop",w:"full",borderRadius:"12px",borderWidth:"1px",borderColor:"neutral.400"}),p.jsx(We,{if:u,children:p.jsxs(Cm,{gap:"10px",pt:"4px",children:[p.jsx(De,{color:"#34C759",display:"flex",children:p.jsx(Kde,{size:40})}),p.jsx(_e,{fontWeight:"700",fontSize:"16px",color:"text.body",children:"Check your email"}),p.jsx(_e,{textAlign:"center",color:"text.light",fontSize:"14px",children:"Open the link on your computer to continue."}),p.jsx(ut,{w:"full",colorPalette:"primary",size:"lg",onClick:t,children:"Done"})]})}),p.jsx(We,{if:!u,children:p.jsxs(Cm,{gap:"10px",pt:"4px",children:[p.jsxs(ut,{w:"full",colorPalette:"primary",size:"lg",loading:o,onClick:h,children:[p.jsx(Fde,{})," Send desktop link"]}),p.jsx(We,{if:!!n,children:p.jsxs(_e,{fontSize:"12px",color:"text.light",children:["We'll email ",n]})}),p.jsx(ut,{w:"full",variant:"outline",size:"lg",onClick:m,children:"Copy desktop URL"}),p.jsx(ut,{variant:"ghost",colorPalette:"primary",onClick:t,children:"Maybe later"})]})})]})})]})})]})})}var vf={exports:{}};vf.exports;var yI;function nfe(){return yI||(yI=1,(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,l=16,u=9007199254740991,f="[object Arguments]",h="[object Array]",m="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",E="[object Error]",T="[object Function]",C="[object GeneratorFunction]",R="[object Map]",w="[object Number]",I="[object Null]",P="[object Object]",q="[object Proxy]",D="[object RegExp]",O="[object Set]",N="[object String]",V="[object Undefined]",J="[object WeakMap]",W="[object ArrayBuffer]",G="[object DataView]",B="[object Float32Array]",L="[object Float64Array]",z="[object Int8Array]",ee="[object Int16Array]",te="[object Int32Array]",Y="[object Uint8Array]",ie="[object Uint8ClampedArray]",me="[object Uint16Array]",Se="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,be={};be[B]=be[L]=be[z]=be[ee]=be[te]=be[Y]=be[ie]=be[me]=be[Se]=!0,be[f]=be[h]=be[W]=be[b]=be[G]=be[x]=be[E]=be[T]=be[R]=be[w]=be[P]=be[D]=be[O]=be[N]=be[J]=!1;var Ce=typeof Es=="object"&&Es&&Es.Object===Object&&Es,Le=typeof self=="object"&&self&&self.Object===Object&&self,Be=Ce||Le||Function("return this")(),tt=t&&!t.nodeType&&t,Ae=tt&&!0&&e&&!e.nodeType&&e,ye=Ae&&Ae.exports===tt,Qe=ye&&Ce.process,Je=(function(){try{var F=Ae&&Ae.require&&Ae.require("util").types;return F||Qe&&Qe.binding&&Qe.binding("util")}catch{}})(),vt=Je&&Je.isTypedArray;function $t(F,re,le){switch(le.length){case 0:return F.call(re);case 1:return F.call(re,le[0]);case 2:return F.call(re,le[0],le[1]);case 3:return F.call(re,le[0],le[1],le[2])}return F.apply(re,le)}function Bt(F,re){for(var le=-1,Me=Array(F);++le<F;)Me[le]=re(le);return Me}function Rr(F){return function(re){return F(re)}}function Dn(F,re){return F?.[re]}function Za(F,re){return function(le){return F(re(le))}}var Hi=Array.prototype,xn=Function.prototype,Mn=Object.prototype,jn=Be["__core-js_shared__"],de=xn.toString,Ie=Mn.hasOwnProperty,j=(function(){var F=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""})(),X=Mn.toString,Z=de.call(Object),Ee=RegExp("^"+de.call(Ie).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=ye?Be.Buffer:void 0,Te=Be.Symbol,Ne=Be.Uint8Array;Re&&Re.allocUnsafe;var Ze=Za(Object.getPrototypeOf,Object),st=Object.create,Ht=Mn.propertyIsEnumerable,kt=Hi.splice,Ct=Te?Te.toStringTag:void 0,Cr=(function(){try{var F=Ku(Object,"defineProperty");return F({},"",{}),F}catch{}})(),$s=Re?Re.isBuffer:void 0,Bo=Math.max,Vu=Date.now,va=Ku(Be,"Map"),Ri=Ku(Object,"create"),eo=(function(){function F(){}return function(re){if(!Ra(re))return{};if(st)return st(re);F.prototype=re;var le=new F;return F.prototype=void 0,le}})();function Sn(F){var re=-1,le=F==null?0:F.length;for(this.clear();++re<le;){var Me=F[re];this.set(Me[0],Me[1])}}function ec(){this.__data__=Ri?Ri(null):{},this.size=0}function Bs(F){var re=this.has(F)&&delete this.__data__[F];return this.size-=re?1:0,re}function Jb(F){var re=this.__data__;if(Ri){var le=re[F];return le===n?void 0:le}return Ie.call(re,F)?re[F]:void 0}function Ap(F){var re=this.__data__;return Ri?re[F]!==void 0:Ie.call(re,F)}function Fu(F,re){var le=this.__data__;return this.size+=this.has(F)?0:1,le[F]=Ri&&re===void 0?n:re,this}Sn.prototype.clear=ec,Sn.prototype.delete=Bs,Sn.prototype.get=Jb,Sn.prototype.has=Ap,Sn.prototype.set=Fu;function En(F){var re=-1,le=F==null?0:F.length;for(this.clear();++re<le;){var Me=F[re];this.set(Me[0],Me[1])}}function Zb(){this.__data__=[],this.size=0}function Rp(F){var re=this.__data__,le=Ea(re,F);if(le<0)return!1;var Me=re.length-1;return le==Me?re.pop():kt.call(re,le,1),--this.size,!0}function Cp(F){var re=this.__data__,le=Ea(re,F);return le<0?void 0:re[le][1]}function Tp(F){return Ea(this.__data__,F)>-1}function $u(F,re){var le=this.__data__,Me=Ea(le,F);return Me<0?(++this.size,le.push([F,re])):le[Me][1]=re,this}En.prototype.clear=Zb,En.prototype.delete=Rp,En.prototype.get=Cp,En.prototype.has=Tp,En.prototype.set=$u;function ya(F){var re=-1,le=F==null?0:F.length;for(this.clear();++re<le;){var Me=F[re];this.set(Me[0],Me[1])}}function wp(){this.size=0,this.__data__={hash:new Sn,map:new(va||En),string:new Sn}}function _p(F){var re=ro(this,F).delete(F);return this.size-=re?1:0,re}function xa(F){return ro(this,F).get(F)}function Vr(F){return ro(this,F).has(F)}function un(F,re){var le=ro(this,F),Me=le.size;return le.set(F,re),this.size+=le.size==Me?0:1,this}ya.prototype.clear=wp,ya.prototype.delete=_p,ya.prototype.get=xa,ya.prototype.has=Vr,ya.prototype.set=un;function ai(F){var re=this.__data__=new En(F);this.size=re.size}function Bu(){this.__data__=new En,this.size=0}function e0(F){var re=this.__data__,le=re.delete(F);return this.size=re.size,le}function t0(F){return this.__data__.get(F)}function Op(F){return this.__data__.has(F)}function Hs(F,re){var le=this.__data__;if(le instanceof En){var Me=le.__data__;if(!va||Me.length<r-1)return Me.push([F,re]),this.size=++le.size,this;le=this.__data__=new ya(Me)}return le.set(F,re),this.size=le.size,this}ai.prototype.clear=Bu,ai.prototype.delete=e0,ai.prototype.get=t0,ai.prototype.has=Op,ai.prototype.set=Hs;function Hu(F,re){var le=Ws(F),Me=!le&&oi(F),lt=!le&&!Me&&io(F),xt=!le&&!Me&&!lt&&oc(F),Gt=le||Me||lt||xt,mt=Gt?Bt(F.length,String):[],Nt=mt.length;for(var Jr in F)Gt&&(Jr=="length"||lt&&(Jr=="offset"||Jr=="parent")||xt&&(Jr=="buffer"||Jr=="byteLength"||Jr=="byteOffset")||Qu(Jr,Nt))||mt.push(Jr);return mt}function Sa(F,re,le){(le!==void 0&&!no(F[re],le)||le===void 0&&!(re in F))&&Aa(F,re,le)}function Ho(F,re,le){var Me=F[re];(!(Ie.call(F,re)&&no(Me,le))||le===void 0&&!(re in F))&&Aa(F,re,le)}function Ea(F,re){for(var le=F.length;le--;)if(no(F[le][0],re))return le;return-1}function Aa(F,re,le){re=="__proto__"&&Cr?Cr(F,re,{configurable:!0,enumerable:!0,value:le,writable:!0}):F[re]=le}var Tr=Pp();function Gs(F){return F==null?F===void 0?V:I:Ct&&Ct in Object(F)?zn(F):a0(F)}function Gu(F){return Wi(F)&&Gs(F)==f}function to(F){if(!Ra(F)||kp(F))return!1;var re=ic(F)?Ee:H;return re.test(s0(F))}
vendor: 4,510 bytes, line 18
18function Go(F){return Wi(F)&&ac(F.length)&&!!be[Gs(F)]}function r0(F){if(!Ra(F))return Yo(F);var re=Zu(F),le=[];for(var Me in F)Me=="constructor"&&(re||!Ie.call(F,Me))||le.push(Me);return le}function Wu(F,re,le,Me,lt){F!==re&&Tr(re,function(xt,Gt){if(lt||(lt=new ai),Ra(xt))Ip(F,re,Gt,le,Wu,Me,lt);else{var mt=Me?Me(nc(F,Gt),xt,Gt+"",F,re,lt):void 0;mt===void 0&&(mt=xt),Sa(F,Gt,mt)}},Ki)}function Ip(F,re,le,Me,lt,xt,Gt){var mt=nc(F,le),Nt=nc(re,le),Jr=Gt.get(Nt);if(Jr){Sa(F,le,Jr);return}var Gr=xt?xt(mt,Nt,le+"",F,re,Gt):void 0,Xo=Gr===void 0;if(Xo){var nd=Ws(Nt),id=!nd&&io(Nt),Dp=!nd&&!id&&oc(Nt);Gr=Nt,nd||id||Dp?Ws(mt)?Gr=mt:Ko(mt)?Gr=qp(mt):id?(Xo=!1,Gr=rc(Nt)):Dp?(Xo=!1,Gr=Ln(Nt)):Gr=[]:Yi(Nt)||oi(Nt)?(Gr=mt,oi(mt)?Gr=Ks(mt):(!Ra(mt)||ic(mt))&&(Gr=Xu(Nt))):Xo=!1}Xo&&(Gt.set(Nt,Gr),lt(Gr,Nt,Me,xt,Gt),Gt.delete(Nt)),Sa(F,le,Gr)}function n0(F,re){return ed(Np(F,re,rd),F+"")}var tc=Cr?function(F,re){return Cr(F,"toString",{configurable:!0,enumerable:!1,value:sc(re),writable:!0})}:rd;function rc(F,re){return F.slice()}function Gi(F){var re=new F.constructor(F.byteLength);return new Ne(re).set(new Ne(F)),re}function Ln(F,re){var le=Gi(F.buffer);return new F.constructor(le,F.byteOffset,F.length)}function qp(F,re){var le=-1,Me=F.length;for(re||(re=Array(Me));++le<Me;)re[le]=F[le];return re}function i0(F,re,le,Me){var lt=!le;le||(le={});for(var xt=-1,Gt=re.length;++xt<Gt;){var mt=re[xt],Nt=void 0;Nt===void 0&&(Nt=F[mt]),lt?Aa(le,mt,Nt):Ho(le,mt,Nt)}return le}function Yu(F){return n0(function(re,le){var Me=-1,lt=le.length,xt=lt>1?le[lt-1]:void 0,Gt=lt>2?le[2]:void 0;for(xt=F.length>3&&typeof xt=="function"?(lt--,xt):void 0,Gt&&Ju(le[0],le[1],Gt)&&(xt=lt<3?void 0:xt,lt=1),re=Object(re);++Me<lt;){var mt=le[Me];mt&&F(re,mt,Me,xt)}return re})}function Pp(F){return function(re,le,Me){for(var lt=-1,xt=Object(re),Gt=Me(re),mt=Gt.length;mt--;){var Nt=Gt[++lt];if(le(xt[Nt],Nt,xt)===!1)break}return re}}function ro(F,re){var le=F.__data__;return Wo(re)?le[typeof re=="string"?"string":"hash"]:le.map}function Ku(F,re){var le=Dn(F,re);return to(le)?le:void 0}function zn(F){var re=Ie.call(F,Ct),le=F[Ct];try{F[Ct]=void 0;var Me=!0}catch{}var lt=X.call(F);return Me&&(re?F[Ct]=le:delete F[Ct]),lt}function Xu(F){return typeof F.constructor=="function"&&!Zu(F)?eo(Ze(F)):{}}function Qu(F,re){var le=typeof F;return re=re??u,!!re&&(le=="number"||le!="symbol"&&se.test(F))&&F>-1&&F%1==0&&F<re}function Ju(F,re,le){if(!Ra(le))return!1;var Me=typeof re;return(Me=="number"?Ys(le)&&Qu(re,le.length):Me=="string"&&re in le)?no(le[re],F):!1}function Wo(F){var re=typeof F;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?F!=="__proto__":F===null}function kp(F){return!!j&&j in F}function Zu(F){var re=F&&F.constructor,le=typeof re=="function"&&re.prototype||Mn;return F===le}function Yo(F){var re=[];if(F!=null)for(var le in Object(F))re.push(le);return re}function a0(F){return X.call(F)}function Np(F,re,le){return re=Bo(re===void 0?F.length-1:re,0),function(){for(var Me=arguments,lt=-1,xt=Bo(Me.length-re,0),Gt=Array(xt);++lt<xt;)Gt[lt]=Me[re+lt];lt=-1;for(var mt=Array(re+1);++lt<re;)mt[lt]=Me[lt];return mt[re]=le(Gt),$t(F,this,mt)}}function nc(F,re){if(!(re==="constructor"&&typeof F[re]=="function")&&re!="__proto__")return F[re]}var ed=o0(tc);function o0(F){var re=0,le=0;return function(){var Me=Vu(),lt=l-(Me-le);if(le=Me,lt>0){if(++re>=o)return arguments[0]}else re=0;return F.apply(void 0,arguments)}}function s0(F){if(F!=null){try{return de.call(F)}catch{}try{return F+""}catch{}}return""}function no(F,re){return F===re||F!==F&&re!==re}var oi=Gu((function(){return arguments})())?Gu:function(F){return Wi(F)&&Ie.call(F,"callee")&&!Ht.call(F,"callee")},Ws=Array.isArray;function Ys(F){return F!=null&&ac(F.length)&&!ic(F)}function Ko(F){return Wi(F)&&Ys(F)}var io=$s||lc;function ic(F){if(!Ra(F))return!1;var re=Gs(F);return re==T||re==C||re==m||re==q}function ac(F){return typeof F=="number"&&F>-1&&F%1==0&&F<=u}function Ra(F){var re=typeof F;return F!=null&&(re=="object"||re=="function")}function Wi(F){return F!=null&&typeof F=="object"}function Yi(F){if(!Wi(F)||Gs(F)!=P)return!1;var re=Ze(F);if(re===null)return!0;var le=Ie.call(re,"constructor")&&re.constructor;return typeof le=="function"&&le instanceof le&&de.call(le)==Z}var oc=vt?Rr(vt):Go;function Ks(F){return i0(F,Ki(F))}function Ki(F){return Ys(F)?Hu(F):r0(F)}var td=Yu(function(F,re,le,Me){Wu(F,re,le,Me)});function sc(F){return function(){return F}}function rd(F){return F}function lc(){return!1}e.exports=td}
18)(vf,vf.exports)),vf.exports}var ife=nfe();const xI=Fl(ife);var qg=(e=>(e.REACT="react",e.FLUTTER="flutter",e))(qg||{}),zA=(e=>(e.APP="app",e.BUILDER="builder",e))(zA||{}),Vf=(e=>(e.INITIALIZED="initialized",e.LISTENING="listening",e.BOOTING="booting",e.BOOTED="booted",e.APP_NULL="appNull",e.STARTING="starting",e.STARTED="started",e.ERROR="error",e))(Vf||{}),la=(e=>(e.SHARED_STATE_CHANGE="sharedStateChange",e.INVALIDATE_LIST="invalidateList",e.SHOW_TOAST="showToast",e.REACT_NAV="reactNav",e))(la||{}),Z8=(e=>(e.APP_STATUS="appStatus",e))(Z8||{});const afe=y({freezeExecution:$().nullable(),menuDrawerVisible:$().nullable(),upgradePlanVisible:$().nullable(),intercomChatVisible:$().nullable(),publishModalVisible:$().nullable()}),ofe=y({appId:s().nullable(),appMode:s().nullable().oneOf(Object.values(zA)),appPath:s().nullable()}),sfe=y({authnUserToken:s().nullable(),authnSpoofToken:s().nullable()}),lfe=y({bootstrap:ofe.nullable().optional(),auth:sfe.nullable().optional(),react:afe.nullable().optional(),flutterLifecycleStatus:s().oneOf(Object.values(Vf)).nullable().optional(),flutterEventListenerRegistered:$().nullable().optional()}),cfe=M(s().oneOf(Object.values(Z8))).required(),ufe=y({title:s().nullable(),body:s().nullable()}),dfe=y({location:s().required()}),eM={[la.SHARED_STATE_CHANGE]:lfe,[la.INVALIDATE_LIST]:cfe,[la.SHOW_TOAST]:ufe,[la.REACT_NAV]:dfe},ffe={updateFlutter:!0,ignoreNull:!1};function pfe(e,t){const r=ga();function n(l){delete l.bootstrap?.appId,l.auth=null,t(l,{updateFlutter:!1,ignoreNull:!0})}function o(l){St.create({title:l.title,description:l.body})}return async function(u,f){const m=await eM[u].validate(f);if(u===la.SHARED_STATE_CHANGE)return n(m);if(u===la.SHOW_TOAST)return o(m);if(u===la.INVALIDATE_LIST)return console.error("NOT IMPLEMENTED YET!");if(u===la.REACT_NAV)return r(m.location)}}function hfe(e,t){const{activeApp:r}=ju(),{activeAuthn:n}=Ai();S.useEffect(()=>{t({bootstrap:{appId:r?.id??null},auth:{authnUserToken:qs("USER").refreshToken,authnSpoofToken:qs("SPOOF").refreshToken}},{updateFlutter:!0,ignoreNull:!1})},[n?.id,r?.id])}function tM(e){const t={};for(const r in e)t[r]=e[r]??null;return t}async function Xx(e,t,r){const n=JSON.stringify({target:e,event:t,data:r}),o=document.getElementById("flutterIframe");o?.contentWindow&&o.contentWindow.postMessage(n,"*")}const rM={flutterState:{flutterEventListenerRegistered:!1,flutterLifecycleStatus:null,auth:{authnUserToken:null,authnSpoofToken:null},bootstrap:{appId:null,appMode:zA.BUILDER,appPath:null},react:{freezeExecution:!1,menuDrawerVisible:!1,upgradePlanVisible:!1,intercomChatVisible:!1,publishModalVisible:!1}},sendFlutterMessage:async()=>{},setFlutterRoutePath:()=>{},setMenuDrawerVisible:()=>{},setUpgradePlanVisible:()=>{},setIntercomChatVisible:()=>{},setPublishModalVisible:()=>{},loadEventListeners:()=>()=>{},pushSharedState:()=>{}},nM=S.createContext(rM),mfe=()=>S.useContext(nM);function Kl(){const e=mfe(),t=e.flutterState;return{...e,flutterLifecycleStatus:t.flutterLifecycleStatus,flutterEventListenerRegistered:t.flutterEventListenerRegistered,...t.bootstrap,...t.auth,...t.react}}function gfe(e,t){const{ns:r}=t,n=t.opts??ffe;if(t.type!=="u")return e;const o=!window.location.pathname.startsWith("/app"),l=(m,b)=>b===null&&n.ignoreNull?m:void 0,u=xI({},e.flutterState,r,l),f=xI({},u,{react:{freezeExecution:o}},l);return JSON.stringify(e.flutterState)===JSON.stringify(f)?e:(n.updateFlutter===!0&&Xx(qg.FLUTTER,la.SHARED_STATE_CHANGE,tM(f)).catch(m=>console.error(`Could not update flutter state because ${m}`)),{...e,flutterState:f})}const bfe=({children:e})=>{const[t,r]=S.useReducer(gfe,rM),{flutterState:n}=t,o=(x,E)=>r({type:"u",ns:x,opts:E}),l=pfe(n,o);hfe(n,o),S.useEffect(()=>{h()},[n.flutterEventListenerRegistered,n.bootstrap?.appId]),S.useEffect(()=>{n.flutterEventListenerRegistered&&n.flutterLifecycleStatus===Vf.APP_NULL&&h()},[n.flutterLifecycleStatus]);async function u(x){if(!x?.data)return;const E=await new Promise(C=>C(JSON.parse(x.data))).catch(()=>{});if(E?.target!==qg.REACT)return;const T=E.event;Object.keys(eM).includes(T)&&l(T,E.data).catch(C=>console.error(C))}function f(){return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}function h(){n.bootstrap?.appId&&Xx(qg.FLUTTER,la.SHARED_STATE_CHANGE,tM(n))}const m={...t,sendFlutterMessage:Xx,loadEventListeners:f,pushSharedState:h,setMenuDrawerVisible:(x,E)=>o({react:{menuDrawerVisible:x}},E),setUpgradePlanVisible:(x,E)=>o({react:{upgradePlanVisible:x}},E),setIntercomChatVisible:(x,E)=>o({react:{intercomChatVisible:x}},E),setPublishModalVisible:(x,E)=>o({react:{publishModalVisible:x}},E),setFlutterRoutePath:(x,E)=>o({bootstrap:{appPath:x}},E)},b=S.useMemo(()=>m,[t,r]);return p.jsx(nM.Provider,{value:b,children:e})};var ct=(e=>(e[e.UpgradeAccount=0]="UpgradeAccount",e[e.AppleAccountConfirmation=1]="AppleAccountConfirmation",e[e.CreateAppleAccount=2]="CreateAppleAccount",e[e.ConfigurePaidApps=3]="ConfigurePaidApps",e[e.OpenUserAccess=4]="OpenUserAccess",e[e.AddDeploymentAccount=5]="AddDeploymentAccount",e[e.SendJoinInv
18ite=6]="SendJoinInvite",e[e.CelebrateProgress=7]="CelebrateProgress",e[e.OpenAccessManager=8]="OpenAccessManager",e[e.ConfirmRequestAccess=9]="ConfirmRequestAccess",e[e.GenerateApiKey=10]="GenerateApiKey",e[e.NameApiKey=11]="NameApiKey",e[e.InsertKeyData=12]="InsertKeyData",e[e.OpenAppstoreConnectUserAccess=13]="OpenAppstoreConnectUserAccess",e[e.PasteTeamInformation=14]="PasteTeamInformation",e[e.CreateNotificationKey=15]="CreateNotificationKey",e[e.NotificationKeyPermissions=16]="NotificationKeyPermissions",e[e.NotificationKeyDetails=17]="NotificationKeyDetails",e[e.NotificationKeyConfirm=18]="NotificationKeyConfirm",e[e.NotificationPasteKeyId=19]="NotificationPasteKeyId",e[e.UploadNotificationKey=20]="UploadNotificationKey",e[e.ProcessingAppleAccountKeys=21]="ProcessingAppleAccountKeys",e[e.FirstDetails=22]="FirstDetails",e[e.IconUpload=23]="IconUpload",e[e.ThirdDetails=24]="ThirdDetails",e[e.FourthDetails=25]="FourthDetails",e[e.DetailsOverviewConfirm=26]="DetailsOverviewConfirm",e[e.AppRequirementsAndLegal=27]="AppRequirementsAndLegal",e[e.CelebrationScreen=28]="CelebrationScreen",e[e.DetailsOverview=29]="DetailsOverview",e))(ct||{});const iM={UPGRADE_PLAN:ct.UpgradeAccount,SETUP_APPLE_ACCOUNT:ct.AppleAccountConfirmation,SETUP_APP_DETAIL:ct.FirstDetails,DISTRIBUTION_UNACCEPTED:ct.DetailsOverview,DISTRIBUTION_PENDING:ct.DetailsOverview,DISTRIBUTION_PARTIAL:ct.DetailsOverview,DISTRIBUTION_COMPLETE:ct.DetailsOverview},aM={screen:iM.UPGRADE_PLAN,publishPhase:"UPGRADE_PLAN",appleAccount:{},appDetail:{},next:()=>{},back:()=>{},setScreen:()=>{},updateAppleAccount:()=>{},updateAppDetail:()=>{}},oM=S.createContext(aM),UA=()=>S.useContext(oM);function vfe(e,t){const{ns:r}=t;return t.type==="u"?{...e,...r}:e}const yfe=({children:e})=>{const[t,r]=S.useReducer(vfe,aM),{activeApp:n}=ju(),{screen:o}=t,l=C=>r({type:"u",ns:C});async function u(){if(!n)return;let C="UPGRADE_PLAN";const R=await iue.GetAppDistributionStatus({appId:n.id});R.mobileDistributionAvailable?R.appleAccountSetup?R.appDetailsSetup?R.distributionPending?R.distributionPending?C="DISTRIBUTION_PENDING":R.distributionPartial?C="DISTRIBUTION_PARTIAL":R.distributionComplete?C="DISTRIBUTION_COMPLETE":console.warn("Unanticipated Phase State",R,R):C="DISTRIBUTION_UNACCEPTED":C="SETUP_APP_DETAIL":C="SETUP_APPLE_ACCOUNT":C="UPGRADE_PLAN",l({screen:iM[C],publishPhase:C})}S.useEffect(()=>{u()},[n?.id,n?.coreService.status]);const f=C=>l({screen:C}),E={...t,next:()=>f(o<ct.DetailsOverview?o+1:o),back:()=>f(o>0?o-1:o),setScreen:f,updateAppleAccount:C=>l({appleAccount:{...t.appleAccount,...C}}),updateAppDetail:C=>l({appDetail:{...t.appDetail,...C}})},T=S.useMemo(()=>E,[t,r]);return p.jsx(oM.Provider,{value:T,children:e})},xfe="/assets/2_5-set-notification-key-permissions-BnsApZN7.png";function Sfe(e){return p.jsx(Oe,{w:"100%",children:p.jsx(De,{position:"relative",maxW:"full",mx:"auto",border:"1px solid var(--chakra-colors-gray-300)",borderRadius:"1rem",borderColor:"primary",boxShadow:"0 0 0 1px var(--chakra-colors-gray-300)",children:p.jsx(nr,{src:e.src,alt:"",w:"100%",maxH:"300px",objectFit:"contain",borderRadius:"1rem",p:"2px"})})})}function Efe(e){const t=Array.isArray(e.children)?e.children:[e.children];return p.jsxs(Oe,{alignItems:"center",justifyContent:"center",gap:"20px",position:"absolute",bottom:"4.5rem",left:"0",w:"100%",children:[...t]})}function Afe(e){const t=Array.isArray(e.children)?e.children:[e.children];return p.jsx(Xr,{gap:"10px",w:"100%",display:"block",children:p.jsxs(_e,{fontSize:"16px",color:"text.light",textAlign:"center",whiteSpace:"break-spaces",mt:"1.5rem",children:[...t]})})}function Rfe(e){const t=Array.isArray(e.children)?e.children:[e.children];return p.jsx(Oe,{maxWidth:"900px",mx:"auto",my:"20px",display:"flex",flexWrap:"wrap",children:p.jsxs(De,{display:"block",w:"100%",mt:"0rem",children:[...t]})})}function Cfe(){const{back:e,next:t}=UA();return p.jsxs(Rfe,{children:[p.jsx(Sfe,{src:xfe}),p.jsxs(Afe,{children:["Set the Notifciation key permissions, please ensure that both Sandbox & Production is selected.",p.jsx("br",{}),'Press "Save" on the top right']}),p.jsxs(Efe,{children:[p.jsx(ut,{colorScheme:"primary",px:"32px",onClick:e,children:"Back"}),p.jsx(ut,{colorScheme:"primary",px:"32px",onClick:t,children:"Next"})]})]})}const Tfe=S.lazy(()=>Xe(()=>import("./UpgradeAccount-B6mrGtwT.js"),[])),wfe=S.lazy(()=>Xe(()=>import("./AppleAccountConfirmation-DGAQg2LO.js"),[])),_fe=S.lazy(()=>Xe(()=>import("./CreateAppleAccount-C-WBBK5J.js"),[])),Ofe=S.lazy(()=>Xe(()=>import("./ConfigurePaidApps-BHoYMU4F.js"),__vite__mapDeps([0,1,2]))),Ife=S.lazy(()=>Xe(()=>import("./OpenUserAccess-BV5ZT3OZ.js"),[])),qfe=S.lazy(()=>Xe(()=>import("./AddDeploymentAccount-ubAuXnM2.js"),[])),Pfe=S.lazy(()=>Xe(()=>
18import("./SendJoinInvite-BlvRB5K8.js"),[])),kfe=S.lazy(()=>Xe(()=>import("./CelebrateProgress-Bwg34fK8.js"),__vite__mapDeps([3,4]))),Nfe=S.lazy(()=>Xe(()=>import("./OpenAppstoreConnectUserAccess-Dis4AIcN.js"),[])),Dfe=S.lazy(()=>Xe(()=>import("./PasteTeamInformation-D_SLtkAU.js"),__vite__mapDeps([5,6,7]))),Mfe=S.lazy(()=>Xe(()=>import("./CreateNotificationKey-BFQHPk6N.js"),[])),jfe=S.lazy(()=>Xe(()=>import("./CreateNotificationDetails-DIehVvkT.js"),[])),Lfe=S.lazy(()=>Xe(()=>import("./CreateNotificationConfirm-CNxWs5k_.js"),[])),zfe=S.lazy(()=>Xe(()=>import("./PasteKeyId-DvGPUmID.js"),__vite__mapDeps([8,6,7]))),Ufe=S.lazy(()=>Xe(()=>import("./UploadNotificationKey-BbpphDA_.js"),__vite__mapDeps([9,10,11,12,7,13]))),Vfe=S.lazy(()=>Xe(()=>import("./OpenAccessManager-oRJ-Tco8.js"),[])),Ffe=S.lazy(()=>Xe(()=>import("./ConfirmRequestAccess-BrGOudzw.js"),[])),$fe=S.lazy(()=>Xe(()=>import("./GenerateApiKey-DjV_1aNr.js"),[])),Bfe=S.lazy(()=>Xe(()=>import("./NameApiKey-cU6IdUdx.js"),__vite__mapDeps([14,15]))),Hfe=S.lazy(()=>Xe(()=>import("./InsertKeyData-6GgJgXQs.js"),__vite__mapDeps([16,15,6,10,11,12,7,13]))),Gfe=S.lazy(()=>Xe(()=>import("./ProcessingAppleAccountKeys-BadU8zQq.js"),__vite__mapDeps([17,13]))),Wfe=S.lazy(()=>Xe(()=>import("./FirstDetails-PY81F8u7.js"),__vite__mapDeps([18,6,7]))),Yfe=S.lazy(()=>Xe(()=>import("./IconUpload-JGNbCq5x.js"),__vite__mapDeps([19,10,11,12,20,21,7,13]))),Kfe=S.lazy(()=>Xe(()=>
18import("./ThirdDetails-BW0x1Qe5.js"),__vite__mapDeps([22,23,20]))),Xfe=S.lazy(()=>Xe(()=>import("./FourthDetails-BvgiABIp.js"),__vite__mapDeps([24,6,7]))),SI=S.lazy(()=>Xe(()=>import("./DetailsOverview-CnJkhO1C.js"),__vite__mapDeps([25,13]))),Qfe=S.lazy(()=>Xe(()=>import("./AppRequirementsAndLegal-8R2KqU6B.js"),__vite__mapDeps([26,13]))),Jfe=S.lazy(()=>Xe(()=>import("./CelebrationScreen-DMuETs5R.js"),__vite__mapDeps([27,4]))),EI={[ct.UpgradeAccount]:{title:"Upgrade your account to publish your app!",component:p.jsx(Tfe,{})},[ct.AppleAccountConfirmation]:{title:"Let's publish your app!",component:p.jsx(wfe,{})},[ct.CreateAppleAccount]:{title:"No problem! Let's set that up!",component:p.jsx(_fe,{})},[ct.ConfigurePaidApps]:{title:"Great! Start with Apple's agreements",component:p.jsx(Ofe,{})},[ct.OpenUserAccess]:{title:"Let's add AppRabbit to your Apple Account",component:p.jsx(Ife,{})},[ct.AddDeploymentAccount]:{title:"Awesome! Let's connect it to AppRabbit",component:p.jsx(qfe,{})},[ct.SendJoinInvite]:{title:"One more step!",component:p.jsx(Pfe,{})},[ct.CelebrateProgress]:{title:"Time to celebrate!",component:p.jsx(kfe,{})},[ct.OpenAppstoreConnectUserAccess]:{title:"Open Team Settings",component:p.jsx(Nfe,{})},[ct.PasteTeamInformation]:{title:"Locate Your Team Information",component:p.jsx(Dfe,{})},[ct.CreateNotificationKey]:{title:"Setup Push Notifications",component:p.jsx(Mfe,{})},[ct.NotificationKeyDetails]:{title:"Setup Push Notifications",component:p.jsx(jfe,{})},[ct.NotificationKeyPermissions]:{title:"Setup Push Notifications",component:p.jsx(Cfe,{})},[ct.NotificationKeyConfirm]:{title:"Setup Push Notifications",component:p.jsx(Lfe,{})},[ct.NotificationPasteKeyId]:{title:"Setup Push Notifications",component:p.jsx(zfe,{})},[ct.UploadNotificationKey]:{title:"Setup Push Notifications",component:p.jsx(Ufe,{})},[ct.OpenAccessManager]:{title:"Connnect Your Account",component:p.jsx(Vfe,{})},[ct.ConfirmRequestAccess]:{title:"Connnect Your Account",component:p.jsx(Ffe,{})},[ct.GenerateApiKey]:{title:"Connnect Your Account",component:p.jsx($fe,{})},[ct.NameApiKey]:{title:"Connnect Your Account",component:p.jsx(Bfe,{})},[ct.InsertKeyData]:{title:"Connnect Your Account",component:p.jsx(Hfe,{})},[ct.ProcessingAppleAccountKeys]:{title:"Almost There!",component:p.jsx(Gfe,{})},[ct.FirstDetails]:{title:"Now for the fun stuff!",component:p.jsx(Wfe,{})},[ct.IconUpload]:{title:"Now for the fun stuff!",component:p.jsx(Yfe,{})},[ct.ThirdDetails]:{title:"Now for the fun stuff!",component:p.jsx(Kfe,{})},[ct.FourthDetails]:{title:"Now for the fun stuff!",component:p.jsx(Xfe,{})}
18,[ct.DetailsOverviewConfirm]:{title:"App Overview",component:p.jsx(SI,{confirmDetails:!0})},[ct.AppRequirementsAndLegal]:{title:"Legal Information & App Requirements",component:p.jsx(Qfe,{})},[ct.CelebrationScreen]:{title:"Congratulations! You did it!",component:p.jsx(Jfe,{})},[ct.DetailsOverview]:{title:"App Overview",component:p.jsx(SI,{})}};function Zfe(){const{next:e,back:t}=UA()}function epe(e){const{screen:t}=UA();return p.jsx(oS,{open:e.open,scrollBehavior:"inside",onOpenChange:e.close,size:"md",children:p.jsxs(Vo,{children:[p.jsx(cS,{}),p.jsxs(sS,{bg:"bg.dialogBody",minW:{base:"580px",lg:"780px",xl:"1100px"},minH:{base:"700px"},py:"12px",position:"relative",overflowY:"hidden",overflowX:"hidden",borderRadius:"2rem",children:[p.jsxs(F6,{justifyContent:"center",display:"flex",children:[p.jsx(Zfe,{}),p.jsx(vr,{as:"h2",fontWeight:"bold",fontSize:"24px",textAlign:"center",children:EI[t].title})]}),p.jsx(lS,{asChild:!0,children:p.jsx(wu,{})}),p.jsx(uS,{padding:"8px 40px",display:"flex",alignItems:"stretch",children:p.jsx(S.Suspense,{children:EI[t].component})}),p.jsx(V6,{})]})]})})}function tpe(e){return open?p.jsx(epe,{open:e.open,close:e.close}):p.jsx(p.Fragment,{})}const Db="data:image/svg+xml,%3csvg%20width='204'%20height='171'%20viewBox='0%200%20204%20171'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M123.956.36c-.484.199-1.277.802-1.761%201.342-1.336%201.49-1.24%2012.032.169%2018.51%202.5%2011.497%208.981%2022.794%2017.021%2029.671l2.66%202.275-7.944-.149c-35.997-.675-70.894%2011.213-101.987%2034.745-6.45%204.88-7.504%205.423-10.558%205.425-5.608.005-10.246-4.648-10.242-10.279.003-5.6%204.659-10.148%2010.364-10.125%203.948.017%205.984%201.362%209.955%206.577.828%201.089%201.347%201.345%202.716%201.345%202.327%200%203.007-.335%203.8-1.87.947-1.83.497-3.691-1.6-6.621-8.466-11.832-26.842-9.503-32.225%204.085-1.368%203.45-1.358%209.782.019%2013.286A18.838%2018.838%200%200%200%2014.91%2099.152c1.953.769%203.389.979%206.672.979%205.556%200%207.903-.944%2013.75-5.535%2021.355-16.768%2046.962-28.373%2071.672-32.482%209.751-1.62%2014.108-1.972%2024.658-1.985%2011.615-.015%2017.457.527%2026.588%202.466%209.439%202.004%208.844%201.982%2010.441.384%201.228-1.23%201.361-1.598%201.147-3.192-.133-.991-.504-2.056-.825-2.368-.322-.311-2.467-1.302-4.768-2.202-14.793-5.784-24.722-14.373-30.373-26.273-1.895-3.991-3.68-9.765-4.195-13.568-.314-2.316-.294-2.387.499-1.767%206.428%205.03%2049.091%2041.36%2056.792%2048.363%206.958%206.327%209.297%2010.37%208.884%2015.351-.226%202.733-1.213%204.347-3.472%205.679-1.392.82-2.147.871-10.927.743-10.461-.152-15.648.333-20.771%201.945-3.926%201.235-6.113%202.594-6.938%204.31-1%202.08.035%203.712%204.777%207.532%208.83%207.113%2018.379%2016.762%2024.171%2024.425%201.391%201.84%202.668%203.58%202.838%203.868.17.288-2.32-.728-5.534-2.258-14.655-6.977-29.528-11.571-45.032-13.91-7.942-1.199-22.972-1.647-30.861-.921-31.116%202.864-59.892%2015.701-86.264%2038.482-5.324%204.599-14.36%2013.737-16.482%2016.667-2.847%203.934-.988%207.442%203.757%207.091.577-.044%202.61-1.969%205.42-5.133%202.471-2.785%206.923-7.249%209.891-9.92%2024.236-21.804%2050.542-34.651%2079.094-38.627%207.774-1.082%2024.117-1.079%2031.923.008%2020.22%202.814%2039.576%209.694%2058.782%2020.894%206.169%203.597%206.511%203.746%207.837%203.417%201.998-.496%203.171-1.93%203.171-3.875%200-3.157-6.111-13.427-13.464-22.625-4.07-5.092-14.845-16.243-19.212-19.884l-3.04-2.534%201.456-.312c2.992-.64%2010.421-.861%2015.106-.45%208.304.728%2013.777-.588%2017.541-4.22%206.701-6.463%205.592-18.612-2.488-27.267C190.872%2053.745%20128.729.88%20126.364.246c-1.292-.345-1.286-.345-2.408.114ZM86.309%2084.042C59.28%2092.08%2028.477%20110.893%204.904%20133.758c-4.577%204.44-4.91%204.877-4.904%206.449.008%202.184%201.928%204.262%203.938%204.262%201.13%200%202.414-.973%207.63-5.781%2014.507-13.373%2027.24-22.896%2041.696-31.184%2012.53-7.183%2027.727-13.755%2037.829-16.357%203.78-.974%205.252-4.274%203.031-6.799-1.448-1.648-3.088-1.712-7.815-.306Zm1.814%2044.848c-16.763%202.586-32.75%209.683-45.22%2020.073-5.323%204.436-6.79%206.252-6.79%208.405%200%202.349%201.538%203.845%203.953%203.845%201.652%200%202.123-.311%206.032-3.994%2011.51-10.844%2028.564-18.519%2045.904-20.659%204.468-.551%205.755-1.452%205.755-4.029%200-2.261-.341-2.969-1.793-3.72-1.483-.768-2.415-.758-7.841.079Z'%20fill='%232B6FF2'/%3e%3c/svg%3e";function FSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"},child:[]}]})(e)}function rpe(e){return he({attr:{viewBox:"0 0 1024 1024"}
18,child:[{tag:"path",attr:{d:"M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"},child:[]}]})(e)}function npe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"defs",attr:{},child:[{tag:"clipPath",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M124-288l388-672 388 672H124z",clipRule:"evenodd"},child:[]}]}]},{tag:"path",attr:{d:"M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z"},child:[]},{tag:"path",attr:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z"},child:[]}]})(e)}function ipe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"},child:[]}]})(e)}function $Se(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function BSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"},child:[]}]})(e)}function HSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(e)}function ape(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 8
186-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"},child:[]}]})(e)}function GSe(e){return he({attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function WSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}function ope(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"},child:[]}]})(e)}function YSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z"},child:[]}]})(e)}function KSe(e){return he({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function XSe(e){return he({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function QSe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}function spe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(e)}function JSe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s6
185.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"},child:[]}]})(e)}function ZSe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"},child:[]}]})(e)}function lpe(e){return he({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"},child:[]}]})(e)}function eEe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},child:[]}]})(e)}function tEe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},child:[]}]})(e)}function rEe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},child:[]}]})(e)}function nEe(e){return he({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},child:[]}]})(e)}function iEe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function sM(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function aEe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},child:[]}]})(e)}function oEe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"},child:[]}]})(e)}function cpe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function sEe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function upe(e){return he({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13
18192-192c0-170.29-168-193-168-296.14z"},child:[]}]})(e)}function dpe(e){return he({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function fpe(e){return he({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function lEe(e){return he({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"},child:[]}]})(e)}function cEe(e){return he({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"},child:[]}]})(e)}function uEe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function ppe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function hpe(e){return he({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function mpe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function dEe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"},child:[]}]})(e)}function fEe(e){return he({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384
1864 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},child:[]}]})(e)}function gpe(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M440.1 355.2l-39.2-23 34.1-9.3c8.4-2.3 13.4-11.1 11.1-19.6l-4.1-15.5c-2.2-8.5-10.9-13.6-19.3-11.3L343 298.2 271.2 256l71.9-42.2 79.7 21.7c8.4 2.3 17-2.8 19.3-11.3l4.1-15.5c2.2-8.5-2.7-17.3-11.1-19.6l-34.1-9.3 39.2-23c7.5-4.4 10.1-14.2 5.8-21.9l-7.9-13.9c-4.3-7.7-14-10.3-21.5-5.9l-39.2 23 9.1-34.7c2.2-8.5-2.7-17.3-11.1-19.6l-15.2-4.1c-8.4-2.3-17 2.8-19.3 11.3l-21.3 81-71.9 42.2v-84.5L306 70.4c6.1-6.2 6.1-16.4 0-22.6l-11.1-11.3c-6.1-6.2-16.1-6.2-22.2 0l-24.9 25.4V16c0-8.8-7-16-15.7-16h-15.7c-8.7 0-15.7 7.2-15.7 16v46.1l-24.9-25.4c-6.1-6.2-16.1-6.2-22.2 0L142.1 48c-6.1 6.2-6.1 16.4 0 22.6l58.3 59.3v84.5l-71.9-42.2-21.3-81c-2.2-8.5-10.9-13.6-19.3-11.3L72.7 84c-8.4 2.3-13.4 11.1-11.1 19.6l9.1 34.7-39.2-23c-7.5-4.4-17.1-1.8-21.5 5.9l-7.9 13.9c-4.3 7.7-1.8 17.4 5.8 21.9l39.2 23-34.1 9.1c-8.4 2.3-13.4 11.1-11.1 19.6L6 224.2c2.2 8.5 10.9 13.6 19.3 11.3l79.7-21.7 71.9 42.2-71.9 42.2-79.7-21.7c-8.4-2.3-17 2.8-19.3 11.3l-4.1 15.5c-2.2 8.5 2.7 17.3 11.1 19.6l34.1 9.3-39.2 23c-7.5 4.4-10.1 14.2-5.8 21.9L10 391c4.3 7.7 14 10.3 21.5 5.9l39.2-23-9.1 34.7c-2.2 8.5 2.7 17.3 11.1 19.6l15.2 4.1c8.4 2.3 17-2.8 19.3-11.3l21.3-81 71.9-42.2v84.5l-58.3 59.3c-6.1 6.2-6.1 16.4 0 22.6l11.1 11.3c6.1 6.2 16.1 6.2 22.2 0l24.9-25.4V496c0 8.8 7 16 15.7 16h15.7c8.7 0 15.7-7.2 15.7-16v-46.1l24.9 25.4c6.
181 6.2 16.1 6.2 22.2 0l11.1-11.3c6.1-6.2 6.1-16.4 0-22.6l-58.3-59.3v-84.5l71.9 42.2 21.3 81c2.2 8.5 10.9 13.6 19.3 11.3L375 428c8.4-2.3 13.4-11.1 11.1-19.6l-9.1-34.7 39.2 23c7.5 4.4 17.1 1.8 21.5-5.9l7.9-13.9c4.6-7.5 2.1-17.3-5.5-21.7z"},child:[]}]})(e)}function pEe(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"},child:[]}]})(e)}function lM(e){return he({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"},child:[]}]})(e)}var Mb=(e=>(e.ACTIVE="active",e.SPOOF="spoof",e.USER="user",e))(Mb||{});function cM(e="active"){const{activePolicies:t,spoofPolicies:r,policies:n}=Ai();return{active:t,spoof:r,user:n}[e]}function VA(e,t="active"){const r=cM(t);return pg.multiAuthorizedTo(r,e)}function Cf(e){const t=e.target??"active",r=cM(t);if(e.guard.length===0||pg.multiAuthorizedTo(r,e.guard))return e.children}class In{static IsRoot=[nn.IAM_Root.ROOT.SELF];static IsOrgAdmin=[nn.IAM_OrgAdmin.ROOT.SELF];static IsCoach=[nn.IAM_AppCoach.ROOT.SELF];static IsElevatedAdmin=[nn.IAM_Root.ROOT.SELF,nn.IAM_OrgAdmin.ROOT.SELF];static ReadAppBuilder=[nn.AppBuilder.READ.SELF];static IsUser=[nn.IAM_Root.ROOT.SELF,nn.IAM_OrgAdmin.ROOT.SELF,nn.IAM_AppAdmin.ROOT.SELF,nn.IAM_AppCoach.ROOT.SELF,nn.IAM_AppUser.ROOT.SELF];static IsNonRootUser=[nn.IAM_OrgAdmin.ROOT.SELF,nn.IAM_AppAdmin.ROOT.SELF,nn.IAM_AppCoach.ROOT.SELF];static SpoofOthers=[nn.SpoofAuthn.ANY.OTHERS]}const bpe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAkFBMVEVjW/////9hWf9fV/9xa/9eVv9dVP9WTf9YT/9aUf9XTv9US/9cU/9nX//GxP9TSf/f3v/o5/+hnf/Pzf/39v+Tjv+bl/96c/+lof+Xkv9+eP/KyP/w8P/6+v+5tv9rZP/V0//Cv/+Lhv+uq/9xav+Dff+0sf/i4f/y8f+9uv/s6/+NiP+Ggf+qp//Z1/+fm/+q/ZwLAAAFq0lEQVR4nO2d63bqLBBA4xAChCTeY7zfbW2tvv/bfdray2fVEIPHoWv2On/Ony72ggwwDOh5BEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEHcBwBgPODB/h/njO3/++gW2QNYIEXIYn/ZTneNrJF2Xzc9Pw5CIRVnrotCIDXbvPVrg2HlhOGg1h81lqwaRs5qQqTHafJyqnZCa7vaeFpx5ywh0PH8Kcfui/q0G4nIJUlQqrs11TtSm4914IgkqGDVKuj3IZmxkD+69QYEanWL3geTNnt0+/MAnd7Uf19gj6xRXPT7c8xQd0v6ITcEPS0tiNoQZK28IGZDBnULgogNgQ9sCOI1BGWlBxEbahvfIGbDcGRJEKthMLMliNQQonIrNfyGcmpNEKchjO0J4jQUzT9uCL5FQZSGMvnjhhDaFMRoGDT+uqGwtV7DagixVUGEhkH5xAVyQ2U1kmI01Ib7wu2o3fPHC9/vzHarpPbsjqHRXNHKtDicpR1gjEcq1LqzW9d+HUkhNISOgWCdqd/tZlwJthmdHt+gM+QGgWYgL7UamNK82//ZlegMg7d8w/bV4xbgMmpP8Bqqda7g8GIXfgI8hKyO1TB/sngSBn8HAt2boDSU/VzDmonhHiYWCUbD/N3vi6Hh4VwgTjwHDSuxeaPhzLTyYAxGaWWqH93KMhgtSzfq0c0sgTJKds8EusFnTJCZGFbW2oUii7Mww3z+oFt1r+7pHfMt/ksq8QVKE6rmRxat9cKZsqcfyEm+2jdPmSdcG62GoeabbSpDpyRvOZaZpBCir+765rZ8aXOmlSuSvH2L4T7uTDvakdFaIJqeUE+VExNImYOL4WgcOuAo8oq5r9Ic52Y5Hg5bljGsVBIP/VgV03KKlblEvjAHVWqc7nmeadzdyOIz+fliJAp3N3KT5P51Bj35aIurRCWjzYEG7nxO1CuvOMKtyBflS2iRZ+VYsa3iWda4FUHvSiu+4Q43XhSX7sYN7klj342vF0/ozRiiO7g4heu3crP/BPeneEDxeSnHGfJx6h2KosOsxEL18rE/IiAQm9svse3wd+IBphejG9Mbg+qjG28IKPl62+QxcyULtw+sIWTGN7q/mYSPbngB9l9kPC98JQpducJ1INK9ggWM12uMMMKkSIuM1qmLx+Jcd8yvZbzgX9ecg4mFsSP69OIFQG8Md8lLd+aLE7gwqL/ZkwaPbunNgJ6bGK6iRze0BNWpgWGCKZhCwQEFwmC52kSUzIDFvFrM0eTtky2idRv4ldZOFHFkBvlx05rUf8H77cNBo8AjSBDkGxrVFf8jjvcrW3OQhnMYcIM+xDVKjyS+WTGQSX3KBFOk+XFHtpYqmb/xMTn37yM1PDRtpvLOc7VBlmqNaD78dc+51Z+J8EqBXtXkoawM0art7E3ubeZLedaSC6OXwDBlai7dVX9uZn5VyCj4fOgSDm9EVpdmGY0C5f135+pt/Hp/3l0uPKaE1nzc6SaG+cUWpnyiyXsDw2Gr1SqS6cc0WVh+UeEIpkBzH8MFos/wLoZ1RKvS+xi+odrh38MQV8r7DoaYFqXeXQx9RAsa7x6GTVRx5h6GmFZsB6wbrhBtnN6xbfiCrk7BtmEHV5jxrBvusI1R24YYaxOtGjYRClo13KIs2LdomKAUtGi4wpS6+IE1w1dki7UvLBnWYkyJi/8BYxvvzzZwfoIfgGiXfVcw8VBt6n/D9XhVomK26TtwyRIi3ZnedqEkWQh0K9HzMCV889/OOVLPPHRbiWtAJFQ39/ePvqi9xQ4+IgFcirg92ubF15ckjYV7ekeAq7DqLRuj5tPz6WHF8Lk+WaedUCtn9T4BxpUUEsad3rLdyLIs7c56fgxKSBU4ElqM+Hjrkgd7/tpP5hEEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEOv4DDpRUCKklyhsAAAAASUVORK5CYII=",uM=e=>navigator.clipboard.writeText(e.toString()).catch(t=>console.error("Failed to copy text: ",t));function jb(e){return function(){St.success({title:"Copied to clipboard"}),uM(e)}}const hEe=e=>Promise.all(e.map(t=>fetch(t).then(r=>r.text()))),mEe=e=>{const t=e.lastIndexOf("token=");return t?e.substring(0,t-1):e},gEe=e=>e.split(".").pop();function Ff(e,t="en-US",r="USD"){const n={style:"currency",currency:r},o=new Intl.NumberFormat(t,n),l=new Intl.NumberFormat(t,{...n,maximumFractionDigits:0}),u=o.format(e);return u.includes(".")?u:l.format(e)}function Pg(e){e=e.replace(/^#/,"");const t=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),n=parseInt(e.substring(4,6),16);return(.299*t+.587*r+.114*n)/255>.5?"black":"white"}function vpe(e){const t=window.fbq;t&&t("track",e)}function dM(e){let t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.append(t)),t.href=e}const ype=e=>document.title=e,xpe=S.lazy(()=>Xe(()=>import("./AppSubscriptionIndicator-HjYMbDCK.js"),__vite__mapDeps([28,29,30]))),Spe=S.lazy(()=>Xe(()=>import("./AppOverviewPage-nv2CZ3Xe.js"),__vite__mapDeps([31,32,33]))),Epe=S.lazy(()=>Xe(()=>import("./AppServicesPage-Cr6RJcTQ.js"),__vite__mapDeps([34,35,36,29]))),Ape=S.lazy(()=>Xe(()=>
18import("./AppSettingsPage-BfWD31AJ.js"),[])),Rpe=S.lazy(()=>Xe(()=>import("./AppFeatureFlagPage-CGMQ00MX.js"),[])),Cpe=S.lazy(()=>Xe(()=>import("./AppMetricsPage-BQCq2Nsn.js"),[]));function fM(e){const{isOpen:t,onClose:r,appId:n}=e,[o,l]=S.useState();async function u(){const f=await Yl.GetAdminOverviewData({appId:n}).catch(h=>{$r(h,!0),r()});f&&l(f)}return S.useEffect(()=>{u()},[e.appId]),p.jsx(oS,{open:t,onOpenChange:e.onClose,size:"lg",children:p.jsxs(Vo,{children:[p.jsx(cS,{onClick:e.onClose,zIndex:1}),p.jsx(U6,{overflow:"hidden",children:!!o&&p.jsx(Tpe,{appData:o})})]})})}function Tpe(e){const t=[p.jsx(Spe,{appData:e.appData}),p.jsx(Epe,{appData:e.appData}),p.jsx(Ape,{appData:e.appData}),p.jsx(Rpe,{appData:e.appData}),p.jsx(Cpe,{appData:e.appData})],[r,n]=S.useState(0),o=()=>n(Math.min(r+1,t.length-1)),l=()=>n(Math.max(r-1,0));return p.jsxs(sS,{bgColor:"bg.dialogBody",children:[p.jsx(F6,{minH:"80px",children:p.jsxs(Oe,{justifyContent:"space-between",minWidth:"50%",maxWidth:"60%",gap:"4",h:"3rem",children:[p.jsxs(Oe,{direction:"column",children:[p.jsx(De,{fontWeight:"700",fontSize:"20px",whiteSpace:"nowrap",children:e.appData.name}),p.jsx(_e,{fontWeight:"300",fontSize:"12px",color:"#657488",cursor:"pointer",onClick:jb(e.appData.id),children:`${e.appData.id.substring(0,15)}...`})]}),p.jsx(wpe,{appData:e.appData})]})}),p.jsx(lS,{asChild:!0,children:p.jsx(wu,{})}),p.jsx(uS,{minH:"500px",overflow:"hidden",maxH:"500px",children:p.jsx(S.Suspense,{fallback:p.jsx(Oo,{}),children:t[r]})}),p.jsx(V6,{className:"Dialog.-pad Dialog.-footer",padding:"0 24px",marginBottom:"18px",children:p.jsx(Cf,{guard:[nn.IAM_Root.ROOT.SELF],target:Mb.USER,children:p.jsx(Oe,{gap:3,h:"40px",justifyContent:"flex-end",w:"100%",children:p.jsxs(Oe,{gap:".25rem",children:[p.jsx(Jn,{size:"md","aria-label":"previous page",disabled:r<=0,onClick:l,variant:"subtle",children:p.jsx(hpe,{})}),p.jsx(Jn,{size:"md","aria-label":"next page",disabled:r>=t.length-1,onClick:o,variant:"subtle",children:p.jsx(ppe,{})})]})})})})]})}function wpe(e){const t=jb(e.appData.stripeCustomerId);return p.jsx(Cf,{guard:In.IsRoot,target:Mb.USER,children:p.jsxs(Oe,{mr:"auto",my:"auto",children:[p.jsx(S.Suspense,{fallback:p.jsx(Oo,{}),children:p.jsx(xpe,{subscriptionData:e.appData.coreService})}),p.jsx(Oe,{ml:".75rem",children:p.jsxs(De,{position:"relative",display:"inline-block",my:"auto",children:[p.jsx(Ua,{href:`https://dashboard.stripe.com/customers/${e.appData.stripeCustomerId}`,my:"auto",h:"inherit",children:p.jsx(nr,{src:bpe,alt:"Firebase",height:"1.5rem",objectFit:"contain"})}),p.jsx(Jn,{position:"absolute",top:"-5",right:"-5",borderRadius:"full",bg:"white",size:"xs","aria-label":"Copy Firebase ID",onClick:t,color:"primary.500",children:p.jsx(lM,{size:"8px"})})]})})]})})}const bEe=Object.freeze(Object.defineProperty({__proto__:null,default:fM},Symbol.toStringTag,{value:"Module"})),_pe=()=>{const{activeApp:e}=ju(),{onOpen:t,onClose:r,open:n}=o5();return p.jsxs(Xr,{h:"full",children:[p.jsx(Xr,{color:"neutral.700",bg:"white",borderRadius:"full",p:"14px",cursor:"pointer",onClick:t,children:p.jsx(ope,{size:20})}),!!e&&p.jsx(S.Suspense,{children:p.jsx(fM,{isOpen:n,appId:e.id,onClose:r})})]})},Ope={fontWeight:"normal",color:"#EDF3FA",bg:"#2C2C2C",boxShadow:"0px 5px 30px rgba(0, 0, 0, .15)",borderRadius:"10px",padding:"14px 24px"},Qx=S.forwardRef(function(t,r){const{showArrow:n,children:o,disabled:l,portalled:u=!0,content:f,contentProps:h,portalRef:m,...b}=t;return l||typeof f=="string"&&!f?o:p.jsxs(OQ,{...b,children:[p.jsx(IQ,{asChild:!0,children:o}),p.jsx(Vo,{disabled:!u,container:m,children:p.jsx(qQ,{children:p.jsxs(PQ,{...Ope,ref:r,...h,children:[n&&p.jsx(kQ,{children:p.jsx(X6,{})}),f]})})})]})});function gl({to:e,icon:t,title:r,active:n,newTab:o,autoActive:l,onNavIntercept:u}){const{pathname:f}=yn(),{menuDrawerVisible:h,setMenuDrawerVisible:m}=Kl(),b=()=>m(!1),x=!!l&&f.startsWith(e)||!!n,E=T=>{if(u){T.preventDefault(),u();return}b()};return p.jsx(Mo,{to:e,target:o!=null&&o?"_blank":"_self",children:p.jsx(Qx,{content:r,positioning:{placement:"right"},showArrow:!0,disabled:!0,children:p.jsxs(Xr,{justifyContent:{base
18:"flex-start",md:"center"},flexDir:{base:"row",md:"column"},bg:x?h?"rgba(43, 111, 242, .1)":"primary.500":"transparent",color:x?h?"primary.500":"white":"text.light",_hover:{color:h?"primary.500":"white",bg:h?"rgba(43, 111, 242, .1)":"primary.500"},borderRadius:h?"0":"16px",gap:{base:"18px",md:"6px"},px:{base:"12px",md:"8px"},py:{base:"14px",md:"12px"},mx:{base:"8px",md:"0"},my:"2px",overflow:"hidden",onClick:E,children:[t,p.jsx(_e,{display:"block",fontWeight:"bold",fontSize:{base:"14px",md:"11px"},lineHeight:{base:"1.3",md:"1.2"},textAlign:"center",maxLines:2,wordBreak:"break-word",children:r})]})})})}function vEe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"},child:[]}]})(e)}function yEe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"},child:[]},{tag:"path",attr:{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"},child:[]}]})(e)}function Ipe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.27 3.27a.997.997 0 0 0 1.414 0l1.586-1.586a.997.997 0 0 0 0-1.414l-3.27-3.27a1 1 0 0 0-1.023-.242L10.5 9.5l-.96-.96 2.68-2.643A3.005 3.005 0 0 0 16 3q0-.405-.102-.777l-2.14 2.141L12 4l-.364-1.757L13.777.102a3 3 0 0 0-3.675 3.68L7.462 6.46 4.793 3.793a1 1 0 0 1-.293-.707v-.071a1 1 0 0 0-.419-.814zm9.646 10.646a.5.5 0 0 1 .708 0l2.914 2.915a.5.5 0 0 1-.707.707l-2.915-2.914a.5.5 0 0 1 0-.708M3 11l.471.242.529.026.287.445.445.287.026.529L5 13l-.242.471-.026.529-.445.287-.287.445-.529.026L3 15l-.471-.242L2 14.732l-.287-.445L1.268 14l-.026-.529L1 13l.242-.471.026-.529.445-.287.287-.445.529-.026z"},child:[]}]})(e)}function xEe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5"},child:[]}]})(e)}function SEe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 2h2v2H2z"},child:[]},{tag:"path",attr:{d:"M6 0v6H0V0zM5 1H1v4h4zM4 12H2v2h2z"},child:[]},{tag:"path",attr:{d:"M6 10v6H0v-6zm-5 1v4h4v-4zm11-9h2v2h-2z"},child:[]},{tag:"path",attr:{d:"M10 0v6h6V0zm5 1v4h-4V1zM8 1V0h1v2H8v2H7V1zm0 5V4h1v2zM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8zm0 0v1H2V8H1v1H0V7h3v1zm10 1h-1V7h1zm-1 0h-1v2h2v-1h-1zm-4 0h2v1h-1v1h-1zm2 3v-1h-1v1h-1v1H9v1h3v-2zm0 0h3v1h-2v1h-1zm-4-1v1h1v-2H7v1z"},child:[]},{tag:"path",attr:{d:"M7 12h1v3h4v1H7zm9 2v2h-3v-1h2v-1z"},child:[]}]})(e)}function qpe(e){return he({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"},child:[]}]})(e)}const Na={DASHBOARD:{to:"/admin/dashboard",title:"Dashboard",icon:p.jsx(ipe,{size:24}),autoActive:!0,policies:In.IsElevatedAdmin},BUILD_APP:{to:"/app/builder",title:"Build App",icon:p.jsx(Mde,{size:24}),autoActive:!0,policies:In.ReadAppBuilder},CLIENTS:{to:"/app/users",title:"Clients",icon:p.jsx(Tde,{size:24}),autoActive:!0,policies:In.ReadAppBuilder},PROGRAMS:{to:"/app/programs",title:"Programs",icon:p.jsx(jde,{size:24}),autoActive:!0,policies:In.ReadAppBuilder},COMMUNITY:{to:"/app/community",title:"Community",icon:p.jsx(Y8,{size:24}),autoActive:!0,policies:In.ReadAppBuilder},WORKFLOWS:{to:"/workflows",title:"Workflows",icon:p.jsx(X8,{size:24}),autoActive:!0,policies:In.ReadAppBuilder},PRICING:{to:"/pricing-plan",title:"Pricing",icon:p.jsx(Vde,{size:24}),autoActive:!0,policies:[nn.AppPricingPlans.WRITE.SELF]}},Ppe={DASHBOARD:Na.DASHBOARD,MARKETING:{to:"/admin/marketing",title:"Marketing",icon:p.jsx(_de,{size:24}),autoActive:!0,policies:In.IsRoot},METRICS:{to:"/admin/metrics",title:"Metrics",icon:p.jsx(qpe,{size:24}),autoActive:!0,policies:In.IsRoot},USERS:{to:"/admin/users",title:"Users",icon:p.jsx(wde,{size:24}),autoActive:!0,policies:In.IsRoot}
18,ORGS:{to:"/admin/orgs",title:"Orgs",icon:p.jsx($de,{size:24}),autoActive:!0,policies:In.IsRoot},TOOLS:{to:"/admin/tools",title:"Tools",icon:p.jsx(Ipe,{size:24}),autoActive:!0,policies:In.IsRoot}},yl={HELP:{to:"https://help.apprabbit.com",title:"Help",icon:p.jsx(Wde,{size:24}),newTab:!0,autoActive:!0},SETTINGS:{to:"/settings",title:"Settings",icon:p.jsx(Hde,{size:24}),autoActive:!0},SIGN_OUT:{to:"/logout",title:"Sign Out",icon:p.jsx(Gde,{size:24}),autoActive:!0}},kpe=[Na.DASHBOARD,Na.BUILD_APP,Na.CLIENTS,Na.PROGRAMS,Na.COMMUNITY],Npe=[Na.PRICING],Dpe=[Na.BUILD_APP.to,yl.SIGN_OUT.to];function AI({onScreenIntercept:e}){const t=VA(In.IsRoot),{setMenuDrawerVisible:r}=Kl(),{spoofAuthn:n,unspoof:o}=Ai(),l=ga(),u=()=>{if(n)return r(!1),o(),l("/admin/dashboard")},f=h=>h.to.startsWith("/")&&!Dpe.includes(h.to)?e:void 0;return p.jsxs(Oe,{w:{md:"96px"},minH:"100vh",overflow:"hidden",flexDir:"column",transitionDuration:"0.3s",borderRightWidth:"1px",borderRightColor:"neutral.400",children:[p.jsx(Xr,{justifyContent:"center",w:"full",h:"70px",borderBottomWidth:"1px",borderBottom:"neutral.400",children:p.jsx(Mo,{to:"/",children:p.jsx(nr,{src:Db,alt:"",maxH:"40px"})})}),p.jsxs(Oe,{w:"full",justifyContent:"space-between",flexGrow:1,flexDir:"column",px:{base:"12px",md:"8px"},py:{base:"24px",md:"12px"},children:[p.jsxs(Oe,{w:"full",flexGrow:1,flexDir:"column",children:[p.jsx(We,{if:t,children:Object.values(Ppe).map((h,m)=>p.jsx(Cf,{guard:h.policies,children:p.jsx(gl,{...h,onNavIntercept:f(h)})},m))}),p.jsxs(We,{if:!t,children:[kpe.map((h,m)=>p.jsx(Cf,{guard:h.policies,children:p.jsx(gl,{...h,onNavIntercept:f(h)})},`primary-${m}`)),p.jsx(gl,{...Na.WORKFLOWS,onNavIntercept:f(Na.WORKFLOWS)}),Npe.map((h,m)=>p.jsx(Cf,{guard:h.policies,children:p.jsx(gl,{...h,onNavIntercept:f(h)})},`post-${m}`))]}),p.jsxs(We,{if:!t,children:[p.jsx(gl,{...yl.HELP,onNavIntercept:f(yl.HELP)}),p.jsx(gl,{...yl.SETTINGS,onNavIntercept:f(yl.SETTINGS)})]}),p.jsx(gl,{...yl.SIGN_OUT,onNavIntercept:f(yl.SIGN_OUT)})]}),p.jsxs(Oe,{wrap:"wrap",justifyContent:"space-around",children:[!!n&&p.jsx(Oe,{h:"full",children:p.jsx(Xr,{h:"full",children:p.jsx(Xr,{color:"neutral.700",bg:"white",borderRadius:"full",p:"14px",cursor:"pointer",onClick:u,children:p.jsx(Pde,{size:20})})})}),!!n&&p.jsx(_pe,{})]})]})]})}const Mpe=S.lazy(()=>Xe(()=>import("./Header-BuC96mfm.js"),__vite__mapDeps([37,38,30,29])));function jpe({children:e}){const{menuDrawerVisible:t,upgradePlanVisible:r,setUpgradePlanVisible:n,publishModalVisible:o,setPublishModalVisible:l,setMenuDrawerVisible:u}=Kl(),[f,h]=S.useState(!1),[m,b]=S.useState(()=>!vI()),x=()=>n(!r),E=()=>l(!o),T=()=>{u(!1),h(!0)};return S.useEffect(()=>{},[t]),p.jsxs(Oe,{w:"100vw",minH:"100dvh",position:"relative",children:[p.jsx(De,{display:{base:"none",md:"block"},bg:"white",borderRightWidth:"1px",borderRightColor:"neutral.400",zIndex:"10",transitionDuration:"0.3s",children:p.jsx(AI,{})}),p.jsx(NX,{open:!!t,placement:"start",onOpenChange:()=>u(!t),size:"xs",children:p.jsxs(Vo,{children:[p.jsx(jX,{}),p.jsx(DX,{children:p.jsx(MX,{bg:"bg.dialogBody",p:"0px",children:p.jsx(LX,{p:"0px",children:p.jsx(AI,{onScreenIntercept:T})})})})]})}),p.jsxs(De,{w:{base:"full",md:"calc(100vw - 96px)"},bg:"neutral.200",children:[p.jsx(De,{display:{base:"none",md:"block"},children:p.jsx(S.Suspense,{fallback:p.jsx(Oo,{w:"full"}),children:p.jsx(Mpe,{})})}),p.jsx(De,{h:{base:"100dvh",md:"calc(100dvh - 70px)"},pt:{base:"var(--desktop-handoff-offset, 0px)",md:"0"},overflow:"auto",background:"#F8FAFB",children:e})]}),p.jsx(tpe,{open:o??!1,close:E}),p.jsx(vde,{open:r??!1,close:x}),p.jsx(We,{if:m,children:p.jsx(Zde,{onOpen:()=>h(!0),onDismiss:()=>{J8(),b(!1)}})}),p.jsx(rfe,{open:f,onClose:()=>{h(!1),vI()&&b(!1)}})]})}function RI(){const[e,t]=S.useState({}),[r,n]=S.useState(!0),o=window.location.pathname.split("/")[2];S.useEffect(()=>{l()},[]);const l=async()=>{try{const u=await fetch(`${ln}/mercury-backend/mobile/v1/apps/slug/${o}`);if(u.status===200){const f=await u.json(),m=await(await fetch(`${ln}/mercury-backend/mobile/v1/apps/${f.appId}`)).json();t(m)}}catch(u){console.error(u)}finally{n(!1)}};return r?p.jsx(p.Fragment,{}):p.jsxs(De,{p:4,h:"100vh",overflowY:"scroll",fontFamily:"Helvetica, Arial, sans-serif",children:[p.jsx(vr,{as:"h1",size:"xl",mb:4,fontFamily:"Helvetica, Arial, sans-serif",children:e.name?`${e.name} Privacy Policy`:"Privacy Policy"}),p.jsxs(_e,{children:["This Privacy Policy describes the policies and practices of ",e.name||"AppRabbit",' ("we," "us," or "our") regarding the collection, use, and disclosure of personal information when you use our fitness application (',e.name?`${e.name} or `:"",'the "App"). We are committed to protecting your privacy and ensuring the security of your personal information. By accessing or using ',e.name||"an AppRabbit app",", you agree to the terms and conditions of this Privacy Policy.",p.jsx("br",{}),p.jsx("br",{}),"1. Information We Collect:",p.jsx("br",{}),p.jsx("br",{}),"1.1 Personal Information:",p.jsx("br",{}),p.jsx("br",{}),"- When you register an account with ",e.name||"an AppRabbit app",", we may collect personal information such as your name, email address, age, gender, and any other information you voluntarily provide.",p.jsx("br",{}),"- We may collect health-related information, such as your height, weight, exercise habits, and fitness goals to personalize your experience within the App.",p.jsx("br",{}),"- With your explicit consent, we may read and write health and fitness data through Apple HealthKit (iOS) and Google Health Connect (Android), such as workout data, activity metrics, heart rate, steps, calories burned, and other health-related data supported by these platforms.",p.jsx("br",{}),p.jsx("br",{}),"1.2 Usage Information:",p.jsx("br",{}),p.jsx("br",{}),"- When you use ",e.name||"an AppRabbit app",", we automatically collect certain information about your device, including your IP address, device type, operating system, and mobile network information.",p.jsx("br",{}
18),"- We may also collect information about your usage of the App, such as the features you use, the duration and frequency of your use, and the actions you take within the App.",p.jsx("br",{}),p.jsx("br",{}),"1.3 Location Information:",p.jsx("br",{}),p.jsx("br",{}),"- With your consent, ",e.name||"an AppRabbit app"," may collect and process your precise location information, obtained through GPS, Wi-Fi, or other similar technologies.",p.jsx("br",{}),"- We use this information to provide location-based features, such as calculating the distance you have traveled or recommending nearby fitness facilities.",p.jsx("br",{}),p.jsx("br",{}),"1.4 Apple HealthKit and Google Health Connect Data:",p.jsx("br",{}),p.jsx("br",{}),"- ",e.name||"An AppRabbit app"," may integrate with Apple HealthKit (on iOS devices) and Google Health Connect (on Android devices) to read and write health and fitness data, including but not limited to workout sessions, activity data, heart rate, steps, distance, and calories burned.",p.jsx("br",{}),"- Access to HealthKit and Health Connect data requires your explicit opt-in consent through the App's user interface. You may grant or revoke access at any time through your device's system settings.",p.jsx("br",{}),"- Health data obtained from HealthKit and Health Connect is used solely to provide and improve fitness-related features within the App, such as tracking your workouts, displaying activity summaries, and personalizing your fitness experience.",p.jsx("br",{}),"- We store HealthKit and Health Connect data securely on our servers to enable the App's core fitness tracking functionality.",p.jsx("br",{}),"- We do ",p.jsx("strong",{children:"not"})," sell HealthKit or Health Connect data to third parties.",p.jsx("br",{}),"- We do ",p.jsx("strong",{children:"not"})," share HealthKit or Health Connect data with third parties for advertising, marketing, or data brokerage purposes.",p.jsx("br",{}),"- We do ",p.jsx("strong",{children:"not"})," use HealthKit or Health Connect data for purposes unrelated to the App's health and fitness functionality.",p.jsx("br",{}),"- HealthKit and Health Connect data is not transferred to third parties except as necessary to provide the App's core functionality, and only with your consent. Any such transfers comply with Apple's HealthKit and Google's Health Connect developer requirements.",p.jsx("br",{}),p.jsx("br",{}),"2. Use of Information:",p.jsx("br",{}),p.jsx("br",{}),"- We use the collected information to provide, maintain, and improve ",e.name||"an AppRabbit app",", including personalizing your experience and providing you with relevant content and recommendations.",p.jsx("br",{}),"- We may use your email address to send you administrative notifications, updates about the App, and marketing communications (you can opt-out at any time).",p.jsx("br",{}),"- We may aggregate and anonymize the collected information to generate statistical and analytical insights to improve the App and develop new features.",p.jsx("br",{}),p.jsx("br",{}),"3. Sharing of Information:",p.jsx("br",{}),p.jsx("br",{}),"- We may share your personal information with trusted third-party service providers who assist us in delivering our services and operating the App. These providers are bound by confidentiality obligations and are prohibited from using your information for any other purposes.",p.jsx("br",{}),"- We may disclose your personal information if required by law, legal process, or government request, or if we believe it is necessary to protect our rights, property, or safety or that of others.",p.jsx("br",{}),"- In the event of a merger, acquisition, or sale of all or a portion of our assets, your personal information may be transferred as part of the transaction, but we will notify you and ensure the confidentiality of your information.",p.jsx("br",{}),p.jsx("br",{}),"4. Data Security:",p.jsx("br",{}),p.jsx("br",{}),"- We implement appropriate technical and organizational measures to protect your personal information from unauthorized access, loss, misuse, or alteration.",p.jsx("br",{}),"- While we strive to protect your personal information, no method of transmission over the Internet or electronic storage is completely secure. Therefore, we cannot guarantee absolute security.",p.jsx("br",{}),p.jsx("br",{}),"5. Children's Privacy:",p.jsx("br",{}),p.jsx("br",{}),"- ",e.name||"an AppRabbit app"," is not intended for individuals under the age of 16. We do not knowingly collect personal information from children under 16. If you become aware that your child has provided us with personal information without your consent, please contact us, and we will promptly delete the information.",p.jsx("br",{}),p.jsx("br",{}),"6. Your Rights:",p.jsx("br",{}),p.jsx("br",{}),"- You have the right to access, update, and delete your personal information stored in",e.name||"an AppRabbit app",". You can do this through the App's settings or by contacting us directly.",p.jsx("br",{}),"- You may also have the right to restrict or object to the processing of your personal information in certain circumstances, subject to applicable laws.",p.jsx("br",{}),p.jsx("br",{}),"7. Changes to this Privacy Policy:",p.jsx("br",{}),p.jsx("br",{}),"- We may update this Privacy Policy from time to time. We will notify you of any material changes by posting the updated Privacy Policy on the App or by other reasonable means. Please review this Privacy Policy periodically for any updates.",p.jsx("br",{}),p.jsx("br",{}),"8. Contact Us:",p.jsx("br",{}),p.jsx("br",{}),"- If you have any questions, concerns, or requests regarding this Privacy Policy or our privacy practices, please contact us at [email protected].",p.jsx("br",{}),p.jsx("br",{}),"By using ",e.name||"an AppRabbit app",", you acknowledge that you have read and understood this Privacy Policy and agree to the collection, use, and disclosure of your personal information as described herein."]})]})}function Lpe(){const[e,t]=S.useState(""),[r,n]=S.useState(""),o=window.location.pathname.split("/")[2];return S.useEffect(()=>{(async()=>{try{const u=await fetch(`${ln}/mercury-backend/mobile/v1/apps/slug/${o}`);if(u.status===200){const f=await u.json(),m=await(await fetch(`${ln}/mercury-backend/mobile/v1/apps/${f.appId}`)).json();t(m.name),n(m.adminEmail??"[email protected]")}}catch(u){console.error(u)}})()},[]),!e||!r?p.jsx(_e,{children:"Loading..."}):p.jsxs(De,{p:6,height:"100vh",overflowY:"scroll",fontFamily:"Helvetica, Arial, sans-serif",children:[p.jsxs(vr,{fontFamily:"Helvetica, Arial, sans-serif",mb:4,children:["End-User License Agreement (EULA) for ",e]}),p.jsx(_e,{mb:4,children:"Effective Date: September 27, 2023"}),p.jsxs(_e,{mb:4,children:["By downloading, installing, or using ",e,", you (the âUserâ) agree to be bound by the terms and conditions contained in this End-User License Agreement (EULA). If you do not agree with these terms, please do not install or use the App."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"1. License Grant"}
18),p.jsxs(_e,{mb:4,children:[e," grants you a non-exclusive, non-transferable, revocable license to use the App for personal, non-commercial purposes, subject to the terms of this EULA."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"2. Community Features"}),p.jsxs(_e,{mb:4,children:["The App includes community features allowing Users to post text, images, video, and audio (collectively, âUser Contentâ). By posting User Content, you grant ",e," a perpetual, non-exclusive, worldwide, royalty-free license to use, reproduce, distribute, and display such content."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"3. Objectionable Content and Abusive Behavior"}),p.jsxs(_e,{mb:4,children:[e," has zero tolerance for objectionable content or abusive users. Objectionable content includes, but is not limited to: hate speech, graphic violence, illegal activities, explicit sexual content, and any form of discrimination. Users found posting objectionable content or exhibiting abusive behavior will have their content removed, and may be banned from using the App.",e," reserves the right to report severe violations to relevant authorities."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"4. Content Reporting and Moderation"}),p.jsxs(_e,{mb:4,children:["Users can report objectionable content or abusive behavior to ",e," through the Appâs reporting feature.",e," reserves the right, but is not obligated, to monitor and moderate User Content. However, we do not endorse or assume liability for any User Content."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"5. Termination"}),p.jsxs(_e,{mb:4,children:[e," reserves the right to terminate your access to the App at any time, for any reason, including but not limited to violations of this EULA."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"6. Warranty and Liability"}),p.jsxs(_e,{mb:4,children:["The App is provided âas isâ without warranty of any kind. ",e," disclaims all warranties, whether express or implied, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. In no event shall ",e," be liable for any damages, including, but not limited to, direct, indirect, incidental, or consequential damages, arising out of the use or inability to use the App."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"7. Amendments"}),p.jsxs(_e,{mb:4,children:[e," may update or modify this EULA from time to time. The most current version will always be available within the App. Continued use of the App after any changes signifies your acceptance of the updated EULA."]}),p.jsx(vr,{fontFamily:"Helvetica, Arial, sans-serif",size:"md",my:4,children:"8. Contact"}),p.jsxs(_e,{mb:4,children:["For any questions or concerns regarding this EULA, please contact AppRabbit support at"," ",p.jsx(Ua,{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),p.jsx(_e,{mt:6,children:"By using the App, you confirm that you have read, understood, and agreed to be bound by this EULA."})]})}async function zpe(e){return sue.endpoint("/userinfo").auth(()=>({Authorization:`Bearer ${e}`})).get().exec()}function pM(){const[e,t]=S.useState(void 0),o=Uce({onSuccess:async l=>{if(!l)return;const u=await zpe(l.access_token);if(u.status!==200)return;const f=await u.json();t(f)},onError:l=>console.error(l)});return{googleAccount:e,onGoogleLogin:o}}function hM(e){return p.jsxs(De,{w:"100%",children:[p.jsxs(ut,{w:"full",h:"52px",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.10)",gap:"10px",mb:"10px",onClick:e.google,children:[p.jsx(ape,{size:24}),"Continue with Google"]}),p.jsx(ut,{display:"flex",w:"full",h:"52px",variant:"outline",fontWeight:"medium",borderRadius:"14px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.10)",disabled:e.loading,onClick:e.email,children:"Continue with Email"})]})}function Upe(e){return p.jsx(De,{maxHeight:"210px",overflowY:"auto",children:e.options.availableApps.map(({appName:t,appId:r,appIcon:n},o)=>p.jsx(ut,{display:"flex",w:"full",h:"52px",variant:"outline",fontWeight:"medium",borderRadius:"14px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.10)",justifyContent:"flex-start",disabled:e.loading,onClick:()=>
18e.selectApp(r),children:p.jsxs(Oe,{mx:"auto",children:[p.jsx(nr,{src:n??"https://apprabbit.com/favicon.ico",w:"24px",borderRadius:"50%",mx:"1rem"}),p.jsx(_e,{textAlign:"left",w:"8rem",textOverflow:"ellipsis",overflowX:"hidden",lineHeight:"24px",height:"24px",children:t})]})},o))})}const mM=e=>function(r){r.key==="Enter"&&e()};function Vpe(e){const[t,r]=S.useState(""),n=l=>r(l.target.value),o=()=>e.saveEmail(t.replaceAll(" ","").toLowerCase());return p.jsxs(Oe,{display:"flex",flexDir:"column",children:[p.jsx(Xt,{required:!0,children:p.jsx(tr,{type:"email",placeholder:"Email",h:"52px",fontSize:"16px",bg:"white",disabled:e.loading,onChange:n,autoFocus:!0,onKeyUp:mM(o)})}),p.jsx(Oe,{w:"full",h:"52px",gap:"5px",mt:"10px",children:p.jsx(ut,{type:"submit",flexGrow:1,h:"full",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:e.loading,onClick:o,children:"Continue"})})]})}function Fpe(e){const t=S.useRef(null),[r,n]=S.useState(!1),[o,l]=S.useState(""),u=m=>l(m.target.value),f=()=>e.submitPassword(o);function h(){n(!r),t?.current?.focus()}return p.jsxs(Oe,{display:"flex",flexDir:"column",children:[p.jsx(Xt,{required:!0,children:p.jsx(B6,{endElement:p.jsx(Jn,{"aria-label":`${r?"Hide":"Show"} Password`,onClick:h,variant:"ghost",children:r?p.jsx(npe,{}):p.jsx(rpe,{})}),children:p.jsx(tr,{ref:t,type:r?"text":"password",placeholder:"Password",h:"52px",fontSize:"16px",bg:"white",disabled:e.loading,onChange:u,autoFocus:!0,onKeyUp:mM(f)})})}),p.jsx(Oe,{w:"full",h:"52px",gap:"5px",mt:"10px",children:p.jsx(ut,{type:"submit",flexGrow:1,h:"full",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:e.loading,onClick:f,children:"Log In"})})]})}const gM="/assets/login-bg-compressed-BN0fc4Tc.jpg";function bM(e){return p.jsxs(Xr,{w:"full",h:"100vh",flexDir:"column",position:"relative",overflow:"hidden",bg:"black",children:[p.jsx(Oe,{w:"calc(100% - 40px)",maxW:"400px",flexDir:"column",alignItems:"center",bg:"white",borderRadius:{base:"30px",md:"12px"},px:"20px",py:"50px",gap:"20px",mx:"20px",zIndex:1,boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.5)",minH:"385px",children:e.children}),p.jsx($pe,{})]})}function $pe(){return p.jsx(nr,{position:"fixed",width:"100%",height:"100%",backgroundPosition:"center",objectFit:"cover",src:gM,top:0,bottom:0,left:0,right:0,alt:"Horizon UI"})}function Bpe(e){return p.jsx(nr,{src:"/assets/loading.svg",height:"24px",width:"24px",...e})}function Bi(e){return p.jsx(Oe,{flexDir:"column",alignItems:"center",justifyContent:"center",w:"100%",h:"100%",...e.FlexProps,children:p.jsx(Bpe,{...e.ImageProps})})}var Ui=(e=>(e.APP_ID="appId",e.AUTHN_ID="authnId",e.LEAD_ID="leadId",e.ORG_ID="orgId",e.APPUSER_SETUP_PIN="setupPin",e.APPRABBIT_REDIRECT_URI="apprabbitRedirectUri",e.APPRABBIT_ACCESS_TOKEN="apprabbitAccessToken",e.APPRABBIT_REFRESH_TOKEN="apprabbitRefreshToken",e))(Ui||{});const Hpe={newTab:!1,replace:!1,render:p.jsx(Gpe,{})};function vM(e){const t={...Hpe,...e};function r(){if(t.replace)return window.location.replace(t.to);if(t.newTab)return window.open(t.to,"_blank")?.focus();window.location.href=t.to}return S.useEffect(r,[]),t.render}function Gpe(){return p.jsx("div",{style:{position:"fixed",zIndex:100,height:"100vh",width:"100vw"},children:"Redirecting you now"})}const yM=()=>{const e=ga();return(r,n={},o=[])=>{const l=new URL(r,window.location.origin);Object.entries(l.searchParams).filter(([u])=>!o.includes(u)).forEach(([u])=>l.searchParams.delete(u)),e(`${l.pathname}${l.search}`,n)}};function Vm(e){const t=yM();return S.useEffect(()=>{t(e.to,e.options,e.paramsToOmit)},[e.to,e.paramsToOmit,e.options]),p.jsx(p.Fragment,{})}const Wpe="https://api.leadconnectorhq.com/widget/form/0260sSGT0P3PWk4AcD0X";function Ype(){const e=yM(),[t,r]=S.useState(["SELECT_METHOD"]),[n,o]=S.useState(),[l,u]=S.useState(),[f,h]=S.useState(!1),[m,b]=S.useState({availableApps:[]}),{googleAccount:x,onGoogleLogin:E}=pM(),{authRefresh:T,auth:C}=Ai(),[R,w]=S.useState();S.useEffect(()=>{l&&Yl.PublicInfo({appId:l}).then(G=>w(G))},[l]);const I=G=>r([...t,G]),P=()=>r(t.slice(0,t.length-1)),q=()=>E(),D=()=>I("ENTER_EMAIL"),O=t[t.length-1]??"SELECT_METHOD";async function N(G){if(!l||!n||!G)return;h(!0);const B=await hu.LoginApp({params:{appId:l},data:{email:n,password:G}}).catch(L=>{$r(L),h(!1)});B&&(pu("USER",B),await T(),h(!1),e("/auto-redirect",{},[Ui.APPRABBIT_REDIRECT_URI]))}function V(G){I("ENTER_PASSWORD"),u(G)}async function J(G){if(!G)return h(!1);const B=G.toLowerCase();o(B),await W(B).catch($r),h(!1)}async function W(G){h(!0);const B=await hu.LoginOptions({email:G}).catch(L=>(h(!1),L.httpStatus!==401&&$r(L),{availableApps:[]}));if(h(!1),b(B),B.availableApps.length>1)return I("SELECT_APP");if(B.availableApps.length===1)return u(B.availableApps[0].appId),I("ENTER_PASSWORD");if(!x)return St.error({title:"Email Not Found!"});St.info({title:"Create an account to get started!"})}return S.useEffect(()=>{x&&(o(x.email.toLowerCase()),W(x.email.toLowerCase()))}
18,[x]),C?p.jsx(Vm,{to:"/auto-redirect"}):p.jsxs(bM,{children:[p.jsx(nr,{src:R?.appIcon??Db,alt:"",width:"44px",borderRadius:"6px"}),p.jsx(vr,{as:"h1",fontWeight:"bold",fontSize:"20px",children:R?.name?`Sign in to ${R?.name}`:" Welcome to AppRabbit"}),p.jsxs(De,{w:"100%",children:[p.jsx(We,{if:O==="SELECT_METHOD",children:p.jsx(hM,{loading:f,google:q,email:D})}),p.jsx(We,{if:O==="ENTER_EMAIL",children:p.jsx(Vpe,{loading:f,saveEmail:J})}),p.jsxs(We,{if:O==="SELECT_APP",children:[p.jsx(Upe,{options:m,loading:f,selectApp:V}),p.jsx(Oe,{w:"full",h:"52px",gap:"5px",mt:"20px",children:p.jsx(ut,{w:"100px",h:"full",variant:"outline",fontWeight:"medium",borderRadius:"14px",disabled:f,onClick:P,children:"Back"})})]}),p.jsx(We,{if:O==="ENTER_PASSWORD",children:p.jsx(Fpe,{loading:f,submitPassword:N})})]}),p.jsx(We,{if:["ENTER_EMAIL","SELECT_METHOD"].includes(O),children:p.jsxs(Oe,{w:"full",alignItems:"center",justifyContent:"space-between",children:[p.jsx(_e,{fontSize:"16px",color:"text.light",children:"New to AppRabbit?"}),p.jsx(Mo,{to:Wpe,children:p.jsx(_e,{fontWeight:"bold",color:"primary.500",children:"Sign Up"})})]})}),p.jsx(We,{if:O==="ENTER_PASSWORD",children:p.jsxs(Oe,{w:"full",h:"52px",gap:"5px",children:[p.jsx(ut,{w:"100px",h:"full",variant:"outline",fontWeight:"medium",borderRadius:"14px",disabled:f,onClick:P,children:"Back"}),p.jsx(_e,{w:"100%",fontSize:"14px",textAlign:"end",my:"auto",children:p.jsx(Mo,{to:`/forgot-password?appId=${l}&email=${n}`,children:"Forgot password?"})})]})}),f&&p.jsx(Bi,{})]})}var Kpe=function(t){return Xpe(t)&&!Qpe(t)};function Xpe(e){return!!e&&typeof e=="object"}function Qpe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ehe(e)}var Jpe=typeof Symbol=="function"&&Symbol.for,Zpe=Jpe?Symbol.for("react.element"):60103;function ehe(e){return e.$$typeof===Zpe}function the(e){return Array.isArray(e)?[]:{}}function kg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?$f(the(e),e,t):e}function rhe(e,t,r){return e.concat(t).map(function(n){return kg(n,r)})}function nhe(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(o){n[o]=kg(e[o],r)}),Object.keys(t).forEach(function(o){!r.isMergeableObject(t[o])||!e[o]?n[o]=kg(t[o],r):n[o]=$f(e[o],t[o],r)}),n}function $f(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||rhe,r.isMergeableObject=r.isMergeableObject||Kpe;var n=Array.isArray(t),o=Array.isArray(e),l=n===o;return l?n?r.arrayMerge(e,t,r):nhe(e,t,r):kg(t,r)}$f.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return $f(n,o,r)},{})};var Jx=$f,xM=typeof global=="object"&&global&&global.Object===Object&&global,ihe=typeof self=="object"&&self&&self.Object===Object&&self,Ja=xM||ihe||Function("return this")(),Ps=Ja.Symbol,SM=Object.prototype,ahe=SM.hasOwnProperty,ohe=SM.toString,nf=Ps?Ps.toStringTag:void 0;function she(e){var t=ahe.call(e,nf),r=e[nf];try{e[nf]=void 0;var n=!0}catch{}var o=ohe.call(e);return n&&(t?e[nf]=r:delete e[nf]),o}var lhe=Object.prototype,che=lhe.toString;function uhe(e){return che.call(e)}var dhe="[object Null]",fhe="[object Undefined]",CI=Ps?Ps.toStringTag:void 0;function Xl(e){return e==null?e===void 0?fhe:dhe:CI&&CI in Object(e)?she(e):uhe(e)}function EM(e,t){return function(r){return e(t(r))}}var FA=EM(Object.getPrototypeOf,Object);function Ql(e){return e!=null&&typeof e=="object"}var phe="[object Object]",hhe=Function.prototype,mhe=Object.prototype,AM=hhe.toString,ghe=mhe.hasOwnProperty,bhe=AM.call(Object);function TI(e){if(!Ql(e)||Xl(e)!=phe)return!1;var t=FA(e);if(t===null)return!0;var r=ghe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&AM.call(r)==bhe}function vhe(){this.__data__=[],this.size=0}function RM(e,t){return e===t||e!==e&&t!==t}function Lb(e,t){for(var r=e.length;r--;)if(RM(e[r][0],t))return r;return-1}var yhe=Array.prototype,xhe=yhe.splice;function She(e){var t=this.__data__,r=Lb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xhe.call(t,r,1),--this.size,!0}function Ehe(e){var t=this.__data__,r=Lb(t,e);return r<0?void 0:t[r][1]}function Ahe(e){return Lb(this.__data__,e)>-1}function Rhe(e,t){var r=this.__data__,n=Lb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function $o(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$o.prototype.clear=vhe;$o.prototype.delete=She;$o.prototype.get=Ehe;$o.prototype.has=Ahe;$o.prototype.set=Rhe;function Che(){this.__data__=new $o,this.size=0}function The(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function whe(e){return this.__data__.get(e)}function _he(e){return this.__data__.has(e)}function hp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ohe="[object AsyncFunction]",Ihe="[object Function]",qhe="[object GeneratorFunction]",Phe="[object Proxy]";function CM(e){if(!hp(e))return!1;var t=Xl(e);return t==Ihe||t==qhe||t==Ohe||t==Phe}var n1=Ja["__core-js_shared__"],wI=(function(){var e=/[^.]+$/.exec(n1&&n1.keys&&n1.keys.IE_PROTO||"");
18return e?"Symbol(src)_1."+e:""})();function khe(e){return!!wI&&wI in e}var Nhe=Function.prototype,Dhe=Nhe.toString;function Jl(e){if(e!=null){try{return Dhe.call(e)}catch{}try{return e+""}catch{}}return""}var Mhe=/[\\^$.*+?()[\]{}|]/g,jhe=/^\[object .+?Constructor\]$/,Lhe=Function.prototype,zhe=Object.prototype,Uhe=Lhe.toString,Vhe=zhe.hasOwnProperty,Fhe=RegExp("^"+Uhe.call(Vhe).replace(Mhe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $he(e){if(!hp(e)||khe(e))return!1;var t=CM(e)?Fhe:jhe;return t.test(Jl(e))}function Bhe(e,t){return e?.[t]}function Zl(e,t){var r=Bhe(e,t);return $he(r)?r:void 0}var Bf=Zl(Ja,"Map"),Hf=Zl(Object,"create");function Hhe(){this.__data__=Hf?Hf(null):{},this.size=0}function Ghe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Whe="__lodash_hash_undefined__",Yhe=Object.prototype,Khe=Yhe.hasOwnProperty;function Xhe(e){var t=this.__data__;if(Hf){var r=t[e];return r===Whe?void 0:r}return Khe.call(t,e)?t[e]:void 0}var Qhe=Object.prototype,Jhe=Qhe.hasOwnProperty;function Zhe(e){var t=this.__data__;return Hf?t[e]!==void 0:Jhe.call(t,e)}var eme="__lodash_hash_undefined__";function tme(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Hf&&t===void 0?eme:t,this}function Ul(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ul.prototype.clear=Hhe;Ul.prototype.delete=Ghe;Ul.prototype.get=Xhe;Ul.prototype.has=Zhe;Ul.prototype.set=tme;function rme(){this.size=0,this.__data__={hash:new Ul,map:new(Bf||$o),string:new Ul}}function nme(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zb(e,t){var r=e.__data__;return nme(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ime(e){var t=zb(this,e).delete(e);return this.size-=t?1:0,t}function ame(e){return zb(this,e).get(e)}function ome(e){return zb(this,e).has(e)}function sme(e,t){var r=zb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Fs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fs.prototype.clear=rme;Fs.prototype.delete=ime;Fs.prototype.get=ame;Fs.prototype.has=ome;Fs.prototype.set=sme;var lme=200;function cme(e,t){var r=this.__data__;if(r instanceof $o){var n=r.__data__;if(!Bf||n.length<lme-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Fs(n)}return r.set(e,t),this.size=r.size,this}function zu(e){var t=this.__data__=new $o(e);this.size=t.size}zu.prototype.clear=Che;zu.prototype.delete=The;zu.prototype.get=whe;zu.prototype.has=_he;zu.prototype.set=cme;function ume(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var _I=(function(){try{var e=Zl(Object,"defineProperty");return e({},"",{}),e}catch{}})();function TM(e,t,r){t=="__proto__"&&_I?_I(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var dme=Object.prototype,fme=dme.hasOwnProperty;function wM(e,t,r){var n=e[t];(!(fme.call(e,t)&&RM(n,r))||r===void 0&&!(t in e))&&TM(e,t,r)}function Ub(e,t,r,n){var o=!r;r||(r={});for(var l=-1,u=t.length;++l<u;){var f=t[l],h=void 0;h===void 0&&(h=e[f]),o?TM(r,f,h):wM(r,f,h)}return r}function pme(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var hme="[object Arguments]";function OI(e){return Ql(e)&&Xl(e)==hme}var _M=Object.prototype,mme=_M.hasOwnProperty,gme=_M.propertyIsEnumerable,bme=OI((function(){return arguments})())?OI:function(e){return Ql(e)&&mme.call(e,"callee")&&!gme.call(e,"callee")},mp=Array.isArray;function vme(){return!1}var OM=typeof exports=="object"&&exports&&!exports.nodeType&&exports,II=OM&&typeof module=="object"&&module&&!module.nodeType&&module,yme=II&&II.exports===OM,qI=yme?Ja.Buffer:void 0,xme=qI?qI.isBuffer:void 0,IM=xme||vme,Sme=9007199254740991,Eme=/^(?:0|[1-9]\d*)$/;function Ame(e,t){var r=typeof e;return t=t??Sme,!!t&&(r=="number"||r!="symbol"&&Eme.test(e))&&e>-1&&e%1==0&&e<t}var Rme=9007199254740991;function qM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Rme}var Cme="[object Arguments]",Tme="[object Array]",wme="[object Boolean]",_me="[object Date]",Ome="[object Error]",Ime="[object Function]",qme="[object Map]",Pme="[object Number]",kme="[object Object]",Nme="[object RegExp]",Dme="[object Set]",Mme="[object String]",jme="[object WeakMap]",Lme="[object ArrayBuffer]",zme="[object DataView]",Ume="[object Float32Array]",Vme="[object Float64Array
18]",Fme="[object Int8Array]",$me="[object Int16Array]",Bme="[object Int32Array]",Hme="[object Uint8Array]",Gme="[object Uint8ClampedArray]",Wme="[object Uint16Array]",Yme="[object Uint32Array]",Zt={};Zt[Ume]=Zt[Vme]=Zt[Fme]=Zt[$me]=Zt[Bme]=Zt[Hme]=Zt[Gme]=Zt[Wme]=Zt[Yme]=!0;Zt[Cme]=Zt[Tme]=Zt[Lme]=Zt[wme]=Zt[zme]=Zt[_me]=Zt[Ome]=Zt[Ime]=Zt[qme]=Zt[Pme]=Zt[kme]=Zt[Nme]=Zt[Dme]=Zt[Mme]=Zt[jme]=!1;function Kme(e){return Ql(e)&&qM(e.length)&&!!Zt[Xl(e)]}function $A(e){return function(t){return e(t)}}var PM=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tf=PM&&typeof module=="object"&&module&&!module.nodeType&&module,Xme=Tf&&Tf.exports===PM,i1=Xme&&xM.process,mu=(function(){try{var e=Tf&&Tf.require&&Tf.require("util").types;return e||i1&&i1.binding&&i1.binding("util")}catch{}})(),PI=mu&&mu.isTypedArray,Qme=PI?$A(PI):Kme,Jme=Object.prototype,Zme=Jme.hasOwnProperty;function kM(e,t){var r=mp(e),n=!r&&bme(e),o=!r&&!n&&IM(e),l=!r&&!n&&!o&&Qme(e),u=r||n||o||l,f=u?pme(e.length,String):[],h=f.length;for(var m in e)(t||Zme.call(e,m))&&!(u&&(m=="length"||o&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Ame(m,h)))&&f.push(m);return f}var ege=Object.prototype;function BA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ege;return e===r}var tge=EM(Object.keys,Object),rge=Object.prototype,nge=rge.hasOwnProperty;function ige(e){if(!BA(e))return tge(e);var t=[];for(var r in Object(e))nge.call(e,r)&&r!="constructor"&&t.push(r);return t}function NM(e){return e!=null&&qM(e.length)&&!CM(e)}function HA(e){return NM(e)?kM(e):ige(e)}function age(e,t){return e&&Ub(t,HA(t),e)}function oge(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var sge=Object.prototype,lge=sge.hasOwnProperty;function cge(e){if(!hp(e))return oge(e);var t=BA(e),r=[];for(var n in e)n=="constructor"&&(t||!lge.call(e,n))||r.push(n);return r}function GA(e){return NM(e)?kM(e,!0):cge(e)}function uge(e,t){return e&&Ub(t,GA(t),e)}var DM=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kI=DM&&typeof module=="object"&&module&&!module.nodeType&&module,dge=kI&&kI.exports===DM,NI=dge?Ja.Buffer:void 0,DI=NI?NI.allocUnsafe:void 0;function fge(e,t){if(t)return e.slice();var r=e.length,n=DI?DI(r):new e.constructor(r);return e.copy(n),n}function MM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function pge(e,t){for(var r=-1,n=e==null?0:e.length,o=0,l=[];++r<n;){var u=e[r];t(u,r,e)&&(l[o++]=u)}return l}function jM(){return[]}var hge=Object.prototype,mge=hge.propertyIsEnumerable,MI=Object.getOwnPropertySymbols,WA=MI?function(e){return e==null?[]:(e=Object(e),pge(MI(e),function(t){return mge.call(e,t)}))}:jM;function gge(e,t){return Ub(e,WA(e),t)}function LM(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var bge=Object.getOwnPropertySymbols,zM=bge?function(e){for(var t=[];e;)LM(t,WA(e)),e=FA(e);return t}:jM;function vge(e,t){return Ub(e,zM(e),t)}function UM(e,t,r){var n=t(e);return mp(e)?n:LM(n,r(e))}function yge(e){return UM(e,HA,WA)}function xge(e){return UM(e,GA,zM)}var Zx=Zl(Ja,"DataView"),e2=Zl(Ja,"Promise"),t2=Zl(Ja,"Set"),r2=Zl(Ja,"WeakMap"),jI="[object Map]",Sge="[object Object]",LI="[object Promise]",zI="[object Set]",UI="[object WeakMap]",VI="[object DataView]",Ege=Jl(Zx),Age=Jl(Bf),Rge=Jl(e2),Cge=Jl(t2),Tge=Jl(r2),wo=Xl;(Zx&&wo(new Zx(new ArrayBuffer(1)))!=VI||Bf&&wo(new Bf)!=jI||e2&&wo(e2.resolve())!=LI||t2&&wo(new t2)!=zI||r2&&wo(new r2)!=UI)&&(wo=function(e){var t=Xl(e),r=t==Sge?e.constructor:void 0,n=r?Jl(r):"";if(n)switch(n){case Ege:return VI;case Age:return jI;case Rge:return LI;case Cge:return zI;case Tge:return UI}return t});var wge=Object.prototype,_ge=wge.hasOwnProperty;function Oge(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_ge.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var FI=Ja.Uint8Array;function YA(e){var t=new e.constructor(e.byteLength);return new FI(t).set(new FI(e)),t}function Ige(e,t){var r=t?YA(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qge=/\w*$/;function Pge(e){var t=new e.constructor(e.source,qge.exec(e));return t.lastIndex=e.lastIndex,t}
18var $I=Ps?Ps.prototype:void 0,BI=$I?$I.valueOf:void 0;function kge(e){return BI?Object(BI.call(e)):{}}function Nge(e,t){var r=t?YA(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Dge="[object Boolean]",Mge="[object Date]",jge="[object Map]",Lge="[object Number]",zge="[object RegExp]",Uge="[object Set]",Vge="[object String]",Fge="[object Symbol]",$ge="[object ArrayBuffer]",Bge="[object DataView]",Hge="[object Float32Array]",Gge="[object Float64Array]",Wge="[object Int8Array]",Yge="[object Int16Array]",Kge="[object Int32Array]",Xge="[object Uint8Array]",Qge="[object Uint8ClampedArray]",Jge="[object Uint16Array]",Zge="[object Uint32Array]";function ebe(e,t,r){var n=e.constructor;switch(t){case $ge:return YA(e);case Dge:case Mge:return new n(+e);case Bge:return Ige(e,r);case Hge:case Gge:case Wge:case Yge:case Kge:case Xge:case Qge:case Jge:case Zge:return Nge(e,r);case jge:return new n;case Lge:case Vge:return new n(e);case zge:return Pge(e);case Uge:return new n;case Fge:return kge(e)}}var HI=Object.create,tbe=(function(){function e(){}return function(t){if(!hp(t))return{};if(HI)return HI(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function rbe(e){return typeof e.constructor=="function"&&!BA(e)?tbe(FA(e)):{}}var nbe="[object Map]";function ibe(e){return Ql(e)&&wo(e)==nbe}var GI=mu&&mu.isMap,abe=GI?$A(GI):ibe,obe="[object Set]";function sbe(e){return Ql(e)&&wo(e)==obe}var WI=mu&&mu.isSet,lbe=WI?$A(WI):sbe,cbe=1,ube=2,dbe=4,VM="[object Arguments]",fbe="[object Array]",pbe="[object Boolean]",hbe="[object Date]",mbe="[object Error]",FM="[object Function]",gbe="[object GeneratorFunction]",bbe="[object Map]",vbe="[object Number]",$M="[object Object]",ybe="[object RegExp]",xbe="[object Set]",Sbe="[object String]",Ebe="[object Symbol]",Abe="[object WeakMap]",Rbe="[object ArrayBuffer]",Cbe="[object DataView]",Tbe="[object Float32Array]",wbe="[object Float64Array]",_be="[object Int8Array]",Obe="[object Int16Array]",Ibe="[object Int32Array]",qbe="[object Uint8Array]",Pbe="[object Uint8ClampedArray]",kbe="[object Uint16Array]",Nbe="[object Uint32Array]",Wt={};Wt[VM]=Wt[fbe]=Wt[Rbe]=Wt[Cbe]=Wt[pbe]=Wt[hbe]=Wt[Tbe]=Wt[wbe]=Wt[_be]=Wt[Obe]=Wt[Ibe]=Wt[bbe]=Wt[vbe]=Wt[$M]=Wt[ybe]=Wt[xbe]=Wt[Sbe]=Wt[Ebe]=Wt[qbe]=Wt[Pbe]=Wt[kbe]=Wt[Nbe]=!0;Wt[mbe]=Wt[FM]=Wt[Abe]=!1;function wf(e,t,r,n,o,l){var u,f=t&cbe,h=t&ube,m=t&dbe;if(u!==void 0)return u;if(!hp(e))return e;var b=mp(e);if(b){if(u=Oge(e),!f)return MM(e,u)}else{var x=wo(e),E=x==FM||x==gbe;if(IM(e))return fge(e,f);if(x==$M||x==VM||E&&!o){if(u=h||E?{}:rbe(e),!f)return h?vge(e,uge(u,e)):gge(e,age(u,e))}else{if(!Wt[x])return o?e:{};u=ebe(e,x,f)}}l||(l=new zu);var T=l.get(e);if(T)return T;l.set(e,u),lbe(e)?e.forEach(function(w){u.add(wf(w,t,r,w,e,l))}):abe(e)&&e.forEach(function(w,I){u.set(I,wf(w,t,r,I,e,l))});var C=m?h?xge:yge:h?GA:HA,R=b?void 0:C(e);return ume(R||e,function(w,I){R&&(I=w,w=e[I]),wM(u,I,wf(w,t,r,I,e,l))}),u}var Dbe=1,Mbe=4;function um(e){return wf(e,Dbe|Mbe)}var a1,YI;function jbe(){if(YI)return a1;YI=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n=typeof Element<"u";function o(l,u){if(l===u)return!0;if(l&&u&&typeof l=="object"&&typeof u=="object"){var f=e(l),h=e(u),m,b,x;if(f&&h){if(b=l.length,b!=u.length)return!1;for(m=b;m--!==0;)if(!o(l[m],u[m]))return!1;return!0}if(f!=h)return!1;var E=l instanceof Date,T=u instanceof Date;if(E!=T)return!1;if(E&&T)return l.getTime()==u.getTime();var C=l instanceof RegExp,R=u instanceof RegExp;if(C!=R)return!1;if(C&&R)return l.toString()==u.toString();var w=t(l);if(b=w.length,b!==t(u).length)return!1;for(m=b;m--!==0;)if(!r.call(u,w[m]))return!1;if(n&&l instanceof Element&&u instanceof Element)return l===u;for(m=b;m--!==0;)if(x=w[m],!(x==="_owner"&&l.$$typeof)&&!o(l[x],u[x]))return!1;return!0}return l!==l&&u!==u}return a1=function(u,f){try{return o(u,f)}catch(h){if(h.message&&h.message.match(/stack|recursion/i)||h.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",h.name,h.message),!1;throw h}},a1}var Lbe=jbe();const xl=Fl(Lbe);var zbe=4;function KI(e){return wf(e,zbe)}function BM(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var Ube="[object Symbol]";function KA(e){return typeof e=="symbol"||Ql(e)&&Xl(e)==Ube}var Vbe="Expected a function";function XA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vbe);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],l=r.cache;if(l.has(o))return l.get(o);var u=e.apply(this,n);return r.cache=l.set(o,u)||l,u};return r.cache=new(XA.Cache||Fs),r}XA.Cache=Fs;var Fbe=500;function $be(e){var t=XA(e,function(n){return r.size===Fbe&&r.clear(),n}
18),r=t.cache;return t}var Bbe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hbe=/\\(\\)?/g,Gbe=$be(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bbe,function(r,n,o,l){t.push(o?l.replace(Hbe,"$1"):n||r)}),t});function Wbe(e){if(typeof e=="string"||KA(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var XI=Ps?Ps.prototype:void 0,QI=XI?XI.toString:void 0;function HM(e){if(typeof e=="string")return e;if(mp(e))return BM(e,HM)+"";if(KA(e))return QI?QI.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ybe(e){return e==null?"":HM(e)}function GM(e){return mp(e)?BM(e,Wbe):KA(e)?[e]:MM(Gbe(Ybe(e)))}function er(){return er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},er.apply(this,arguments)}function tu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,l;for(l=0;l<n.length;l++)o=n[l],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Vb=S.createContext(void 0);Vb.displayName="FormikContext";var Kbe=Vb.Provider;Vb.Consumer;function WM(){var e=S.useContext(Vb);return e}var Wn=function(t){return typeof t=="function"},Fb=function(t){return t!==null&&typeof t=="object"},Xbe=function(t){return String(Math.floor(Number(t)))===t},o1=function(t){return Object.prototype.toString.call(t)==="[object String]"},Qbe=function(t){return S.Children.count(t)===0},s1=function(t){return Fb(t)&&Wn(t.then)};function Gn(e,t,r,n){n===void 0&&(n=0);for(var o=GM(t);e&&n<o.length;)e=e[o[n++]];return n!==o.length&&!e||e===void 0?r:e}function kl(e,t,r){for(var n=KI(e),o=n,l=0,u=GM(t);l<u.length-1;l++){var f=u[l],h=Gn(e,u.slice(0,l+1));if(h&&(Fb(h)||Array.isArray(h)))o=o[f]=KI(h);else{var m=u[l+1];o=o[f]=Xbe(m)&&Number(m)>=0?[]:{}}}return(l===0?e:o)[u[l]]===r?e:(r===void 0?delete o[u[l]]:o[u[l]]=r,l===0&&r===void 0&&delete n[u[l]],n)}function YM(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var o=0,l=Object.keys(e);o<l.length;o++){var u=l[o],f=e[u];Fb(f)?r.get(f)||(r.set(f,!0),n[u]=Array.isArray(f)?[]:{},YM(f,t,r,n[u])):n[u]=t}return n}function Jbe(e,t){switch(t.type){case"SET_VALUES":return er({},e,{values:t.payload});case"SET_TOUCHED":return er({},e,{touched:t.payload});case"SET_ERRORS":return xl(e.errors,t.payload)?e:er({},e,{errors:t.payload});case"SET_STATUS":return er({},e,{status:t.payload});case"SET_ISSUBMITTING":return er({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return er({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return er({},e,{values:kl(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return er({},e,{touched:kl(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return er({},e,{errors:kl(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return er({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return er({},e,{touched:YM(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return er({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return er({},e,{isSubmitting:!1});default:return e}}var bl={},dm={};function Zbe(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,o=n===void 0?!0:n,l=e.validateOnMount,u=l===void 0?!1:l,f=e.isInitialValid,h=e.enableReinitialize,m=h===void 0?!1:h,b=e.onSubmit,x=tu(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),E=er({validateOnChange:r,validateOnBlur:o,validateOnMount:u,onSubmit:b},x),T=S.useRef(E.initialValues),C=S.useRef(E.initialErrors||bl),R=S.useRef(E.initialTouched||dm),w=S.useRef(E.initialStatus),I=S.useRef(!1),P=S.useRef({});S.useEffect(function(){return I.current=!0,function(){I.current=!1}},[]);var q=S.useState(0),D=q[1],O=S.useRef({values:um(E.initialValues),errors:um(E.initialErrors)||bl,touched:um(E.initialTouched)||dm,status:um(E.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),N=O.current,V=S.useCallback(function(de){var Ie=O.current;O.current=Jbe(Ie,de),Ie!==O.current&&D(function(j){return j+1})},[]),J=S.useCallback(function(de,Ie){return new Promise(function(j,X){var Z=E.validate(de,Ie);Z==null?j(bl):s1(Z)?Z.then(function(Ee){j(Ee||bl)},function(Ee){X(Ee)}):j(Z)})},[E.validate]),W=S.useCallback(function(de,Ie){var j=E.validationSchema,X=Wn(j)?j(Ie):j,Z=Ie&&X.validateAt?X.validateAt(Ie,de):t0e(de,X);return new Promise(function(Ee,Re){Z.then(function(){Ee(bl)},function(Te){Te.name==="ValidationError"?Ee(e0e(Te)):Re(Te)})})},[E.validationSchema]),G=S.useCallback(function(de,Ie){return new Promise(function(j){return j(P.current[de].validate(Ie))})},[]),B=S.useCallback(function(de){var Ie=Object.keys(P.current).filter(function(X){return Wn(P.current[X].validate)}),j=Ie.length>0?Ie.map(function(X){return G(X,Gn(de,X))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(X){return X.reduce(function(Z,Ee,Re){return Ee==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ee&&(Z=kl(Z,Ie[Re],Ee)),Z},{})})},[G]),L=S.useCallback(function(de){return Promise.all([B(de),E.validationSchema?W(de):{},E.validate?J(de):{}]).then(function(Ie){var j=Ie[0],X=Ie[1],Z=Ie[2],Ee=Jx.all([j,X,Z],{arrayMerge:r0e});return Ee})},[E.validate,E.validationSchema,B,J,W]),z=Ni(function(de){return de===void 0&&(de=N.values),V({type:"SET_ISVALIDATING",payload:!0}),L(de).then(function(Ie){return I.current&&(V({type:"SET_ISVALIDATING",payload:!1}),V({type:"SET_ERRORS",payload:Ie})),Ie})});S.useEffect(function(){u&&I.current===!0&&xl(T.current,E.initialValues)&&z(T.current)},[u,z]);var ee=S.useCallback(function(de){var Ie=de&&de.values?de.values:T.current,j=de&&de.errors?de.errors:C.current?C.current:E.initialErrors||{},X=de&&de.touched?de.touched:R.current?R.current:E.initialTouched||{}
18,Z=de&&de.status?de.status:w.current?w.current:E.initialStatus;T.current=Ie,C.current=j,R.current=X,w.current=Z;var Ee=function(){V({type:"RESET_FORM",payload:{isSubmitting:!!de&&!!de.isSubmitting,errors:j,touched:X,status:Z,values:Ie,isValidating:!!de&&!!de.isValidating,submitCount:de&&de.submitCount&&typeof de.submitCount=="number"?de.submitCount:0}})};if(E.onReset){var Re=E.onReset(N.values,$t);s1(Re)?Re.then(Ee):Ee()}else Ee()},[E.initialErrors,E.initialStatus,E.initialTouched,E.onReset]);S.useEffect(function(){I.current===!0&&!xl(T.current,E.initialValues)&&m&&(T.current=E.initialValues,ee(),u&&z(T.current))},[m,E.initialValues,ee,u,z]),S.useEffect(function(){m&&I.current===!0&&!xl(C.current,E.initialErrors)&&(C.current=E.initialErrors||bl,V({type:"SET_ERRORS",payload:E.initialErrors||bl}))},[m,E.initialErrors]),S.useEffect(function(){m&&I.current===!0&&!xl(R.current,E.initialTouched)&&(R.current=E.initialTouched||dm,V({type:"SET_TOUCHED",payload:E.initialTouched||dm}))},[m,E.initialTouched]),S.useEffect(function(){m&&I.current===!0&&!xl(w.current,E.initialStatus)&&(w.current=E.initialStatus,V({type:"SET_STATUS",payload:E.initialStatus}))},[m,E.initialStatus,E.initialTouched]);var te=Ni(function(de){if(P.current[de]&&Wn(P.current[de].validate)){var Ie=Gn(N.values,de),j=P.current[de].validate(Ie);return s1(j)?(V({type:"SET_ISVALIDATING",payload:!0}),j.then(function(X){return X}).then(function(X){V({type:"SET_FIELD_ERROR",payload:{field:de,value:X}}),V({type:"SET_ISVALIDATING",payload:!1})})):(V({type:"SET_FIELD_ERROR",payload:{field:de,value:j}}),Promise.resolve(j))}else if(E.validationSchema)return V({type:"SET_ISVALIDATING",payload:!0}),W(N.values,de).then(function(X){return X}).then(function(X){V({type:"SET_FIELD_ERROR",payload:{field:de,value:Gn(X,de)}}),V({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Y=S.useCallback(function(de,Ie){var j=Ie.validate;P.current[de]={validate:j}},[]),ie=S.useCallback(function(de){delete P.current[de]},[]),me=Ni(function(de,Ie){V({type:"SET_TOUCHED",payload:de});var j=Ie===void 0?o:Ie;return j?z(N.values):Promise.resolve()}),Se=S.useCallback(function(de){V({type:"SET_ERRORS",payload:de})},[]),we=Ni(function(de,Ie){var j=Wn(de)?de(N.values):de;V({type:"SET_VALUES",payload:j});var X=Ie===void 0?r:Ie;return X?z(j):Promise.resolve()}),H=S.useCallback(function(de,Ie){V({type:"SET_FIELD_ERROR",payload:{field:de,value:Ie}})},[]),se=Ni(function(de,Ie,j){var X=Wn(Ie)?Ie(Gn(N.values,de)):Ie;V({type:"SET_FIELD_VALUE",payload:{field:de,value:X}});var Z=j===void 0?r:j;return Z?z(kl(N.values,de,X)):Promise.resolve()}),be=S.useCallback(function(de,Ie){var j=Ie,X=de,Z;if(!o1(de)){de.persist&&de.persist();var Ee=de.target?de.target:de.currentTarget,Re=Ee.type,Te=Ee.name,Ne=Ee.id,Ze=Ee.value,st=Ee.checked;Ee.outerHTML;var Ht=Ee.options,kt=Ee.multiple;j=Ie||Te||Ne,X=/number|range/.test(Re)?(Z=parseFloat(Ze),isNaN(Z)?"":Z):/checkbox/.test(Re)?i0e(Gn(N.values,j),st,Ze):Ht&&kt?n0e(Ht):Ze}j&&se(j,X)},[se,N.values]),Ce=Ni(function(de){if(o1(de))return function(Ie){return be(Ie,de)};be(de)}),Le=Ni(function(de,Ie,j){Ie===void 0&&(Ie=!0),V({type:"SET_FIELD_TOUCHED",payload:{field:de,value:Ie}});var X=j===void 0?o:j;return X?z(N.values):Promise.resolve()}),Be=S.useCallback(function(de,Ie){de.persist&&de.persist();var j=de.target,X=j.name,Z=j.id;j.outerHTML;var Ee=Ie||X||Z;Le(Ee,!0)},[Le]),tt=Ni(function(de){if(o1(de))return function(Ie){return Be(Ie,de)};Be(de)}),Ae=S.useCallback(function(de){Wn(de)?V({type:"SET_FORMIK_STATE",payload:de}):V({type:"SET_FORMIK_STATE",payload:function(){return de}})},[]),ye=S.useCallback(function(de){V({type:"SET_STATUS",payload:de})},[]),Qe=S.useCallback(function(de){V({type:"SET_ISSUBMITTING",payload:de})},[]),Je=Ni(function(){return V({type:"SUBMIT_ATTEMPT"}),z().then(function(de){var Ie=de instanceof Error,j=!Ie&&Object.keys(de).length===0;if(j){var X;try{if(X=Bt(),X===void 0)return}catch(Z){throw Z}return Promise.resolve(X).then(function(Z){return I.current&&V({type:"SUBMIT_SUCCESS"}),Z}).catch(function(Z){if(I.current)throw V({type:"SUBMIT_FAILURE"}),Z})}else if(I.current&&(V({type:"SUBMIT_FAILURE"}),Ie))throw de})}),vt=Ni(function(de){de&&de.preventDefault&&Wn(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Wn(de.stopPropagation)&&de.stopPropagation(),Je().catch(function(Ie){console.warn("Warning: An unhandled error was caught from submitForm(
18)",Ie)})}),$t={resetForm:ee,validateForm:z,validateField:te,setErrors:Se,setFieldError:H,setFieldTouched:Le,setFieldValue:se,setStatus:ye,setSubmitting:Qe,setTouched:me,setValues:we,setFormikState:Ae,submitForm:Je},Bt=Ni(function(){return b(N.values,$t)}),Rr=Ni(function(de){de&&de.preventDefault&&Wn(de.preventDefault)&&de.preventDefault(),de&&de.stopPropagation&&Wn(de.stopPropagation)&&de.stopPropagation(),ee()}),Dn=S.useCallback(function(de){return{value:Gn(N.values,de),error:Gn(N.errors,de),touched:!!Gn(N.touched,de),initialValue:Gn(T.current,de),initialTouched:!!Gn(R.current,de),initialError:Gn(C.current,de)}},[N.errors,N.touched,N.values]),Za=S.useCallback(function(de){return{setValue:function(j,X){return se(de,j,X)},setTouched:function(j,X){return Le(de,j,X)},setError:function(j){return H(de,j)}}},[se,Le,H]),Hi=S.useCallback(function(de){var Ie=Fb(de),j=Ie?de.name:de,X=Gn(N.values,j),Z={name:j,value:X,onChange:Ce,onBlur:tt};if(Ie){var Ee=de.type,Re=de.value,Te=de.as,Ne=de.multiple;Ee==="checkbox"?Re===void 0?Z.checked=!!X:(Z.checked=!!(Array.isArray(X)&&~X.indexOf(Re)),Z.value=Re):Ee==="radio"?(Z.checked=X===Re,Z.value=Re):Te==="select"&&Ne&&(Z.value=Z.value||[],Z.multiple=!0)}return Z},[tt,Ce,N.values]),xn=S.useMemo(function(){return!xl(T.current,N.values)},[T.current,N.values]),Mn=S.useMemo(function(){return typeof f<"u"?xn?N.errors&&Object.keys(N.errors).length===0:f!==!1&&Wn(f)?f(E):f:N.errors&&Object.keys(N.errors).length===0},[f,xn,N.errors,E]),jn=er({},N,{initialValues:T.current,initialErrors:C.current,initialTouched:R.current,initialStatus:w.
18current,handleBlur:tt,handleChange:Ce,handleReset:Rr,handleSubmit:vt,resetForm:ee,setErrors:Se,setFormikState:Ae,setFieldTouched:Le,setFieldValue:se,setFieldError:H,setStatus:ye,setSubmitting:Qe,setTouched:me,setValues:we,submitForm:Je,validateForm:z,validateField:te,isValid:Mn,dirty:xn,unregisterField:ie,registerField:Y,getFieldProps:Hi,getFieldMeta:Dn,getFieldHelpers:Za,validateOnBlur:o,validateOnChange:r,validateOnMount:u});return jn}function $b(e){var t=Zbe(e),r=e.component,n=e.children,o=e.render,l=e.innerRef;return S.useImperativeHandle(l,function(){return t}),S.createElement(Kbe,{value:t},r?S.createElement(r,t):o?o(t):n?Wn(n)?n(t):Qbe(n)?null:S.Children.only(n):null)}function e0e(e){var t={};if(e.inner){if(e.inner.length===0)return kl(t,e.path,e.message);for(var o=e.inner,r=Array.isArray(o),n=0,o=r?o:o[Symbol.iterator]();;){var l;if(r){if(n>=o.length)break;l=o[n++]}else{if(n=o.next(),n.done)break;l=n.value}var u=l;Gn(t,u.path)||(t=kl(t,u.path,u.message))}}return t}function t0e(e,t,r,n){r===void 0&&(r=!1);var o=n2(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function n2(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(o){return Array.isArray(o)===!0||TI(o)?n2(o):o!==""?o:void 0}):TI(e[n])?t[n]=n2(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function r0e(e,t,r){var n=e.slice();return t.forEach(function(l,u){if(typeof n[u]>"u"){var f=r.clone!==!1,h=f&&r.isMergeableObject(l);n[u]=h?Jx(Array.isArray(l)?[]:{},l,r):l}else r.isMergeableObject(l)?n[u]=Jx(e[u],l,r):e.indexOf(l)===-1&&n.push(l)}),n}function n0e(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function i0e(e,t,r){if(typeof e=="boolean")return!!t;var n=[],o=!1,l=-1;if(Array.isArray(e))n=e,l=e.indexOf(r),o=l>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!o?n.concat(r):o?n.slice(0,l).concat(n.slice(l+1)):n}var a0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function Ni(e){var t=S.useRef(e);return a0e(function(){t.current=e}),S.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current.apply(void 0,n)},[])}function Nl(e){var t=e.validate,r=e.name,n=e.render,o=e.children,l=e.as,u=e.component,f=e.className,h=tu(e,["validate","name","render","children","as","component","className"]),m=WM(),b=tu(m,["validate","validationSchema"]),x=b.registerField,E=b.unregisterField;S.useEffect(function(){return x(r,{validate:t}),function(){E(r)}},[x,E,r,t]);var T=b.getFieldProps(er({name:r},h)),C=b.getFieldMeta(r),R={field:T,form:b};if(n)return n(er({},R,{meta:C}));if(Wn(o))return o(er({},R,{meta:C}));if(u){if(typeof u=="string"){var w=h.innerRef,I=tu(h,["innerRef"]);return S.createElement(u,er({ref:w},T,I,{className:f}),o)}return S.createElement(u,er({field:T,form:b},h,{className:f}),o)}var P=l||"input";if(typeof P=="string"){var q=h.innerRef,D=tu(h,["innerRef"]);return S.createElement(P,er({ref:q},T,D,{className:f}),o)}return S.createElement(P,er({},T,h,{className:f}),o)}var gp=S.forwardRef(function(e,t){var r=e.action,n=tu(e,["action"]),o=r??"#",l=WM(),u=l.handleReset,f=l.handleSubmit;return S.createElement("form",er({onSubmit:f,ref:t,onReset:u,action:o},n))});gp.displayName="Form";const o0e=y().shape({email:s().required("Required").email("Invalid email address")});function s0e(){const[e]=fp(),[t,r]=S.useState(),[n,o]=S.useState(!1),l=S.useRef(null),u=e.get(Ui.APP_ID);S.useEffect(()=>{u&&Yl.PublicInfo({appId:u}).then(h=>r(h))},[u]);const f=h=>{u&&hu.SendPasswordResetEmail({email:h.email,appId:u}).then(m=>{o(m),m||(St.error({title:"Email not found",description:"The entered Email not found, Please sign up."}),l.current?.setSubmitting(!1))})};return u?t?p.jsxs(Xr,{w:"full",h:"100vh",flexDir:"column",position:"relative",overflow:"hidden",bg:"black",children:[p.jsxs(Oe,{w:"calc(100% - 40px)",maxW:"400px",flexDir:"column",alignItems:"center",bg:"white",borderRadius:{base:"30px",md:"12px"},px:"20px",py:"50px",gap:"20px",mx:"20px",position:{base:"absolute",md:"inherit"},bottom:{base:"120px",md:"unset"},zIndex:1,boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.5)",children:[p.jsxs(We,{if:!n,children:[p.jsx(nr,{src:t.appIcon??Db,alt:"",width:"44px",borderRadius:"6px"}),p.jsx(vr,{as:"h1",fontWeight:"bold",fontSize:"20px",children:"Login Recovery"}),p.jsx(_e,{fontSize:{base:"14px",sm:"16px"},fontWeight:"medium",textAlign:"center",children:"To log in to your account, enter your email address"})]}),p.jsx(We,{if:n,children:p.jsx(_e,{textAlign:"center",children:"Email sent! Please check your email and see the reset password instructions"})}),p.jsx(We,{if:!n,children:p.jsx($b,{innerRef:l,enableReinitialize:!0,initialValues:{email:e.get("email")??""},validationSchema:o0e,onSubmit:f,children:({isSubmitting:h,errors:m,touched:b,isValid:x})=>p.jsxs(gp,{style:{width:"100%"},children:[p.jsxs(Xt,{required:!0,invalid:!!(m.email&&b.email),children:[p.jsx(Nl,{name:"email",children:({field:E})=>p.jsx(tr,{type:"email",placeholder:"Email",h:"52px",fontSize:"16px",bg:"white",...E})}),m.email&&b.email&&p.jsx(Rs,{fontSize:"12px",children:m.email})]}),p.jsx(ut,{type:"submit",w:"full",h:"52px",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:!x||h,mt:"20px",children:"Reset"})]})})}),p.jsxs(Xr,{w:"full",gap:"8px",children:[p.jsx(_e,{fontSize:"16px",color:"text.light",children:"Go back to"}),p.jsx(Mo,{to:"/login",children:p.jsx(_e,{fontWeight:"bold",color:"primary.500",children:"Login"})})]})]}),p.jsx(nr,{position:"fixed",width:"100%",height:"100%",backgroundPosition:"center",objectFit:"cover",src:gM,top:0,bottom:0,left:0,right:0,alt:"Horizon UI"})]}):p.jsx(Bi,{}):p.jsx(Do,{to:"/auto-redirect"})}
18const i2=({field:e,placeholder:t,disabled:r,h:n="40px",fontSize:o="14px"})=>{const[l,u]=S.useState(!1),f=()=>u(!l);return p.jsx(B6,{endElement:p.jsx(Jn,{"aria-label":`${l?"Hide":"Show"} Password`,onClick:f,variant:"ghost",children:l?p.jsx(fpe,{}):p.jsx(dpe,{})}),children:p.jsx(tr,{type:l?"text":"password",placeholder:t,h:n,fontSize:o,bg:"white",disabled:r,...e})})};function l0e(){const e=S.useRef(null),t=yn(),n=new URLSearchParams(t.search).get("resetPasswordToken"),o=async u=>{if(!n)return;const f=await hu.ResetPasswordByToken({token:n,password:u.password});if(f)return $r(f);St.success({title:"Password Changed Successfully "}),setTimeout(()=>{window.location.href="about:blank"},2e3)},l=y().shape({password:s().required("Required").min(6,"Password must be longer than or equal to 6 charactors"),confirmPassword:s().required("Required").oneOf([nJ("password"),""],"Password mismatch")});return n?p.jsx(Xr,{w:"full",h:"100vh",flexDir:"column",position:"relative",overflow:"hidden",bg:"white",children:p.jsxs(Oe,{w:"calc(100% - 40px)",maxW:"400px",flexDir:"column",alignItems:"center",px:"20px",py:"50px",gap:"20px",mx:"20px",position:{base:"absolute",md:"inherit"},bottom:{base:"120px",md:"unset"},zIndex:1,children:[p.jsx(vr,{as:"h1",fontWeight:"bold",fontSize:"20px",children:"Login Recovery"}),p.jsx(_e,{fontSize:{base:"14px",sm:"16px"},fontWeight:"medium",textAlign:"center",children:"Enter new password"}),p.jsx(We,{if:!!n,children:p.jsx($b,{innerRef:e,enableReinitialize:!0,initialValues:{password:"",confirmPassword:""},validationSchema:l,onSubmit:o,children:({isSubmitting:u,errors:f,touched:h,isValid:m})=>p.jsxs(gp,{style:{width:"100%"},children:[p.jsxs(Xt,{required:!0,invalid:!!(f.password&&h.password),children:[p.jsx(Nl,{name:"password",children:({field:b})=>p.jsx(i2,{field:b,placeholder:"New Password",h:"52px",fontSize:"16px"})}),f.password&&h.password&&p.jsx(Rs,{fontSize:"12px",children:f.password})]}),p.jsxs(Xt,{required:!0,invalid:!!(f.confirmPassword&&h.confirmPassword),mt:"10px",children:[p.jsx(Nl,{name:"confirmPassword",children:({field:b})=>p.jsx(i2,{field:b,placeholder:"Confirm Password",h:"52px",fontSize:"16px"})}),f.confirmPassword&&h.confirmPassword&&p.jsx(Rs,{fontSize:"12px",children:f.confirmPassword})]}),p.jsx(ut,{type:"submit",w:"full",h:"52px",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:!m||u,mt:"20px",children:"Reset"})]})})})]})}):p.jsx(Do,{to:"/auto-redirect"})}function c0e(e){return p.jsxs(p.Fragment,{children:[p.jsx(nr,{src:Db,alt:"",width:"44px",borderRadius:"6px"}),p.jsxs(vr,{as:"h1",fontWeight:"bold",fontSize:"20px",children:[p.jsx(We,{if:e.variant==="built-for-you",children:"Let us build your app for you!"}),p.jsx(We,{if:e.variant==="organization",children:"Create your organization to get started!"}),p.jsx(We,{if:e.variant===void 0,children:"Create an account to get started!"})]})]})}const u0e=y().shape({name:s().required("Required"),email:s().required("Required").email("Invalid email address"),password:s().required("Required").min(6,"Password must be longer than or equal to 6 characters")});function d0e(e){return p.jsx($b,{enableReinitialize:!0,initialValues:{name:"",email:e.email??"",password:""},validationSchema:u0e,onSubmit:e.onSubmit,children:({isValid:t,errors:r,touched:n})=>p.jsx(gp,{style:{width:"100%"},children:p.jsxs(Oe,{display:"flex",flexDir:"column",children:[p.jsxs(Xt,{required:!0,invalid:!!(r.name&&n.name),children:[p.jsx(Nl,{name:"name",children:({field:o})=>p.jsx(tr,{type:"name",placeholder:"Name",h:"52px",fontSize:"16px",bg:"white",disabled:e.loading,...o})}),r.name&&n.name&&p.jsx(Rs,{fontSize:"12px",children:r.name})]}),p.jsxs(Xt,{required:!0,invalid:!!(r.email&&n.email),mt:"10px",children:[p.jsx(Nl,{name:"email",children:({field:o})=>p.jsx(tr,{type:"email",placeholder:"Email",h:"52px",fontSize:"16px",bg:"white",disabled:e.loading,...o})}),r.email&&n.email&&p.jsx(Rs,{fontSize:"12px",children:r.email})]}),p.jsxs(Xt,{required:!0,invalid:!!(r.password&&n.password),mt:"10px",children:[p.jsx(Nl,{name:"password",children:({field:o})=>p.jsx(i2,{field:o,placeholder:"Password",disabled:e.loading,h:"52px",fontSize:"16px"})}),r.password&&n.password&&p.jsx(Rs,{fontSize:"12px",children:r.password})]}),p.jsxs(Oe,{h:"52px",gap:"5px",mt:"20px",children:[p.jsx(ut,{w:{base:"100px",md:"120px"},h:"full",variant:"outline",fontWeight:"medium",borderRadius:"14px",disabled:e.loading,onClick:e.back,children:"Back"}),p.jsx(ut,{type:"submit",flexGrow:1,h:"full",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:!t||e.loading,children:"Continue"})]})]})})})}const f0e=S.lazy(()=>Xe(()=>import("./SignupPhoneNumberInput-D0ZDWHWu.js"),__vite__mapDeps([39,40]))),p0e=e=>function(r){r.key==="Enter"&&e()};function h0e(e){const[t,r]=S.useState("");function n(o){o.target.value.length===6&&e.submitPin(o.target.value),!(o.target.value.length>6)&&r(o.target.value)}return p.jsxs(Oe,{w:"full",flexDir:"column",alignItems:"center",children:[p.jsx(tr,{type:"number",value:t,onChange:n,placeholder:"123456",autoComplete:"one-time-code",h:"52px",w:"100%",maxLength:6,textAlign:"center",fontSize:"16px",letterSpacing:4,disabled:e.loading,autoFocus:!0}),p.jsxs(Oe,{w:"full",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[p.jsx(_e,{fontSize:"16px",color:"text.light",children:"Didn't get the code?"}),p.jsx(ut,{h:"30px",variant:"outline",px:"18px",onClick:e.resendCode,children:p.jsx(_e,{fontSize:"14px",color:"primary.500",children:"Resend code"})})]}),p.jsx(Oe,{w:"full",h:"52px",gap:"5px",mt:"20px",children:p.jsx(ut,{w:"100px",h:"full",variant:"outline",fontWeight:"medium",borderRadius:"14px",disabled:e.loading,onClick:e.back,children:"Back"})})]})}function m0e(e){const[t,r]=S.useState(""),n=()=>e.setPhone(t);return p.jsxs(De,{w:"full",children:[p.jsx(S.Suspense,{fallback:p.jsx(Oo,{h:"52px",w:"full"}),children:p.jsx(f0e,{defaultCountry:"US",placeholder:"(123) 456 7890",value:t,onChange:r,onKeyDown:p0e(n),inputComponent:tr,h:"52px"})}),p.jsxs(Oe,{h:"52px",gap:"5px",mt:"20px",children:[p.jsx(ut,{w:"100px",h:"full",variant:"outline",fontWeight:"medium",borderRadius:"14px",disabled:e.loading,onClick:e.back,children:"Back"}),p.jsx(ut,{type:"submit",flexGrow:1,h:"full",colorScheme:"primary",fontWeight:"medium",borderRadius:"14px",disabled:e.loading||!t||t.length===0,onClick:n,children:"Get code"})]})]})}function g0e(){return p.jsx(Oe,{w:"100vw",h:"100vh",position:"fixed",bgColor:"white",justifyContent:"center",top:"0px",children:p.jsxs(De,{position:"relative",w:"100%",children:[p.jsx(_e,{w:"100%",textAlign:"center",position:"absolute",top:"calc(50vh - 80px)",children:"Building Your App"}),p.jsx(Bi,{})]})})}const b0e=["built-for-you","organization"];function JI(){const{login:e}=Ai(),t=Mu(),r=ga(),{googleAccount:n,onGoogleLogin:o}=pM(),[l,u]=S.useState(["SELECT_METHOD"]),[f,h]=S.useState(void 0),[m,b]=S.useState(),[x,E]=S.useState(!1),[T,C]=S.useState(),[R,w]=S.useState(),[I,P]=S.useState(),[q,D]=S.useState(),O=ee=>u([...l,ee]),N=()=>u(l.slice(0,l.length-1)),V=()=>o(),J=()=>O("ENTER_INFO"),W=l[l.length-1]??"SELECT_METHOD";async function G(){if(!q||!T||!R||!I)return St.error({title:"Data Missing!"});O("ONBOARD_LOADING");const ee=f==="organization"?sm.OnboardOrg:sm.OnboardApp,te=f==="built-for-you"?dg.DONE_FOR_YOU:dg.BUILD_IT_YOURSELF,Y=await ee({displayName:T,email:R,password:I,phoneNumber:q,orgId:m?.id,marketingLeadType:te}).catch(Se=>$r(Se));if(!Y)return O("ENTER_PHONE");const ie=Y.authnTokens.accessToken,me=await qA.LegacyOnboard.auth(()=>({Authorization:`Bearer ${ie}`})).exec();me&&$r(me),pu("USER",Y.authnTokens),await e(Y.authn,Y.policies),r("/auto-redirect")}async function B(ee){if(!q)return St.error({title:"Data Missing!"});E(!0);const te=await sm.PhoneVerification({phoneNumber:q,code:ee});return E(!1),te?G():(N(),St.error({title:"Could not verify that phone number!"}))}async function L(ee){const te=ee??q;if(!te)return;E(!0),D(te);const Y=await sm.PhoneVerificationRequest({phoneNumber:te});if(E(!1),!Y)return St.error({title:"Could not verify that phone number!"});O("VERIFY_PHONE")}async function z(ee){w(ee.email.toLowerCase()),P(ee.password),C(ee.name),O("ENTER_PHONE")}return S.useEffect(()=>{const ee=t.variant;if(!ee)return;b0e.includes(ee)?h(ee):r("/signup")},[t]),S.useEffect(()=>{n&&(w(n.email.toLowerCase()),O("ENTER_INFO"))},[n]),p.jsxs(bM,{children:[p.jsx(c0e,{variant:f}),p.jsx(We,{if:W==="SELECT_METHOD",children:p.jsx(hM,{loading:x,google:V,email:J})}
18),p.jsx(We,{if:W==="ENTER_INFO"&&!x,children:p.jsx(d0e,{loading:x,back:N,email:R,onSubmit:z})}),p.jsx(We,{if:W==="ENTER_PHONE",children:p.jsx(m0e,{loading:x,back:N,setPhone:L})}),p.jsx(We,{if:W==="VERIFY_PHONE",children:p.jsx(h0e,{loading:x,back:N,resendCode:L,submitPin:B})}),p.jsx(We,{if:W==="ONBOARD_LOADING",children:p.jsx(g0e,{})}),p.jsxs(We,{if:!x&&!["VERIFY_PHONE","ONBOARD_LOADING"].includes(W),children:[p.jsx(We,{if:W==="ENTER_INFO"&&!x,children:p.jsxs(_e,{fontSize:"12px",color:"text.light",children:["By clicking continue you agree to the"," ",p.jsx(Ua,{href:"https://apprabbit.com/termsofservice",children:"terms and conditions"})]})}),p.jsxs(Oe,{w:"full",alignItems:"center",justifyContent:"space-between",children:[p.jsx(_e,{fontSize:"16px",color:"text.light",children:"Already a member?"}),p.jsx(Mo,{to:"/login",children:p.jsx(_e,{fontWeight:"bold",color:"primary.500",children:"Sign In"})})]})]}),x&&p.jsx(Bi,{})]})}const v0e=()=>{const e=ga(),{logout:t}=Ai();return S.useEffect(()=>{t(),e("/auto-redirect"),window.localStorage.removeItem("flutter.firebaseToken"),window.localStorage.removeItem("flutter.refreshToken"),window.localStorage.removeItem("flutter.superadmin")},[]),null};function y0e(e){if(!e)return null;try{return new URL(e).origin===window.location.origin?e:null}catch{return null}}function x0e(){const[e,t]=fp(),{authRefresh:r}=Ai(),[n,o]=S.useState("idle"),[l,u]=S.useState(null);async function f(){const h=e.get(Ui.APPRABBIT_ACCESS_TOKEN),m=e.get(Ui.APPRABBIT_REFRESH_TOKEN),b=y0e(e.get(Ui.APPRABBIT_REDIRECT_URI));if(!h||!m||!b)return o("done");o("consuming"),pu("USER",{accessToken:h,refreshToken:m}),e.delete(Ui.APPRABBIT_ACCESS_TOKEN),e.delete(Ui.APPRABBIT_REFRESH_TOKEN),e.delete(Ui.APPRABBIT_REDIRECT_URI),t(e,{replace:!0}),u(b);try{await r()}catch(x){console.warn("[AutoRedirect] authRefresh failed, forcing reload:",x),window.location.href=b;return}o("done")}return S.useEffect(()=>{n==="idle"&&f()},[n]),{busy:n!=="done",redirectAfter:l}}function QA(){const{auth:e,initialized:t,loading:r}=Ai(),[n]=fp(),o=n.get(Ui.APPRABBIT_REDIRECT_URI),l=VA(In.IsElevatedAdmin),u=x0e();if(u.busy||!t||r)return p.jsx(S0e,{});if(!e)return p.jsx(Vm,{to:"/login"});if(e&&u.redirectAfter){const f=new URL(u.redirectAfter);return p.jsx(Do,{to:f.pathname+f.search,replace:!0})}return e&&o?p.jsx(E0e,{uriParam:o}):l?p.jsx(Vm,{to:"/admin/dashboard"}):p.jsx(Vm,{to:"/app/builder"})}function S0e(){return p.jsx(Oe,{w:"100vw",h:"100vh",position:"absolute",bgColor:"white",justifyContent:"center",children:p.jsxs(De,{position:"relative",w:"100%",children:[p.jsx(_e,{w:"100%",textAlign:"center",position:"absolute",top:"calc(50vh - 80px)",children:"Redirecting"}),p.jsx(Bi,{})]})})}function E0e(e){const t=qs("USER"),r=`${ln}/api-v2/api/auth/redirect`,n=encodeURIComponent(`${e.uriParam}?apprabbitRefreshToken=${t.refreshToken}`),o=`${r}?uri=${n}`;return t.refreshToken?p.jsx(vM,{to:o}):p.jsx(Do,{to:"/"})}const A0e=S.createContext(null),l1={didCatch:!1,error:null};class R0e extends S.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=l1}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){const{error:r}=this.state;r!==null&&(this.props.onReset?.({args:t,reason:"imperative-api"}),this.setState(l1))}componentDidCatch(t,r){this.props.onError?.(t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;n&&r.error!==null&&C0e(t.resetKeys,o)&&(this.props.onReset?.({next:o,prev:t.resetKeys,reason:"keys"}),this.setState(l1))}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:l,error:u}=this.state;let f=t;if(l){const h={error:u,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")f=r(h);else if(n)f=S.createElement(n,h);else if(o!==void 0)f=o;else throw u}return S.createElement(A0e.Provider,{value:{didCatch:l,error:u,resetErrorBoundary:this.resetErrorBoundary}},f)}}function C0e(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function T0e(e){return p.jsx(Oe,{flexDir:"column",alignItems:"center",justifyContent:"center",p:"20px",h:"100vh",...e.FlexProps,children:p.jsxs(_e,{...e.TextProps,children:["Oops! Looks like something didn't load correctly!",p.jsx("br",{})," Please try again later!"]})})}const w0e=({options:e,items:t,selected:r,disabled:n,onSelect:o,buttonProps:l})=>{const u=S.useRef(null),f=S.useRef(null),h=m=>{o?.(m)};return p.jsxs(Oe,{position:"relative",ref:u,children:[n&&p.jsx(De,{position:"absolute",top:"0",right:"0",left:"0",bottom:"0",bg:"rgba(255, 255, 255, .7)",cursor:"not-allowed",zIndex:"1"}),p.jsxs(YX,{children:[p.jsx(KX,{asChild:!0,children:p.jsxs(ut,{disabled:n,...l,children:[p.jsx(_e,{children:r}),p.jsx(mpe,{style:{width:12,height:12,marginLeft:4}})]})}),p.jsx(Vo,{container:u,children:p.jsx(XX,{children:p.jsx(QX,{maxH:"320px",overflowY:"auto",bgColor:"bg.dialogBody",children:o&&e?.map((m,b)=>p.jsx(ZX,{value:m,onSelect:()=>h(m),ref:m===r?f:null,children:p.jsxs(Oe,{align:"center",gap:"12px",children:[p.jsx(De,{w:"10px",h:"10px",borderRadius:"full",bg:m===r?"primary.500":"neutral.400"}),t?t[b]:m]})},`${b}-${m}`))})})})]})]})},_0e=S.lazy(()=>Xe(()=>import("./index-BQV7j_5u.js"),__vite__mapDeps([41,42]))),O0e=S.lazy(()=>Xe(()=>import("./EmailPreviewModal-DX6bAlX1.js"),__vite__mapDeps([43,44]))),I0e='<br/><img src="https://app.apprabbit.com/assets/email-logo.png" title="Ap
18pRabbit logo" alt="AppRabbit logo" width="180">',q0e=y().shape({title:s().required("Title cannot be left blank!"),body:s().required("Content must be supplied!")}),ZI={title:"Subject",body:`<p>This is an important message!</p> 19 20`+I0e},P0e=["ACTIVE","TRIALING"];function k0e(){const{open:e,onToggle:t}=o5(),[r,n]=S.useState(Os.ACTIVE),o=S.useRef(null),l=h=>n(h);async function u(h,{resetForm:m}){const b=Pl.NotiferEmailBlast({...h,applicationSubscriptionStatus:r});St.promise(b,{success:{title:"Success!",description:"Sending emails to sendgrid for processing..."},loading:{title:"Loading",description:"Querying appowners..."},error:{}});const x=await b;if(x)return $r(x);m({values:h})}async function f(h,m,b){const x=Pl.NotiferEmailTest({email:h,title:m,body:b});St.promise(x,{success:{title:"Success!",description:`Email sent to ${h}`},loading:{title:"Loading",description:"Sending email..."},error:{}});const E=await x;if(E)return $r(E)}return p.jsx(p.Fragment,{children:p.jsx(De,{minH:"60vh",children:p.jsx(Oe,{w:"100%",flexDir:{base:"column",lg:"row"},alignItems:{base:"start",lg:"center"},justifyContent:"space-between",bg:"white",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"12px",p:{base:"30px",md:"40px"},flexWrap:"wrap",children:p.jsx($b,{enableReinitialize:!0,initialValues:{title:ZI.title,body:ZI.body},onSubmit:u,validationSchema:q0e,children:({values:h,initialValues:m,errors:b,setFieldValue:x})=>p.jsxs(p.Fragment,{children:[p.jsxs(gp,{style:{width:"100%"},children:[p.jsxs(Oe,{alignItems:"center",justifyContent:"center",gap:"20px",mt:".5rem",flexWrap:"wrap",w:"100%",children:[p.jsx(Xt,{invalid:!!b.title,children:p.jsxs(Oe,{gap:".5rem",children:[p.jsxs(Oe,{wrap:"wrap",w:"100%",h:"4rem",children:[p.jsx(Nl,{name:"title",children:({field:E})=>p.jsx(tr,{colorScheme:"primary",placeholder:m.title,...E,bgColor:"neutral.100",h:"2rem"})}),p.jsx(Rs,{children:b.title})]}),p.jsx(Oe,{h:"4rem",children:p.jsx(w0e,{options:P0e,selected:r,onSelect:l,buttonProps:{type:"button",w:"12rem",h:"2.125rem"}})})]})}),p.jsx(De,{w:"100%",children:p.jsx(N0e,{forwardRef:o,content:h.body,setContent:E=>x("body",E)})})]}),p.jsxs(Oe,{w:"100%",children:[p.jsx(ut,{type:"submit",colorScheme:"primary",px:"32px",mt:"1rem",children:"Send Email"}),p.jsx(Oe,{ml:"auto",gap:"20px",children:p.jsx(ut,{onClick:t,colorScheme:"primary",px:"32px",mt:"1rem",children:"Preview"})})]})]}),p.jsx(O0e,{isOpen:e,toggle:t,title:h.title,content:h.body,sendTestEmail:f})]})})})})})}const N0e=S.memo(function(t){return p.jsx(_0e,{ref:t.forwardRef,value:t.content,config:{readonly:!1,height:"40vh",width:"100%",safeMode:!1},onBlur:t.setContent})},function(t,r){return t.forwardRef===r.forwardRef});var c1,eq;function KM(){if(eq)return c1;eq=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return c1=e,c1}var u1,tq;function D0e(){if(tq)return u1;tq=1;var e=typeof Es=="object"&&Es&&Es.Object===Object&&Es;return u1=e,u1}var d1,rq;function XM(){if(rq)return d1;rq=1;var e=D0e(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return d1=r,d1}var f1,nq;function M0e(){if(nq)return f1;nq=1;var e=XM(),t=function(){return e.Date.now()};return f1=t,f1}var p1,iq;function j0e(){if(iq)return p1;iq=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return p1=t,p1}var h1,aq;function L0e(){if(aq)return h1;aq=1;var e=j0e(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return h1=r,h1}var m1,oq;function QM(){if(oq)return m1;oq=1;var e=XM(),t=e.Symbol;return m1=t,m1}var g1,sq;function z0e(){if(sq)return g1;sq=1;var e=QM(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function l(u){var f=r.call(u,o),h=u[o];try{u[o]=void 0;var m=!0}catch{}var b=n.call(u);return m&&(f?u[o]=h:delete u[o]),b}return g1=l,g1}var b1,lq;function U0e(){if(lq)return b1;lq=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return b1=r,b1}var v1,cq;function V0e(){if(cq)return v1;cq=1;var e=QM(),t=z0e(),r=U0e(),n="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function u(f){return f==null?f===void 0?o:n:l&&l in Object(f)?t(f):r(f)}return v1=u,v1}var y1,uq;function F0e(){if(uq)return y1;uq=1;function e(t){return t!=null&&typeof t=="object"}return y1=e,y1}var x1,dq;
20function $0e(){if(dq)return x1;dq=1;var e=V0e(),t=F0e(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return x1=n,x1}var S1,fq;function B0e(){if(fq)return S1;fq=1;var e=L0e(),t=KM(),r=$0e(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt;function h(m){if(typeof m=="number")return m;if(r(m))return n;if(t(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=t(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=e(m);var x=l.test(m);return x||u.test(m)?f(m.slice(2),x?2:8):o.test(m)?n:+m}return S1=h,S1}var E1,pq;function H0e(){if(pq)return E1;pq=1;var e=KM(),t=M0e(),r=B0e(),n="Expected a function",o=Math.max,l=Math.min;function u(f,h,m){var b,x,E,T,C,R,w=0,I=!1,P=!1,q=!0;if(typeof f!="function")throw new TypeError(n);h=r(h)||0,e(m)&&(I=!!m.leading,P="maxWait"in m,E=P?o(r(m.maxWait)||0,h):E,q="trailing"in m?!!m.trailing:q);function D(z){var ee=b,te=x;return b=x=void 0,w=z,T=f.apply(te,ee),T}function O(z){return w=z,C=setTimeout(J,h),I?D(z):T}function N(z){var ee=z-R,te=z-w,Y=h-ee;return P?l(Y,E-te):Y}function V(z){var ee=z-R,te=z-w;return R===void 0||ee>=h||ee<0||P&&te>=E}function J(){var z=t();if(V(z))return W(z);C=setTimeout(J,N(z))}function W(z){return C=void 0,q&&b?D(z):(b=x=void 0,T)}function G(){C!==void 0&&clearTimeout(C),w=0,b=R=x=C=void 0}function B(){return C===void 0?T:W(t())}function L(){var z=t(),ee=V(z);if(b=arguments,x=this,R=z,ee){if(C===void 0)return O(R);if(P)return clearTimeout(C),C=setTimeout(J,h),D(R)}return C===void 0&&(C=setTimeout(J,h)),T}return L.cancel=G,L.flush=B,L}return E1=u,E1}var G0e=H0e();const JM=Fl(G0e),hq=fH({items:[{value:"one-time",label:"One Time"},{value:"recurring",label:"Recurring"}]});function W0e(){const[e,t]=S.useState([]),[r,n]=S.useState(),[o,l]=S.useState([]),[u,f]=S.useState([]),[h,m]=S.useState(""),[b,x]=S.useState(""),E=JM(m,500),T=z=>E(z.target.value);S.useEffect(()=>{Pl.QueryApps({query:{searchKey:h,limit:5}}).then(z=>t(z.records))},[h]),S.useEffect(()=>{Pl.GetAppServicesStripeProducts().then(({stripeProducts:z})=>l(z))},[]);function C(z){n(z),m("")}function R(){n(void 0),m("")}const w=(z,ee)=>{f(te=>te.map(Y=>Y.stripeProductId===z?{...Y,...ee,quantity:Math.min(Math.max(ee.quantity?Y.quantity+ee.quantity:Y.quantity,1),10)}:Y))},I=z=>{const ee=u.find(te=>te.stripeProductId===z.id);if(ee)return w(z.id,{quantity:ee.quantity+1});f(te=>[...te,{name:z.name,stripeProductId:z.id,amount:50,pricingType:"one-time",quantity:1}])},P=z=>f(ee=>ee.filter(te=>te.stripeProductId!==z)),q=z=>w(z,{quantity:1}),D=z=>w(z,{quantity:-1}),O=(z,ee)=>{const te=parseFloat(ee.replace(/[^\d.-]/g,""));isNaN(te)||w(z,{amount:te})},N=z=>{const ee=u.find(te=>te.stripeProductId===z);ee&&w(z,{pricingType:ee.pricingType==="one-time"?"recurring":"one-time"})},V=()=>u.reduce((z,{amount:ee,quantity:te,pricingType:Y})=>{const ie=ee*te;return Y==="one-time"?z.oneTimeTotal+=ie:z.recurringTotal+=ie,z},{oneTimeTotal:0,recurringTotal:0}),J=o.filter(z=>z.name.toLowerCase().includes(b.toLowerCase())||b===z.id),{oneTimeTotal:W,recurringTotal:G}=V(),B=u.length===1&&u[0].pricingType==="one-time"&&u[0].amount===0,L=async()=>{const z=r?.id;if(!z)return;const{url:ee}=await Pl.CreateCustomAppServicesCheckoutLink({appId:z,pricingData:u});jb(ee)()};return p.jsx(De,{maxW:"960px",mx:"auto",bg:"white",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"12px",p:{base:"24px",md:"32px"},children:p.jsxs(Oe,{direction:"column",gap:"24px",children:[p.jsxs(De,{children:[p.jsx(vr,{as:"h3",size:"sm",mb:"8px",color:"neutral.800",children:"App"}),p.jsx(We,{if:!!r,children:p.jsxs(ut,{onClick:R,w:"100%",display:"flex",gap:"8px",colorScheme:"primary",children:[r?.iconUrl&&p.jsx(nr,{src:r.iconUrl,w:"24px",h:"24px",borderRadius:"4px"}),p.jsx(_e,{children:r?.name}),p.jsx(K8,{})]})}),p.jsxs(We,{if:!r,children:[p.jsx(tr,{placeholder:"Search for an appâ¦",onChange:T}),e.length>0&&p.jsx(De,{mt:"8px",maxH:e.length>5?"300px":void 0,overflowY:e.length>5?"auto":void 0,borderWidth:"1px",borderColor:"gray.200",borderRadius:"8px",children:p.jsx(cx,{listStyle:"none",children:e.map(z=>p.jsxs(ux,{onClick:()=>C(z),cursor:"pointer",px:"12px",py:"10px",borderBottomWidth:"1px",borderBottomColor:"gray.100",_hover:{bg:"gray.50"},_last:{borderBottomWidth:0},display:"flex",alignItems:"center",gap:"12px",children:[z.iconUrl&&p.jsx(nr,{src:z.iconUrl,w:"28px",h:"28px",borderRadius:"4px"}),p.jsxs(De,{flex:"1",minW:0,children:[p.jsx(_e,{fontWeight:"medium",truncate:!0,children:z.name}),p.jsx(_e,{fontSize:"xs",color:"gray.500",truncate:!0,children:z.id})]})]},z.id))})})]})]}),p.jsx(Rm,{}),p.jsxs(De,{children:[p.jsx(vr,{as:"h3",size:"sm",mb:"8px",color:"neutral.800",children:"Catalog"}),p.jsx(tr,{placeholder:"Search for productsâ¦",value:b,onChange:z=>x(z.target.value)}),p.jsx(De,{mt:"8px",maxH:J.length>5?"300px":void 0,overflowY:J.length>5?"auto":void 0,borderWidth:"1px",borderColor:"gray.200",borderRadius:"8px",children:p.jsxs(cx,{listStyle:"none",children:[J.map(z=>p.jsxs(ux,{display:"flex",alignItems:"center",justifyContent:"space-between",px:"12px",py:"10px",borderBottomWidth:"1px",borderBottomColor:"gray.100",_hover:{bg:"gray.50"},_last:{borderBottomWidth:0},children:[p.jsxs(De,{flex:"1",minW:0,children:[p.jsx(_e,{fontWeight:"medium",truncate:!0,children:z.name}),p.jsx(_e,{fontSize:"xs",color:"gray.500",truncate:!0,children:z.id})]}),p.jsxs(ut,{size:"sm",onClick:()=>I(z),colorScheme:"primary",ml:"12px",children:[p.jsx(sM,{}),"Add"]})]},z.id)),J.length===0&&p.jsx(De,{py:"20px",textAlign:"center",color:"gray.500",fontSize:"sm",children:"No products match."})]})})]}),u.length>0&&p.jsxs(p.Fragment,{children:[p.jsx(Rm,{}),p.jsxs(De,{children:[p.jsx(vr,{as:"h3",size:"sm",mb:"8px",color:"neutral.800",children:"Selected"}),p.jsx(Oe,{direction:"column",gap:"8px",children:u.map(z=>p.jsx(Y0e,{product:z,onIncrease:()=>q(z.stripeProductId),onDecrease:()=>D(z.stripeProductId),onPriceChange:ee=>O(z.stripeProductId,ee),onTogglePricing:()=>N(z.stripeProductId),onDelete:()=>P(z.stripeProductId)},z.stripeProductId))})]})]}),(W>0||G>0||B)&&p.jsxs(p.Fragment,{children:[p.jsx(Rm,{}),p.jsxs(Oe,{align:"center",justify:"space-between",gap:"12px",wrap:"wrap",children:[p.jsxs(Oe,{direction:"column",gap:"2px",children:[B&&p.jsxs(_e,{fontSize:"md",fontWeight:"semibold",children:["FREE"," ",p.jsx(_e,{as:"span",color:"gray.500",fontWeight:"normal",children:"(One-time)"})]}),W>0&&p.jsxs(_e,{fontSize:"md",fontWeight:"semibold",children:[Ff(W)," ",p.jsx(_e,{as:"span",color:"gray.500",fontWeight:"normal",children:"(One-time)"})]}),G>0&&p.jsxs(_e,{fontSize:"md",fontWeight:"semibold",children:[Ff(G)," ",p.jsx(_e,{as:"span",color:"gray.500",fontWeight:"normal",children:"(Recurring)"})]})]}),p.jsx(ut,{colorScheme:"primary",disabled:!r||!B&&W+G<=0,onClick:L,children:"Create Checkout Link"})]})]})]})})}function Y0e(e){const{product:t,onIncrease:r,onDecrease:n,onPriceChange:o,onTogglePricing:l,onDelete:u}=e;return p.jsxs(Oe,{align:"center",gap:"12px",px:"12px",py:"8px",borderWidth:"1px",borderColor:"gray.200",borderRadius:"8px",bg:"gray.50",children:[p.jsx(_e,{flex:"1",minW:0,fontWeight:"medium",truncate:!0,children:t.name}),p.jsxs(Oe,{gap:"4px",align:"center",w:"104px",justify:"space-between",flexShrink:0,children:[p.jsx(Jn,{size:"xs",onClick:n,"aria-label":"Decrease quantity",colorScheme:"primary",variant:"outline",children:p.jsx(cpe,{})}),p.jsx(_e,{w:"24px",textAlign:"center",fontSize:"sm",fontWeight:"medium",children:t.quantity}),p.jsx(Jn,{size:"xs",onClick:r,"aria-label":"Increase quantity",colorScheme:"primary",variant:"outline",children:p.jsx(sM,{})})]}),p.jsxs(Oe,{align:"center",gap:"4px",w:"128px",flexShrink:0,children:[p.jsx(tr,{type:"text",value:Ff(t.amount),onChange:f=>o(f.target.value),size:"sm"}),p.jsx(_e,{fontSize:"xs",color:"gray.500",children:"USD"})]}),p.jsxs(eQ,{w:"112px",flexShrink:0,size:"sm",value:[t.pricingType],onValueChange:l,collection:hq,children:[p.jsx(sQ,{}),p.jsx(oQ,{children:p.jsx(tQ,{children:p.jsx(iQ,{placeholder:"Pricing"})})}),p.jsx(Vo,{children:p.jsx(rQ,{children:p.jsx(nQ,{children:hq.items.map(({value:f,label:h})=>p.jsx(aQ,{item:f,children:h},f))})})})]}),p.jsx(Jn,{onClick:u,"aria-label":"Delete product",size:"xs",variant:"ghost",colorPalette:"red",children:p.jsx(spe,{})})]})}function K0e(){const[e,t]=S.useState([]),[r,n]=S.useState(),[o,l]=S.useState(""),[u,f]=S.useState(""),[h,m]=S.useState(""),[b,x]=S.useState(""),E=JM(l,500),T=P=>E(P.target.value);S.useEffect(()=>{Pl.AdminQueryAuthn({searchKey:o,limit:5}).then(P=>
20t(P.records))},[o]);function C(P){n(P),l("")}function R(){n(void 0),l("")}function w(){try{return b.trim()&&JSON.parse(b),!0}catch{return!1}}async function I(){if(!r)return St.error({title:"Please select a user first!"});const P=await Pl.NotifierPushSingle({appId:r.appId,authnIds:[r.id],notification:{title:u,body:h,extraData:b?JSON.parse(b):void 0}});P&&$r(P)}return p.jsx(De,{minH:"60vh",children:p.jsx(Oe,{w:"100%",direction:{base:"column",lg:"row"},align:{base:"start",lg:"center"},justify:"space-between",bg:"white",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"12px",p:{base:"30px",md:"40px"},wrap:"wrap",children:p.jsxs(De,{p:5,mx:"auto",maxW:"1200px",w:"100%",children:[p.jsxs(fS,{mb:4,w:"100%",children:[p.jsx(We,{if:!!r,children:p.jsxs(ut,{onClick:R,w:"100%",display:"flex",gap:".5rem",colorScheme:"primary",children:[p.jsx(_e,{children:`${r?.appName} ${r?.email}`}),p.jsx(K8,{})]})}),p.jsx(We,{if:!r,children:p.jsxs(De,{w:"100%",children:[p.jsx(tr,{placeholder:"Search for an authn...",onChange:T,disabled:!!r}),p.jsx(cx,{mt:3,maxH:"180px",overflowY:"auto",borderWidth:e.length>5?"1px":"none",borderColor:"gray.200",borderRadius:"md",px:2,children:e.map(P=>p.jsx(ux,{onClick:()=>C(P),cursor:"pointer",p:3,borderRadius:"md",_hover:{bg:"gray.100"},display:"flex",alignItems:"center",gap:"0.5rem",children:p.jsxs(De,{flex:"1",children:[p.jsx(_e,{fontWeight:"medium",children:P.email}),p.jsxs(_e,{fontSize:"sm",color:"gray.500",mt:-1,fontFamily:"mono",children:[P.id," | ",P.appName]})]})},P.id))})]})})]}),p.jsxs(De,{w:"100%",children:[p.jsxs(Xt,{mb:4,children:[p.jsx(_n,{children:"Title"}),p.jsx(tr,{value:u,onChange:P=>f(P.target.value),placeholder:"Notification title"})]}),p.jsxs(Xt,{mb:4,children:[p.jsx(_n,{children:"Body"}),p.jsx(tr,{value:h,onChange:P=>m(P.target.value),placeholder:"Notification body"})]}),p.jsxs(Xt,{mb:4,invalid:!w(),children:[p.jsx(_n,{children:"Extra Data (JSON)"}),p.jsx(Y6,{value:b,onChange:P=>x(P.target.value),placeholder:'{ "key": "value" }',rows:5}),!w()&&p.jsx(Rs,{children:"Invalid JSON"})]}),p.jsx(Oe,{w:"100%",children:p.jsx(ut,{colorScheme:"primary",ml:"auto",onClick:I,children:"Send Notification"})})]})]})})})}function X0e(e){return p.jsxs(De,{mt:".5rem",px:"1rem",children:[p.jsxs(Oe,{gap:".5rem",children:[p.jsx(Jn,{"aria-label":"Back",my:"auto",asChild:!0,variant:"subtle",children:p.jsx(Mo,{to:"/admin/tools",children:p.jsx(Qde,{size:"24px"})})}),p.jsx(vr,{as:"h2",mt:"12px",mb:"24px",fontWeight:"bold",fontSize:"18px",alignSelf:"start",my:"auto",children:e.title})]}),p.jsx(De,{px:"3rem",children:e.children})]})}const Q0e=[{component:p.jsx(k0e,{}),relativePath:"/email-blast",title:"Email Blast"},{component:p.jsx(Do,{to:`/auto-redirect?${Ui.APPRABBIT_REDIRECT_URI}=${Fi.ENV.VITE_URL_LAUNCHBOARD}`}),relativePath:"/launchboard",title:"Launchboard"},{component:p.jsx(W0e,{}),relativePath:"/custom-services",title:"App Services Pricer"},{component:p.jsx(K0e,{}),relativePath:"/notifications",title:"Push Notifications"}],J0e=Q0e.map(e=>({component:p.jsx(X0e,{title:e.title,children:e.component}),relativePath:e.relativePath}));function Z0e(){return p.jsxs(CA,{children:[J0e.map((e,t)=>p.jsx(Cs,{path:e.relativePath,element:e.component},t)),p.jsx(Cs,{path:"*",element:p.jsx(QA,{})})]})}function eve(){const[e,t]=S.useState(),n=Mu().formId,o=location.pathname.startsWith("/f/z")&&!!n,l=!o&&location.pathname.startsWith("/f")&&!!n,u=`${ln}/api-v2/api/commerce/form/stripe/:stripeFormId/checkout`,f=m=>u.replace(":stripeFormId",m);async function h(){if(!n)return;const m=await qA.GetAppuserFormVersionByForm({stripeFormId:n}).catch(b=>$r(b));m&&t(m.appuserFormVersion)}if(S.useEffect(()=>{!l||!n||h()},[]),o)return p.jsx(Do,{to:`/form/free/${n}`});if(l&&!e)return p.jsx(Bi,{});if(l&&e==="branded")return p.jsx(vM,{to:f(n)});if(l&&e==="legacy-v1")return p.jsx(Do,{to:`/legacy-form/stripe/${n}`})}const ZM={appName:"Apprabbit Partner",bg:"#fff",font:"Inter",color:"#000",darkMode:!1,highlight:"#7ab99b",secondaryBg:"#eee",secondaryColor:"#888A8C",logoUrl:"https://apprabbit.com/favicon.ico",iconUrl:"https://apprabbit.com/favicon.ico",showApprabbitBranding:!0,locale:"en-US"},tve={updateReactFavicon:!1,updatePageTitle:!1};function JA(e,t=tve){const[r,n]=S.useState(!0),[o,l]=S.useState(ZM);async function u(){if(!e)return;n(!0);const f=await Yl.GetAppStyles({appId:e}).catch(h=>{console.error(h)});n(!1),f&&l(f)}return S.useEffect(()=>{u()},[e]),S.useEffect(()=>{t.updateReactFavicon&&dM(o.iconUrl),t.updatePageTitle&&ype(o.appName)},[o]),{appStyles:o,loading:r}}const ej=S.createContext({formVariant:void 0,formId:void 0,appStyles:ZM,appId:void 0,authnAccessToken:void 0,loading:!1,formPath:void 0,appStylesLoading:!0,processingForm:!1,setProcessingForm:()=>{},setAuthnAccessToken:()=>{}}),rve=({children:e})=>{const[t,r]=S.useState(!1),[n,o]=S.useState(!1),[l,u]=S.useState(),f=Mu(),[h,m]=S.useState(),{appStyles:b,loading:x}=JA(h,{updatePageTitle:!0,updateReactFavicon:!0}),E=x||t||n,T=f.formVariant,C=f.formId??void 0,R=["free","stripe",void 0].includes(T)?T:void 0,w=C&&R?`/form/${R}/${C}`:void 0;async function I(P,q){r(!0);const D=await _g.GetAppId({formVariant:q,formId:P}).catch(O=>$r(O));r(!1),D&&m(D.appId)}return S.useEffect(()=>{!C||!R||I(C,R)},[C,R]),p.jsx(ej.Provider,{value:{formVariant:R,formId:C,appStyles:b,appStylesLoading:x,appId:h,loading:E,authnAccessToken:l,setAuthnAccessToken:u,formPath:w,processingForm:n,setProcessingForm:o},children:e})},ZA=()=>S.useContext(ej);function nve(){const{formId:e,formPath:t,formVariant:r}=ZA();if(!(!e||!r))return p.jsx(Do,{to:`${t}/new`})}var bp=e=>e.type==="checkbox",Tl=e=>e instanceof Date,wn=e=>e==null;const tj=e=>typeof e=="object";var yr=e=>!wn(e)&&!Array.isArray(e)&&tj(e)&&!Tl(e),rj=e=>yr(e)&&e.target?bp(e.target)?e.target.checked:e.target.value:e,nj=(e,t)=>t.split(".").some((r,n,o)=>!isNaN(Number(r))&&e.has(o.slice(0,n).join("."))),ive=e=>{const t=e.constructor&&e.constructor.prototype;return yr(t)&&t.hasOwnProperty("isPrototypeOf")},eR=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Pr(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(eR&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(yr(e)&&ive(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Pr(e[o]));return n}var Bb=e=>/^\w*$/.test(e),cr=e=>e===void 0,tR=e=>Array.isArray(e)?e.filter(Boolean):[],rR=e=>tR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ke=(e,t,r)=>{if(!t||!yr(e))return r;const o=(Bb(t)?[t]:rR(t)).reduce((l,u)=>wn(l)?void 0:l[u],e);return cr(o)||o===e?cr(e[t])?r:e[t]:o},mi=e=>typeof e=="boolean",mn=e=>typeof e=="function",Vt=(e,t,r)=>{let n=-1;const o=Bb(t)?[t]:rR(t),l=o.length,u=l-1;for(;++n<l;){const f=o[n];let h=r;if(n!==u){const m=e[f];h=yr(m)||Array.isArray(m)?m:isNaN(+o[n+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=h,e=e[f]}};const Ss={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},oa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ea={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},A1="form",ij="root",aj=Pe.createContext(null);aj.displayName="HookFormControlContext";const nR=()=>Pe.useContext(aj);var oj=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const l in e)Object.defineProperty(o,l,{get:()=>{const u=l;return t._proxyFormState[u]!==oa.all&&(t._proxyFormState[u]=!n||oa.all),r&&(r[u]=!0),e[u]}});return o};const iR=typeof window<"u"?Pe.useLayoutEffect:Pe.useEffect;function ave(e){const t=nR(),{control:r=t,disabled:n,name:o,exact:l}=e||{},[u,f]=Pe.useState(r._formState),h=Pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return iR(()=>r._subscribe({name:o,formState:h.current,exact:l,callback:m=>{!n&&f({...r._formState,...m})}}),[o,n,l]),Pe.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),Pe.useMemo(()=>oj(u,r,h.current,!1),[u,r])}var gn=e=>typeof e=="string",a2=(e,t,r,n,o)=>gn(e)?(n&&t.watch.add(e),ke(r,e,o)):Array.isArray(e)?e.map(l=>(n&&t.watch.add(l),ke(r,l))):(n&&(t.watchAll=!0),r),o2=e=>wn(e)||!tj(e);function gi(e,t,r=new WeakSet){if(e===t)return!0;
20if(o2(e)||o2(t))return Object.is(e,t);if(Tl(e)&&Tl(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const l of n){const u=e[l];if(!(l in t))return!1;if(l!=="ref"){const f=t[l];if(Tl(u)&&Tl(f)||(yr(u)||Array.isArray(u))&&(yr(f)||Array.isArray(f))?!gi(u,f,r):!Object.is(u,f))return!1}}return!0}function ove(e){const t=nR(),{control:r=t,name:n,defaultValue:o,disabled:l,exact:u,compute:f}=e||{},h=Pe.useRef(o),m=Pe.useRef(f),b=Pe.useRef(void 0),x=Pe.useRef(r),E=Pe.useRef(n);m.current=f;const[T,C]=Pe.useState(()=>{const D=r._getWatch(n,h.current);return m.current?m.current(D):D}),R=Pe.useCallback(D=>{const O=a2(n,r._names,D||r._formValues,!1,h.current);return m.current?m.current(O):O},[r._formValues,r._names,n]),w=Pe.useCallback(D=>{if(!l){const O=a2(n,r._names,D||r._formValues,!1,h.current);if(m.current){const N=m.current(O);gi(N,b.current)||(C(N),b.current=N)}else C(O)}},[r._formValues,r._names,l,n]);iR(()=>((x.current!==r||!gi(E.current,n))&&(x.current=r,E.current=n,w()),r._subscribe({name:n,formState:{values:!0},exact:u,callback:D=>{w(D.values)}})),[r,u,n,w]),Pe.useEffect(()=>r._removeUnmounted());const I=x.current!==r,P=E.current,q=Pe.useMemo(()=>{if(l)return null;const D=!I&&!gi(P,n);return I||D?R():null},[l,I,n,P,R]);return q!==null?q:T}function sve(e){const t=nR(),{name:r,disabled:n,control:o=t,shouldUnregister:l,defaultValue:u,exact:f=!0}=e,h=nj(o._names.array,r),m=Pe.useMemo(()=>ke(o._formValues,r,ke(o._defaultValues,r,u)),[o,r,u]),b=ove({control:o,name:r,defaultValue:m,exact:f}),x=ave({control:o,name:r,exact:f}),E=Pe.useRef(e),T=Pe.useRef(o.register(r,{...e.rules,value:b,...mi(e.disabled)?{disabled:e.disabled}:{}}));E.current=e;const C=Pe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(x.errors,r)},isDirty:{enumerable:!0,get:()=>!!ke(x.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ke(x.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ke(x.validatingFields,r)},error:{enumerable:!0,get:()=>ke(x.errors,r)}}),[x,r]),R=Pe.useCallback(q=>T.current.onChange({target:{value:rj(q),name:r},type:Ss.CHANGE}),[r]),w=Pe.useCallback(()=>T.current.onBlur({target:{value:ke(o._formValues,r),name:r},type:Ss.BLUR}),[r,o._formValues]),I=Pe.useCallback(q=>{const D=ke(o._fields,r);D&&D._f&&q&&(D._f.ref={focus:()=>mn(q.focus)&&q.focus(),select:()=>mn(q.select)&&q.select(),setCustomValidity:O=>mn(q.setCustomValidity)&&q.setCustomValidity(O),reportValidity:()=>mn(q.reportValidity)&&q.reportValidity()})},[o._fields,r]),P=Pe.useMemo(()=>({name:r,value:b,...mi(n)||x.disabled?{disabled:x.disabled||n}:{},onChange:R,onBlur:w,ref:I}),[r,n,x.disabled,R,w,I,b]);return Pe.useEffect(()=>{const q=o._options.shouldUnregister||l;o.register(r,{...E.current.rules,...mi(E.current.disabled)?{disabled:E.current.disabled}:{}});const D=(O,N)=>{const V=ke(o._fields,O);V&&V._f&&(V._f.mount=N)};if(D(r,!0),q){const O=Pr(ke(o._options.defaultValues,r,E.current.defaultValue));Vt(o._defaultValues,r,O),cr(ke(o._formValues,r))&&Vt(o._formValues,r,O)}return!h&&o.register(r),()=>{(h?q&&!o._state.action:q)?o.unregister(r):D(r,!1)}},[r,o,h,l]),Pe.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),Pe.useMemo(()=>({field:P,formState:x,fieldState:C}),[P,x,C])}const EEe=e=>e.render(sve(e)),lve=Pe.createContext(null);lve.displayName="HookFormContext";var cve=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},_f=e=>Array.isArray(e)?e:[e],mq=()=>{let e=[];return{get observers(){return e},next:o=>{for(const l of e)l.next&&l.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(l=>l!==o)}}),unsubscribe:()=>{e=[]}}};function sj(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],l=t[n];if(o&&yr(o)&&l){const u=sj(o,l);yr(u)&&(r[n]=u)}else e[n]&&(r[n]=l)}return r}var pn=e=>yr(e)&&!Object.keys(e).length,aR=e=>e.type==="file",Ng=e=>{if(!eR)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lj=e=>e.type==="select-multiple",oR=e=>e.type==="radio",uve=e=>oR(e)||bp(e),R1=e=>Ng(e)&&e.isConnected;function dve(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;){if(wn(e)){e=void 0;break}e=e[t[n]],n++}return e}function fve(e){for(const t in e)if(e.hasOwnProperty(t)&&!cr(e[t]))return!1;return!0}function kr(e,t){if(gn(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Bb(t)?[t]:rR(t),n=r.length===1?e:dve(e,r),o=r.length-1,l=r[o];return n&&delete n[l],o!==0&&(yr(n)&&pn(n)||Array.isArray(n)&&fve(n))&&kr(e,r.slice(0,-1)),e}var pve=e=>{for(const t in e)if(mn(e[t]))return!0;return!1};function cj(e){return Array.isArray(e)||yr(e)&&!pve(e)}function s2(e,t={}){for(const r in e){const n=e[r];cj(n)?(t[r]=Array.isArray(n)?[]:{}
vendor: 6,296 bytes, line 20
20,s2(n,t[r])):cr(n)||(t[r]=!0)}return t}function yf(e,t,r){r||(r=s2(t));for(const n in e){const o=e[n];if(cj(o))cr(t)||o2(r[n])?r[n]=s2(o,Array.isArray(o)?[]:{}):yf(o,wn(t)?{}:t[n],r[n]);else{const l=t[n];r[n]=!gi(o,l)}}return r}const gq={value:!1,isValid:!1},bq={value:!0,isValid:!0};var uj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!cr(e[0].attributes.value)?cr(e[0].value)||e[0].value===""?bq:{value:e[0].value,isValid:!0}:bq:gq}return gq},dj=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>cr(e)?e:t?e===""?NaN:e&&+e:r&&gn(e)?new Date(e):n?n(e):e;const vq={isValid:!1,value:null};var fj=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,vq):vq;function yq(e){const t=e.ref;return aR(t)?t.files:oR(t)?fj(e.refs).value:lj(t)?[...t.selectedOptions].map(({value:r})=>r):bp(t)?uj(e.refs).value:dj(cr(t.value)?e.ref.value:t.value,e)}var hve=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mve=(e,t,r,n)=>{const o={};for(const l of e){const u=ke(t,l);u&&Vt(o,l,u._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Dg=e=>e instanceof RegExp,af=e=>cr(e)?e:Dg(e)?e.source:yr(e)?Dg(e.value)?e.value.source:e.value:e,xq=e=>({isOnSubmit:!e||e===oa.onSubmit,isOnBlur:e===oa.onBlur,isOnChange:e===oa.onChange,isOnAll:e===oa.all,isOnTouch:e===oa.onTouched});const Sq="AsyncFunction";var gve=e=>!!e&&!!e.validate&&!!(mn(e.validate)&&e.validate.constructor.name===Sq||yr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Sq)),bve=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Eq=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Of=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const l=ke(e,o);if(l){const{_f:u,...f}=l;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!n)return!0;if(u.ref&&t(u.ref,u.name)&&!n)return!0;if(Of(f,t))break}else if(yr(f)&&Of(f,t))break}}};function Aq(e,t,r){const n=ke(e,r);if(n||Bb(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const l=o.join("."),u=ke(t,l),f=ke(e,l);if(u&&!Array.isArray(u)&&r!==l)return{name:r};if(f&&f.type)return{name:l,error:f};if(f&&f.root&&f.root.type)return{name:`${l}.root`,error:f.root};o.pop()}return{name:r}}var vve=(e,t,r,n)=>{r(e);const{name:o,...l}=e;return pn(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(u=>t[u]===(!n||oa.all))},yve=(e,t,r)=>!e||!t||e===t||_f(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),xve=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Sve=(e,t)=>!tR(ke(e,t)).length&&kr(e,t),Eve=(e,t,r)=>{const n=_f(ke(e,r));return Vt(n,ij,t[r]),Vt(e,r,n),e};function Rq(e,t,r="validate"){if(gn(e)||Array.isArray(e)&&e.every(gn)||mi(e)&&!e)return{type:r,message:gn(e)?e:"",ref:t}}var Hc=e=>yr(e)&&!Dg(e)?e:{value:e,message:""},Cq=async(e,t,r,n,o,l)=>{const{ref:u,refs:f,required:h,maxLength:m,minLength:b,min:x,max:E,pattern:T,validate:C,name:R,valueAsNumber:w,mount:I}=e._f,P=ke(r,R);if(!I||t.has(R))return{};const q=f?f[0]:u,D=L=>{o&&q.reportValidity&&(q.setCustomValidity(mi(L)?"":L||""),q.reportValidity())},O={},N=oR(u),V=bp(u),J=N||V,W=(w||aR(u))&&cr(u.value)&&cr(P)||Ng(u)&&u.value===""||P===""||Array.isArray(P)&&!P.length||w&&typeof P=="number"&&isNaN(P),G=cve.bind(null,R,n,O),B=(L,z,ee,te=ea.maxLength,Y=ea.minLength)=>{const ie=L?z:ee;O[R]={type:L?te:Y,message:ie,ref:u,...G(L?te:Y,ie)}};if(l?!Array.isArray(P)||!P.length:h&&(!J&&(W||wn(P))||mi(P)&&!P||V&&!uj(f).isValid||N&&!fj(f).isValid)){const{value:L,message:z}=gn(h)?{value:!!h,message:h}:Hc(h);if(L&&(O[R]={type:ea.required,message:z,ref:q,...G(ea.required,z)},!n))return D(z),O}if(!W&&(!wn(x)||!wn(E))){let L,z;const ee=Hc(E),te=Hc(x);if(!wn(P)&&!isNaN(P)){const Y=u.valueAsNumber||P&&+P;wn(ee.value)||(L=Y>ee.value),wn(te.value)||(z=Y<te.value)}else{const Y=u.valueAsDate||new Date(P),ie=we=>new Date(new Date().toDateString()+" "+we),me=u.type=="time",Se=u.type=="week";gn(ee.value)&&P&&(L=me?ie(P)>ie(ee.value):Se?P>ee.value:Y>new Date(ee.value)),gn(te.value)&&P&&(z=me?ie(P)<ie(te.value):Se?P<te.value:Y<new Date(te.value))}if((L||z)&&(B(!!L,ee.message,te.message,ea.max,ea.min),!n))return D(O[R].message),O}if((m||b)&&!W&&(gn(P)||l&&Array.isArray(P))){const L=Hc(m),z=Hc(b),ee=!wn(L.value)&&P.length>+L.value,te=!wn(z.value)&&P.length<+z.value;if((ee||te)&&(B(ee,L.message,z.message),!n))return D(O[R].message),O}if(T&&!W&&gn(P)){const{value:L,message:z}=Hc(T);if(Dg(L)&&!P.match(L)&&(O[R]={type:ea.pattern,message:z,ref:u,...G(ea.pattern,z)},!n))return D(z),O}if(C){if(mn(C)){const L=await C(P,r),z=Rq(L,q);if(z&&(O[R]={...z,...G(ea.validate,z.message)},!n))return D(z.message),O}else if(yr(C)){let L={};for(const z in C){if(!pn(L)&&!n)break;const ee=Rq(await C[z](P,r),q,z);ee&&(L={...ee,...G(z,ee.message)},D(ee.message),n&&(O[R]=L))}if(!pn(L)&&(O[R]={ref:q,...L},!n))return O}}return D(!0),O};const Ave={mode:oa.onSubmit,reValidateMode:oa.onChange,shouldFocusError:!0};function Rve(e={}){let t={...Ave,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:mn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=yr(t.defaultValues)||yr(t.values)?Pr(t.defaultValues||t.values)||{}:{},l=t.shouldUnregister?{}:Pr(o),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},h,m=0;const b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...b};let E={...x};const T={array:mq(),state:mq()},C=t.criteriaMode===oa.all,R=j=>X=>{clearTimeout(m),m=setTimeout(j,X)},w=async j=>{if(!u.keepIsValid&&!t.disabled&&(x.isValid||E.isValid||j)){let X;t.resolver?(X=pn((await W()).errors),I()):X=await L({fields:n,onlyCheckValid:!0,eventType:Ss.VALID}),X!==r.isValid&&T.state.next({isValid:X})}},I=(j,X)=>{!t.disabled&&(x.isValidating||x.validatingFields||E.isValidating||E.validatingFields)&&((j||Array.from(f.mount)).forEac
20h(Z=>{Z&&(X?Vt(r.validatingFields,Z,X):kr(r.validatingFields,Z))}),T.state.next({validatingFields:r.validatingFields,isValidating:!pn(r.validatingFields)}))},P=j=>{const X=yf(o,l),Z=hve(j);Vt(r.dirtyFields,Z,ke(X,Z))},q=(j,X=[],Z,Ee,Re=!0,Te=!0)=>{if(Ee&&Z&&!t.disabled){if(u.action=!0,Te&&Array.isArray(ke(n,j))){const Ne=Z(ke(n,j),Ee.argA,Ee.argB);Re&&Vt(n,j,Ne)}if(Te&&Array.isArray(ke(r.errors,j))){const Ne=Z(ke(r.errors,j),Ee.argA,Ee.argB);Re&&Vt(r.errors,j,Ne),Sve(r.errors,j)}if((x.touchedFields||E.touchedFields)&&Te&&Array.isArray(ke(r.touchedFields,j))){const Ne=Z(ke(r.touchedFields,j),Ee.argA,Ee.argB);Re&&Vt(r.touchedFields,j,Ne)}(x.dirtyFields||E.dirtyFields)&&P(j),T.state.next({name:j,isDirty:ee(j,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Vt(l,j,X)},D=(j,X)=>{Vt(r.errors,j,X),T.state.next({errors:r.errors})},O=j=>{r.errors=j,T.state.next({errors:r.errors,isValid:!1})},N=(j,X,Z,Ee)=>{const Re=ke(n,j);if(Re){const Te=ke(l,j,cr(Z)?ke(o,j):Z);cr(Te)||Ee&&Ee.defaultChecked||X?Vt(l,j,X?Te:yq(Re._f)):ie(j,Te),u.mount&&!u.action&&w()}},V=(j,X,Z,Ee,Re)=>{let Te=!1,Ne=!1;const Ze={name:j};if(!t.disabled){if(!Z||Ee){(x.isDirty||E.isDirty)&&(Ne=r.isDirty,r.isDirty=Ze.isDirty=ee(),Te=Ne!==Ze.isDirty);const st=gi(ke(o,j),X);Ne=!!ke(r.dirtyFields,j),st?kr(r.dirtyFields,j):Vt(r.dirtyFields,j,!0),Ze.dirtyFields=r.dirtyFields,Te=Te||(x.dirtyFields||E.dirtyFields)&&Ne!==!st}if(Z){const st=ke(r.touchedFields,j);st||(Vt(r.touchedFields,j,Z),Ze.touchedFields=r.touchedFields,Te=Te||(x.touchedFields||E.touchedFields)&&st!==Z)}Te&&Re&&T.state.next(Ze)}return Te?Ze:{}},J=(j,X,Z,Ee)=>{const Re=ke(r.errors,j),Te=(x.isValid||E.isValid)&&mi(X)&&r.isValid!==X;if(t.delayError&&Z?(h=R(()=>D(j,Z)),h(t.delayError)):(clearTimeout(m),h=null,Z?Vt(r.errors,j,Z):kr(r.errors,j)),(Z?!gi(Re,Z):Re)||!pn(Ee)||Te){const Ne={...Ee,...Te&&mi(X)?{isValid:X}:{},errors:r.errors,name:j};r={...r,...Ne},T.state.next(Ne)}},W=async j=>(I(j,!0),await t.resolver(l,t.context,mve(j||f.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),G=async j=>{const{errors:X}=await W(j);if(I(j),j)for(const Z of j){const Ee=ke(X,Z);Ee?Vt(r.errors,Z,Ee):kr(r.errors,Z)}else r.errors=X;return X},B=async({name:j,eventType:X})=>{if(e.validate){const Z=await e.validate({formValues:l,formState:r,name:j,eventType:X});if(yr(Z))for(const Ee in Z)Z[Ee]&&tt(`${A1}.${Ee}`,{message:gn(Z.message)?Z.message:"",type:ea.validate});else gn(Z)||!Z?tt(A1,{message:Z||"",type:ea.validate}):Be(A1);return Z}return!0},L=async({fields:j,onlyCheckValid:X,name:Z,eventType:Ee,context:Re={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(Re.runRootValidation=!0,!await B({name:Z,eventType:Ee})&&(Re.valid=!1,X)))return Re.valid;for(const Te in j){const Ne=j[Te];if(Ne){const{_f:Ze,...st}=Ne;if(Ze){const Ht=f.array.has(Ze.name),kt=Ne._f&&gve(Ne._f);kt&&x.validatingFields&&I([Ze.name],!0);const Ct=await Cq(Ne,f.disabled,l,C,t.shouldUseNativeValidation&&!X,Ht);if(kt&&x.validatingFields&&I([Ze.name]),Ct[Ze.name]&&(Re.valid=!1,X)||(!X&&(ke(Ct,Ze.name)?Ht?Eve(r.errors,Ct,Ze.name):Vt(r.errors,Ze.name,Ct[Ze.name]):kr(r.errors,Ze.name)),e.shouldUseNativeValidation&&Ct[Ze.name]))break}!pn(st)&&await L({context:Re,onlyCheckValid:X,fields:st,name:Te,eventType:Ee})}}return Re.valid},z=()=>{for(const j of f.unMount){const X=ke(n,j);X&&(X._f.refs?X._f.refs.every(Z=>!R1(Z)):!R1(X._f.ref))&&Je(j)}f.unMount=new Set},ee=(j,X)=>!t.disabled&&(j&&X&&Vt(l,j,X),!gi(Ce(),o)),te=(j,X,Z)=>a2(j,f,{...u.mount?l:cr(X)?o:gn(j)?{[j]:X}:X},Z,X),Y=j=>tR(ke(u.mount?l:o,j,t.shouldUnregister?ke(o,j,[]):[])),ie=(j,X,Z={})=>{const Ee=ke(n,j);let Re=X;if(Ee){const Te=Ee._f;Te&&(!Te.disabled&&Vt(l,j,dj(X,Te)),Re=Ng(Te.ref)&&wn(X)?"":X,lj(Te.ref)?[...Te.ref.options].forEach(Ne=>Ne.selected=Re.includes(Ne.value)):Te.refs?bp(Te.ref)?Te.refs.forEach(Ne=>{(!Ne.defaultChecked||!Ne.disabled)&&(Array.isArray(Re)?Ne.checked=!!Re.find(Ze=>Ze===Ne.value):Ne.checked=Re===Ne.value||!!Re)}):Te.refs.forEach(Ne=>Ne.checked=Ne.value===Re):aR(Te.ref)?Te.ref.value="":(Te.ref.value=Re,Te.ref.type||T.state.next({name:j,values:Pr(l)})))}(Z.shouldDirty||Z.shouldTouch)&&V(j,Re,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&be(j)},me=(j,X,Z)=>{for(const Ee in X){if(!X.hasOwnProperty(Ee))return;const Re=X[Ee],Te=j+"."+Ee,Ne=ke(n,Te);(f.array.has(j)||yr(Re)||Ne&&!Ne._f)&&!Tl(Re)?me(Te,Re,Z):ie(Te,Re,Z)}},Se=(j,X,Z={})=>{const Ee=ke(n,j),Re=f.array.has(j),Te=Pr(X),Ne=ke(l,j),Ze=gi(Ne,Te);if(Vt(l,j,Te),Re)T.array.next({name:j,values:Pr(l)}),Z.shouldDirty&&(P(j),T.state.next({name:j,dirtyFields:r.dirtyFields,isDirty:ee(j,Te)}));else{const st=Array.isArray(Te)&&!Te.length||pn(Te);!Ee||Ee._f||wn(Te)||st?ie(j,Te,Z):me(j,Te,Z)}Ze||(Eq(j,f)?T.state.next({...r,name:j,values:Pr(l)}):T.state.next({name:u.mount?j:void 0,values:Pr(l)}))},we=j=>{const X=mn(j)?j(l):j;
20gi(l,X)||(l={...l,...X},T.state.next({...r,values:l}))},H=async j=>{u.mount=!0;const X=j.target;let Z=X.name,Ee=!0;const Re=ke(n,Z),Te=st=>{Ee=Number.isNaN(st)||Tl(st)&&isNaN(st.getTime())||gi(st,ke(l,Z,st))},Ne=xq(t.mode),Ze=xq(t.reValidateMode);if(Re){let st,Ht;const kt=X.type?yq(Re._f):rj(j),Ct=j.type===Ss.BLUR||j.type===Ss.FOCUS_OUT,Cr=!bve(Re._f)&&!e.validate&&!t.resolver&&!ke(r.errors,Z)&&!Re._f.deps||xve(Ct,ke(r.touchedFields,Z),r.isSubmitted,Ze,Ne),$s=Eq(Z,f,Ct);Vt(l,Z,kt),Ct?(!X||!X.readOnly)&&(Re._f.onBlur&&Re._f.onBlur(j),h&&h(0)):Re._f.onChange&&Re._f.onChange(j);const Bo=V(Z,kt,Ct),Vu=!pn(Bo)||$s;if(!Ct&&T.state.next({name:Z,type:j.type,values:Pr(l)}),Cr)return(x.isValid||E.isValid)&&(t.mode==="onBlur"?Ct&&w():Ct||w()),Vu&&T.state.next({name:Z,...$s?{}:Bo});if(!t.resolver&&e.validate&&await B({name:Z,eventType:j.type}),!Ct&&$s&&T.state.next({...r}),t.resolver){const{errors:va}=await W([Z]);if(I([Z]),Te(kt),Ee){const Ri=Aq(r.errors,n,Z),eo=Aq(va,n,Ri.name||Z);st=eo.error,Z=eo.name,Ht=pn(va)}}else I([Z],!0),st=(await Cq(Re,f.disabled,l,C,t.shouldUseNativeValidation))[Z],I([Z]),Te(kt),Ee&&(st?Ht=!1:(x.isValid||E.isValid)&&(Ht=await L({fields:n,onlyCheckValid:!0,name:Z,eventType:j.type})));Ee&&(Re._f.deps&&(!Array.isArray(Re._f.deps)||Re._f.deps.length>0)&&be(Re._f.deps),J(Z,Ht,st,Bo))}},se=(j,X)=>{if(ke(r.errors,X)&&j.focus)return j.focus(),1},be=async(j,X={})=>{let Z,Ee;const Re=_f(j);if(t.resolver){const Te=await G(cr(j)?j:Re);Z=pn(Te),Ee=j?!Re.some(Ne=>ke(Te,Ne)):Z}else j?(Ee=(await Promise.all(Re.map(async Te=>{const Ne=ke(n,Te);return await L({fields:Ne&&Ne._f?{[Te]:Ne}:Ne,eventType:Ss.TRIGGER})}))).every(Boolean),!(!Ee&&!r.isValid)&&w()):Ee=Z=await L({fields:n,name:j,eventType:Ss.TRIGGER});return T.state.next({...!gn(j)||(x.isValid||E.isValid)&&Z!==r.isValid?{}:{name:j},...t.resolver||!j?{isValid:Z}:{},errors:r.errors}),X.shouldFocus&&!Ee&&Of(n,se,j?Re:f.mount),Ee},Ce=(j,X)=>{let Z={...u.mount?l:o};return X&&(Z=sj(X.dirtyFields?r.dirtyFields:r.touchedFields,Z)),cr(j)?Z:gn(j)?ke(Z,j):j.map(Ee=>ke(Z,Ee))},Le=(j,X)=>({invalid:!!ke((X||r).errors,j),isDirty:!!ke((X||r).dirtyFields,j),error:ke((X||r).errors,j),isValidating:!!ke(r.validatingFields,j),isTouched:!!ke((X||r).touchedFields,j)}),Be=j=>{const X=j?_f(j):void 0;X?.forEach(Z=>kr(r.errors,Z)),X?X.forEach(Z=>{T.state.next({name:Z,errors:r.errors})}):T.state.next({errors:{}})},tt=(j,X,Z)=>{const Ee=(ke(n,j,{_f:{}})._f||{}).ref,Re=ke(r.errors,j)||{},{ref:Te,message:Ne,type:Ze,...st}=Re;Vt(r.errors,j,{...st,...X,ref:Ee}),T.state.next({name:j,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&Ee&&Ee.focus&&Ee.focus()},Ae=(j,X)=>mn(j)?T.state.subscribe({next:Z=>"values"in Z&&j(Z.values||te(void 0,X),Z)}):te(j,X,!0),ye=j=>T.state.subscribe({next:X=>{if(yve(j.name,X.name,j.exact)&&vve(X,j.formState||x,jn,j.reRenderRoot)){const Z={...l};j.callback({values:Z,...r,...X,defaultValues:o})}}}).unsubscribe,Qe=j=>(u.mount=!0,E={...E,...j.formState},ye({...j,formState:{...b,...j.formState}})),Je=(j,X={})=>{for(const Z of j?_f(j):f.mount)f.mount.delete(Z),f.array.delete(Z),X.keepValue||(kr(n,Z),kr(l,Z)),!X.keepError&&kr(r.errors,Z),!X.keepDirty&&kr(r.dirtyFields,Z),!X.keepTouched&&kr(r.touchedFields,Z),!X.keepIsValidating&&kr(r.validatingFields,Z),!t.shouldUnregister&&!X.keepDefaultValue&&kr(o,Z);T.state.next({values:Pr(l)}),T.state.next({...r,...X.keepDirty?{isDirty:ee()}:{}}),!X.keepIsValid&&w()},vt=({disabled:j,name:X})=>{if(mi(j)&&u.mount||j||f.disabled.has(X)){const Re=f.disabled.has(X)!==!!j;j?f.disabled.add(X):f.disabled.delete(X),Re&&u.mount&&!u.action&&w()}},$t=(j,X={})=>{let Z=ke(n,j);const Ee=mi(X.disabled)||mi(t.disabled),Re=!f.registerName.has(j)&&Z&&Z._f&&!Z._f.mount;return Vt(n,j,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:j}},name:j,mount:!0,...X}}),f.mount.add(j),Z&&!Re?vt({disabled:mi(X.disabled)?X.disabled:t.disabled,name:j}):N(j,!0,X.value),{...Ee?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:af(X.min),max:af(X.max),minLength:af(X.minLength),maxLength:af(X.maxLength),pattern:af(X.pattern)}:{},name:j,onChange:H,onBlur:H,ref:Te=>{if(Te){f.registerName.add(j),$t(j,X),f.registerName.delete(j),Z=ke(n,j);const Ne=cr(Te.value)&&Te.querySelectorAll&&Te.querySelectorAll("input,select,textarea")[0]||Te,Ze=uve(Ne),st=Z._f.refs||[];if(Ze?st.find(Ht=>Ht===Ne):Ne===Z._f.ref)return;Vt(n,j,{_f:{...Z._f,...Ze?{refs:[...st.filter(R1),Ne,...Array.isArray(ke(o,j))?[{}]:[]],ref:{type:Ne.type,name:j}}:{ref:Ne}}}),N(j,!1,void 0,Ne)}else Z=ke(n,j,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(nj(f.array,j)&&u.action)&&f.unMount.add(j)}}},Bt=()=>t.shouldFocusError&&Of(n,se,f.mount),Rr=j=>{mi(j)&&(T.state.next({disabled:j}),Of(n,(X,Z)=>{const Ee=ke(n,Z);Ee&&(X.disabled=Ee._f.disabled||j,Array.isArray(Ee._f.refs)&&Ee._f.refs.forEac
vendor: 4,414 bytes, line 20
20h(Re=>{Re.disabled=Ee._f.disabled||j}))},0,!1))},Dn=(j,X)=>async Z=>{let Ee;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let Re=Pr(l);if(T.state.next({isSubmitting:!0}),t.resolver){const{errors:Te,values:Ne}=await W();I(),r.errors=Te,Re=Pr(Ne)}else await L({fields:n,eventType:Ss.SUBMIT});if(f.disabled.size)for(const Te of f.disabled)kr(Re,Te);if(kr(r.errors,ij),pn(r.errors)){T.state.next({errors:{}});try{await j(Re,Z)}catch(Te){Ee=Te}}else X&&await X({...r.errors},Z),Bt(),setTimeout(Bt);if(T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pn(r.errors)&&!Ee,submitCount:r.submitCount+1,errors:r.errors}),Ee)throw Ee},Za=(j,X={})=>{ke(n,j)&&(cr(X.defaultValue)?Se(j,Pr(ke(o,j))):(Se(j,X.defaultValue),Vt(o,j,Pr(X.defaultValue))),X.keepTouched||kr(r.touchedFields,j),X.keepDirty||(kr(r.dirtyFields,j),r.isDirty=X.defaultValue?ee(j,Pr(ke(o,j))):ee()),X.keepError||(kr(r.errors,j),x.isValid&&w()),T.state.next({...r}))},Hi=(j,X={})=>{const Z=j?Pr(j):o,Ee=Pr(Z),Re=pn(j),Te=Re?o:Ee;if(X.keepDefaultValues||(o=Z),!X.keepValues){if(X.keepDirtyValues){const Ne=new Set([...f.mount,...Object.keys(yf(o,l))]);for(const Ze of Array.from(Ne)){const st=ke(r.dirtyFields,Ze),Ht=ke(l,Ze),kt=ke(Te,Ze);st&&!cr(Ht)?Vt(Te,Ze,Ht):!st&&!cr(kt)&&Se(Ze,kt)}}else{if(eR&&cr(j))for(const Ne of f.mount){const Ze=ke(n,Ne);if(Ze&&Ze._f){const st=Array.isArray(Ze._f.refs)?Ze._f.refs[0]:Ze._f.ref;if(Ng(st)){const Ht=st.closest("form");if(Ht){Ht.reset();break}}}}if(X.keepFieldsRef)for(const Ne of f.mount)Se(Ne,ke(Te,Ne));else n={}}l=t.shouldUnregister?X.keepDefaultValues?Pr(o):{}:Pr(Te),T.array.next({values:{...Te}}),T.state.next({values:{...Te}})}f={mount:X.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!x.isValid||!!X.keepIsValid||!!X.keepDirtyValues||!t.shouldUnregister&&!pn(Te),u.watch=!!t.shouldUnregister,u.keepIsValid=!!X.keepIsValid,u.action=!1,X.keepErrors||(r.errors={}),T.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:Re?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!gi(j,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Re?{}:X.keepDirtyValues?X.keepDefaultValues&&l?yf(o,l):r.dirtyFields:X.keepDefaultValues&&j?yf(o,j):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},xn=(j,X)=>Hi(mn(j)?j(l):j,{...t.resetOptions,...X}),Mn=(j,X={})=>{const Z=ke(n,j),Ee=Z&&Z._f;if(Ee){const Re=Ee.refs?Ee.refs[0]:Ee.ref;Re.focus&&setTimeout(()=>{Re.focus(),X.shouldSelect&&mn(Re.select)&&Re.select()})}},jn=j=>{r={...r,...j}},Ie={control:{register:$t,unregister:Je,getFieldState:Le,handleSubmit:Dn,setError:tt,_subscribe:ye,_runSchema:W,_updateIsValidating:I,_focusError:Bt,_getWatch:te,_getDirty:ee,_setValid:w,_setFieldArray:q,_setDisabledField:vt,_setErrors:O,_getFieldArray:Y,_reset:Hi,_resetDefaultValues:()=>mn(t.defaultValues)&&t.defaultValues().then(j=>{xn(j,t.resetOptions),T.state.next({isLoading:!1})}),_removeUnmounted:z,_disableForm:Rr,_subjects:T,_proxyFormState:x,get _fields(){return n},get _formValues(){return l},get _state(){return u},set _state(j){u=j},get _defaultValues(){return o},get _names(){return f},set _names(j){f=j},get _formState(){return r},get _options(){return t},set _options(j){t={...t,...j}}},subscribe:Qe,trigger:be,register:$t,handleSubmit:Dn,watch:Ae,setValue:Se,setValues:we,getValues:Ce,reset:xn,resetField:Za,clearErrors:Be,unregister:Je,setError:tt,setFocus:Mn,getFieldState:Le};return{...Ie,formControl:Ie}}function pj(e={}){const t=Pe.useRef(void 0),r=Pe.useRef(void 0),[n,o]=Pe.useState({isDirty:!1,isValidating:!1,isLoading:mn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:mn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!mn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...f}=Rve(e);t.current={...f,formState:n}}const l=t.current.control;return l._options=e,iR(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}
20),reRenderRoot:!0});return o(f=>({...f,isReady:!0})),l._formState.isReady=!0,u},[l]),Pe.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),Pe.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),Pe.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),Pe.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),Pe.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==n.isDirty&&l._subjects.state.next({isDirty:u})}},[l,n.isDirty]),Pe.useEffect(()=>{var u;e.values&&!gi(e.values,r.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),r.current=e.values,o(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),Pe.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=Pe.useMemo(()=>oj(n,l),[l,n]),t.current}const Cve=y({confirmPassword:s().required().min(8),password:s().required().min(8),email:s().required().min(3).email(),displayName:s().required().min(1).max(50)});function Tve(){const e=ga(),{appStyles:t,loading:r,formId:n,formVariant:o,setProcessingForm:l,formPath:u}=ZA(),{formState:{errors:f},register:h,watch:m,handleSubmit:b}=pj(),x=m("password"),E=m("email"),T=t.logoUrl??t.iconUrl;function C(w){switch(l(!1),w.code){case"AUTH.USER_EXISTS":if(o==="free")return St.info({title:"Email already taken!"});St.info({title:"Account found!",description:"Sign in to upgrade your account!"}),e(`${u}/upgrade`);break;default:l(!1),$r(w)}}const R=b(async function(I){if(!n||!o)return;const P=await Cve.validate(I).catch(()=>{});if(!P)return St.error({title:"Invalid signup data!"});l(!0),P.email=P.email.toLowerCase().trim();const q=await _g.AppuserSignup({params:{formVariant:o,formId:n},data:P}).catch(D=>D);if(q instanceof Ma)return C(q);window.location.replace(q.nextUrl)},w=>console.error(w));return p.jsxs(Oe,{w:"100%",wrap:"wrap",children:[p.jsx(nr,{width:"100%",height:"64px",objectFit:"contain",src:T,mb:"4rem"}),p.jsxs("form",{children:[p.jsx(Pn,{direction:"row",children:p.jsxs(Xt,{disabled:r,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",color:t.color,fontFamily:t.font,children:"Name"}),p.jsx(tr,{...h("displayName",{required:!0}),type:"text",placeholder:"Name",fontFamily:t.font,color:t.color,bg:"rgba(0,0,0,0)",_focus:{borderColor:t.highlight}}),f.displayName&&p.jsx(_e,{color:"red.500",children:"Name is required"})]})}),p.jsxs(Xt,{mt:3,disabled:r,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:t.font,color:t.color,children:"Email"}),p.jsx(tr,{...h("email",{required:!0,validate:w=>s().required().email().isValidSync(w)}),type:"text",placeholder:"Enter your email",fontFamily:t.font,textTransform:E??!1?"lowercase":"unset",color:t.color,bg:"transparent",_focus:{borderColor:t.highlight},_autofill:{bg:"transparent"}}),f.email&&p.jsx(_e,{color:"red.500",children:"Email is required"})]}),p.jsxs(Pn,{direction:"row",mt:3,children:[p.jsxs(Xt,{disabled:r,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:t.font,color:t.color,children:"Password"}),p.jsx(tr,{...h("password",{required:!0,minLength:8}),type:"password",placeholder:"Password",fontFamily:t.font,color:t.color,bg:"transparent",_focus:{borderColor:t.highlight},_autofill:{bg:"transparent"}}),f.password&&p.jsx(_e,{color:"red.500",children:f.password.type==="minLength"?"Password must be at least 8 characters":f.password.type==="required"?"Password is required":""})]}),p.jsx(lg,{}),p.jsxs(Xt,{disabled:r,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:t.font,color:t.color,children:"Confirm Password"}),p.jsx(tr,{...h("confirmPassword",{required:!0,minLength:8,validate:w=>w===x}),type:"password",placeholder:"Confirm Password",fontFamily:t.font,color:t.color,bg:"transparent",_focus:{borderColor:t.highlight},_autofill:{bg:"transparent"}}),f.confirmPassword&&p.jsx(_e,{color:"red.500",children:f.confirmPassword.type==="validate"?"Passwords do not match":f.confirmPassword.type==="minLength"?"Password must be at least 8 characters":f.confirmPassword.type==="required"?"Please confirm your password":""})]})]})]}),p.jsx(ut,{bg:t.highlight,color:Pg(t.color),_hover:{opacity:.9},ml:"auto",mt:"1rem",onClick:R,children:o==="free"?"Create Account":"Continue to Payment"})]})}const wve=[{component:p.jsx(nve,{}),relativePath:"/"},{component:p.jsx(Tve,{}),relativePath:"/new"}];function _ve(){return p.jsx(rve,{children:p.jsx(Ove,{})})}function Ove(){const{appStyles:e,loading:t,formId:r,formVariant:n,formPath:o}=ZA(),l=!!r&&!!n&&!t;return p.jsxs(De,{children:[p.jsx(We,{if:n!=="free",children:p.jsx(ut,{variant:"outline",color:e.color,bg:"transparent",borderColor:e.color,_hover:{opacity:.9},position:"fixed",right:"1rem",top:"1rem",asChild:!0})}),p.jsx(Oe,{direction:"row",bg:e.bg,w:"100%",h:"100vh",overflow:"auto",justifyContent:"center",children:p.jsxs(De,{bg:e.bg,w:["100%","100%","80%","32rem","32rem","32rem"],px:["0.8rem","2rem","2rem","2rem"],pt:"2rem",pb:"8rem",my:"auto",fontFamily:e.font,children:[p.jsx(We,{if:!l,children:p.jsx(Bi,{})}),p.jsx(We,{if:l,children:p.jsxs(CA,{children:[wve.map((u,f)=>p.jsx(Cs,{path:u.relativePath,element:u.component},f)),p.jsx(Cs,{path:"*",element:p.jsx(Do,{to:o})})]})})]})})]})}const Ive=["305e509b-e95d-47ca-8f92-5502241fd681"];
20function qve(){const[e]=fp(),t=Mu(),[r,n]=S.useState(),o=t.appId,{appStyles:l,loading:u}=JA(o,{updatePageTitle:!0,updateReactFavicon:!0}),f=e.get(Ui.APPUSER_SETUP_PIN);async function h(){if(!o)return window.location.replace(Fi.ORIGIN);const m=await Yl.GetAppLinks({appId:o}).catch(b=>$r(b));m&&n(m)}return S.useEffect(()=>{h()},[]),r===void 0||u?p.jsx(Bi,{}):(Object.entries(r).find(([m,b])=>m!=="web"&&!!b),p.jsx(Oe,{direction:"row",bg:l.bg,w:"100%",h:"100vh",justifyContent:"center",alignItems:"center",overflow:"auto",color:l.color,textAlign:"center",fontFamily:l.font,children:p.jsxs(De,{bg:l.bg,borderRadius:"12px",boxShadow:"md",p:"2rem",pt:"3rem",children:[p.jsxs(De,{mt:3,children:[p.jsx(nr,{src:l.logoUrl,w:"140px",h:"80px",mx:"auto",mb:"1rem",objectFit:"contain"}),p.jsxs(_e,{as:"h3",fontWeight:"bold",fontSize:"22px",textAlign:"center",fontFamily:l.font,children:["Welcome to ",l.appName,"!"]}),p.jsx(Pve,{setupPin:f,appStyles:l})]}),p.jsx(We,{if:!!r.APPLE_APPSTORE||!!r.GOOGLE_PLAYSTORE,children:p.jsxs(Oe,{mt:10,mx:"auto",flexWrap:"wrap",children:[p.jsx(We,{if:!!r.APPLE_APPSTORE,children:p.jsx(De,{overflow:"hidden",w:"100%",children:p.jsx(Ua,{href:r.APPLE_APPSTORE,fontFamily:l.font,children:p.jsx(nr,{src:"/assets/app-store-badge.png",alt:"App on the App Store",w:"12rem",mx:"auto"})})})}),p.jsx(We,{if:!!r.GOOGLE_PLAYSTORE,children:p.jsx(De,{mt:4,overflow:"hidden",w:"100%",children:p.jsx(Ua,{href:r.GOOGLE_PLAYSTORE,fontFamily:l.font,children:p.jsx(nr,{src:"/assets/google-play-badge.png",alt:"App on the Google Play Store",w:"12rem",mx:"auto"})})})}),p.jsx(We,{if:!Ive.includes(o),children:p.jsxs(Oe,{mt:8,w:"100%",flexDir:"column",alignItems:"center",children:[p.jsx(_e,{as:"h3",fontWeight:"bold",fontSize:"22px",fontFamily:l.font,children:"OR"}),p.jsxs(_e,{as:"p",fontSize:"16px",textAlign:"center",mt:"1rem",fontFamily:l.font,children:["Access your account online"," ",p.jsx(Ua,{href:r.web,textDecor:"underline",children:"here"})]})]})})]})})]})}))}function Pve(e){const t=jb(e.setupPin);if(e.setupPin)return p.jsxs(Oe,{flexWrap:"wrap",gap:".75rem",children:[p.jsx(_e,{as:"h5",mx:"auto",children:"Your setup pin is"}),p.jsx(Oe,{w:"100%",justifyContent:"center",children:p.jsxs(Oe,{w:"14rem",gap:".5rem",onClick:t,_hover:{cursor:"pointer"},pos:"relative",children:[p.jsxs(De,{pos:"absolute",opacity:0,_hover:{opacity:1},h:"100%",w:"100%",zIndex:100,children:[p.jsx(De,{pos:"absolute",filter:"blur(4px)",bg:e.appStyles.bg,w:"100%",h:"100%"}),p.jsx(_e,{as:"h5",mx:"auto",h:"2rem",fontSize:"18px",pos:"relative",lineHeight:"2rem",children:"Click to copy to clipboard"})]}),e.setupPin.split("").map((r,n)=>p.jsx(De,{border:"1px solid",h:"2rem",w:"2rem",opacity:".8",zIndex:1,children:p.jsx(_e,{as:"h3",fontSize:"18px",h:"2rem",children:r})},n))]})})]})}var C1={exports:{}},T1,Tq;function kve(){if(Tq)return T1;Tq=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return T1=e,T1}var w1,wq;function Nve(){if(wq)return w1;wq=1;var e=kve();function t(){}function r(){}return r.resetWarningCache=t,w1=function(){function n(u,f,h,m,b,x){if(x!==e){var E=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 E.name="Invariant Violation",E}}n.isRequired=n;function o(){return n}var l={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},w1}var _q;function Dve(){return _q||(_q=1,C1.exports=Nve()()),C1.exports}var Mve=Dve();const Ft=Fl(Mve);function Oq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Iq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oq(Object(r),!0).forEach(function(n){hj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oq(Object(r)).forEac
20h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fm(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(t){return typeof t}:Fm=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}function hj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jve(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,l;for(l=0;l<n.length;l++)o=n[l],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Lve(e,t){if(e==null)return{};var r=jve(e,t),n,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mj(e,t){return zve(e)||Uve(e,t)||Vve(e,t)||Fve()}function zve(e){if(Array.isArray(e))return e}function Uve(e,t){var r=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(r!=null){var n=[],o=!0,l=!1,u,f;try{for(r=r.call(e);!(o=(u=r.next()).done)&&(n.push(u.value),!(t&&n.length===t));o=!0);}catch(h){l=!0,f=h}finally{try{!o&&r.return!=null&&r.return()}finally{if(l)throw f}}return n}}function Vve(e,t){if(e){if(typeof e=="string")return qq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qq(e,t)}}function qq(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Tn=function(t,r,n){var o=!!n,l=Pe.useRef(n);Pe.useEffect(function(){l.current=n},[n]),Pe.useEffect(function(){if(!o||!t)return function(){};var u=function(){l.current&&l.current.apply(l,arguments)};return t.on(r,u),function(){t.off(r,u)}},[o,r,t,l])},l2=function(t){var r=Pe.useRef(t);return Pe.useEffect(function(){r.current=t},[t]),r.current},gu=function(t){return t!==null&&Fm(t)==="object"},$ve=function(t){return gu(t)&&typeof t.then=="function"},Bve=function(t){return gu(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},Pq="[object Object]",Hve=function e(t,r){if(!gu(t)||!gu(r))return t===r;var n=Array.isArray(t),o=Array.isArray(r);if(n!==o)return!1;var l=Object.prototype.toString.call(t)===Pq,u=Object.prototype.toString.call(r)===Pq;if(l!==u)return!1;if(!l&&!n)return t===r;var f=Object.keys(t),h=Object.keys(r);if(f.length!==h.length)return!1;for(var m={},b=0;b<f.length;b+=1)m[f[b]]=!0;for(var x=0;x<h.length;x+=1)m[h[x]]=!0;var E=Object.keys(m);if(E.length!==f.length)return!1;var T=t,C=r,R=function(I){return e(T[I],C[I])};return E.every(R)},gj=function(t,r,n){return gu(t)?Object.keys(t).reduce(function(o,l){var u=!gu(r)||!Hve(t[l],r[l]);return n.includes(l)?(u&&console.warn("Unsupported prop change: options.".concat(l," is not a mutable property.")),o):u?Iq(Iq({},o||{}),{},hj({},l,t[l])):o},null):null},bj="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",kq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bj;if(t===null||Bve(t))return t;throw new Error(r)},Gve=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bj;if($ve(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(o){return kq(o,r)})};var n=kq(t,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},Wve=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"5.6.1"}),t.registerAppInfo({name:"react-stripe-js",version:"5.6.1",url:"https://stripe.com/docs/stripe-js/react"}))},Hb=Pe.createContext(null);Hb.displayName="ElementsContext";var vj=function(t,r){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return t},yj=function(t){var r=t.stripe,n=t.options,o=t.children,l=Pe.useMemo(function(){return Gve(r)},[r]),u=Pe.useState(function(){return{stripe:l.tag==="sync"?l.stripe:null,elements:l.tag==="sync"?l.stripe.elements(n):null}}),f=mj(u,2),h=f[0],m=f[1];Pe.useEffect(function(){var E=!0,T=function(R){m(function(w){return w.stripe?w:{stripe:R,elements:R.elements(n)}})};return l.tag==="async"&&!h.stripe?l.stripePromise.then(function(C){C&&E&&T(C)}):l.tag==="sync"&&!h.stripe&&T(l.stripe),function(){E=!1}},[l,h,n]);var b=l2(r);Pe.useEffect(function(){b!==null&&b!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[b,r]);var x=l2(n);return Pe.useEffect(function(){if(h.elements){var E=gj(n,x,["clientSecret","fonts"]);E&&h.elements.update(E)}},[n,x,h.elements]),Pe.useEffect(function(){Wve(h.stripe)},[h.stripe]),Pe.createElement(Hb.Provider,{value:h},o)};yj.propTypes={stripe:Ft.any,options:Ft.object};var Yve=function(t){var r=Pe.useContext(Hb);return vj(r,t)},Kve=function(){var t=Yve("calls useElements()"),r=t.elements;return r};Ft.func.isRequired;var xj=Pe.createContext(null);xj.displayName="CheckoutContext";Ft.any,Ft.shape({clientSecret:Ft.oneOfType([Ft.string,Ft.instanceOf(Promise)]).isRequired,elementsOptions:Ft.object}).isRequired;var c2=function(t){var r=Pe.useContext(xj),n=Pe.useContext(Hb);if(r){if(n)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CheckoutProvider> and <Elements> providers."));return r}else return vj(n,t)},Xve=["mode"],Qve=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},ni=function(t,r){var n="".concat(Qve(t),"Element"),o=function(h){var m=h.id,b=h.className,x=h.options,E=x===void 0?{}:x,T=h.onBlur,C=h.onFocus,R=h.onReady,w=h.onChange,I=h.onEscape,P=h.onClick,q=h.onLoadError,D=h.onLoaderStart,O=h.onNetworksChange,N=h.onConfirm,V=h.onCancel,J=h.onShippingAddressChange,W=h.onShippingRateChange,G=h.onSavedPaymentMethodRemove,B=h.onSavedPaymentMethodUpdate,L=c2("mounts <".concat(n,">")),z="elements"in L?L.elements:null,ee="checkoutState"in L?L.checkoutState:null,te=ee?.type==="success"||ee?.type==="loading"?ee.sdk:null,Y=Pe.useState(null),ie=mj(Y,2),me=ie[0],Se=ie[1],we=Pe.useRef(null),H=Pe.useRef(null);Tn(me,"blur",T),Tn(me,"focus",C),Tn(me,"escape",I),Tn(me,"click",P),Tn(me,"loaderror",q),Tn(me,"loaderstart",D),Tn(me,"networksch
21ange",O),Tn(me,"confirm",N),Tn(me,"cancel",V),Tn(me,"shippingaddresschange",J),Tn(me,"shippingratechange",W),Tn(me,"savedpaymentmethodremove",G),Tn(me,"savedpaymentmethodupdate",B),Tn(me,"change",w);var se;R&&(t==="expressCheckout"?se=R:se=function(){R(me)}),Tn(me,"ready",se),Pe.useLayoutEffect(function(){if(we.current===null&&H.current!==null&&(z||te)){var Ce=null;if(te)switch(t){case"paymentForm":Ce=te.createPaymentFormElement(E);break;case"payment":Ce=te.createPaymentElement(E);break;case"address":if("mode"in E){var Le=E.mode,Be=Lve(E,Xve);if(Le==="shipping")Ce=te.createShippingAddressElement(Be);else if(Le==="billing")Ce=te.createBillingAddressElement(Be);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":Ce=te.createExpressCheckoutElement(E);break;case"currencySelector":Ce=te.createCurrencySelectorElement();break;case"taxId":Ce=te.createTaxIdElement(E);break;default:throw new Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else z&&(Ce=z.create(t,E));we.current=Ce,Se(Ce),Ce&&Ce.mount(H.current)}},[z,te,E]);var be=l2(E);return Pe.useEffect(function(){if(we.current){var Ce=gj(E,be,["paymentRequest"]);Ce&&"update"in we.current&&we.current.update(Ce)}},[E,be]),Pe.useLayoutEffect(function(){return function(){if(we.current&&typeof we.current.destroy=="function")try{we.current.destroy(),we.current=null}catch{}}},[]),Pe.createElement("div",{id:m,className:b,ref:H})},l=function(h){c2("mounts <".concat(n,">"));var m=h.id,b=h.className;return Pe.createElement("div",{id:m,className:b})},u=r?l:o;return u.propTypes={id:Ft.string,className:Ft.string,onChange:Ft.func,onBlur:Ft.func,onFocus:Ft.func,onReady:Ft.func,onEscape:Ft.func,onClick:Ft.func,onLoadError:Ft.func,onLoaderStart:Ft.func,onNetworksChange:Ft.func,onConfirm:Ft.func,onCancel:Ft.func,onShippingAddressChange:Ft.func,onShippingRateChange:Ft.func,onSavedPaymentMethodRemove:Ft.func,onSavedPaymentMethodUpdate:Ft.func,options:Ft.object},u.displayName=n,u.__elementType=t,u},ii=typeof window>"u",Jve=Pe.createContext(null);Jve.displayName="EmbeddedCheckoutProviderContext";var Zve=function(){var t=c2("calls useStripe()"),r=t.stripe;return r};ni("auBankAccount",ii);var u2=ni("card",ii);ni("cardNumber",ii);ni("cardExpiry",ii);ni("cardCvc",ii);ni("iban",ii);ni("payment",ii);ni("expressCheckout",ii);ni("paymentRequestButton",ii);ni("linkAuthentication",ii);ni("address",ii);ni("shippingAddress",ii);ni("paymentMethodMessaging",ii);ni("taxId",ii);function Sj(e,t){if(!t)return e;let r=e;return t.percentOff!==null?r=(100-t.percentOff)/100*e:t.amountOff!==null&&(r=Math.max(e-t.amountOff,0)),r}function Ej(e,t="en-US"){if(!e)return"";const{priceType:r,priceInterval:n}=e;return r!=="Recurring"?"":n==="Monthly"?at[t].perMonth:n==="Weekly"?at[t].perWeek:n==="Every 3 Month"?at[t].per3Months:n==="Every 6 Month"?at[t].per6Months:n==="Every Year"?at[t].perYear:""}function eye(e,t,r="en-US"){if(!e||e.priceTrialDays===0||e.priceType!=="Recurring")return"";const n=e.priceTrialDays,o=Ff(Sj(e.priceAmount,t)/100,r,e.priceCurrency),l=Ej(e,r);return at[r].freeTrialExplanation(n,o,l)}const at={"en-US":{firstName:"First Name",lastName:"Last Name",email:"Email",password:"Password",confirmPassword:"Confirm Password",discountCode:"Discount Code",apply:"Apply",payment:"Payment",cardNumber:"Card Number",perMonth:" / month",perWeek:" / week",per3Months:" / 3 months",per6Months:" / 6 months",perYear:" / year",freeTrialExplanation:(e,t,r)=>`Comes with ${e} days free! Your card will be charged ${t} ${r} at the end of the trial.`,free:"FREE",freeTrial:"FREE TRIAL",byPlacingYourOrder:"By placing your order, you agree to the ",termsAndConditions:"Terms and Conditions",subscribe:"Subscribe",almostThere:"Almost There!",signupBelow:"Sign up below",updateSubscription:"Update Subscription",iAlreadyHaveAnAccount:"I already have an account",enterYourEmail:"Enter your email",purchase:"Purchase",s
21ave:"Save",passwordsDoNotMatch:"Passwords do not match",pleaseConfirmYourPassword:"Please confirm your password",applying:"Applying",emailIsRequired:"Email is required",passwordIsRequired:"Password is required",passwordMustBeAtLeast8Characters:"Password must be at least 8 characters",discountCodeIsRequired:"Discount code is required",discountCodeIsInvalid:"Discount code is invalid",discountCodeApplied:"Discount code applied",discountCodeNotApplied:"Discount code not applied",firstNameIsRequired:"First name is required",lastNameIsRequired:"Last name is required",submitting:"Submitting"},"pt-BR":{firstName:"Nome",lastName:"Sobrenome",email:"Email",password:"Senha",confirmPassword:"Confirmar Senha",discountCode:"Código de Desconto",apply:"Aplicar",payment:"Pagamento",cardNumber:"Número do Cartão",perMonth:" / mês",perWeek:" / semana",per3Months:" / 3 meses",per6Months:" / 6 meses",perYear:" / ano",freeTrialExplanation:(e,t,r)=>`Com ${e} dias grátis! Seu cartão será cobrado ${t} ${r} no final do perÃodo de teste.`,free:"GRÃTIS",freeTrial:"GRÃTIS TRIAL",byPlacingYourOrder:"Ao colocar seu pedido, você concorda com os ",termsAndConditions:"Termos e Condições",subscribe:"Assinar",almostThere:"Quase lá!",signupBelow:"Cadastre-se abaixo",updateSubscription:"Atualizar Assinatura",iAlreadyHaveAnAccount:"Já tenho uma conta",enterYourEmail:"Digite seu email",purchase:"Comprar",save:"Salvar",passwordsDoNotMatch:"As senhas não coincidem",pleaseConfirmYourPassword:"Por favor, confirme sua senha",applying:"Aplicando",emailIsRequired:"Email é obrigatório",passwordIsRequired:"Senha é obrigatória",passwordMustBeAtLeast8Characters:"A senha deve ter pelo menos 8 caracteres",discountCodeIsRequired:"Código de desconto é obrigatório",discountCodeIsInvalid:"Código de desconto inválido",discountCodeApplied:"Código de desconto aplicado",discountCodeNotApplied:"Código de desconto não aplicado",firstNameIsRequired:"Nome é obrigatório",lastNameIsRequired:"Sobrenome é obrigatório",submitting:"Enviando"}};function tye(e){const{appStyles:t,locale:r}=e,n=Zve(),o=Kve();function l(u){!n||!o||(u.preventDefault(),u.stopPropagation(),e.onStripeSubmit(n,o))}return p.jsxs(p.Fragment,{children:[p.jsxs(Xt,{mt:"1rem",disabled:e.loading,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:t.font,color:t.color,children:at[r].cardNumber}),p.jsx(De,{minH:"50px",minW:"100%",mt:"2",mb:"6",border:"1px solid #ccc",borderRadius:"md",py:"3",px:"2",bgColor:"inherit",children:p.jsx(u2,{options:{style:{base:{fontWeight:"500",fontFamily:"inherit",fontSize:"16px",fontSmoothing:"antialiased",color:t.color,"::placeholder":{color:t.secondaryColor}}}}})})]}),p.jsxs(_e,{as:"small",color:t.color,fontFamily:t.font,fontSize:"0.7rem",textAlign:"center",children:[at[r].byPlacingYourOrder,p.jsx(Ua,{target:"_blank",href:e.stripeForm.licenseAgreement,color:t.color,fontWeight:700,children:at[r].termsAndConditions})]}),p.jsx(Oe,{justifyContent:"flex-end",mt:6,children:p.jsx(N6,{children:p.jsx(ut,{colorScheme:"primary",fontFamily:t.font,bg:t.highlight,color:Pg(t.highlight),w:"10rem",type:"submit",loading:e.loading,loadingText:at[r].submitting,onClick:l,disabled:e.loading,spinner:p.jsx(ab,{color:Pg(t.highlight),size:"sm"}),children:e.stripeForm.priceType==="Recurring"?at[r].subscribe:at[r].purchase})})})]})}const rye="/assets/powered-by-apprabbit-BI2MDYhh.svg";function $m(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$m=function(t){return typeof t}:$m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$m(e)}var Aj="clover",nye=function(t){return t===3?"v3":t},Rj="https://js.stripe.com",iye="".concat(Rj,"/").concat(Aj,"/stripe.js"),aye=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,oye=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var sye=function(t){return aye.test(t)||oye.test(t)},lye=function(){for(var t=document.querySelectorAll('script[src^="'.concat(Rj,'"]')),r=0;r<t.length;r++){var n=t[r];if(sye(n.src))return n}return null},Nq=function(t){var r="",n=document.createElement("script");n.src="".concat(iye).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},cye=function(t,r){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"8.11.0",startTime:r})},of=null,fm=null,pm=null,uye=function(t){return function(r){t(new Error("Failed to load Stripe.js",{cause:r}))}},dye=function(t,r){return function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))}},fye=function(t){return of!==null?of:(of=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=lye();if(!(o&&t)){if(!o)o=Nq(t);else if(o&&pm!==null&&fm!==null){var l;o.removeEventListener("load",pm),o.removeEventListener("error",fm),(l=o.parentNode)===null||l===void 0||l.removeChild(o),o=Nq(t)}}pm=dye(r,n),fm=uye(n),o.addEventListener("load",pm),o.addEventListener("error",fm)}catch(u){n(u);return}}),of.catch(function(r){return of=null,Promise.reject(r)}))},pye=function(t,r,n){if(t===null)return null;var o=r[0];if(typeof o!="string")throw new Error("Expected publishable key to be of type string, got type ".concat($m(o)," instead."));var l=o.match(/^pk_test/),u=nye(t.version),f=Aj;l&&u!==f&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("8.11.0"," expected Stripe.js@").concat(f,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var h=t.apply(void 0,r);return cye(h,n),h}
vendor: 37,388 bytes, lines 21-29
21,sf,Cj=!1,Tj=function(){return sf||(sf=fye(null).catch(function(t){return sf=null,Promise.reject(t)}),sf)};Promise.resolve().then(function(){return Tj()}).catch(function(e){Cj||console.warn(e)});var hye=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];Cj=!0;var o=Date.now();return Tj().then(function(l){return pye(l,r,o)})};function wj(e,t){return function(){return e.apply(t,arguments)}}const{toString:mye}=Object.prototype,{getPrototypeOf:Gb}=Object,{iterator:Wb,toStringTag:_j}=Symbol,Yb=(e=>t=>{const r=mye.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ba=e=>(e=e.toLowerCase(),t=>Yb(t)===e),Kb=e=>t=>typeof t===e,{isArray:Uu}=Array,bu=Kb("undefined");function vp(e){return e!==null&&!bu(e)&&e.constructor!==null&&!bu(e.constructor)&&Zn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oj=ba("ArrayBuffer");function gye(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oj(e.buffer),t}const bye=Kb("string"),Zn=Kb("function"),Ij=Kb("number"),yp=e=>e!==null&&typeof e=="object",vye=e=>e===!0||e===!1,Bm=e=>{if(Yb(e)!=="object")return!1;const t=Gb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_j in e)&&!(Wb in e)},yye=e=>{if(!yp(e)||vp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xye=ba("Date"),Sye=ba("File"),Eye=e=>!!(e&&typeof e.uri<"u"),Aye=e=>e&&typeof e.getParts<"u",Rye=ba("Blob"),Cye=ba("FileList"),Tye=e=>yp(e)&&Zn(e.pipe);function wye(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Dq=wye(),Mq=typeof Dq.FormData<"u"?Dq.FormData:void 0,_ye=e=>{if(!e)return!1;if(Mq&&e instanceof Mq)return!0;const t=Gb(e);if(!t||t===Object.prototype||!Zn(e.append))return!1;const r=Yb(e);return r==="formdata"||r==="object"&&Zn(e.toString)&&e.toString()==="[object FormData]"},Oye=ba("URLSearchParams"),[Iye,qye,Pye,kye]=["ReadableStream","Request","Response","Headers"].map(ba),Nye=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xp(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Uu(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(vp(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let f;for(n=0;n<u;n++)f=l[n],t.call(null,e[f],f,e)}}function qj(e,t){if(vp(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const wl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pj=e=>!bu(e)&&e!==wl;function d2(){const{caseless:e,skipUndefined:t}=Pj(this)&&this||{},r={},n=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=e&&qj(r,l)||l;Bm(r[u])&&Bm(o)?r[u]=d2(r[u],o):Bm(o)?r[u]=d2({},o):Uu(o)?r[u]=o.slice():(!t||!bu(o))&&(r[u]=o)};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&xp(arguments[o],n);return r}const Dye=(e,t,r,{allOwnKeys:n}={})=>(xp(t,(o,l)=>{r&&Zn(o)?Object.defineProperty(e,l,{value:wj(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Mye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jye=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Lye=(e,t,r,n)=>{let o,l,u;const f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)u=o[l],(!n||n(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=r!==!1&&Gb(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},zye=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Uye=e=>{if(!e)return null;if(Uu(e))return e;let t=e.length;if(!Ij(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Vye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gb(Uint8Array)),Fye=(e,t)=>{const n=(e&&e[Wb]).call(e);let o;for(;(o=n.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},$ye=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Bye=ba("HTMLFormElement"),Hye=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),jq=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Gye=ba("RegExp"),kj=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};xp(r,(o,l)=>{let u;(u=t(o,l,e))!==!1&&(n[l]=u||o)}),Object.defineProperties(e,n)},Wye=e=>{kj(e,(t,r)=>{if(Zn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Zn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Yye=(e,t)=>{const r={},n=o=>{o.forEach(l=>{r[l]=!0})};return Uu(e)?n(e):n(String(e).split(t)),r},Kye=()=>{},Xye=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Qye(e){return!!(e&&Zn(e.append)&&e[_j]==="FormData"&&e[Wb])}const Jye=e=>{const t=new Array(10),r=(n,o)=>{if(yp(n)){if(t.indexOf(n)>=0)return;if(vp(n))return n;if(!("toJSON"in n)){t[o]=n;const l=Uu(n)?[]:{};return xp(n,(u,f)=>{const h=r(u,o+1);!bu(h)&&(l[f]=h)}),t[o]=void 0,l}}return n};return r(e,0)},Zye=ba("AsyncFunction"),e1e=e=>e&&(yp(e)||Zn(e))&&Zn(e.then)&&Zn(e.catch),Nj=((e,t)=>e?setImmediate:t?((r,n)=>(wl.addEventListener("message",({source:o,data:l})=>{o===wl&&l===r&&n.length&&n.shift()()},!1),o=>{n.push(o),wl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Zn(wl.postMessage)),t1e=typeof queueMicrotask<"u"?queueMicrotask.bind(wl):typeof process<"u"&&process.nextTick||Nj,r1e=e=>e!=null&&Zn(e[Wb]),ue={isArray:Uu,isArrayBuffer:Oj,isBuffer:vp,isFormData:_ye,isArrayBufferView:gye,isString:bye,isNumber:Ij,isBoolean:vye,isObject:yp,isPlainObject:Bm,isEmptyObject:yye,isReadableStream:Iye,isRequest:qye,isResponse:Pye,isHeaders:kye,isUndefined:bu,isDate:xye,isFile:Sye,isReactNativeBlob:Eye,isReactNative:Aye,isBlob:Rye,isRegExp:Gye,isFunction:Zn,isStream:Tye,isURLSearchParams:Oye,isTypedArray:Vye,isFileList:Cye,forEach:xp,merge:d2,extend:Dye,trim:Nye,stripBOM:Mye,inherits:jye,toFlatObject:Lye,kindOf:Yb,kindOfTest:ba,endsWith:zye,toArray:Uye,forEachEntry:Fye,matchAll:$ye,isHTMLForm:Bye,hasOwnProperty:jq,hasOwnProp:jq,reduceDescriptors:kj,freezeMethods:Wye,toObjectSet:Yye,toCamelCase:Hye,noop:Kye,toFiniteNumber:Xye,findKey:qj,global:wl,isContextDefined:Pj,isSpecCompliantForm:Qye,toJSONObject:Jye,isAsyncFn:Zye,isThenable:e1e,setImmediate:Nj,asap:t1e,isIterable:r1e};let Ke=class Dj extends Error{static from(t,r,n,o,l,u){const f=new Dj(t.message,r||t.code,n,o,l);return f.cause=t,f.name=t.name,t.status!=null&&f.status==null&&(f.status=t.status),u&&Object.assign(f,u),f}constructor(t,r,n,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}};Ke.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ke.ERR_BAD_OPTION="ERR_BAD_OPTION";Ke.ECONNABORTED="ECONNABORTED";Ke.ETIMEDOUT="ETIMEDOUT";Ke.ERR_NETWORK="ERR_NETWORK";Ke.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ke.ERR_DEPRECATED="ERR_DEPRECATED";Ke.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ke.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ke.ERR_CANCELED="ERR_CANCELED";Ke.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ke.ERR_INVALID_URL="ERR_INVALID_URL";Ke.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const n1e=null;function f2(e){return ue.isPlainObject(e)||ue.isArray(e)}function Mj(e){return ue.endsWith(e,"[]")?e.slice(0,-2):e}function _1(e,t,r){return e?e.concat(t).map(function(o,l){return o=Mj(o),!r&&l?"["+o+"]":o}).join(r?".":""):t}function i1e(e){return ue.isArray(e)&&!e.some(f2)}const a1e=ue.toFlatObject(ue,{},null,function(t){return/^is[A-Z]/.test(t)});function Xb(e,t,r){if(!ue.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ue.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,I){return!ue.isUndefined(I[w])});const n=r.metaTokens,o=r.visitor||x,l=r.dots,u=r.indexes,f=r.Blob||typeof Blob<"u"&&Blob,h=r.maxDepth===void 0?100:r.maxDepth,m=f&&ue.isSpecCompliantForm(t);if(!ue.isFunction(o))throw new TypeError("visitor must be a function");function b(R){if(R===null)return"";if(ue.isDate(R))return R.toISOString();if(ue.isBoolean(R))return R.toString();if(!m&&ue.isBlob(R))throw new Ke("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(R)||ue.isTypedArray(R)?m&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function x(R,w,I){let P=R;if(ue.isReactNative(t)&&ue.isReactNativeBlob(R))return t.append(_1(I,w,l),b(R)),!1;if(R&&!I&&typeof R=="object"){if(ue.endsWith(w,"{}"))w=n?w:w.slice(0,-2),R=JSON.stringify(R);else if(ue.isArray(R)&&i1e(R)||(ue.isFileList(R)||ue.endsWith(w,"[]"))&&(P=ue.toArray(R)))return w=Mj(w),P.forEach(function(D,O){!(ue.isUndefined(D)||D===null)&&t.append(u===!0?_1([w],O,l):u===null?w:w+"[]",b(D))}),!1}return f2(R)?!0:(t.append(_1(I,w,l),b(R)),!1)}const E=[],T=Object.assign(a1e,{defaultVisitor:x,convertValue:b,isVisitable:f2});function C(R,w,I=0){if(!ue.isUndefined(R)){if(I>h)throw new Ke("Object is too deeply nested ("+I+" levels). Max depth: "+h,Ke.ERR_FORM_DATA_DEPTH_EXCEEDED);if(E.indexOf(R)!==-1)throw Error("Circular reference detected in "+w.join("."));E.push(R),ue.forEach(R,function(q,D){(!(ue.isUndefined(q)||q===null)&&o.call(t,q,ue.isString(D)?D.trim():D,w,T))===!0&&C(q,w?w.concat(D):[D],I+1)}),E.pop()}}if(!ue.isObject(e))throw new TypeError("data must be an object");return C(e),t}function Lq(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function sR(e,t){this._pairs=[],e&&Xb(e,this,t)}const jj=sR.prototype;jj.append=function(t,r){this._pairs.push([t,r])};jj.toString=function(t){const r=t?function(n){return t.call(this,n,Lq)}:Lq;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function o1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Lj(e,t,r){if(!t)return e;const n=r&&r.encode||o1e,o=ue.isFunction(r)?{serialize:r}:r,l=o&&o.serialize;let u;if(l?u=l(t,o):u=ue.isURLSearchParams(t)?t.toString():new sR(t,o).toString(n),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class zq{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(n){n!==null&&t(n)})}}const lR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},s1e=typeof URLSearchParams<"u"?URLSearchParams:sR,l1e=typeof FormData<"u"?FormData:null,c1e=typeof Blob<"u"?Blob:null,u1e={isBrowser:!0,classes:{URLSearchParams:s1e,FormData:l1e,Blob:c1e},protocols:["http","https","file","blob","url","data"]},cR=typeof window<"u"&&typeof document<"u",p2=typeof navigator=="object"&&navigator||void 0,d1e=cR&&(!p2||["ReactNative","NativeScript","NS"].indexOf(p2.product)<0),f1e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p1e=cR&&window.location.href||"http://localhost",h1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cR,hasStandardBrowserEnv:d1e,hasStandardBrowserWebWorkerEnv:f1e,navigator:p2,origin:p1e},Symbol.toStringTag,{value:"Module"})),bn={...h1e,...u1e};function m1e(e,t){return Xb(e,new bn.classes.URLSearchParams,{visitor:function(r,n,o,l){return bn.isNode&&ue.isBuffer(r)?(this.append(n,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function g1e(e){return ue.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1e(e){const t={},r=Object.keys(e);let n;const o=r.length;let l;for(n=0;n<o;n++)l=r[n],t[l]=e[l];return t}function zj(e){function t(r,n,o,l){let u=r[l++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),h=l>=r.length;return u=!u&&ue.isArray(o)?o.length:u,h?(ue.hasOwnProp(o,u)?o[u]=ue.isArray(o[u])?o[u].concat(n):[o[u],n]:o[u]=n,!f):((!o[u]||!ue.isObject(o[u]))&&(o[u]=[]),t(r,n,o[u],l)&&ue.isArray(o[u])&&(o[u]=b1e(o[u])),!f)}if(ue.isFormData(e)&&ue.isFunction(e.entries)){const r={};return ue.forEachEntry(e,(n,o)=>{t(g1e(n),o,r,0)}),r}return null}const Gc=(e,t)=>e!=null&&ue.hasOwnProp(e,t)?e[t]:void 0;function v1e(e,t,r){if(ue.isString(e))try{return(t||JSON.parse)(e),ue.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Sp={transitional:lR,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,l=ue.isObject(t);if(l&&ue.isHTMLForm(t)&&(t=new FormData(t)),ue.isFormData(t))return o?JSON.stringify(zj(t)):t;if(ue.isArrayBuffer(t)||ue.isBuffer(t)||ue.isStream(t)||ue.isFile(t)||ue.isBlob(t)||ue.isReadableStream(t))return t;if(ue.isArrayBufferView(t))return t.buffer;if(ue.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(l){const h=Gc(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return m1e(t,h).toString();if((f=ue.isFileList(t))||n.indexOf("multipart/form-data")>-1){const m=Gc(this,"env"),b=m&&m.FormData;return Xb(f?{"files[]":t}:t,b&&new b,h)}}return l||o?(r.setContentType("application/json",!1),v1e(t)):t}],transformResponse:[function(t){const r=Gc(this,"transitional")||Sp.transitional,n=r&&r.forcedJSONParsing,o=Gc(this,"responseType"),l=o==="json";if(ue.isResponse(t)||ue.isReadableStream(t))return t;if(t&&ue.isString(t)&&(n&&!o||l)){const f=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,Gc(this,"parseReviver"))}catch(h){if(f)throw h.name==="SyntaxError"?Ke.from(h,Ke.ERR_BAD_RESPONSE,this,null,Gc(this,"response")):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],e=>{Sp.headers[e]={}});const y1e=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),x1e=e=>{const t={};let r,n,o;return e&&e.split(` 22`).forEach(function(u){o=u.indexOf(":"),r=u.substring(0,o).trim().toLowerCase(),n=u.substring(o+1).trim(),!(!r||t[r]&&y1e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Uq=Symbol("internals"),S1e=/[^\x09\x20-\x7E\x80-\xFF]/g;function E1e(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function lf(e){return e&&String(e).trim().toLowerCase()}function A1e(e){return E1e(e.replace(S1e,""))}function Hm(e){return e===!1||e==null?e:ue.isArray(e)?e.map(Hm):A1e(String(e))}function R1e(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const C1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function O1(e,t,r,n,o){if(ue.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!ue.isString(t)){if(ue.isString(n))return t.indexOf(n)!==-1;if(ue.isRegExp(n))return n.test(t)}}function T1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function w1e(e,t){const r=ue.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,l,u){return this[n].call(this,t,o,l,u)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function l(f,h,m){const b=lf(h);if(!b)throw new Error("header name must be a non-empty string");const x=ue.findKey(o,b);(!x||o[x]===void 0||m===!0||m===void 0&&o[x]!==!1)&&(o[x||h]=Hm(f))}const u=(f,h)=>ue.forEach(f,(m,b)=>l(m,b,h));if(ue.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(ue.isString(t)&&(t=t.trim())&&!C1e(t))u(x1e(t),r);else if(ue.isObject(t)&&ue.isIterable(t)){let f={},h,m;for(const b of t){if(!ue.isArray(b))throw TypeError("Object iterator must return a key-value pair");f[m=b[0]]=(h=f[m])?ue.isArray(h)?[...h,b[1]]:[h,b[1]]:b[1]}u(f,r)}else t!=null&&l(r,t,n);return this}get(t,r){if(t=lf(t),t){const n=ue.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return R1e(o);if(ue.isFunction(r))return r.call(this,o,n);if(ue.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=lf(t),t){const n=ue.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||O1(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function l(u){if(u=lf(u),u){const f=ue.findKey(n,u);f&&(!r||O1(n,n[f],f,r))&&(delete n[f],o=!0)}}return ue.isArray(t)?t.forEach(l):l(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const l=r[n];(!t||O1(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const r=this,n={};return ue.forEach(this,(o,l)=>{const u=ue.findKey(n,l);if(u){r[u]=Hm(o),delete r[l];return}const f=t?T1e(l):String(l).trim();f!==l&&delete r[l],r[f]=Hm(o),n[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ue.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&ue.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 23`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Uq]=this[Uq]={accessors:{}}).accessors,o=this.prototype;function l(u){const f=lf(u);n[f]||(w1e(o,u),n[f]=!0)}return ue.isArray(t)?t.forEach(l):l(t),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ue.reduceDescriptors(ei.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ue.freezeMethods(ei);function I1(e,t){const r=this||Sp,n=t||r,o=ei.from(n.headers);let l=n.data;return ue.forEach(e,function(f){l=f.call(r,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Uj(e){return!!(e&&e.__CANCEL__)}let Ep=class extends Ke{constructor(t,r,n){super(t??"canceled",Ke.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Vj(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ke("Request failed with status code "+r.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function _1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O1e(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,l=0,u;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),b=n[l];u||(u=m),r[o]=h,n[o]=m;let x=l,E=0;for(;x!==o;)E+=r[x++],x=x%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),m-u<t)return;const T=b&&m-b;return T?Math.round(E*1e3/T):void 0}}function I1e(e,t){let r=0,n=1e3/t,o,l;const u=(m,b=Date.now())=>{r=b,o=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const b=Date.now(),x=b-r;x>=n?u(m,b):(o=m,l||(l=setTimeout(()=>{l=null,u(o)},n-x)))},()=>o&&u(o)]}const Mg=(e,t,r=3)=>{let n=0;const o=O1e(50,250);return I1e(l=>{const u=l.loaded,f=l.lengthComputable?l.total:void 0,h=f!=null?Math.min(u,f):u,m=Math.max(0,h-n),b=o(m);n=Math.max(n,h);const x={loaded:h,total:f,progress:f?h/f:void 0,bytes:m,rate:b||void 0,estimated:b&&f?(f-h)/b:void 0,event:l,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(x)},r)},Vq=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fq=e=>(...t)=>ue.asap(()=>e(...t)),q1e=bn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,bn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(bn.origin),bn.navigator&&/(msie|trident)/i.test(bn.navigator.userAgent)):()=>!0,P1e=bn.hasStandardBrowserEnv?{write(e,t,r,n,o,l,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];ue.isNumber(r)&&f.push(`expires=${new Date(r).toUTCString()}`),ue.isString(n)&&f.push(`path=${n}`),ue.isString(o)&&f.push(`domain=${o}`),l===!0&&f.push("secure"),ue.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function k1e(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N1e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fj(e,t,r){let n=!k1e(t);return e&&(n||r===!1)?N1e(e,t):t}const $q=e=>e instanceof ei?{...e}:e;function Vl(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(m,b,x,E){return ue.isPlainObject(m)&&ue.isPlainObject(b)?ue.merge.call({caseless:E},m,b):ue.isPlainObject(b)?ue.merge({},b):ue.isArray(b)?b.slice():b}function o(m,b,x,E){if(ue.isUndefined(b)){if(!ue.isUndefined(m))return n(void 0,m,x,E)}else return n(m,b,x,E)}function l(m,b){if(!ue.isUndefined(b))return n(void 0,b)}function u(m,b){if(ue.isUndefined(b)){if(!ue.isUndefined(m))return n(void 0,m)}else return n(void 0,b)}function f(m,b,x){if(ue.hasOwnProp(t,x))return n(m,b);if(ue.hasOwnProp(e,x))return n(void 0,m)}const h={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:f,headers:(m,b,x)=>o($q(m),$q(b),x,!0)};return ue.forEach(Object.keys({...e,...t}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const x=ue.hasOwnProp(h,b)?h[b]:o,E=ue.hasOwnProp(e,b)?e[b]:void 0,T=ue.hasOwnProp(t,b)?t[b]:void 0,C=x(E,T,b);ue.isUndefined(C)&&x!==f||(r[b]=C)}),r}const $j=e=>{const t=Vl({},e),r=E=>ue.hasOwnProp(t,E)?t[E]:void 0,n=r("data");let o=r("withXSRFToken");const l=r("xsrfHeaderName"),u=r("xsrfCookieName");let f=r("headers");const h=r("auth"),m=r("baseURL"),b=r("allowAbsoluteUrls"),x=r("url");if(t.headers=f=ei.from(f),t.url=Lj(Fj(m,x,b),e.params,e.paramsSerializer),h&&f.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),ue.isFormData(n)){if(bn.hasStandardBrowserEnv||bn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(ue.isFunction(n.getHeaders)){const E=n.getHeaders(),T=["content-type","content-length"];Object.entries(E).forEach(([C,R])=>{T.includes(C.toLowerCase())&&f.set(C,R)})}}if(bn.hasStandardBrowserEnv&&(ue.isFunction(o)&&(o=o(t)),o===!0||o==null&&q1e(t.url))){const T=l&&u&&P1e.read(u);T&&f.set(l,T)}return t},D1e=typeof XMLHttpRequest<"u",M1e=D1e&&function(e){return new Promise(function(r,n){const o=$j(e);let l=o.data;const u=ei.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:m}=o,b,x,E,T,C;function R(){T&&T(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(b),o.signal&&o.signal.removeEventListener("abort",b)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function I(){if(!w)return;const q=ei.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),O={data:!f||f==="text"||f==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:q,config:e,request:w};Vj(function(V){r(V),R()},function(V){n(V),R()},O),w=null}"onloadend"in w?w.onloadend=I:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(I)},w.onabort=function(){w&&(n(new Ke("Request aborted",Ke.ECONNABORTED,e,w)),w=null)},w.onerror=function(D){const O=D&&D.message?D.message:"Network Error",N=new Ke(O,Ke.ERR_NETWORK,e,w);N.event=D||null,n(N),w=null},w.ontimeout=function(){let D=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||lR;o.timeoutErrorMessage&&(D=o.timeoutErrorMessage),n(new Ke(D,O.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,e,w)),w=null},l===void 0&&u.setContentType(null),"setRequestHeader"in w&&ue.forEach(u.toJSON(),function(D,O){w.setRequestHeader(O,D)}),ue.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),f&&f!=="json"&&(w.responseType=o.responseType),m&&([E,C]=Mg(m,!0),w.addEventListener("progress",E)),h&&w.upload&&([x,T]=Mg(h),w.upload.addEventListener("progress",x),w.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(b=q=>{w&&(n(!q||q.type?new Ep(null,e,w):q),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(b),o.signal&&(o.signal.aborted?b():o.signal.addEventListener("abort",b)));const P=_1e(o.url);if(P&&bn.protocols.indexOf(P)===-1){n(new Ke("Unsupported protocol "+P+":",Ke.ERR_BAD_REQUEST,e));return}w.send(l||null)})},j1e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const l=function(m){if(!o){o=!0,f();const b=m instanceof Error?m:this.reason;n.abort(b instanceof Ke?b:new Ep(b instanceof Error?b.message:b))}};let u=t&&setTimeout(()=>{u=null,l(new Ke(`timeout of ${t}ms exceeded`,Ke.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),e=null)};e.forEach(m=>m.addEventListener("abort",l));const{signal:h}=n;return h.unsubscribe=()=>ue.asap(f),h}},L1e=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},z1e=async function*(e,t){for await(const r of U1e(e))yield*L1e(r,t)},U1e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Bq=(e,t,r,n)=>{const o=z1e(e,t);let l=0,u,f=h=>{u||(u=!0,n&&n(h))};return new ReadableStream({async pull(h){try{const{done:m,value:b}=await o.next();if(m){f(),h.close();return}let x=b.byteLength;if(r){let E=l+=x;r(E)}h.enqueue(new Uint8Array(b))}catch(m){throw f(m),m}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},Hq=64*1024,{isFunction:hm}=ue,V1e=(({Request:e,Response:t})=>({Request:e,Response:t}))(ue.global),{ReadableStream:Gq,TextEncoder:Wq}=ue.global,Yq=(e,...t)=>{try{return!!e(...t)}catch{return!1}},F1e=e=>{e=ue.merge.call({skipUndefined:!0},V1e,e);const{fetch:t,Request:r,Response:n}=e,o=t?hm(t):typeof fetch=="function",l=hm(r),u=hm(n);if(!o)return!1;const f=o&&hm(Gq),h=o&&(typeof Wq=="function"?(C=>R=>C.encode(R))(new Wq):async C=>new Uint8Array(await new r(C).arrayBuffer())),m=l&&f&&Yq(()=>{let C=!1;const R=new r(bn.origin,{body:new Gq,method:"POST",get duplex(){return C=!0,"half"}}),w=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),C&&!w}),b=u&&f&&Yq(()=>ue.isReadableStream(new n("").body)),x={stream:b&&(C=>C.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!x[C]&&(x[C]=(R,w)=>{let I=R&&R[C];if(I)return I.call(R);throw new Ke(`Response type '${C}' is not supported`,Ke.ERR_NOT_SUPPORT,w)})});const E=async C=>{if(C==null)return 0;if(ue.isBlob(C))return C.size;if(ue.isSpecCompliantForm(C))return(await new r(bn.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(C)||ue.isArrayBuffer(C))return C.byteLength;if(ue.isURLSearchParams(C)&&(C=C+""),ue.isString(C))return(await h(C)).byteLength},T=async(C,R)=>{const w=ue.toFiniteNumber(C.getContentLength());return w??E(R)};return async C=>{let{url:R,method:w,data:I,signal:P,cancelToken:q,timeout:D,onDownloadProgress:O,onUploadProgress:N,responseType:V,headers:J,withCredentials:W="same-origin",fetchOptions:G}=$j(C),B=t||fetch;V=V?(V+"").toLowerCase():"text";let L=j1e([P,q&&q.toAbortSignal()],D),z=null;const ee=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let te;try{if(N&&m&&w!=="get"&&w!=="head"&&(te=await T(J,I))!==0){let H=new r(R,{method:"POST",body:I,duplex:"half"}),se;if(ue.isFormData(I)&&(se=H.headers.get("content-type"))&&J.setContentType(se),H.body){const[be,Ce]=Vq(te,Mg(Fq(N)));I=Bq(H.body,Hq,be,Ce)}}ue.isString(W)||(W=W?"include":"omit");const Y=l&&"credentials"in r.prototype;if(ue.isFormData(I)){const H=J.getContentType();H&&/^multipart\/form-data/i.test(H)&&!/boundary=/i.test(H)&&J.delete("content-type")}const ie={...G,signal:L,method:w.toUpperCase(),headers:J.normalize().toJSON(),body:I,duplex:"half",credentials:Y?W:void 0};z=l&&new r(R,ie);let me=await(l?B(z,G):B(R,ie));const Se=b&&(V==="stream"||V==="response");if(b&&(O||Se&&ee)){const H={};["status","statusText","headers"].forEach(Le=>{H[Le]=me[Le]});const se=ue.toFiniteNumber(me.headers.get("content-length")),[be,Ce]=O&&Vq(se,Mg(Fq(O),!0))||[];me=new n(Bq(me.body,Hq,be,()=>{Ce&&Ce(),ee&&ee()}),H)}V=V||"text";let we=await x[ue.findKey(x,V)||"text"](me,C);return!Se&&ee&&ee(),await new Promise((H,se)=>{Vj(H,se,{data:we,headers:ei.from(me.headers),status:me.status,statusText:me.statusText,config:C,request:z})})}catch(Y){throw ee&&ee(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new Ke("Network Error",Ke.ERR_NETWORK,C,z,Y&&Y.response),{cause:Y.cause||Y}):Ke.from(Y,Y&&Y.code,C,z,Y&&Y.response)}}},$1e=new Map,Bj=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,l=[n,o,r];let u=l.length,f=u,h,m,b=$1e;for(;f--;)h=l[f],m=b.get(h),m===void 0&&b.set(h,m=f?new Map:F1e(t)),b=m;return m};Bj();const uR={http:n1e,xhr:M1e,fetch:{get:Bj}};ue.forEach(uR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kq=e=>`- ${e}`,B1e=e=>ue.isFunction(e)||e===null||e===!1;function H1e(e,t){e=ue.isArray(e)?e:[e];const{length:r}=e;let n,o;const l={};for(let u=0;u<r;u++){n=e[u];let f;if(o=n,!B1e(n)&&(o=uR[(f=String(n)).toLowerCase()],o===void 0))throw new Ke(`Unknown adapter '${f}'`);if(o&&(ue.isFunction(o)||(o=o.get(t))))break;l[f||"#"+u]=o}if(!o){const u=Object.entries(l).map(([h,m])=>`adapter ${h} `+(m===!1?"is not supported by the environment":"is not available in the build"));let f=r?u.length>1?`since : 24`+u.map(Kq).join(` 25`):" "+Kq(u[0]):"as no adapter specified";throw new Ke("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return o}const Hj={getAdapter:H1e,adapters:uR};function q1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ep(null,e)}function Xq(e){return q1(e),e.headers=ei.from(e.headers),e.data=I1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hj.getAdapter(e.adapter||Sp.adapter,e)(e).then(function(n){return q1(e),n.data=I1.call(e,e.transformResponse,n),n.headers=ei.from(n.headers),n},function(n){return Uj(n)||(q1(e),n&&n.response&&(n.response.data=I1.call(e,e.transformResponse,n.response),n.response.headers=ei.from(n.response.headers))),Promise.reject(n)})}const Gj="1.15.2",Qb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qb[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qq={};Qb.transitional=function(t,r,n){function o(l,u){return"[Axios v"+Gj+"] Transitional option '"+l+"'"+u+(n?". "+n:"")}return(l,u,f)=>{if(t===!1)throw new Ke(o(u," has been removed"+(r?" in "+r:"")),Ke.ERR_DEPRECATED);return r&&!Qq[u]&&(Qq[u]=!0,console.warn(o(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,f):!0}};Qb.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function G1e(e,t,r){if(typeof e!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const l=n[o],u=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(u){const f=e[l],h=f===void 0||u(f,l,e);if(h!==!0)throw new Ke("option "+l+" must be "+h,Ke.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ke("Unknown option "+l,Ke.ERR_BAD_OPTION)}}const Gm={assertOptions:G1e,validators:Qb},Di=Gm.validators;let Dl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zq,response:new zq}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(` 26`);return u===-1?"":o.stack.slice(u+1)})();try{if(!n.stack)n.stack=l;else if(l){const u=l.indexOf(` 27`),f=u===-1?-1:l.indexOf(` 28`,u+1),h=f===-1?"":l.slice(f+1);String(n.stack).endsWith(h)||(n.stack+=` 29`+l)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vl(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:l}=r;n!==void 0&&Gm.assertOptions(n,{silentJSONParsing:Di.transitional(Di.boolean),forcedJSONParsing:Di.transitional(Di.boolean),clarifyTimeoutError:Di.transitional(Di.boolean),legacyInterceptorReqResOrdering:Di.transitional(Di.boolean)},!1),o!=null&&(ue.isFunction(o)?r.paramsSerializer={serialize:o}:Gm.assertOptions(o,{encode:Di.function,serialize:Di.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Gm.assertOptions(r,{baseUrl:Di.spelling("baseURL"),withXsrfToken:Di.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&ue.merge(l.common,l[r.method]);l&&ue.forEach(["delete","get","head","post","put","patch","common"],C=>{delete l[C]}),r.headers=ei.concat(u,l);const f=[];let h=!0;this.interceptors.request.forEach(function(R){if(typeof R.runWhen=="function"&&R.runWhen(r)===!1)return;h=h&&R.synchronous;const w=r.transitional||lR;w&&w.legacyInterceptorReqResOrdering?f.unshift(R.fulfilled,R.rejected):f.push(R.fulfilled,R.rejected)});const m=[];this.interceptors.response.forEach(function(R){m.push(R.fulfilled,R.rejected)});let b,x=0,E;if(!h){const C=[Xq.bind(this),void 0];for(C.unshift(...f),C.push(...m),E=C.length,b=Promise.resolve(r);x<E;)b=b.then(C[x++],C[x++]);return b}E=f.length;let T=r;for(;x<E;){const C=f[x++],R=f[x++];try{T=C(T)}catch(w){R.call(this,w);break}}try{b=Xq.call(this,T)}catch(C){return Promise.reject(C)}for(x=0,E=m.length;x<E;)b=b.then(m[x++],m[x++]);return b}getUri(t){t=Vl(this.defaults,t);const r=Fj(t.baseURL,t.url,t.allowAbsoluteUrls);return Lj(r,t.params,t.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(t){Dl.prototype[t]=function(r,n){return this.request(Vl(n||{},{method:t,url:r,data:(n||{}).data}))}});ue.forEach(["post","put","patch"],function(t){function r(n){return function(l,u,f){return this.request(Vl(f||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Dl.prototype[t]=r(),Dl.prototype[t+"Form"]=r(!0)});let W1e=class Wj{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const n=this;this.promise.then(o=>{if(!n._listeners)return;let l=n._listeners.length;for(;l-- >0;)n._listeners[l](o);n._listeners=null}),this.promise.then=o=>{let l;const u=new Promise(f=>{n.subscribe(f),l=f}).then(o);return u.cancel=function(){n.unsubscribe(l)},u},t(function(l,u,f){n.reason||(n.reason=new Ep(l,u,f),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wj(function(o){t=o}),cancel:t}}};function Y1e(e){return function(r){return e.apply(null,r)}}function K1e(e){return ue.isObject(e)&&e.isAxiosError===!0}const h2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
29alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(h2).forEach(([e,t])=>{h2[t]=e});function Yj(e){const t=new Dl(e),r=wj(Dl.prototype.request,t);return ue.extend(r,Dl.prototype,t,{allOwnKeys:!0}),ue.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Yj(Vl(e,o))},r}const rr=Yj(Sp);rr.Axios=Dl;rr.CanceledError=Ep;rr.CancelToken=W1e;rr.isCancel=Uj;rr.VERSION=Gj;rr.toFormData=Xb;rr.AxiosError=Ke;rr.Cancel=rr.CanceledError;rr.all=function(t){return Promise.all(t)};rr.spread=Y1e;rr.isAxiosError=K1e;rr.mergeConfig=Vl;rr.AxiosHeaders=ei;rr.formToJSON=e=>zj(ue.isHTMLForm(e)?new FormData(e):e);rr.getAdapter=Hj.getAdapter;rr.HttpStatusCode=h2;rr.default=rr;const{Axios:TEe,AxiosError:wEe,CanceledError:_Ee,isCancel:OEe,CancelToken:IEe,VERSION:qEe,all:PEe,Cancel:kEe,isAxiosError:NEe,spread:DEe,toFormData:MEe,AxiosHeaders:jEe,HttpStatusCode:LEe,formToJSON:zEe,getAdapter:UEe,mergeConfig:VEe}=rr,dR=e=>pp({endpoint:e}).get().exec();function X1e(e){const[t,r]=S.useState(),[n,o]=S.useState(),l=`${ln}/mercury-backend/f/stripe/${e}`;async function u(h){if(!t?.appStripeAccountId||!h)return;const m=`${ln}/mercury-backend/subscription/check-promo`,b={stripeAccountId:t.appStripeAccountId,promoCode:h},x=await rr.post(m,b).catch(T=>T?.response);if(!x||(x.status??500)>300)throw Error(x?.data?.message??"Could not finalize subscription!");const E=x.data;if(!E.productIds.includes(t.stripeProductId))throw Error("Coupon does not apply to the product!");o(E)}async function f(){const h=await dR(l);if(!h.ok)throw new Error("Could not load stripe form!");if(!h||(h.status??500)>300)throw Error("Could not load form data!");const b=await h.json();r(b)}return S.useEffect(()=>{f()},[e]),{checkPromoCode:u,stripeForm:t,activePromo:n}}function Q1e(e){async function t(o,l,u){const f={formId:e,paymentIntentId:l,email:u,promoCode:o},h=`${ln}/mercury-backend/subscription/form/stripe/apply-coupon`,m=await rr.post(h,f).catch(x=>x?.response);if(!m||(m.status??500)>300)throw Error(m?.data?.message??"Could not apply promo code!");return m.data}async function r(o){const{stripe:l,elements:u}=o;if(!l||!u||!e)return;let f=o.paymentIntentSecret;o.promotionCode&&(f=(await t(o.promotionCode,o.paymentIntentId,o.email)).clientSecret);const h=o.email.toLowerCase(),b={payment_method:{card:u.getElement(u2),billing_details:{name:o.displayName,email:h}}},{paymentIntent:x}=await l.confirmCardPayment(f,b);try{if(!x)throw Error("Could not create payment intent!");const E={formId:e,firstName:o.firstName,lastName:o.lastName,email:o.email,password:o.password,stripePaymentIntentId:x.id,upgradeFreeAccount:o.upgradeFreeAccount},T=`${ln}/mercury-backend/subscription/form/stripe/one-time`,C=await rr.post(T,E).catch(w=>w.response);if(!C||(C.status??500)>300)throw Error(C?.data?.message??"Could not finalize subscription!");const R=await _g.GetAppId({formVariant:"stripe",formId:e});window.location.replace(`/legacy-form/stripe/${e}/success`)}catch(E){console.error(E),St.error({title:"Payment failed. Please try again.",duration:3e3,description:E?.message})}}async function n(o){const{stripe:l,elements:u}=o;if(!l||!u||!e)return;const f=o.email.toLowerCase(),h=u.getElement(u2);if(!h)return;const{paymentMethod:m,error:b}=await l.createPaymentMethod({type:"card",card:h,billing_details:{name:o.displayName,email:f}});if(b){St.error({title:"Payment failed. Please try again.",duration:3e3,description:b.message});return}const x={formId:e,firstName:o.firstName,lastName:o.lastName,email:f,password:o.password,paymentMethod:m.id,promotionCode:o.promotionCode,upgradeFreeAccount:o.upgradeFreeAccount,stripePaymentIntentId:null};try{const E=`${ln}/mercury-backend/subscription/form/stripe/recurring?action=presave`,T=`${ln}/mercury-backend/subscription/form/stripe/recurring?action=3d-finalize`,R=(await rr.post(E,x)).data;
29if(R.stripePaymentIntentClientSecret!==null){const{paymentIntent:I}=await l.confirmCardPayment(R.stripePaymentIntentClientSecret);if(I?.status!=="succeeded")throw Error(I?.last_payment_error?.message??"Bad Payment!");x.stripePaymentIntentId=I.id;const q=(await rr.post(T,x)).data;R.idToken=R?.idToken??q.idToken}const w=await _g.GetAppId({formVariant:"stripe",formId:e});window.location.replace(`/legacy-form/stripe/${e}/success`)}catch(E){St.error({title:"Payment failed. Please try again.",duration:3e3,description:E?.response?.data?.message??"Payment failed. Please try again."})}}return{handleOneTimePurchase:r,createSubscription:n}}const J1e="pk_live_51GzsAWCZrJ5XDKMLVQdLpXj6T2FJac1oE1XMh4Eh3RCdWJnGBNBolQClBvITPTRzxDgrpsRqbFCWcewtmEOg0LC100Pivv4iql",Z1e=y({firstName:s().required(),lastName:s().required(),email:s().required(),password:s().defined().nullable(),promotionCode:s().nullable()});function exe(e){const{appStripeAccountId:t}=e.formBase,{appStyles:r,loading:n}=JA(e.formBase.appId),{checkPromoCode:o,stripeForm:l,activePromo:u}=X1e(e.formBase.formId),{handleOneTimePurchase:f,createSubscription:h}=Q1e(e.formBase.formId),{formState:m,register:b,watch:x,handleSubmit:E,reset:T}=pj(),[C,R]=S.useState(!1),{errors:w}=m,I=t?hye(J1e,{stripeAccount:t,locale:r.locale}):null,P=r.logoUrl??r.iconUrl,q=x("password"),D=x("email"),O=x("promotionCode"),[N,V]=S.useState(!1),J=()=>R(!C),W=r.locale;async function G(z){V(!0);try{const ee=await z;return V(!1),ee}catch(ee){throw V(!1),ee}}async function B(){if(!O)return;const z=await G(o(O)).then(()=>{}).catch(ee=>ee);z&&St.create({title:"Something went wrong!",duration:6e3,description:z.message})}const L=(z,ee)=>E(async function(Y){if(!l)return;const ie=await Z1e.validate(Y,{abortEarly:!0}).catch(se=>{if(!(se instanceof hn)){console.error(se),St.error({title:"Something Went Wrong!",description:"Please Check the console"});return}St.error({title:"Incomplete form!",description:se.errors[0]})});if(!ie)return;ie.email=ie.email.toLowerCase();const{paymentIntentId:me,paymentIntentSecret:Se}=l,we={...ie,stripe:z,elements:ee,formId:e.formBase.formId,displayName:`${ie.firstName} ${ie.lastName}`,upgradeFreeAccount:C,promotionCode:u?.code??null};if(l.priceType==="One Time"){if(!me||!Se)return console.error("Stripe form returned incomplete data!");const se={...we,paymentIntentId:me,paymentIntentSecret:Se};return await G(f(se))}const H={...we};T(),await G(h({...H}).then(()=>T()))})();return n?p.jsx(Bi,{}):p.jsx(Oe,{direction:"row",bg:r.bg,w:"100%",h:"100vh",overflow:"auto",justifyContent:"center",children:p.jsxs(De,{bg:r.bg,w:["100%","100%","80%","32rem","32rem","32rem"],px:["0.8rem","2rem","2rem","2rem"],pt:"2rem",pb:"8rem",my:"auto",children:[P&&p.jsx(nr,{width:"100%",height:"64px",objectFit:"contain",src:P}),p.jsxs(Oe,{children:[p.jsxs(De,{mt:[3,4,4,4],mb:6,textAlign:"start",width:"100%",children:[p.jsx(_e,{fontWeight:"900",fontSize:["16px","18px","18px","18px"],letterSpacing:"-2%",color:r.color,fontFamily:r.font,children:at[W].almostThere}),p.jsx(_e,{fontWeight:"500",fontSize:["12px","14px","14px","14px"],lineHeight:"19.6px",letterSpacing:"-2%",color:r.color,fontFamily:r.font,children:C?at[W].updateSubscription:at[W].signupBelow})]}),p.jsx(Oe,{w:"100%",children:p.jsx(We,{if:!e.freeMode,children:p.jsxs(Oe,{my:"auto",gap:".5rem",ml:"auto",children:[p.jsx(_e,{color:r.color,fontFamily:r.font,fontSize:"14px",children:at[W].iAlreadyHaveAnAccount})," ",p.jsxs(_X,{onChange:J,p:".125rem",border:"none",color:r.highlight,children:[p.jsx(qX,{}),p.jsx(IX,{children:p.jsx(L6,{})}),p.jsx(OX,{})]})]})})})]}),p.jsxs("form",{children:[p.jsxs(Pn,{direction:"row",children:[p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",color:r.color,fontFamily:r.font,children:at[W].firstName}),p.jsx(tr,{...b("firstName",{required:!C}),type:"text",placeholder:at[W].firstName,fontFamily:r.font,color:r.color,bg:"rgba(0,0,0,0)"}),w.firstName&&p.jsx(_e,{color:"red.500",children:at[W].firstNameIsRequired})]}),p.jsx(lg,{}),p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:r.font,color:r.color,children:at[W].lastName}),p.jsx(tr,{...b("lastName",{required:!C}),type:"text",placeholder:at[W].lastName,fontFamily:r.font,color:r.color,bg:"transparent"}),w.lastName&&p.jsx(_e,{color:"red.500",children:at[W].lastNameIsRequired})]})]}),p.jsxs(Xt,{mt:3,disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:r.font,color:r.color,children:at[W].email}),p.jsx(tr,{...b("email",{required:!0}),type:"text",placeholder:at[W].enterYourEmail,fontFamily:r.font,textTransform:D??!1?"lowercase":"unset",color:r.color,bg:"transparent"}),w.email&&p.jsx(_e,{color:"red.500",children:at[W].emailIsRequired})]}),!C&&p.jsxs(Pn,{direction:"row",mt:3,children:[p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:r.font,color:r.color,children:at[W].password}),p.jsx(tr,{...b("password",{required:!0,minLength:8}),type:"password",placeholder:at[W].password,fontFamily:r.font,color:r.color,bg:"transparent"}),w.password&&p.jsx(_e,{color:"red.500",children:w.password.type==="minLength"?at[W].passwordMustBeAtLeast8Characters:w.password.type==="required"?at[W].passwordIsRequired:""})]}),p.jsx(lg,{}),p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:r.font,color:r.color,children:at[W].confirmPassword}),p.jsx(tr,{...b("confirmPassword",{required:!0,minLength:8,validate:z=>z===q}),type:"password",placeholder:at[W].confirmPassword,fontFamily:r.font,color:r.color,bg:"transparent"}
29),w.confirmPassword&&p.jsx(_e,{color:"red.500",children:w.confirmPassword.type==="validate"?at[W].passwordsDoNotMatch:w.confirmPassword.type==="minLength"?at[W].passwordMustBeAtLeast8Characters:w.confirmPassword.type==="required"?at[W].pleaseConfirmYourPassword:""})]})]}),p.jsxs(We,{if:!e.freeMode,children:[p.jsxs(Pn,{direction:"row",mt:3,children:[p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",fontFamily:r.font,color:r.color,children:at[W].discountCode}),p.jsx(tr,{...b("promotionCode"),type:"input",placeholder:at[W].discountCode,fontFamily:r.font,color:r.color,bg:"transparent"})]}),p.jsxs(Xt,{disabled:N,children:[p.jsx(_n,{fontSize:"0.875em",fontWeight:"500",color:r.bg,fontFamily:r.font,children:at[W].apply}),p.jsx(ut,{colorScheme:"primary",w:"12rem",loading:!1,loadingText:at[W].applying,onClick:B,fontFamily:r.font,bg:r.highlight,color:Pg(r.highlight),disabled:N,children:at[W].apply})]})]}),p.jsxs(Pn,{direction:"row",mt:4,children:[p.jsx(Xt,{disabled:N,children:p.jsx(_e,{fontWeight:"500",fontSize:"1.2rem",color:r.color,fontFamily:r.font,children:at[W].payment})}),p.jsx(Xt,{disabled:N,children:p.jsx(_e,{fontWeight:"700",fontSize:"1.2rem",fontFamily:r.font,color:r.color,children:p.jsx(txe,{stripeForm:l,activePromo:u,locale:W})})})]}),l?.priceType!=="One Time"&&p.jsx(_e,{as:"small",color:r.color,children:eye(l,u,W)}),p.jsx(yj,{stripe:I,children:p.jsx(tye,{stripeForm:e.formBase,onStripeSubmit:L,appStyles:r,loading:N,locale:W})})]})]}),r.showApprabbitBranding&&p.jsx(Xr,{children:p.jsx(Ua,{onClick:()=>window.open("https://apprabbit.com","_blank"),children:p.jsx(nr,{bg:"#000",src:rye,borderRadius:"10px",h:"50px",mt:8,mb:4,p:2})})})]})})}function txe(e){const{stripeForm:t,activePromo:r,locale:n}=e;if(!t)return;const o=t.priceTrialDays!==0;return t.priceAmount===0?at[n].free:o?at[n].freeTrial:Ff(Sj(t.priceAmount??0,r)/100,"en-US",t.priceCurrency)+Ej(t,n)}function rxe(){const[e,t]=S.useState(),r=yn(),n=Mu(),o=r.pathname.startsWith("/f/z"),l=n.formId,f=`${ln}/mercury-backend/f/${o?"free":"stripe"}/${l}`;async function h(){try{const E=await(await dR(f)).json();t(E),document.title=E.appName??"AppRabbit Partner",E.iconUrl&&E.appName&&dM(E.iconUrl)}catch(b){console.error(b),St.error({title:"Something went wrong!",duration:6e3,description:b?.message})}}async function m(){if(!l)return;const b=await qA.GetAppuserFormVersionByForm({stripeFormId:l}).catch(x=>$r(x));b&&b.appuserFormVersion!=="legacy-v1"&&(window.location.href="https://apprabbit.com")}return S.useEffect(()=>{if(!l)return window.location.replace("https://apprabbit.com");h(),m()},[l]),e?p.jsx(exe,{formBase:e,freeMode:o}):p.jsx(Bi,{})}function nxe(){const e=Mu(),[t,r]=S.useState(),[n]=fp();async function o(){const l=n.get("token")?`?token=${n.get("token")}`:"";try{const f=await(await dR(`${ln}/mercury-backend/f/success/${e.formId}`)).json();if(!f)throw new Error("No data returned");const{dists:h,webLink:m,formAutoRedirect:b}=f,x=!!Object.values(h).find(E=>!!E?.publicLink);if(!x||b)return window.location.href=`${m}${l}`;x&&r(h)}catch(u){console.error(u),St.create({title:"Something went wrong!",duration:1e4,description:"Can't get app links for some reason. Contact us."})}}return S.useEffect(()=>{o()},[]),t===void 0?p.jsx(Bi,{}):p.jsx(Oe,{direction:"row",bg:"#F8FAFB",w:"100%",h:"100vh",justifyContent:"center",alignItems:"center",overflow:"auto",children:p.jsxs(De,{bg:"#fff",border:"1px solid #fff",borderRadius:"12px",boxShadow:"md",p:"2rem",pt:"3rem",children:[p.jsx(De,{mt:3,mb:8,children:p.jsx(_e,{as:"h3",fontWeight:"bold",fontSize:"22px",children:"Download and sign-in below"})}),p.jsxs(De,{mt:10,children:[p.jsx(We,{if:!!t.APPLE_APPSTORE?.publicLink,children:p.jsx(De,{w:"20rem",overflow:"hidden",children:p.jsx(Ua,{href:t?.APPLE_APPSTORE?.publicLink,children:p.jsx(nr,{src:"/assets/app-store-badge.png",alt:"App on the App Store"})})})}),p.jsx(We,{if:!!t.GOOGLE_PLAYSTORE?.publicLink,children:p.jsx(De,{mt:8,w:"20rem",overflow:"hidden",children:p.jsx(Ua,{href:t?.GOOGLE_PLAYSTORE?.publicLink,children:p.jsx(nr,{src:"/assets/google-play-badge.png",alt:"App on the Google Play Store"})})})})]})]})})}const ixe=S.lazy(()=>Xe(()=>import("./AppuserPricing-D5pgcloc.js"),__vite__mapDeps([45,46,13,47,48,35,36,49]))),axe=S.lazy(()=>Xe(()=>import("./AppStorefrontEditor-BB4LE5e6.js"),__vite__mapDeps([50,13,47,48,49]))),oxe=S.lazy(()=>Xe(()=>import("./AppDashboard-B-MUjaXX.js"),__vite__mapDeps([51,29,33,21,10,11,12,52]))),sxe=S.lazy(()=>Xe(()=>import("./AuthnDashboard-BbiUGfVc.js"),[])),lxe=S.lazy(()=>Xe(()=>import("./MetricsDashboard-CO_fgkd-.js"),__vite__mapDeps([53,29,35,36]))),cxe=S.lazy(()=>Xe(()=>import("./OrganizationsDashboard-DtSSXdH1.js"),[])),uxe=S.lazy(()=>Xe(()=>import("./AdminToolsDashboard-BG4ffcC5.js"),[])),dxe=S.lazy(()=>Xe(()=>import("./AdminSettings-BUvAXcck.js"),__vite__mapDeps([54,55,46,11,21,38]))),fxe=S.lazy(()=>Xe(()=>import("./AiPromptBuilderPage-dWXFPo2-.js"),__vite__mapDeps([56,47,48]))),pxe=S.lazy(()=>Xe(()=>import("./WorkflowsPage-B8kaFBuj.js"),__vite__mapDeps([57,13,58,30,29,59,49,48,60]))),hxe=S.lazy(()=>Xe(()=>import("./SettingsPortal-CNBnLcpW.js"),__vite__mapDeps([61,55,46,11,21,38,13,20,10,12,1,2,7,23,44,49,58,30,29]))),mxe=S.lazy(()=>Xe(()=>import("./MarketingDashboard-D_KIfiEA.js"),__vite__mapDeps([62,28,29,30]))),gxe=[{path:"/admin/dashboard",component:p.jsx(oxe,{})},{path:"/admin/settings",component:p.jsx(dxe,{})},{path:"/admin/metrics",component:p.jsx(lxe,{})},{path:"/admin/users",component:p.jsx(sxe,{})},{path:"/admin/orgs",component:p.jsx(cxe,{})},{path:"/admin/tools",component:p.jsx(uxe,{})},{path:"/admin/tools/*",component:p.jsx(Z0e,{})},{path:"/admin/ai/prompts",component:p.jsx(fxe,{})},{path:"/admin/marketing",component:p.jsx(mxe,{})},{path:"/app/*",component:p.jsx(S.Fragment,{})},{path:"/pricing-plan",component:p.jsx(ixe,{})},{path:"/storefront",component:p.jsx(axe,{})},{path:"/settings/*",component:p.jsx(hxe,{})},{path:"/workflows/*",component:p.jsx(pxe,{})}],bxe=[{path:"/privacyPolicy/:slug",component:p.jsx(RI,{})},{path:"/licenseAgreement/:slug",component:p.jsx(Lpe,{})},{path:"/privacyPolicy",component:p.jsx(RI,{})},{path:"/login",component:p.jsx(Ype,{})},{path:"/forgot-password",component:p.jsx(s0e,{})},{path:"/reset-password",component:p.jsx(l0e,{})},{path:"/logout",component:p.jsx(v0e,{})},{path:"/signup",component:p.jsx(JI,{})},{path:"/signup/:variant",component:p.jsx(JI,{})},{path:"/auto-redirect",component:p.jsx(QA,{})},{path:"/applinks/:appId",component:p.jsx(qve,{})},{path:"/form/:formVariant/:formId/*",component:p.jsx(_ve,{})},{path:"/f/:type?/:formId",component:p.jsx(eve,{})},{path:"/legacy-form/stripe/:formId",component:p.jsx(rxe,{})},{path:"/legacy-form/stripe/:formId/success",component:p.jsx(nxe,{})}];function vxe(){const{auth:e}=Ai();return bde(),p.jsx(De,{zIndex:1,pos:"fixed",w:"100dvw",h:"100dvh",children:p.jsxs(CA,{children:[!!e&&gxe.map((t,r)=>p.jsx(Cs,{path:t.path,element:p.jsx(jpe,{children:p.jsx(R0e,{fallback:p.jsx(T0e,{FlexProps:{h:"calc(100vh - 140px)"}},t.path),children:p.jsx(S.Suspense,{fallback:p.jsx(Bi,{FlexProps:{h:"calc(100vh - 140px)"}},t.path),children:t.component},t.path)},t.path)},t.path)},r)),bxe.map((t,r)=>p.jsx(Cs,{path:t.path,element:t.component},r)),p.jsx(Cs,{path:"*",element:p.jsx(QA,{})})]})})}const yxe=["/zapier-documentation","/f","/form","/legacy-form","/forgot-password","/auth/reset-password","/licenseAgreement","/privacy","/applinks"];function xxe({children:e}){const{auth:t,activeAuthn:r}=Ai(),o=(t?qs("ACTIVE"):null)?.refreshToken??null;return!t||!o?p.jsx(p.Fragment,{children:e}):p.jsx(hde,{url:`${ln}/client`,path:"/nexus/socket.io",token:o,onTokenRefresh:async()=>qs("ACTIVE")?.refreshToken??o,onError:l=>console.warn(`[nexus] ${l.code} on ${l.topic}: ${l.message}`),children:e},r?.id??"anon")}function Sxe(e,t){const[r,n]=S.useState(!1);async function o(){if(e==null)return n(!1);const l={params:{appId:e},query:{limit:300}},u=await Yl.GetFeatureFlagsList(l).catch(h=>h);if(u instanceof Ma)return $r(u);const f=u.items.find(h=>h.flag===t);n(f!=null&&(f.customValue??f.defaultValue)==="true")}return S.useEffect(()=>{o()},[e,t]),r}const Wc={REQUEST:"ai.chat.message",TOKEN:"ai.chat.token",TOOL_CALL:"ai.chat.tool.call",TOOL_RESULT:"ai.chat.tool.result",DONE:"ai.chat.done",ER
29ROR:"ai.chat.error"},Exe=cb.APPRABBIT_STUDIO_MULTIPURPOSE_AGENT;function cf(e){return typeof e=="object"&&e!==null}function Axe(e){return typeof e=="object"&&e!==null}function Rxe(e){const{client:t,connected:r}=mde(),n=S.useMemo(()=>crypto.randomUUID(),[]),o=S.useRef(e?.onTurnComplete);S.useEffect(()=>{o.current=e?.onTurnComplete},[e?.onTurnComplete]);const[l,u]=S.useState([]),[f,h]=S.useState(!1),[m,b]=S.useState(""),[x,E]=S.useState([]),[T,C]=S.useState(null),R=S.useRef(l);S.useEffect(()=>{R.current=l},[l]);const w=S.useRef(0);async function I(q){const D=q.trim();if(D.length===0||f)return;if(t==null){C("Chat is offline â not connected.");return}const O=[...R.current,{role:du.USER,content:D}];u(O),h(!0),b(""),E([]),C(null);const N=w.current+=1;let V=!1,J=null,W="";const G=[],B=[],L=ie=>!V&&w.current===N&&J!=null&&ie.correlationId===J,z=new Set,ee=ie=>{const me=Axe(ie)?ie.sequence:void 0;return me==null?!0:z.has(me)?!1:(z.add(me),!0)};function te(ie){if(V||(V=!0,B.forEach(Se=>Se()),h(!1),b(""),E([]),G.length>0&&o.current?.([...G]),ie==null))return;const me=G.length>0?G:void 0;u(Se=>[...Se,{role:du.ASSISTANT,content:ie,tools:me}])}B.push(t.on(Wc.TOKEN,(ie,me)=>{cf(ie)&&(!L(ie)||!ee(me)||(W+=ie.delta??"",b(W)))})),B.push(t.on(Wc.TOOL_CALL,(ie,me)=>{if(!cf(ie)||!L(ie)||!ee(me)||ie.toolCall==null)return;const{id:Se,name:we}=ie.toolCall;G.push(we),E(H=>[...H,{id:Se,name:we}])})),B.push(t.on(Wc.TOOL_RESULT,(ie,me)=>{if(!cf(ie)||!L(ie)||!ee(me)||ie.toolResult==null)return;const Se=ie.toolResult.id;E(we=>we.filter(H=>H.id!==Se))})),B.push(t.on(Wc.DONE,(ie,me)=>{cf(ie)&&L(ie)&&te(W.length>0||G.length>0?W:null)})),B.push(t.on(Wc.ERROR,(ie,me)=>{cf(ie)&&L(ie)&&(C(ie.error??"unknown error"),te(null))}));const Y={conversationId:n,kind:e?.kind??Exe,messages:O.map(ie=>({role:ie.role,content:ie.content}))};try{J=(await t.request(Wc.REQUEST,Y))?.correlationId??null,J==null&&(C("Server did not return a correlationId."),te(null))}catch(ie){C(ie instanceof Error?ie.message:"Chat request failed."),te(null)}}function P(){u([]),b(""),E([]),C(null)}return{connected:r,messages:l,streaming:f,streamingText:m,pendingTools:x,error:T,send:I,clear:P}}const P1=2,Jq=132,Cxe=[{icon:Bde,label:"Make my app light theme"},{icon:Ode,label:"Create a 5-day hypertrophy program"},{icon:Dde,label:"Create a high protein meal plan of 1300 calories"}];function Txe(e,t){const r=e??(t??[]).map(n=>n.name);return r.length<=P1?r:[...r.slice(0,P1),`+${r.length-P1} more`]}function wxe({height:e="calc(100vh - 220px)",kind:t,onTurnComplete:r}={}){const{connected:n,messages:o,streaming:l,streamingText:u,pendingTools:f,error:h,send:m,clear:b}=Rxe({kind:t,onTurnComplete:r}),[x,E]=S.useState(""),T=S.useRef(null),C=S.useRef(null);S.useEffect(()=>{T.current?.scrollTo({top:T.current.scrollHeight})},[o,u,f]),S.useEffect(()=>{const O=C.current;O&&(O.style.height="auto",O.style.height=`${Math.min(O.scrollHeight,Jq)}px`)},[x]);function R(){x.trim().length===0||l||(m(x),E(""))}function w(O){O.key!=="Enter"||O.shiftKey||(O.preventDefault(),R())}function I(O){!n||l||m(O)}const P=x.trim().length>0&&!l&&n,q=l&&u.length===0&&f.length===0,D=o.length>0||u.length>0;return p.jsxs(Oe,{direction:"column",h:e,minH:"0",w:"full",children:[p.jsx(Oe,{justify:"flex-end",mb:"6px",flexShrink:0,children:p.jsx(ut,{size:"xs",variant:"ghost",onClick:b,disabled:!D,children:"Clear"})}),p.jsx(De,{ref:T,flexGrow:1,minH:"0",overflowY:"auto",px:"2px",children:p.jsxs(Pn,{gap:"14px",children:[o.map((O,N)=>p.jsx(Zq,{message:O},N)),p.jsx(We,{if:q,children:p.jsx(Oxe,{})}),p.jsx(We,{if:l&&!q,children:p.jsx(Zq,{message:{role:du.ASSISTANT,content:u},pendingTools:f,live:!0})})]})}),p.jsx(We,{if:h!=null,children:p.jsx(De,{mt:"10px",borderWidth:"1px",borderColor:"red.300",bg:"red.50",borderRadius:"10px",p:"10px",flexShrink:0,children:p.jsx(_e,{fontSize:"13px",color:"red.700",children:h})})}),p.jsx(We,{if:!D&&!q,children:p.jsx(_xe,{disabled:!n,onPick:I})}),p.jsx(De,{flexShrink:0,pt:"10px",pb:"calc(env(safe-area-inset-bottom, 0px) + 4px)",children:p.jsxs(Oe,{align:"flex-end",gap:"8px",bg:"neutral.200",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"28px",p:"6px",pl:"18px",transition:"border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease",_focusWithin:{bg:"white",borderColor:"primary.500",boxShadow:"0 0 0 3px rgba(43, 111, 242, 0.14)"},children:[p.jsx(Y6,{ref:C,value:x,onChange:O=>E(O.target.value),onKeyDown:w,disabled:!n,rows:1,resize:"none",autoComplete:"off",autoCorrect:"off",spellCheck:!0,name:"assistant-prompt","data-form-type":"other",border:"none",bg:"transparent",px:"0",py:"10px",minH:"44px",maxH:`${Jq}px`,fontSize:"15px",_focus:{boxShadow:"none",outline:"none"},_focusVisible:{boxShadow:"none",outline:"none"},placeholder:n?"Ask the assistant to build somethingâ¦":"Connectingâ¦"}),p.jsx(ut,{colorPalette:"primary",onClick:R,loading:l,disabled:!P,borderRadius:"full",minW:"44px",w:"44px",h:"44px",p:"0",fontSize:"22px",flexShrink:0,"aria-label":"Send message",children:p.jsx(qde,{})})]})})]})}function _xe({onPick:e,disabled:t}
29){return p.jsx(Pn,{gap:"2px",mb:"6px",flexShrink:0,children:Cxe.map(({icon:r,label:n})=>p.jsxs(Oe,{as:"button","aria-disabled":t,onClick:()=>!t&&e(n),align:"center",gap:"14px",w:"full",textAlign:"left",px:"6px",py:"11px",borderRadius:"12px",color:"text.body",opacity:t?.5:1,cursor:t?"not-allowed":"pointer",transition:"background 0.15s ease",_hover:t?void 0:{bg:"neutral.300"},children:[p.jsx(De,{color:"text.light",flexShrink:0,display:"flex",children:p.jsx(r,{size:20})}),p.jsx(_e,{fontSize:"15px",children:n})]},n))})}function Zq({message:e,pendingTools:t,live:r}){const n=e.role===du.USER,o=Txe(e.tools,t);return p.jsx(Oe,{justify:n?"flex-end":"flex-start",children:p.jsxs(De,{maxW:"86%",bg:n?"primary.500":"neutral.300",color:n?"white":"text.body",borderRadius:"22px",borderBottomRightRadius:n?"8px":"22px",borderBottomLeftRadius:n?"22px":"8px",px:"16px",py:"11px",boxShadow:n?"0 1px 2px rgba(43, 111, 242, 0.25)":"none",children:[p.jsx(We,{if:o.length>0,children:p.jsx(fS,{gap:"4px",mb:"6px",wrap:"wrap",children:o.map((l,u)=>p.jsxs(SX,{size:"sm",colorPalette:"gray",variant:"subtle",children:[p.jsx(Xde,{})," ",l]},u))})}),p.jsxs(_e,{whiteSpace:"pre-wrap",fontSize:"14px",children:[e.content,p.jsx(We,{if:r===!0&&e.content.length===0,children:"â¦"})]})]})})}function Oxe(){return p.jsx(Oe,{justify:"flex-start",children:p.jsxs(De,{maxW:"86%",minW:"220px",bg:"neutral.300",borderRadius:"22px",borderBottomLeftRadius:"8px",px:"16px",py:"12px",children:[p.jsx(_e,{fontSize:"12px",color:"text.light",mb:"8px",children:"Thinkingâ¦"}),p.jsxs(Pn,{gap:"6px",children:[p.jsx(Oo,{h:"10px",w:"90%",borderRadius:"6px"}),p.jsx(Oo,{h:"10px",w:"75%",borderRadius:"6px"}),p.jsx(Oo,{h:"10px",w:"55%",borderRadius:"6px"})]})]})})}function Ixe(){const e=yn(),t=e.pathname.startsWith("/app"),r=Kj(),{pushSharedState:n}=Kl();return S.useEffect(()=>{setTimeout(()=>{!t||r||n()},500)},[t]),p.jsx(Oe,{w:{base:"100vw",md:"calc(100vw - 96px)"},h:"100vh",display:e.pathname.startsWith("/app")?"block":"none",position:"absolute",bgColor:"white",zIndex:r?-1:2,justifyContent:"center",children:p.jsx(Xr,{w:"full",h:{base:"calc(100% - 60px)",md:"100%"},flexWrap:"wrap",children:p.jsx(Oe,{wrap:"wrap",children:p.jsxs(Oe,{direction:"column",wrap:"nowrap",bgColor:"inherit",mx:"auto",alignItems:"center",children:[p.jsx(nr,{src:"/assets/apprabbit/logo-icon.svg",style:{display:t?"block":"none"},height:"48px",mb:2}),p.jsx(nr,{src:"/assets/loading-bar.svg",style:{display:t?"block":"none"},height:"10px",width:"100px",mt:4})]})})})})}function qxe(e){return p.jsx(De,{h:"70px",w:"100%",...e,pointerEvents:"none"})}const Pxe=[Vf.ERROR,Vf.BOOTED],kxe=120;function Nxe(e){const t=window.visualViewport;if(!t)return()=>{};let r=0;const n=()=>{r=0;const l=window.innerHeight-t.height;e(l>kxe?Math.round(l):0)},o=()=>{r||(r=requestAnimationFrame(n))};return n(),t.addEventListener("resize",o),t.addEventListener("scroll",o),window.addEventListener("orientationchange",o),()=>{r&&cancelAnimationFrame(r),t.removeEventListener("resize",o),t.removeEventListener("scroll",o),window.removeEventListener("orientationchange",o)}}function Dxe(){const[e,t]=S.useState(0);return S.useEffect(()=>Nxe(t),[]),e}const Mxe=/^(create|update|patch|delete|reorder|add|remove|link|unlink|move|copy|set|put)_/;function Kj(){const{flutterLifecycleStatus:e}=Kl();return Pxe.includes(e)}function jxe(){const{appId:e,loadEventListeners:t,setFlutterRoutePath:r,setMenuDrawerVisible:n,appPath:o}=Kl(),l=yn(),u=l.pathname.startsWith("/app"),f=u?`${l.pathname}${l.search}`:null,{spoofAuthn:h}=Ai(),m=VA(In.IsRoot,Mb.USER),{activeApp:b}=ju(),x=Sxe(b?.id,SS.EXPERIMENT_FREE_AI_USAGE),E=!!h&&m||x,T=l.pathname.startsWith("/app/builder"),C=T&&E,[R,w]=S.useState("preview"),I=Dxe(),P=R==="ai";S.useEffect(()=>{if(!P)return;const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=N}},[P]);function q(){u&&window.history.pushState({},"",`${Fi.ENV.BASE_URL.substring(0,Fi.ENV.BASE_URL.length-1)}${o}`)}const D=S.useCallback(N=>{if(!N.some(J=>Mxe.test(J)))return;const V=document.getElementById("flutterIframe");V&&(V.src=V.src)},[]);S.useEffect(()=>vpe("PageView")),S.useEffect(()=>t(),[]),S.useEffect(()=>r(f),[f]),S.useEffect(()=>q(),[o]);const O=Kj();return yxe.find(N=>l.pathname.startsWith(N))?p.jsx(p.Fragment,{}):p.jsxs(De,{w:{base:"100vw",md:"calc(100vw - 96px)"},h:{base:"100dvh",md:"100vh"},zIndex:u?2:-1,pos:"fixed",right:"0",pointerEvents:"none",children:[p.jsxs(Xr,{w:"full",h:"100%",flexWrap:"wrap",pointerEvents:"none",pt:"var(--desktop-handoff-offset, 0px)",children:[p.jsx(qxe,{display:u?"none":"flex",bgColor:"transparent",clipPath:u?"unset":{base:"none",md:"inset(70px 0)"}}),p.jsx(We,{if:!0,children:p.jsx(zxe,{})}),p.jsx(We,{if:Fi.FLUTTER.FLUTTER_PROJECT_DISABLED,children:p.jsx(Uxe,{})}),(!e||!O)&&u&&!0&&p.jsx(Ixe,{})]}),p.jsx(We,{if:T,children:p.jsx(De,{display:{base:"block",md:"none"},pos:"absolute",top:"0",left:"0",right:"0",pt:"var(--desktop-handoff-offset, calc(env(safe-area-inset-top, 0px) + 10px))",zIndex:4,pointerEvents:"none",children:p.jsxs(Oe,{align:"center",px:"10px",pointerEvents:"none",children:[p.jsx(Xr,{as:"button","aria-label":"Open navigation",pointerEvents:"auto",flexShrink:0,bg:"white",color:"neutral.700",borderRadius:"999px",borderWidth:"1px",borderColor:"neutral.400",boxShadow:"0 6px 18px rgba(3, 11, 22, 0.1)",p:"10px",cursor:"pointer",onClick:()=>n(!0),children:p.jsx(Ide,{size:22})}),p.jsx(Xr,{flex:"1",pointerEvents:C?"auto":"none",children:p.jsx(We,{if:C,children:p.jsx(Vxe,{tab:R,onChange:w,previewReady:O})})}),p.jsx(De,{w:"44px",flexShrink:0})]})})}),C&&p.jsx(De,{display:{base:"block",md:"none"},pos:"fixed",inset:"0",bg:"white",pt:"var(--desktop-handoff-offset, calc(env(safe-area-inset-top, 0px) + 56px))",px:"12px",pb:I?`${I}px`:void 0,zIndex:3,opacity:P?1:0,transform:P?"none":"translateY(8px)",transition:P?"none":"opacity 0.2s ease, transform 0.2s ease",pointerEvents:P?"auto":"none",children:p.jsx(wxe,{height:"100%",onTurnComplete:D})})]})}function Lxe(){const e=S.useRef(null);return p.jsx("iframe",{title:"flutterframe",allow:"microphone",width:"100%",height:"100%",src:Fi.FLUTTER.FLUTTER_PROJECT_URL,id:"flutterIframe",ref:e,style:{pointerEvents:"all"}})}const zxe=S.memo(Lxe,()=>!0);function Uxe(){return p.jsx(Oe,{w:"100%",h:"100%",children:p.jsx(Xr,{mx:"auto",children:p.jsx(vr,{children:" Flutter Application disabled in this mode!"})})})}
29function Vxe({tab:e,onChange:t,previewReady:r}){return p.jsxs(Oe,{bg:"white",borderRadius:"999px",borderWidth:"1px",borderColor:"neutral.400",p:"4px",gap:"2px",align:"center",boxShadow:"0 6px 18px rgba(3, 11, 22, 0.1)",children:[p.jsx(eP,{icon:p.jsx(zde,{size:18}),label:r?"App Preview":"App is building",active:e==="preview",onClick:()=>t("preview"),disabled:!r,loading:!r}),p.jsx(De,{w:"1px",h:"20px",bg:"neutral.400"}),p.jsx(eP,{icon:p.jsx(X8,{size:18}),label:"AI Builder",active:e==="ai",onClick:()=>t("ai")})]})}function eP({icon:e,label:t,active:r,onClick:n,disabled:o=!1,loading:l=!1}){return p.jsxs(Oe,{as:"button","aria-disabled":o,onClick:o?void 0:n,align:"center",gap:"8px",px:"16px",py:"8px",borderRadius:"999px",cursor:o?"not-allowed":"pointer",opacity:o?.55:1,transition:"background 0.15s ease, opacity 0.15s ease",bg:r?"primary.500/12":"transparent",color:r?"primary.500":"text.light",children:[l?p.jsx(ab,{size:"sm"}):e,p.jsx(_e,{fontSize:"14px",fontWeight:"600",lineHeight:"1",children:t})]})}function Fxe(){const[e,t]=S.useState(!1),r=()=>t(!e),{flutterState:n,flutterLifecycleStatus:o,flutterEventListenerRegistered:l}=Kl(),f=localStorage.getItem(Ba.FLUTTER_DEBUG_MODE)==="true"||Fi.isDevelopment||Fi.isHeph,h=[{property:"Flutter Lifecycle Status",value:JSON.stringify(o??null)},{property:"App Id",value:JSON.stringify(n.bootstrap?.appId??null)},{property:"App Mode",value:JSON.stringify(n.bootstrap?.appMode??null)},{property:"App Path",value:JSON.stringify(n.bootstrap?.appPath??null)},{property:"User Token",value:JSON.stringify(n.auth?.authnUserToken??null)},{property:"Spoofed User Token",value:JSON.stringify(n.auth?.authnSpoofToken??null)}],m=b=>function(){uM(b);const E=b.length>30?b.substring(0,30)+"...":b;St.success({title:"Item copied to the clipboard!",description:E})};return f?!e&&f?p.jsx(tP,{toggleVisible:r,autoPosition:!0,visible:e}):p.jsxs(De,{w:"100%",display:f?"block":"hidden",backgroundColor:"rgba(0,0,0,.85)",color:"white",p:"1rem",position:"fixed",bottom:"0",zIndex:200,maxH:"230px",overflowY:"auto",overflowX:"hidden",children:[p.jsx(Qx,{content:`Flutter events are ${l?"":"not"} registered`,positioning:{placement:"top"},children:p.jsx(Jn,{"aria-label":"Flutter Event Listener Registered",pos:"fixed",right:"3.5rem",size:"sm",color:l?"green.400":"red.400",backgroundColor:"rgba(0,0,0,0)",_hover:{backgroundColor:"rgba(0,0,0,0)"},children:l?p.jsx(Nde,{}):p.jsx(kde,{})})}),p.jsx(Qx,{content:`Flutter execution is ${n.react?.freezeExecution?"frozen":"active"}`,positioning:{placement:"top"},children:p.jsx(Jn,{"aria-label":"Flutter Execution State",pos:"fixed",right:"5rem",size:"sm",color:n.react?.freezeExecution?"cyan.400":"red.400",backgroundColor:"rgba(0,0,0,0)",_hover:{backgroundColor:"rgba(0,0,0,0)"},children:n.react?.freezeExecution?p.jsx(gpe,{}):p.jsx(upe,{})})}),p.jsx(tP,{toggleVisible:r,visible:e}),p.jsxs(mQ,{size:"sm",tableLayout:"fixed",showColumnBorder:!1,borderColor:"transparent",fontSize:"12px",children:[p.jsx(gQ,{children:p.jsxs(F4,{bg:"inherit",children:[p.jsx($4,{width:"20%",p:"1.25rem 1rem",borderColor:"transparent",color:"white",children:"Property"}),p.jsx($4,{borderColor:"transparent",color:"white",children:"Value"})]})}),p.jsx(bQ,{children:h.map((b,x)=>p.jsxs(F4,{onClick:m(b.value),_hover:{cursor:"pointer",opacity:".8"},bg:x%2?"unset":"whiteAlpha.100",children:[p.jsxs(B4,{display:"flex",h:"inherit",borderColor:"transparent",children:[p.jsx(lM,{style:{marginRight:".5rem"},size:"12px"}),b.property]}),p.jsx(B4,{overflowX:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderColor:"transparent",children:b.value})]},x))})]})]}):p.jsx(p.Fragment,{})}function tP(e){return p.jsx(Jn,{"aria-label":"Dev Tools",onClick:e.toggleVisible,backgroundColor:"rgba(0,0,0,.85)",color:"white",_hover:{backgroundColor:"rgba(0,0,0,.9)"},position:"fixed",zIndex:e.autoPosition?100:"unset",bottom:e.autoPosition?".5rem":"unset",right:e.visible?"1rem":"unset",left:e.visible?"unset":"1rem",size:"sm",children:p.jsx(lpe,{})})}const $xe={globalCss:{html:{colorPalette:"blue"}},theme:{tokens:{fonts:{heading:{value:"'Google Sans Flex', sans-serif"},body:{value:"'Google Sans Flex', sans-serif"},text:{value:"'Google Sans Flex', sans-serif"}},colors:{brand:{100:{value:"#093367"},200:{value:"#093367"},300:{value:"#093367"},400:{value:"#093367"},500:{value:"#093367"},600:{value:"#093367"},700:{value:"#093367"},800:{value:"#093367"},900:{value:"#093367"},950:{value:"#7ab99b"}},neutral:{100:{value:"#FFF"},200:{value:"#F8FAFB"},300:{value:"#F2F4F6"}
29,400:{value:"#E6EAEF"},500:{value:"#BCC5D1"},600:{value:"#788698"},700:{value:"#505F73"},800:{value:"#030B16"},900:{value:"#000"}},primary:{300:{value:"#5b90f5"},500:{value:"#2B6FF2"},700:{value:"#0e54dc"}},success:{500:{value:"#009E49"},700:{value:"#0ED27D"}},warning:{300:{value:"#E34747"},500:{value:"#F7A01F"}},text:{body:{value:"#030B16"},light:{value:"#657488"},lightest:{value:"#AEB8C6"},information:{value:"#2B6FF2"},success:{value:"#34A853"},warning:{value:"#F7A01F"},error:{value:"#F43A4D"}},bg:{main:{value:"#FFFFFF"},dialogBody:{value:"#FEFEFE"}}}},semanticTokens:{colors:{bg:{value:"white"},text:{value:"text.body"}}},recipes:{accordion:{base:{container:{}}},button:pr({base:{fontWeight:"medium",padding:"0 20px",borderRadius:"10px"}}),menu:{base:{},variants:{outline:{button:{width:"100%",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"8px",padding:"10px 20px"}},ghost:{button:{width:"100%",bg:"transparent",padding:"0"}}}},switch:{variants:{circle:{thumb:{bg:"primary.500"},track:{bg:"transparent",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"12px"}}}},tabs:pr({variants:{"soft-rounded":{tablist:{background:"white",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"12px",padding:"20px",gap:"10px"},tab:{color:"text.body",fontWeight:"medium",fontSize:"16px",padding:"9px 24px",background:"white",borderWidth:"1px",borderColor:"neutral.400",borderRadius:"8px",_selected:{background:"primary.500",color:"white"}},tabpanels:{marginTop:"30px"},tabpanel:{padding:"0"}}}}),tooltip:pr({base:{fontWeight:"normal",color:"#EDF3FA",bg:"#2C2C2C",boxShadow:"0px 5px 30px rgba(0, 0, 0, .15)",borderRadius:"10px",padding:"14px 24px"}})}}},m2=C6(I6,$xe);Xe(()=>Promise.resolve({}),__vite__mapDeps([63]));function Bxe(){return p.jsx(nle,{children:p.jsxs(M1,{value:m2,children:[p.jsx(Xce,{}),p.jsx(wce,{basename:Fi.ENV.BASE_URL,children:p.jsx(mue,{children:p.jsx(xxe,{children:p.jsx(Vce,{children:p.jsx(bfe,{children:p.jsx(yfe,{children:p.jsxs(Hxe,{children:[p.jsx(jxe,{}),p.jsx(Fxe,{}),p.jsx(vxe,{})]})})})})})})})]})})}function Hxe(e){const t=Fi.ENV.VITE_GOOGLE_CLIENT_ID,{setGoogleEnabled:r}=ju();return gue(),vue(),p.jsx(Lce,{clientId:t,onScriptLoadSuccess:()=>r(!0),onScriptLoadError:()=>r(!1),children:e.children})}const Gxe="/assets/repair-Bq6-Vsmy.gif";function Wxe(e){S.useEffect(()=>{const r=document.getElementById("loading");r&&(r.style.display="none",r.parentNode?.removeChild(r))},[]);const t=e.message?e.message:"We are performing some maintenance on our site.";return p.jsxs(Oe,{flexDir:"column",alignItems:"center",justifyContent:"center",p:"20px",backgroundColor:"white",height:"100vh",children:[p.jsx(_e,{fontSize:"20px",fontFamily:"Inter, sans-serif",color:"gray.500",textAlign:"center",children:t}),p.jsx(nr,{src:Gxe,height:"200px",ml:"-120px"}),p.jsx(_e,{fontSize:"20px",fontFamily:"Inter, sans-serif",color:"gray.500",textAlign:"center",children:"We'll be back up as soon as possible. Thank you!"})]})}function Yxe(){const e=Wse();if(e.status==="checking")return null;if(e.status==="active")return p.jsx(M1,{value:m2,children:p.jsx(Wxe,{message:e.window.message})});const t=e.status==="upcoming"?e.window:null;return p.jsxs(p.Fragment,{children:[p.jsx(Bxe,{}),p.jsx(We,{if:t!==null,children:p.jsx(M1,{value:m2,children:p.jsx($Q,{window:t})})})]})}const Kxe=document.getElementById("root"),Xxe=LQ.createRoot(Kxe);Xxe.render(p.jsx(Yxe,{}));export{mpe as $,iQ as A,S2e as B,Fi as C,oS as D,E2e as E,Oe as F,rQ as G,nQ as H,tr as I,aQ as J,x2e as K,B6 as L,V6 as M,ut as N,F2e as O,Vo as P,De as Q,qA as R,eQ as S,Y6 as T,dEe as U,St as V,BSe as W,_e as X,ab as Y,Jn as Z,uEe as _,$r as a,bQ as a$,b2e as a0,SX as a1,YX as a2,KX as a3,lEe as a4,XX as a5,QX as a6,ZX as a7,v2e as a8,Qx as a9,Ka as aA,e6 as aB,L2e as aC,qs as aD,lg as aE,jb as aF,aO as aG,Ua as aH,sM as aI,Ro as aJ,QSe as aK,Cm as aL,fS as aM,PN as aN,$ as aO,yEe as aP,ga as aQ,d2e as aR,f2e as aS,Pl as aT,mQ as aU,gQ as aV,F4 as aW,IN as aX,$4 as aY,fpe as aZ,dpe as a_,lM as aa,uM as ab,iEe as ac,Xr as ad,vEe as ae,xEe as af,ju as ag,JM as ah,nr as ai,nSe as aj,or as ak,JA as al,NX as am,jX as an,DX as ao,MX as ap,g2e as aq,p2e as ar,h2e as as,LX as at,oEe as au,cEe as av,Bi as aw,o5 as ax,Rt as ay,Ug as az,y as b,Ma as b$,B4 as b0,Oo as b1,VA as b2,nn as b3,Ui as b4,Ff as b5,Xe as b6,$b as b7,gp as b8,Nl as b9,Q0e as bA,Mo as bB,s2e as bC,Ue as bD,Ds as bE,sr as bF,t2e as bG,Xf as bH,Jm as bI,Mr as bJ,Jf as bK,i2e as bL,QP as bM,Sr as bN,Er as bO,xu as bP,Lo as bQ,js as bR,Bl as bS,qe as bT,je as bU,$l as bV,Pe as bW,ep as bX,X2e as bY,J2e as bZ,cb as b_,aue as ba,qN as bb,fp as bc,wSe as bd,Cf as be,FSe as bf,Qde as bg,USe as bh,In as bi,fEe as bj,pEe as bk,VSe as bl,hu as bm,Yl as bn,Mb as bo,hpe as bp,ppe as bq,vr as br,D2e as bs,Hde as bt,he as bu,Zbe as bv,Ai as bw,pu as bx,cx as by,ux as bz,fH as c,zSe as c$,RSe as c0,RN as c1,fSe as c2,iSe as c3,K8 as c4,jSe as c5,oSe as c6,sSe as c7,Lde as c8,LSe as c9,Ga as cA,ks as cB,Ms as cC,Ls as cD,zo as cE,Pn as cF,X8 as cG,U2e as cH,UJ as cI,TN as cJ,z2e as cK,V2e as cL,SSe as cM,xSe as cN,kJ as cO,g2 as cP,Fl as cQ,wde as cR,cSe as cS,UN as cT,XJ as cU,NSe as cV,Yt as cW,_Se as cX,B2e as cY,H2e as cZ,G2e as c_,mde as ca,gde as cb,Wc as cc,du as cd,m2e as ce,lSe as cf,ke as cg,Vt as ch,cve as ci,ur as cj,WU as ck,e2e as cl,Km as cm,Zf as cn,Vi as co,W2 as cp,l2e as cq,O2 as cr,PU as cs,Zxe as ct,k2 as cu,Ol as cv,oF as cw,lF as cx,jV as cy,j2 as cz,A as d,eSe as d$,hSe as d0,gSe as d1,vSe as d2,Ude as d3,ASe as d4,mSe as d5,PSe as d6,MSe as d7,kSe as d8,OSe as d9,OX as dA,FN as dB,Mu as dC,q2e as dD,T2e as dE,w2e as dF,WJ as dG,uSe as dH,Y2e as dI,YJ as dJ,On as dK,_2e as dL,aSe as dM,y2e as dN,Pde as dO,Z2e as dP,Sxe as dQ,SS as dR,DSe as dS,wxe as dT,k2e as dU,CA as dV,Cs as dW,Do as dX,ySe as dY,qSe as dZ,bSe as d_,rSe as da,W2e as db,K2e as dc,ESe as dd,dSe as de,GJ as df,KJ as dg,R2e as dh,I2e as di,C2e as dj,ISe as dk,O2e as dl,LN as dm,Kde as dn,Q2e as dp,CSe as dq,TSe as dr,tSe as ds,fN as dt,pSe as du,$N as dv,_X as dw,qX as dx,IX as dy,L6 as dz,s as e,Yf as e$,Vde as e0,j2e as e1,eEe as e2,tEe as e3,rEe as e4,WSe as e5,iue as e6,FJ as e7,w0e as e8,Kl as e9,Db as eA,Ft as eB,Afe as eC,UA as eD,ct as eE,XSe as eF,Efe as eG,KSe as eH,YSe as eI,Rfe as eJ,Sfe as eK,Lr as eL,$e as eM,rV as eN,n2e as eO,r2e as eP,x7 as eQ,y7 as eR,m_ as eS,_U as eT,da as eU,Xm as eV,lU as eW,j1 as eX,WP as eY,QU as eZ,J7 as e_,uu as ea,Hy as eb,Rm as ec,yt as ed,M2e as ee,N2e as ef,yn as eg,pg as eh,GSe as ei,HSe as ej,gEe as ek,mEe as el,nJ as em,t5 as en,c2e as eo,rg as ep,jU as eq,zP as er,
29UP as es,Xg as et,tV as eu,yu as ev,ri as ew,Ef as ex,E_ as ey,Ide as ez,M as f,QB as f0,A3 as f1,E3 as f2,$w as f3,m$ as f4,u$ as f5,l$ as f6,p$ as f7,fa as f8,pa as f9,o2e as fa,s$ as fb,Qxe as fc,$Se as fd,cn as fe,bX as ff,xf as fg,Ru as fh,hEe as fi,Sl as fj,Af as fk,bpe as fl,SEe as fm,nEe as fn,aEe as fo,JSe as fp,ia as fq,dg as fr,sm as fs,sEe as ft,mf as fu,Qn as fv,ZSe as fw,bEe as fx,Va as g,cS as h,U6 as i,p as j,sS as k,F6 as l,lS as m,wu as n,uS as o,Xt as p,_n as q,S as r,Rs as s,We as t,pj as u,EEe as v,sQ as w,A2e as x,oQ as y,tQ 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.