function V0(e,t){for(var r=0;rn[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var c2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Vu={},ui={},X0={get exports(){return ui},set exports(e){ui=e}},ft={},g={},Y0={get exports(){return g},set exports(e){g=e}},Y={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hs=Symbol.for("react.element"),J0=Symbol.for("react.portal"),Z0=Symbol.for("react.fragment"),e1=Symbol.for("react.strict_mode"),t1=Symbol.for("react.profiler"),r1=Symbol.for("react.provider"),n1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),a1=Symbol.for("react.memo"),o1=Symbol.for("react.lazy"),rh=Symbol.iterator;function l1(e){return e===null||typeof e!="object"?null:(e=rh&&e[rh]||e["@@iterator"],typeof e=="function"?e:null)}var Bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hm=Object.assign,Wm={};function bi(e,t,r){this.props=e,this.context=t,this.refs=Wm,this.updater=r||Bm}bi.prototype.isReactComponent={};bi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gm(){}Gm.prototype=bi.prototype;function gd(e,t,r){this.props=e,this.context=t,this.refs=Wm,this.updater=r||Bm}var Sd=gd.prototype=new Gm;Sd.constructor=gd;Hm(Sd,bi.prototype);Sd.isPureReactComponent=!0;var nh=Array.isArray,Km=Object.prototype.hasOwnProperty,Ed={current:null},Vm={key:!0,ref:!0,__self:!0,__source:!0};function Xm(e,t,r){var n,i={},s=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Km.call(t,n)&&!Vm.hasOwnProperty(n)&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1>>1,$e=L[he];if(0>>1;hei(Qi,W))Nt<$e&&0>i(bn,Qi)?(L[he]=bn,L[Nt]=W,he=Nt):(L[he]=Qi,L[Yt]=W,he=Yt);else if(Nt<$e&&0>i(bn,W))L[he]=bn,L[Nt]=W,he=Nt;else break e}}return q}function i(L,q){var W=L.sortIndex-q.sortIndex;return W!==0?W:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var l=[],u=[],d=1,c=null,h=3,S=!1,E=!1,f=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=L)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function w(L){if(f=!1,y(L),!E)if(r(l)!==null)E=!0,Ot($);else{var q=r(u);q!==null&&Wr(w,q.startTime-L)}}function $(L,q){E=!1,f&&(f=!1,m(b),b=-1),S=!0;var W=h;try{for(y(q),c=r(l);c!==null&&(!(c.expirationTime>q)||L&&!X());){var he=c.callback;if(typeof he=="function"){c.callback=null,h=c.priorityLevel;var $e=he(c.expirationTime<=q);q=e.unstable_now(),typeof $e=="function"?c.callback=$e:c===r(l)&&n(l),y(q)}else n(l);c=r(l)}if(c!==null)var it=!0;else{var Yt=r(u);Yt!==null&&Wr(w,Yt.startTime-q),it=!1}return it}finally{c=null,h=W,S=!1}}var R=!1,x=null,b=-1,I=5,A=-1;function X(){return!(e.unstable_now()-AL||125he?(L.sortIndex=W,t(u,L),r(l)===null&&L===r(u)&&(f?(m(b),b=-1):f=!0,Wr(w,W-he))):(L.sortIndex=$e,t(l,L),E||S||(E=!0,Ot($))),L},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(L){var q=h;return function(){var W=h;h=q;try{return L.apply(this,arguments)}finally{h=W}}}})(Ym);(function(e){e.exports=Ym})(h1);/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jm=g,dt=Xu;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=Object.prototype.hasOwnProperty,p1=/^[: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]*$/,sh={},ah={};function m1(e){return Yu.call(ah,e)?!0:Yu.call(sh,e)?!1:p1.test(e)?ah[e]=!0:(sh[e]=!0,!1)}function v1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function y1(e,t,r,n){if(t===null||typeof t>"u"||v1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,r,n,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fe[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cd=/[\-:]([a-z])/g;function Pd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function $d(e,t,r,n){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:n||!(2o||i[a]!==s[o]){var l=` `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=o);break}}}finally{kl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ss(e):""}function g1(e){switch(e.tag){case 5:return ss(e.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function tc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qn:return"Fragment";case In:return"Portal";case Ju:return"Profiler";case Od:return"StrictMode";case Zu:return"Suspense";case ec:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tv:return(e.displayName||"Context")+".Consumer";case ev:return(e._context.displayName||"Context")+".Provider";case bd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xd:return t=e.displayName||null,t!==null?t:tc(e.type)||"Memo";case gr:t=e._payload,e=e._init;try{return tc(e(t))}catch{}}return null}function S1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tc(t);case 8:return t===Od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E1(e){var t=nv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function da(e){e._valueTracker||(e._valueTracker=E1(e))}function iv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=nv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function no(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rc(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Lr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sv(e,t){t=t.checked,t!=null&&$d(e,"checked",t,!1)}function nc(e,t){sv(e,t);var r=Lr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ic(e,t.type,r):t.hasOwnProperty("defaultValue")&&ic(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ic(e,t,r){(t!=="number"||no(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var as=Array.isArray;function Zn(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $s(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w1=["Webkit","ms","Moz","O"];Object.keys(cs).forEach(function(e){w1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cs[t]=cs[e]})});function uv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||cs.hasOwnProperty(e)&&cs[e]?(""+t).trim():t+"px"}function cv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=uv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var C1=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oc(e,t){if(t){if(C1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function lc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uc=null;function Rd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cc=null,ei=null,ti=null;function fh(e){if(e=Ks(e)){if(typeof cc!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Go(t),cc(e.stateNode,e.type,t))}}function dv(e){ei?ti?ti.push(e):ti=[e]:ei=e}function fv(){if(ei){var e=ei,t=ti;if(ti=ei=null,fh(e),t)for(e=0;e>>=0,e===0?32:31-(D1(e)/A1|0)|0}var ha=64,pa=4194304;function os(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function oo(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=os(o):(s&=a,s!==0&&(n=os(s)))}else a=r&~i,a!==0?n=os(a):s!==0&&(n=os(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ws(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=r}function q1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=fs),wh=String.fromCharCode(32),Ch=!1;function kv(e,t){switch(e){case"keyup":return fS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function pS(e,t){switch(e){case"compositionend":return Dv(t);case"keypress":return t.which!==32?null:(Ch=!0,wh);case"textInput":return e=t.data,e===wh&&Ch?null:e;default:return null}}function mS(e,t){if(Un)return e==="compositionend"||!Nd&&kv(e,t)?(e=Mv(),za=Dd=$r=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=bh(r)}}function Fv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qv(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=no(e.document)}return t}function Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $S(e){var t=qv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Fv(r.ownerDocument.documentElement,r)){if(n!==null&&Fd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=xh(r,s);var a=xh(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,jn=null,vc=null,ps=null,yc=!1;function Rh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yc||jn==null||jn!==no(n)||(n=jn,"selectionStart"in n&&Fd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ps&&Ms(ps,n)||(ps=n,n=co(vc,"onSelect"),0Hn||(e.current=Pc[Hn],Pc[Hn]=null,Hn--)}function ue(e,t){Hn++,Pc[Hn]=e.current,e.current=t}var Nr={},Be=Ur(Nr),et=Ur(!1),ln=Nr;function di(e,t){var r=e.type.contextTypes;if(!r)return Nr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function ho(){de(et),de(Be)}function Lh(e,t,r){if(Be.current!==Nr)throw Error(k(168));ue(Be,t),ue(et,r)}function Gv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(k(108,S1(e)||"Unknown",i));return ye({},r,n)}function po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nr,ln=Be.current,ue(Be,e),ue(et,et.current),!0}function Nh(e,t,r){var n=e.stateNode;if(!n)throw Error(k(169));r?(e=Gv(e,t,ln),n.__reactInternalMemoizedMergedChildContext=e,de(et),de(Be),ue(Be,e)):de(et),ue(et,r)}var tr=null,Ko=!1,Gl=!1;function Kv(e){tr===null?tr=[e]:tr.push(e)}function NS(e){Ko=!0,Kv(e)}function jr(){if(!Gl&&tr!==null){Gl=!0;var e=0,t=se;try{var r=tr;for(se=1;e>=a,i-=a,nr=1<<32-_t(t)+i|r<b?(I=x,x=null):I=x.sibling;var A=h(m,x,y[b],w);if(A===null){x===null&&(x=I);break}e&&x&&A.alternate===null&&t(m,x),v=s(A,v,b),R===null?$=A:R.sibling=A,R=A,x=I}if(b===y.length)return r(m,x),pe&&Kr(m,b),$;if(x===null){for(;bb?(I=x,x=null):I=x.sibling;var X=h(m,x,A.value,w);if(X===null){x===null&&(x=I);break}e&&x&&X.alternate===null&&t(m,x),v=s(X,v,b),R===null?$=X:R.sibling=X,R=X,x=I}if(A.done)return r(m,x),pe&&Kr(m,b),$;if(x===null){for(;!A.done;b++,A=y.next())A=c(m,A.value,w),A!==null&&(v=s(A,v,b),R===null?$=A:R.sibling=A,R=A);return pe&&Kr(m,b),$}for(x=n(m,x);!A.done;b++,A=y.next())A=S(x,m,b,A.value,w),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?b:A.key),v=s(A,v,b),R===null?$=A:R.sibling=A,R=A);return e&&x.forEach(function(ae){return t(m,ae)}),pe&&Kr(m,b),$}function P(m,v,y,w){if(typeof y=="object"&&y!==null&&y.type===Qn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ca:e:{for(var $=y.key,R=v;R!==null;){if(R.key===$){if($=y.type,$===Qn){if(R.tag===7){r(m,R.sibling),v=i(R,y.props.children),v.return=m,m=v;break e}}else if(R.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===gr&&zh($)===R.type){r(m,R.sibling),v=i(R,y.props),v.ref=Vi(m,R,y),v.return=m,m=v;break e}r(m,R);break}else t(m,R);R=R.sibling}y.type===Qn?(v=sn(y.props.children,m.mode,w,y.key),v.return=m,m=v):(w=Ya(y.type,y.key,y.props,null,m.mode,w),w.ref=Vi(m,v,y),w.return=m,m=w)}return a(m);case In:e:{for(R=y.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){r(m,v.sibling),v=i(v,y.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=tu(y,m.mode,w),v.return=m,m=v}return a(m);case gr:return R=y._init,P(m,v,R(y._payload),w)}if(as(y))return E(m,v,y,w);if(Bi(y))return f(m,v,y,w);wa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,y),v.return=m,m=v):(r(m,v),v=eu(y,m.mode,w),v.return=m,m=v),a(m)):r(m,v)}return P}var hi=ry(!0),ny=ry(!1),Vs={},Kt=Ur(Vs),As=Ur(Vs),Ls=Ur(Vs);function tn(e){if(e===Vs)throw Error(k(174));return e}function Wd(e,t){switch(ue(Ls,t),ue(As,e),ue(Kt,Vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ac(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ac(t,e)}de(Kt),ue(Kt,t)}function pi(){de(Kt),de(As),de(Ls)}function iy(e){tn(Ls.current);var t=tn(Kt.current),r=ac(t,e.type);t!==r&&(ue(As,e),ue(Kt,r))}function Gd(e){As.current===e&&(de(Kt),de(As))}var me=Ur(0);function Eo(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kl=[];function Kd(){for(var e=0;er?r:4,e(!0);var n=Vl.transition;Vl.transition={};try{e(!1),t()}finally{se=r,Vl.transition=n}}function Ey(){return Ct().memoizedState}function QS(e,t,r){var n=Dr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wy(e))Cy(t,r);else if(r=Jv(e,t,r,n),r!==null){var i=Ve();kt(r,e,n,i),Py(r,t,n)}}function US(e,t,r){var n=Dr(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wy(e))Cy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,At(o,a)){var l=t.interleaved;l===null?(i.next=i,Bd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Jv(e,t,i,n),r!==null&&(i=Ve(),kt(r,e,n,i),Py(r,t,n))}}function wy(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Cy(e,t){ms=wo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Py(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Md(e,r)}}var Co={readContext:wt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},jS={readContext:wt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Hh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ga(4194308,4,my.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ga(4,2,e,t)},useMemo:function(e,t){var r=jt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=QS.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Bh,useDebugValue:Zd,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Bh(!1),t=e[0];return e=IS.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,i=jt();if(pe){if(r===void 0)throw Error(k(407));r=r()}else{if(r=t(),ke===null)throw Error(k(349));cn&30||oy(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Hh(uy.bind(null,n,s,e),[e]),n.flags|=2048,qs(9,ly.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=jt(),t=ke.identifierPrefix;if(pe){var r=ir,n=nr;r=(n&~(1<<32-_t(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ns++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ht]=t,e[Ds]=n,ky(e,t,!1,!1),t.stateNode=e;e:{switch(a=lc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),i=n;break;case"iframe":case"object":case"embed":ce("load",e),i=n;break;case"video":case"audio":for(i=0;ivi&&(t.flags|=128,n=!0,Xi(s,!1),t.lanes=4194304)}else{if(!n)if(e=Eo(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!pe)return je(t),null}else 2*we()-s.renderingStartTime>vi&&r!==1073741824&&(t.flags|=128,n=!0,Xi(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=we(),t.sibling=null,r=me.current,ue(me,n?r&1|2:r&1),t):(je(t),null);case 22:case 23:return af(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?at&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function XS(e,t){switch(Id(t),t.tag){case 1:return tt(t.type)&&ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(),de(et),de(Be),Kd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gd(t),null;case 13:if(de(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(me),null;case 4:return pi(),null;case 10:return zd(t.type._context),null;case 22:case 23:return af(),null;case 24:return null;default:return null}}var Pa=!1,ze=!1,YS=typeof WeakSet=="function"?WeakSet:Set,F=null;function Vn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ge(e,t,n)}else r.current=null}function Lc(e,t,r){try{r()}catch(n){ge(e,t,n)}}var ep=!1;function JS(e,t){if(gc=lo,e=qv(),Fd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,o=-1,l=-1,u=0,d=0,c=e,h=null;t:for(;;){for(var S;c!==r||i!==0&&c.nodeType!==3||(o=a+i),c!==s||n!==0&&c.nodeType!==3||(l=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(S=c.firstChild)!==null;)h=c,c=S;for(;;){if(c===e)break t;if(h===r&&++u===i&&(o=a),h===s&&++d===n&&(l=a),(S=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=S}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Sc={focusedElem:e,selectionRange:r},lo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var f=E.memoizedProps,P=E.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?f:Rt(t.type,f),P);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){ge(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=ep,ep=!1,E}function vs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Lc(t,r,s)}i=i.next}while(i!==n)}}function Yo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Nc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Ly(e){var t=e.alternate;t!==null&&(e.alternate=null,Ly(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[Ds],delete t[Cc],delete t[AS],delete t[LS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ny(e){return e.tag===5||e.tag===3||e.tag===4}function tp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ny(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=fo));else if(n!==4&&(e=e.child,e!==null))for(Fc(e,t,r),e=e.sibling;e!==null;)Fc(e,t,r),e=e.sibling}function qc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qc(e,t,r),e=e.sibling;e!==null;)qc(e,t,r),e=e.sibling}var Le=null,Tt=!1;function yr(e,t,r){for(r=r.child;r!==null;)Fy(e,t,r),r=r.sibling}function Fy(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(zo,r)}catch{}switch(r.tag){case 5:ze||Vn(r,t);case 6:var n=Le,i=Tt;Le=null,yr(e,t,r),Le=n,Tt=i,Le!==null&&(Tt?(e=Le,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Le.removeChild(r.stateNode));break;case 18:Le!==null&&(Tt?(e=Le,r=r.stateNode,e.nodeType===8?Wl(e.parentNode,r):e.nodeType===1&&Wl(e,r),Rs(e)):Wl(Le,r.stateNode));break;case 4:n=Le,i=Tt,Le=r.stateNode.containerInfo,Tt=!0,yr(e,t,r),Le=n,Tt=i;break;case 0:case 11:case 14:case 15:if(!ze&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Lc(r,t,a),i=i.next}while(i!==n)}yr(e,t,r);break;case 1:if(!ze&&(Vn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){ge(r,t,o)}yr(e,t,r);break;case 21:yr(e,t,r);break;case 22:r.mode&1?(ze=(n=ze)||r.memoizedState!==null,yr(e,t,r),ze=n):yr(e,t,r);break;default:yr(e,t,r)}}function rp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new YS),t.forEach(function(n){var i=oE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~s}if(n=i,n=we()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eE(n/1960))-n,10e?16:e,Or===null)var n=!1;else{if(e=Or,Or=null,Oo=0,re&6)throw Error(k(331));var i=re;for(re|=4,F=e.current;F!==null;){var s=F,a=s.child;if(F.flags&16){var o=s.deletions;if(o!==null){for(var l=0;lwe()-nf?nn(e,0):rf|=r),rt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=pa,pa<<=1,!(pa&130023424)&&(pa=4194304)):t=1);var r=Ve();e=ur(e,t),e!==null&&(Ws(e,t,r),rt(e,r))}function aE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Hy(e,r)}function oE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(k(314))}n!==null&&n.delete(t),Hy(e,r)}var Wy;Wy=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,KS(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,pe&&t.flags&1048576&&Vv(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ka(e,t),e=t.pendingProps;var i=di(t,Be.current);ni(t,r),i=Xd(null,t,n,e,i,r);var s=Yd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(n)?(s=!0,po(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hd(t),i.updater=Vo,t.stateNode=i,i._reactInternals=t,Rc(t,n,e,r),t=_c(null,t,n,!0,s,r)):(t.tag=0,pe&&s&&qd(t),Ke(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ka(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=uE(n),e=Rt(n,e),i){case 0:t=Mc(null,t,n,e,r);break e;case 1:t=Yh(null,t,n,e,r);break e;case 11:t=Vh(null,t,n,e,r);break e;case 14:t=Xh(null,t,n,Rt(n.type,e),r);break e}throw Error(k(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Mc(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Yh(e,t,n,i,r);case 3:e:{if(Ty(t),e===null)throw Error(k(387));n=t.pendingProps,s=t.memoizedState,i=s.element,Zv(e,t),So(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=mi(Error(k(423)),t),t=Jh(e,t,n,r,i);break e}else if(n!==i){i=mi(Error(k(424)),t),t=Jh(e,t,n,r,i);break e}else for(lt=Mr(t.stateNode.containerInfo.firstChild),ut=t,pe=!0,Mt=null,r=ny(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fi(),n===i){t=cr(e,t,r);break e}Ke(e,t,n,r)}t=t.child}return t;case 5:return iy(t),e===null&&Oc(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,Ec(n,i)?a=null:s!==null&&Ec(n,s)&&(t.flags|=32),Ry(e,t),Ke(e,t,a,r),t.child;case 6:return e===null&&Oc(t),null;case 13:return My(e,t,r);case 4:return Wd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=hi(t,null,n,r):Ke(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Vh(e,t,n,i,r);case 7:return Ke(e,t,t.pendingProps,r),t.child;case 8:return Ke(e,t,t.pendingProps.children,r),t.child;case 12:return Ke(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,ue(yo,n._currentValue),n._currentValue=a,s!==null)if(At(s.value,a)){if(s.children===i.children&&!et.current){t=cr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=sr(-1,r&-r),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),bc(s.return,r,t),o.lanes|=r;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(k(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),bc(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Ke(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ni(t,r),i=wt(i),n=n(i),t.flags|=1,Ke(e,t,n,r),t.child;case 14:return n=t.type,i=Rt(n,t.pendingProps),i=Rt(n.type,i),Xh(e,t,n,i,r);case 15:return by(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Ka(e,t),t.tag=1,tt(n)?(e=!0,po(t)):e=!1,ni(t,r),ty(t,n,i),Rc(t,n,i,r),_c(null,t,n,!0,e,r);case 19:return _y(e,t,r);case 22:return xy(e,t,r)}throw Error(k(156,t.tag))};function Gy(e,t){return Sv(e,t)}function lE(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,n){return new lE(e,t,r,n)}function lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uE(e){if(typeof e=="function")return lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bd)return 11;if(e===xd)return 14}return 2}function Ar(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ya(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")lf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return sn(r.children,i,s,t);case Od:a=8,i|=8;break;case Ju:return e=yt(12,r,t,i|2),e.elementType=Ju,e.lanes=s,e;case Zu:return e=yt(13,r,t,i),e.elementType=Zu,e.lanes=s,e;case ec:return e=yt(19,r,t,i),e.elementType=ec,e.lanes=s,e;case rv:return Zo(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ev:a=10;break e;case tv:a=9;break e;case bd:a=11;break e;case xd:a=14;break e;case gr:a=16,n=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=yt(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function sn(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Zo(e,t,r,n){return e=yt(22,e,n,t),e.elementType=rv,e.lanes=r,e.stateNode={isHidden:!1},e}function eu(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function tu(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cE(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uf(e,t,r,n,i,s,a,o,l){return e=new cE(e,t,r,o,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=yt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hd(s),e}function dE(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=ft})(X0);const vE=vd(ui);var yE,cp=ui;yE=Vu.createRoot=cp.createRoot,Vu.hydrateRoot=cp.hydrateRoot;var Qs={},gE={get exports(){return Qs},set exports(e){Qs=e}},il={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var SE=g,EE=Symbol.for("react.element"),wE=Symbol.for("react.fragment"),CE=Object.prototype.hasOwnProperty,PE=SE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$E={key:!0,ref:!0,__self:!0,__source:!0};function Yy(e,t,r){var n,i={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)CE.call(t,n)&&!$E.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:EE,type:e,key:s,ref:a,props:i,_owner:PE.current}}il.Fragment=wE;il.jsx=Yy;il.jsxs=Yy;(function(e){e.exports=il})(gE);const zc=Qs.Fragment,D=Qs.jsx,ot=Qs.jsxs,OE="modulepreload",bE=function(e){return"/app/"+e},dp={},Ti=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=bE(s),s in dp)return;dp[s]=!0;const a=s.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const c=i[d];if(c.href===s&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":OE,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,c)=>{u.addEventListener("load",d),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};/** * @remix-run/router v1.4.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function RE(){return Math.random().toString(36).substr(2,8)}function hp(e,t){return{usr:e.state,key:e.key,idx:t}}function Us(e,t,r,n){return r===void 0&&(r=null),te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hr(t):t,{state:r,key:t&&t.key||n||RE()})}function dr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function TE(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=Ee.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(te({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function c(){o=Ee.Pop;let P=d(),m=P==null?null:P-u;u=P,l&&l({action:o,location:f.location,delta:m})}function h(P,m){o=Ee.Push;let v=Us(f.location,P,m);r&&r(v,P),u=d()+1;let y=hp(v,u),w=f.createHref(v);try{a.pushState(y,"",w)}catch{i.location.assign(w)}s&&l&&l({action:o,location:f.location,delta:1})}function S(P,m){o=Ee.Replace;let v=Us(f.location,P,m);r&&r(v,P),u=d();let y=hp(v,u),w=f.createHref(v);a.replaceState(y,"",w),s&&l&&l({action:o,location:f.location,delta:0})}function E(P){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof P=="string"?P:dr(P);return G(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let f={get action(){return o},get location(){return e(i,a)},listen(P){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(fp,c),l=P,()=>{i.removeEventListener(fp,c),l=null}},createHref(P){return t(i,P)},createURL:E,encodeLocation(P){let m=E(P);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:S,go(P){return a.go(P)}};return f}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const ME=new Set(["lazy","caseSensitive","path","id","index","children"]);function _E(e){return e.index===!0}function Jy(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,s)=>{let a=[...r,s],o=typeof i.id=="string"?i.id:a.join("-");if(G(i.index!==!0||!i.children,"Cannot specify children on an index route"),G(!n[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),_E(i)){let l=te({},i,{hasErrorBoundary:t(i),id:o});return n[o]=l,l}else{let l=te({},i,{id:o,hasErrorBoundary:t(i),children:void 0});return n[o]=l,i.children&&(l.children=Jy(i.children,t,a,n)),l}})}function Yn(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?hr(t):t,i=Xs(n.pathname||"/",r);if(i==null)return null;let s=Zy(e);kE(s);let a=null;for(let o=0;a==null&&o{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(G(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ar([n,l.relativePath]),d=r.concat(l);s.children&&s.children.length>0&&(G(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zy(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:IE(u,s.index),routesMeta:d})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of eg(s.path))i(s,a,l)}),t}function eg(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=eg(n.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function kE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:QE(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const DE=/^:\w+$/,AE=3,LE=2,NE=1,FE=10,qE=-2,pp=e=>e==="*";function IE(e,t){let r=e.split("/"),n=r.length;return r.some(pp)&&(n+=qE),t&&(n+=LE),r.filter(i=>!pp(i)).reduce((i,s)=>i+(DE.test(s)?AE:s===""?NE:FE),n)}function QE(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function UE(e,t){let{routesMeta:r}=e,n={},i="/",s=[];for(let a=0;a{if(d==="*"){let h=o[c]||"";a=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}return u[d]=HE(o[c]||"",d),u},{}),pathname:s,pathnameBase:a,pattern:e}}function zE(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),yi(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,o)=>(n.push(o),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function BE(e){try{return decodeURI(e)}catch(t){return yi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function HE(e,t){try{return decodeURIComponent(e)}catch(r){return yi(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Xs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function WE(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?hr(e):e;return{pathname:r?r.startsWith("/")?r:GE(r,t):t,search:VE(n),hash:XE(i)}}function GE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ru(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 and the router will parse it for you.'}function sl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hf(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=hr(e):(i=te({},e),G(!i.pathname||!i.pathname.includes("?"),ru("?","pathname","search",i)),G(!i.pathname||!i.pathname.includes("#"),ru("#","pathname","hash",i)),G(!i.search||!i.search.includes("#"),ru("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(n||a==null)o=r;else{let c=t.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}o=c>=0?t[c]:"/"}let l=WE(i,o),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const ar=e=>e.join("/").replace(/\/\/+/g,"/"),KE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mp extends Error{}class YE{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],G(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((s,a)=>n=a),this.controller=new AbortController;let i=()=>n(new mp("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((s,a)=>{let[o,l]=a;return Object.assign(s,{[o]:this.trackPromise(o,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(i=>this.onSettle(n,t,null,i),i=>this.onSettle(n,t,i));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,i){return this.controller.signal.aborted&&n instanceof mp?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n)):(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,r),i))}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(i=>{this.subscribe(s=>{t.removeEventListener("abort",n),(s||this.done)&&i(s)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return G(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,i]=r;return Object.assign(t,{[n]:ZE(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function JE(e){return e instanceof Promise&&e._tracked===!0}function ZE(e){if(!JE(e))return e;if(e._error)throw e._error;return e._data}class pf{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function tg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rg=["post","put","patch","delete"],ew=new Set(rg),tw=["get",...rg],rw=new Set(tw),nw=new Set([301,302,303,307,308]),iw=new Set([307,308]),nu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},sw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},vp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aw=!ig,ow=e=>Boolean(e.hasErrorBoundary);function lw(e){G(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||ow,r={},n=Jy(e.routes,t,void 0,r),i,s=null,a=new Set,o=null,l=null,u=null,d=e.hydrationData!=null,c=Yn(n,e.history.location,e.basename),h=null;if(c==null){let O=zt(404,{pathname:e.history.location.pathname}),{matches:M,route:_}=Cp(n);c=M,h={[_.id]:O}}let S=!c.some(O=>O.route.lazy)&&(!c.some(O=>O.route.loader)||e.hydrationData!=null),E,f={historyAction:e.history.action,location:e.history.location,matches:c,initialized:S,navigation:nu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},P=Ee.Pop,m=!1,v,y=!1,w=!1,$=[],R=[],x=new Map,b=0,I=-1,A=new Map,X=new Set,ae=new Map,oe=new Map,fe=new Map,We=!1;function Ot(){if(s=e.history.listen(_=>{let{action:Q,location:j,delta:H}=_;if(We){We=!1;return}yi(fe.size===0||H!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=Zf({currentLocation:f.location,nextLocation:j,historyAction:Q});if(B&&H!=null){We=!0,e.history.go(H*-1),sa(B,{state:"blocked",location:j,proceed(){sa(B,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),e.history.go(H)},reset(){ji(B),q({blockers:new Map(E.state.blockers)})}});return}return it(Q,j)}),f.initialized)return E;let O=f.matches.filter(_=>_.route.lazy);if(O.length===0)return it(Ee.Pop,f.location),E;let M=O.map(_=>Bc(_.route,t,r));return Promise.all(M).then(()=>{!f.matches.some(Q=>Q.route.loader)||e.hydrationData!=null?q({initialized:!0}):it(Ee.Pop,f.location)}),E}function Wr(){s&&s(),a.clear(),v&&v.abort(),f.fetchers.forEach((O,M)=>Ol(M)),f.blockers.forEach((O,M)=>ji(M))}function L(O){return a.add(O),()=>a.delete(O)}function q(O){f=te({},f,O),a.forEach(M=>M(f))}function W(O,M){var _,Q;let j=f.actionData!=null&&f.navigation.formMethod!=null&&er(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=O.state)==null?void 0:_._isRedirect)!==!0,H;M.actionData?Object.keys(M.actionData).length>0?H=M.actionData:H=null:j?H=f.actionData:H=null;let B=M.loaderData?wp(f.loaderData,M.loaderData,M.matches||[],M.errors):f.loaderData;for(let[z]of fe)ji(z);let V=m===!0||f.navigation.formMethod!=null&&er(f.navigation.formMethod)&&((Q=O.state)==null?void 0:Q._isRedirect)!==!0;i&&(n=i,i=void 0),q(te({},M,{actionData:H,loaderData:B,historyAction:P,location:O,initialized:!0,navigation:nu,revalidation:"idle",restoreScrollPosition:eh(O,M.matches||f.matches),preventScrollReset:V,blockers:new Map(f.blockers)})),y||P===Ee.Pop||(P===Ee.Push?e.history.push(O,O.state):P===Ee.Replace&&e.history.replace(O,O.state)),P=Ee.Pop,m=!1,y=!1,w=!1,$=[],R=[]}async function he(O,M){if(typeof O=="number"){e.history.go(O);return}let{path:_,submission:Q,error:j}=yp(O,M),H=f.location,B=Us(f.location,_,M&&M.state);B=te({},B,e.history.encodeLocation(B));let V=M&&M.replace!=null?M.replace:void 0,z=Ee.Push;V===!0?z=Ee.Replace:V===!1||Q!=null&&er(Q.formMethod)&&Q.formAction===f.location.pathname+f.location.search&&(z=Ee.Replace);let Ie=M&&"preventScrollReset"in M?M.preventScrollReset===!0:void 0,ie=Zf({currentLocation:H,nextLocation:B,historyAction:z});if(ie){sa(ie,{state:"blocked",location:B,proceed(){sa(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:B}),he(O,M)},reset(){ji(ie),q({blockers:new Map(f.blockers)})}});return}return await it(z,B,{submission:Q,pendingError:j,preventScrollReset:Ie,replace:M&&M.replace})}function $e(){if(Pl(),q({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){it(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}it(P||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function it(O,M,_){v&&v.abort(),v=null,P=O,y=(_&&_.startUninterruptedRevalidation)===!0,B0(f.location,f.matches),m=(_&&_.preventScrollReset)===!0;let Q=i||n,j=_&&_.overrideNavigation,H=Yn(Q,M,e.basename);if(!H){let Se=zt(404,{pathname:M.pathname}),{matches:Ft,route:bt}=Cp(Q);bl(),W(M,{matches:Ft,loaderData:{},errors:{[bt.id]:Se}});return}if(hw(f.location,M)&&!(_&&_.submission&&er(_.submission.formMethod))){W(M,{matches:H});return}v=new AbortController;let B=Zi(e.history,M,v.signal,_&&_.submission),V,z;if(_&&_.pendingError)z={[Jn(H).route.id]:_.pendingError};else if(_&&_.submission&&er(_.submission.formMethod)){let Se=await Yt(B,M,_.submission,H,{replace:_.replace});if(Se.shortCircuited)return;V=Se.pendingActionData,z=Se.pendingActionError,j=te({state:"loading",location:M},_.submission),B=new Request(B.url,{signal:B.signal})}let{shortCircuited:Ie,loaderData:ie,errors:Ge}=await Qi(B,M,H,j,_&&_.submission,_&&_.replace,V,z);Ie||(v=null,W(M,te({matches:H},V?{actionData:V}:{},{loaderData:ie,errors:Ge})))}async function Yt(O,M,_,Q,j){Pl();let H=te({state:"submitting",location:M},_);q({navigation:H});let B,V=Hc(Q,M);if(!V.route.action&&!V.route.lazy)B={type:be.error,error:zt(405,{method:O.method,pathname:M.pathname,routeId:V.route.id})};else if(B=await Ji("action",O,V,Q,r,t,E.basename),O.signal.aborted)return{shortCircuited:!0};if(si(B)){let z;return j&&j.replace!=null?z=j.replace:z=B.location===f.location.pathname+f.location.search,await Ui(f,B,{submission:_,replace:z}),{shortCircuited:!0}}if(Ss(B)){let z=Jn(Q,V.route.id);return(j&&j.replace)!==!0&&(P=Ee.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:B.error}}}if(rn(B))throw zt(400,{type:"defer-action"});return{pendingActionData:{[V.route.id]:B.data}}}async function Qi(O,M,_,Q,j,H,B,V){let z=Q;z||(z=te({state:"loading",location:M,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},j));let Ie=j||(z.formMethod&&z.formAction&&z.formData&&z.formEncType?{formMethod:z.formMethod,formAction:z.formAction,formData:z.formData,formEncType:z.formEncType}:void 0),ie=i||n,[Ge,Se]=gp(e.history,f,_,Ie,M,w,$,R,ae,ie,e.basename,B,V);if(bl(Qe=>!(_&&_.some(qt=>qt.route.id===Qe))||Ge&&Ge.some(qt=>qt.route.id===Qe)),Ge.length===0&&Se.length===0)return W(M,te({matches:_,loaderData:{},errors:V||null},B?{actionData:B}:{})),{shortCircuited:!0};if(!y){Se.forEach(qt=>{let Gr=f.fetchers.get(qt.key),la={state:"loading",data:Gr&&Gr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(qt.key,la)});let Qe=B||f.actionData;q(te({navigation:z},Qe?Object.keys(Qe).length===0?{actionData:null}:{actionData:Qe}:{},Se.length>0?{fetchers:new Map(f.fetchers)}:{}))}I=++b,Se.forEach(Qe=>x.set(Qe.key,v));let{results:Ft,loaderResults:bt,fetcherResults:zi}=await Xf(f.matches,_,Ge,Se,O);if(O.signal.aborted)return{shortCircuited:!0};Se.forEach(Qe=>x.delete(Qe.key));let aa=Pp(Ft);if(aa)return await Ui(f,aa,{replace:H}),{shortCircuited:!0};let{loaderData:oa,errors:xn}=Ep(f,_,Ge,bt,V,Se,zi,oe);oe.forEach((Qe,qt)=>{Qe.subscribe(Gr=>{(Gr||Qe.done)&&oe.delete(qt)})}),U0();let xl=Jf(I);return te({loaderData:oa,errors:xn},xl||Se.length>0?{fetchers:new Map(f.fetchers)}:{})}function Nt(O){return f.fetchers.get(O)||sw}function bn(O,M,_,Q){if(aw)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");x.has(O)&&ia(O);let H=Yn(i||n,_,e.basename);if(!H){$l(O,M,zt(404,{pathname:_}));return}let{path:B,submission:V}=yp(_,Q,!0),z=Hc(H,B);if(m=(Q&&Q.preventScrollReset)===!0,V&&er(V.formMethod)){I0(O,M,B,z,H,V);return}ae.set(O,{routeId:M,path:B}),Q0(O,M,B,z,H,V)}async function I0(O,M,_,Q,j,H){if(Pl(),ae.delete(O),!Q.route.action&&!Q.route.lazy){let Jt=zt(405,{method:H.formMethod,pathname:_,routeId:M});$l(O,M,Jt);return}let B=f.fetchers.get(O),V=te({state:"submitting"},H,{data:B&&B.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(O,V),q({fetchers:new Map(f.fetchers)});let z=new AbortController,Ie=Zi(e.history,_,z.signal,H);x.set(O,z);let ie=await Ji("action",Ie,Q,j,r,t,E.basename);if(Ie.signal.aborted){x.get(O)===z&&x.delete(O);return}if(si(ie)){x.delete(O),X.add(O);let Jt=te({state:"loading"},H,{data:void 0," _hasFetcherDoneAnything ":!0});return f.fetchers.set(O,Jt),q({fetchers:new Map(f.fetchers)}),Ui(f,ie,{isFetchActionRedirect:!0})}if(Ss(ie)){$l(O,M,ie.error);return}if(rn(ie))throw zt(400,{type:"defer-action"});let Ge=f.navigation.location||f.location,Se=Zi(e.history,Ge,z.signal),Ft=i||n,bt=f.navigation.state!=="idle"?Yn(Ft,f.navigation.location,e.basename):f.matches;G(bt,"Didn't find any matches after fetcher action");let zi=++b;A.set(O,zi);let aa=te({state:"loading",data:ie.data},H,{" _hasFetcherDoneAnything ":!0});f.fetchers.set(O,aa);let[oa,xn]=gp(e.history,f,bt,H,Ge,w,$,R,ae,Ft,e.basename,{[Q.route.id]:ie.data},void 0);xn.filter(Jt=>Jt.key!==O).forEach(Jt=>{let Tl=Jt.key,th=f.fetchers.get(Tl),K0={state:"loading",data:th&&th.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(Tl,K0),x.set(Tl,z)}),q({fetchers:new Map(f.fetchers)});let{results:xl,loaderResults:Qe,fetcherResults:qt}=await Xf(f.matches,bt,oa,xn,Se);if(z.signal.aborted)return;A.delete(O),x.delete(O),xn.forEach(Jt=>x.delete(Jt.key));let Gr=Pp(xl);if(Gr)return Ui(f,Gr);let{loaderData:la,errors:Rl}=Ep(f,f.matches,oa,Qe,void 0,xn,qt,oe),W0={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(O,W0);let G0=Jf(zi);f.navigation.state==="loading"&&zi>I?(G(P,"Expected pending action"),v&&v.abort(),W(f.navigation.location,{matches:bt,loaderData:la,errors:Rl,fetchers:new Map(f.fetchers)})):(q(te({errors:Rl,loaderData:wp(f.loaderData,la,bt,Rl)},G0?{fetchers:new Map(f.fetchers)}:{})),w=!1)}async function Q0(O,M,_,Q,j,H){let B=f.fetchers.get(O),V=te({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},H,{data:B&&B.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(O,V),q({fetchers:new Map(f.fetchers)});let z=new AbortController,Ie=Zi(e.history,_,z.signal);x.set(O,z);let ie=await Ji("loader",Ie,Q,j,r,t,E.basename);if(rn(ie)&&(ie=await lg(ie,Ie.signal,!0)||ie),x.get(O)===z&&x.delete(O),Ie.signal.aborted)return;if(si(ie)){await Ui(f,ie);return}if(Ss(ie)){let Se=Jn(f.matches,M);f.fetchers.delete(O),q({fetchers:new Map(f.fetchers),errors:{[Se.route.id]:ie.error}});return}G(!rn(ie),"Unhandled fetcher deferred data");let Ge={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(O,Ge),q({fetchers:new Map(f.fetchers)})}async function Ui(O,M,_){var Q;let{submission:j,replace:H,isFetchActionRedirect:B}=_===void 0?{}:_;M.revalidate&&(w=!0);let V=Us(O.location,M.location,te({_isRedirect:!0},B?{_isFetchActionRedirect:!0}:{}));if(G(V,"Expected a location on the redirect navigation"),ng.test(M.location)&&ig&&typeof((Q=window)==null?void 0:Q.location)<"u"){let Ft=e.history.createURL(M.location),bt=Xs(Ft.pathname,e.basename||"/")==null;if(window.location.origin!==Ft.origin||bt){H?window.location.replace(M.location):window.location.assign(M.location);return}}v=null;let z=H===!0?Ee.Replace:Ee.Push,{formMethod:Ie,formAction:ie,formEncType:Ge,formData:Se}=O.navigation;!j&&Ie&&ie&&Se&&Ge&&(j={formMethod:Ie,formAction:ie,formEncType:Ge,formData:Se}),iw.has(M.status)&&j&&er(j.formMethod)?await it(z,V,{submission:te({},j,{formAction:M.location}),preventScrollReset:m}):await it(z,V,{overrideNavigation:{state:"loading",location:V,formMethod:j?j.formMethod:void 0,formAction:j?j.formAction:void 0,formEncType:j?j.formEncType:void 0,formData:j?j.formData:void 0},preventScrollReset:m})}async function Xf(O,M,_,Q,j){let H=await Promise.all([..._.map(z=>Ji("loader",j,z,M,r,t,E.basename)),...Q.map(z=>z.matches&&z.match?Ji("loader",Zi(e.history,z.path,j.signal),z.match,z.matches,r,t,E.basename):{type:be.error,error:zt(404,{pathname:z.path})})]),B=H.slice(0,_.length),V=H.slice(_.length);return await Promise.all([$p(O,_,B,j.signal,!1,f.loaderData),$p(O,Q.map(z=>z.match),V,j.signal,!0)]),{results:H,loaderResults:B,fetcherResults:V}}function Pl(){w=!0,$.push(...bl()),ae.forEach((O,M)=>{x.has(M)&&(R.push(M),ia(M))})}function $l(O,M,_){let Q=Jn(f.matches,M);Ol(O),q({errors:{[Q.route.id]:_},fetchers:new Map(f.fetchers)})}function Ol(O){x.has(O)&&ia(O),ae.delete(O),A.delete(O),X.delete(O),f.fetchers.delete(O)}function ia(O){let M=x.get(O);G(M,"Expected fetch controller: "+O),M.abort(),x.delete(O)}function Yf(O){for(let M of O){let Q={state:"idle",data:Nt(M).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(M,Q)}}function U0(){let O=[];for(let M of X){let _=f.fetchers.get(M);G(_,"Expected fetcher: "+M),_.state==="loading"&&(X.delete(M),O.push(M))}Yf(O)}function Jf(O){let M=[];for(let[_,Q]of A)if(Q0}function j0(O,M){let _=f.blockers.get(O)||vp;return fe.get(O)!==M&&fe.set(O,M),_}function ji(O){f.blockers.delete(O),fe.delete(O)}function sa(O,M){let _=f.blockers.get(O)||vp;G(_.state==="unblocked"&&M.state==="blocked"||_.state==="blocked"&&M.state==="blocked"||_.state==="blocked"&&M.state==="proceeding"||_.state==="blocked"&&M.state==="unblocked"||_.state==="proceeding"&&M.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+M.state),f.blockers.set(O,M),q({blockers:new Map(f.blockers)})}function Zf(O){let{currentLocation:M,nextLocation:_,historyAction:Q}=O;if(fe.size===0)return;fe.size>1&&yi(!1,"A router only supports one blocker at a time");let j=Array.from(fe.entries()),[H,B]=j[j.length-1],V=f.blockers.get(H);if(!(V&&V.state==="proceeding")&&B({currentLocation:M,nextLocation:_,historyAction:Q}))return H}function bl(O){let M=[];return oe.forEach((_,Q)=>{(!O||O(Q))&&(_.cancel(),M.push(Q),oe.delete(Q))}),M}function z0(O,M,_){if(o=O,u=M,l=_||(Q=>Q.key),!d&&f.navigation===nu){d=!0;let Q=eh(f.location,f.matches);Q!=null&&q({restoreScrollPosition:Q})}return()=>{o=null,u=null,l=null}}function B0(O,M){if(o&&l&&u){let _=M.map(j=>Op(j,f.loaderData)),Q=l(O,_)||O.key;o[Q]=u()}}function eh(O,M){if(o&&l&&u){let _=M.map(H=>Op(H,f.loaderData)),Q=l(O,_)||O.key,j=o[Q];if(typeof j=="number")return j}return null}function H0(O){i=O}return E={get basename(){return e.basename},get state(){return f},get routes(){return n},initialize:Ot,subscribe:L,enableScrollRestoration:z0,navigate:he,fetch:bn,revalidate:$e,createHref:O=>e.history.createHref(O),encodeLocation:O=>e.history.encodeLocation(O),getFetcher:Nt,deleteFetcher:Ol,dispose:Wr,getBlocker:j0,deleteBlocker:ji,_internalFetchControllers:x,_internalActiveDeferreds:oe,_internalSetRoutes:H0},E}function uw(e){return e!=null&&"formData"in e}function yp(e,t,r){r===void 0&&(r=!1);let n=typeof e=="string"?e:dr(e);if(!t||!uw(t))return{path:n};if(t.formMethod&&!mw(t.formMethod))return{path:n,error:zt(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:og(n),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},er(i.formMethod)))return{path:n,submission:i};let s=hr(n),a=ag(t.formData);return r&&s.search&&ug(s.search)&&a.append("index",""),s.search="?"+a,{path:dr(s),submission:i}}function cw(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function gp(e,t,r,n,i,s,a,o,l,u,d,c,h){let S=h?Object.values(h)[0]:c?Object.values(c)[0]:void 0,E=e.createURL(t.location),f=e.createURL(i),P=s||E.toString()===f.toString()||E.search!==f.search,m=h?Object.keys(h)[0]:void 0,y=cw(r,m).filter(($,R)=>{if($.route.lazy)return!0;if($.route.loader==null)return!1;if(dw(t.loaderData,t.matches[R],$)||a.some(I=>I===$.route.id))return!0;let x=t.matches[R],b=$;return Sp($,te({currentUrl:E,currentParams:x.params,nextUrl:f,nextParams:b.params},n,{actionResult:S,defaultShouldRevalidate:P||sg(x,b)}))}),w=[];return l.forEach(($,R)=>{if(!r.some(A=>A.route.id===$.routeId))return;let x=Yn(u,$.path,d);if(!x){w.push(te({key:R},$,{matches:null,match:null}));return}let b=Hc(x,$.path);if(o.includes(R)){w.push(te({key:R,matches:x,match:b},$));return}Sp(b,te({currentUrl:E,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:r[r.length-1].params},n,{actionResult:S,defaultShouldRevalidate:P}))&&w.push(te({key:R,matches:x,match:b},$))}),[y,w]}function dw(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function sg(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Sp(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function Bc(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];G(i,"No route found in manifest");let s={};for(let a in n){let l=i[a]!==void 0&&a!=="hasErrorBoundary";yi(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!ME.has(a)&&(s[a]=n[a])}Object.assign(i,s),Object.assign(i,{hasErrorBoundary:t(te({},i)),lazy:void 0})}async function Ji(e,t,r,n,i,s,a,o,l,u){a===void 0&&(a="/"),o===void 0&&(o=!1),l===void 0&&(l=!1);let d,c,h,S=P=>{let m,v=new Promise((y,w)=>m=w);return h=()=>m(),t.signal.addEventListener("abort",h),Promise.race([P({request:t,params:r.params,context:u}),v])};try{let P=r.route[e];if(r.route.lazy)if(P)c=(await Promise.all([S(P),Bc(r.route,s,i)]))[0];else if(await Bc(r.route,s,i),P=r.route[e],P)c=await S(P);else{if(e==="action")throw zt(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:r.route.id});return{type:be.data,data:void 0}}else G(P,"Could not find the "+e+' to run on the "'+r.route.id+'" route'),c=await S(P);G(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(P){d=be.error,c=P}finally{h&&t.signal.removeEventListener("abort",h)}if(pw(c)){let P=c.status;if(nw.has(P)){let y=c.headers.get("Location");if(G(y,"Redirects returned/thrown from loaders/actions must have a Location header"),ng.test(y)){if(!o){let w=new URL(t.url),$=y.startsWith("//")?new URL(w.protocol+y):new URL(y),R=Xs($.pathname,a)!=null;$.origin===w.origin&&R&&(y=$.pathname+$.search+$.hash)}}else{let w=n.slice(0,n.indexOf(r)+1),$=sl(w).map(x=>x.pathnameBase),R=hf(y,$,new URL(t.url).pathname);if(G(dr(R),"Unable to resolve redirect location: "+y),a){let x=R.pathname;R.pathname=x==="/"?a:ar([a,x])}y=dr(R)}if(o)throw c.headers.set("Location",y),c;return{type:be.redirect,status:P,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:d||be.data,response:c};let m,v=c.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?m=await c.json():m=await c.text(),d===be.error?{type:d,error:new pf(P,c.statusText,m),headers:c.headers}:{type:be.data,data:m,statusCode:c.status,headers:c.headers}}if(d===be.error)return{type:d,error:c};if(c instanceof YE){var E,f;return{type:be.deferred,deferredData:c,statusCode:(E=c.init)==null?void 0:E.status,headers:((f=c.init)==null?void 0:f.headers)&&new Headers(c.init.headers)}}return{type:be.data,data:c}}function Zi(e,t,r,n){let i=e.createURL(og(t)).toString(),s={signal:r};if(n&&er(n.formMethod)){let{formMethod:a,formEncType:o,formData:l}=n;s.method=a.toUpperCase(),s.body=o==="application/x-www-form-urlencoded"?ag(l):l}return new Request(i,s)}function ag(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,n instanceof File?n.name:n);return t}function fw(e,t,r,n,i){let s={},a=null,o,l=!1,u={};return r.forEach((d,c)=>{let h=t[c].route.id;if(G(!si(d),"Cannot handle redirect results in processLoaderData"),Ss(d)){let S=Jn(e,h),E=d.error;n&&(E=Object.values(n)[0],n=void 0),a=a||{},a[S.route.id]==null&&(a[S.route.id]=E),s[h]=void 0,l||(l=!0,o=tg(d.error)?d.error.status:500),d.headers&&(u[h]=d.headers)}else rn(d)?(i.set(h,d.deferredData),s[h]=d.deferredData.data):s[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(o=d.statusCode),d.headers&&(u[h]=d.headers)}),n&&(a=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:a,statusCode:o||200,loaderHeaders:u}}function Ep(e,t,r,n,i,s,a,o){let{loaderData:l,errors:u}=fw(t,r,n,i,o);for(let d=0;dn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Cp(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function zt(e,t){let{pathname:r,routeId:n,method:i,type:s}=t===void 0?{}:t,a="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&r&&n?o="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"&&(o="defer() is not supported in actions")):e===403?(a="Forbidden",o='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",o='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",i&&r&&n?o="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new pf(e||500,a,new Error(o),!0)}function Pp(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(si(r))return r}}function og(e){let t=typeof e=="string"?hr(e):e;return dr(te({},t,{hash:""}))}function hw(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function rn(e){return e.type===be.deferred}function Ss(e){return e.type===be.error}function si(e){return(e&&e.type)===be.redirect}function pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mw(e){return rw.has(e)}function er(e){return ew.has(e)}async function $p(e,t,r,n,i,s){for(let a=0;ac.route.id===l.route.id),d=u!=null&&!sg(u,l)&&(s&&s[l.route.id])!==void 0;rn(o)&&(i||d)&&await lg(o,n,i).then(c=>{c&&(r[a]=c||r[a])})}}async function lg(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(i){return{type:be.error,error:i}}return{type:be.data,data:e.deferredData.data}}}function ug(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Op(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function Hc(e,t){let r=typeof t=="string"?hr(t).search:t.search;if(e[e.length-1].route.index&&ug(r||""))return e[e.length-1];let n=sl(e);return n[n.length-1]}/** * React Router v6.9.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function vw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const yw=typeof Object.is=="function"?Object.is:vw,{useState:gw,useEffect:Sw,useLayoutEffect:Ew,useDebugValue:ww}=ro;function Cw(e,t,r){const n=t(),[{inst:i},s]=gw({inst:{value:n,getSnapshot:t}});return Ew(()=>{i.value=n,i.getSnapshot=t,iu(i)&&s({inst:i})},[e,n,t]),Sw(()=>(iu(i)&&s({inst:i}),e(()=>{iu(i)&&s({inst:i})})),[e]),ww(n),n}function iu(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!yw(r,n)}catch{return!0}}function Pw(e,t,r){return t()}const $w=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ow=!$w,bw=Ow?Pw:Cw,xw="useSyncExternalStore"in ro?(e=>e.useSyncExternalStore)(ro):bw,mf=g.createContext(null),al=g.createContext(null),Mi=g.createContext(null),ol=g.createContext(null),wn=g.createContext({outlet:null,matches:[]}),cg=g.createContext(null);function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;to.pathnameBase)),s=g.useRef(!1);return g.useEffect(()=>{s.current=!0}),g.useCallback(function(o,l){if(l===void 0&&(l={}),!s.current)return;if(typeof o=="number"){t.go(o);return}let u=hf(o,JSON.parse(i),n,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ar([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,n])}function d2(){let{matches:e}=g.useContext(wn),t=e[e.length-1];return t?t.params:{}}function vf(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=g.useContext(wn),{pathname:i}=_i(),s=JSON.stringify(sl(n).map(a=>a.pathnameBase));return g.useMemo(()=>hf(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}function Tw(e,t){Ys()||G(!1);let{navigator:r}=g.useContext(Mi),n=g.useContext(al),{matches:i}=g.useContext(wn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let o=s?s.pathnameBase:"/";s&&s.route;let l=_i(),u;if(t){var d;let f=typeof t=="string"?hr(t):t;o==="/"||(d=f.pathname)!=null&&d.startsWith(o)||G(!1),u=f}else u=l;let c=u.pathname||"/",h=o==="/"?c:c.slice(o.length)||"/",S=Yn(e,{pathname:h}),E=Dw(S&&S.map(f=>Object.assign({},f,{params:Object.assign({},a,f.params),pathname:ar([o,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?o:ar([o,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),i,n||void 0);return t&&E?g.createElement(ol.Provider,{value:{location:Wc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ee.Pop}},E):E}function Mw(){let e=Fw(),t=tg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:i},r):null,s)}class _w extends g.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?g.createElement(wn.Provider,{value:this.props.routeContext},g.createElement(cg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kw(e){let{routeContext:t,match:r,children:n}=e,i=g.useContext(mf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(wn.Provider,{value:t},n)}function Dw(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,i=r==null?void 0:r.errors;if(i!=null){let s=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));s>=0||G(!1),n=n.slice(0,Math.min(n.length,s+1))}return n.reduceRight((s,a,o)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=null;r&&(a.route.ErrorBoundary?u=g.createElement(a.route.ErrorBoundary,null):a.route.errorElement?u=a.route.errorElement:u=g.createElement(Mw,null));let d=t.concat(n.slice(0,o+1)),c=()=>{let h=s;return l?h=u:a.route.Component?h=g.createElement(a.route.Component,null):a.route.element&&(h=a.route.element),g.createElement(kw,{match:a,routeContext:{outlet:s,matches:d},children:h})};return r&&(a.route.ErrorBoundary||a.route.errorElement||o===0)?g.createElement(_w,{location:r.location,component:u,error:l,children:c(),routeContext:{outlet:null,matches:d}}):c()},null)}var bp;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(bp||(bp={}));var Ro;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Ro||(Ro={}));function Aw(e){let t=g.useContext(al);return t||G(!1),t}function Lw(e){let t=g.useContext(wn);return t||G(!1),t}function Nw(e){let t=Lw(),r=t.matches[t.matches.length-1];return r.route.id||G(!1),r.route.id}function Fw(){var e;let t=g.useContext(cg),r=Aw(Ro.UseRouteError),n=Nw(Ro.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function qw(e){let{fallbackElement:t,router:r}=e,n=g.useCallback(()=>r.state,[r]),i=xw(r.subscribe,n,n),s=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:l=>r.navigate(l),push:(l,u,d)=>r.navigate(l,{state:u,preventScrollReset:d==null?void 0:d.preventScrollReset}),replace:(l,u,d)=>r.navigate(l,{replace:!0,state:u,preventScrollReset:d==null?void 0:d.preventScrollReset})}),[r]),a=r.basename||"/",o=g.useMemo(()=>({router:r,navigator:s,static:!1,basename:a}),[r,s,a]);return g.createElement(g.Fragment,null,g.createElement(mf.Provider,{value:o},g.createElement(al.Provider,{value:i},g.createElement(Iw,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:s},r.state.initialized?g.createElement(Qw,null):t))),null)}function Xr(e){G(!1)}function Iw(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Ee.Pop,navigator:s,static:a=!1}=e;Ys()&&G(!1);let o=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:o,navigator:s,static:a}),[o,s,a]);typeof n=="string"&&(n=hr(n));let{pathname:u="/",search:d="",hash:c="",state:h=null,key:S="default"}=n,E=g.useMemo(()=>{let f=Xs(u,o);return f==null?null:{location:{pathname:f,search:d,hash:c,state:h,key:S},navigationType:i}},[o,u,d,c,h,S,i]);return E==null?null:g.createElement(Mi.Provider,{value:l},g.createElement(ol.Provider,{children:r,value:E}))}function Qw(e){let{children:t,location:r}=e,n=g.useContext(mf),i=n&&!t?n.router.routes:To(t);return Tw(i,r)}var xp;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(xp||(xp={}));new Promise(()=>{});function To(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,i)=>{if(!g.isValidElement(n))return;if(n.type===g.Fragment){r.push.apply(r,To(n.props.children,t));return}n.type!==Xr&&G(!1),!n.props.index||!n.props.children||G(!1);let s=[...t,i],a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=To(n.props.children,s)),r.push(a)}),r}function Uw(e){return Boolean(e.ErrorBoundary)||Boolean(e.errorElement)}/** * React Router DOM v6.9.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function jw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zw(e,t){return e.button===0&&(!t||t==="_self")&&!jw(e)}function Gc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function Bw(e,t){let r=Gc(e);if(t)for(let n of t.keys())r.has(n)||t.getAll(n).forEach(i=>{r.append(n,i)});return r}const Hw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ww=["aria-current","caseSensitive","className","end","style","to","children"];function Gw(e,t){return lw({basename:t==null?void 0:t.basename,history:xE({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Kw(),routes:e,detectErrorBoundary:Uw}).initialize()}function Kw(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=js({},t,{errors:Vw(t.errors)})),t}function Vw(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new pf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let s=new Error(i.message);s.stack="",r[n]=s}else r[n]=i;return r}const Xw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jw=g.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:d}=t,c=fg(t,Hw),{basename:h}=g.useContext(Mi),S,E=!1;if(typeof u=="string"&&Yw.test(u)&&(S=u,Xw)){let v=new URL(window.location.href),y=u.startsWith("//")?new URL(v.protocol+u):new URL(u),w=Xs(y.pathname,h);y.origin===v.origin&&w!=null?u=w+y.search+y.hash:E=!0}let f=Rw(u,{relative:i}),P=Zw(u,{replace:a,state:o,target:l,preventScrollReset:d,relative:i});function m(v){n&&n(v),v.defaultPrevented||P(v)}return g.createElement("a",js({},c,{href:S||f,onClick:E||s?n:m,ref:r,target:l}))}),f2=g.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:s="",end:a=!1,style:o,to:l,children:u}=t,d=fg(t,Ww),c=vf(l,{relative:d.relative}),h=_i(),S=g.useContext(al),{navigator:E}=g.useContext(Mi),f=E.encodeLocation?E.encodeLocation(c).pathname:c.pathname,P=h.pathname,m=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(P=P.toLowerCase(),m=m?m.toLowerCase():null,f=f.toLowerCase());let v=P===f||!a&&P.startsWith(f)&&P.charAt(f.length)==="/",y=m!=null&&(m===f||!a&&m.startsWith(f)&&m.charAt(f.length)==="/"),w=v?n:void 0,$;typeof s=="function"?$=s({isActive:v,isPending:y}):$=[s,v?"active":null,y?"pending":null].filter(Boolean).join(" ");let R=typeof o=="function"?o({isActive:v,isPending:y}):o;return g.createElement(Jw,js({},d,{"aria-current":w,className:$,ref:r,style:R,to:l}),typeof u=="function"?u({isActive:v,isPending:y}):u)});var Rp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Rp||(Rp={}));var Tp;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tp||(Tp={}));function Zw(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a}=t===void 0?{}:t,o=dg(),l=_i(),u=vf(e,{relative:a});return g.useCallback(d=>{if(zw(d,r)){d.preventDefault();let c=n!==void 0?n:dr(l)===dr(u);o(e,{replace:c,state:i,preventScrollReset:s,relative:a})}},[l,o,u,n,i,r,e,s,a])}function h2(e){let t=g.useRef(Gc(e)),r=g.useRef(!1),n=_i(),i=g.useMemo(()=>Bw(n.search,r.current?null:t.current),[n.search]),s=dg(),a=g.useCallback((o,l)=>{const u=Gc(typeof o=="function"?o(i):o);r.current=!0,s("?"+u,l)},[s,i]);return[i,a]}function hg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tD("div",{className:ct("flex items-center justify-center",{"h-[24px] w-[24px]":e==="large"},{"h-[20px] w-[20px]":e==="medium"},{"h-[16px] w-[16px]":e==="small"}),children:D("div",{className:"relative flex h-full w-full items-center justify-center",children:D("div",{className:ct("animate-ring rounded-circle h-4/5 w-4/5 border-2 border-transparent",{"border-t-grey-0":t==="primary"},{"border-t-violet-60":t==="secondary"})})})}),eC=g.lazy(()=>Ti(()=>import("./404-c566c6bb.js"),["assets/404-c566c6bb.js","assets/index-845e4de2.js","assets/layout-9e52ad07.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js","assets/index.esm-07f1e6d3.js"])),tC=g.lazy(()=>Ti(()=>import("./a-14d94dc6.js").then(e=>e.s),["assets/a-14d94dc6.js","assets/layout-9e52ad07.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js","assets/index.esm-07f1e6d3.js","assets/index-845e4de2.js","assets/index-c0b93546.js","assets/index-9af9f9f3.js","assets/a-d8ab0fea.css"])),rC=g.lazy(()=>Ti(()=>import("./index-ab427eee.js"),["assets/index-ab427eee.js","assets/index-845e4de2.js"])),nC=g.lazy(()=>Ti(()=>import("./invite-0748e99e.js"),["assets/invite-0748e99e.js","assets/index-c0b93546.js","assets/index.esm-07f1e6d3.js","assets/index.modern-c903a5d6.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-845e4de2.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js"])),iC=g.lazy(()=>Ti(()=>import("./login-5ae15a5e.js"),["assets/login-5ae15a5e.js","assets/index.esm-07f1e6d3.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-aba65090.js","assets/index-845e4de2.js"])),sC=g.lazy(()=>Ti(()=>import("./reset-password-95003483.js"),["assets/reset-password-95003483.js","assets/index-c0b93546.js","assets/index.esm-07f1e6d3.js","assets/index.modern-c903a5d6.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-845e4de2.js","assets/error-messages-d2d0bb30.js"])),aC=Gw(To(ot(zc,{children:[D(Xr,{path:"/",element:D(rC,{})}),D(Xr,{path:"a/*",element:D(tC,{})}),D(Xr,{path:"invite",element:D(nC,{})}),D(Xr,{path:"login",element:D(iC,{})}),D(Xr,{path:"reset-password",element:D(sC,{})}),D(Xr,{path:"*",element:D(eC,{})})]})),{basename:"/app"}),oC=()=>D("div",{className:"bg-grey-5 text-grey-90 flex h-screen w-full items-center justify-center",children:D(pg,{variant:"secondary"})}),lC=()=>D(g.Suspense,{fallback:D(oC,{}),children:D(qw,{router:aC})}),Mo=Te.forwardRef(({variant:e="primary",size:t="large",loading:r=!1,children:n,...i},s)=>{const a=u=>{!r&&i.onClick&&i.onClick(u)},o=ct({["btn-primary"]:e==="primary",["btn-secondary"]:e==="secondary",["btn-ghost"]:e==="ghost",["btn-danger"]:e==="danger",["btn-nuclear"]:e==="nuclear"}),l=ct({["btn-large"]:t==="large",["btn-medium"]:t==="medium",["btn-small"]:t==="small"});return D("button",{...i,className:ct("btn",o,l,i.className),disabled:i.disabled||r,ref:s,onClick:a,children:r?D(pg,{size:t,variant:"secondary"}):g.Children.map(n,(u,d)=>D("span",{className:"mr-xsmall last:mr-0",children:u},d))})}),uC=({size:e="20px",color:t="currentColor",...r})=>D("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:D("path",{d:"M7.66703 12.3321L3.00098 7.66605M3.00098 7.66605L7.66703 3M3.00098 7.66605H12.3331C13.5706 7.66605 14.7574 8.15765 15.6325 9.03271C16.5075 9.90776 16.9991 11.0946 16.9991 12.3321C16.9991 13.5696 16.5075 14.7564 15.6325 15.6315C14.7574 16.5066 13.5706 16.9982 12.3331 16.9982H10.0001",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(r=>cC(r,t))}function Js(...e){return g.useCallback(mg(...e),e)}function dC(e,t=[]){let r=[];function n(s,a){const o=g.createContext(a),l=r.length;r=[...r,a];function u(c){const{scope:h,children:S,...E}=c,f=(h==null?void 0:h[e][l])||o,P=g.useMemo(()=>E,Object.values(E));return g.createElement(f.Provider,{value:P},S)}function d(c,h){const S=(h==null?void 0:h[e][l])||o,E=g.useContext(S);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const i=()=>{const s=r.map(a=>g.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[n,fC(i,...t)]}function fC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=n.reduce((o,{useScope:l,scopeName:u})=>{const c=l(s)[`__scope${u}`];return{...o,...c}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}const Kc=Boolean(globalThis==null?void 0:globalThis.document)?g.useLayoutEffect:()=>{},hC=ro["useId".toString()]||(()=>{});let pC=0;function su(e){const[t,r]=g.useState(hC());return Kc(()=>{e||r(n=>n??String(pC++))},[e]),e||(t?`radix-${t}`:"")}function hn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function mC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=vC({defaultProp:t,onChange:r}),s=e!==void 0,a=s?e:n,o=hn(r),l=g.useCallback(u=>{if(s){const c=typeof u=="function"?u(e):u;c!==e&&o(c)}else i(u)},[s,e,i,o]);return[a,l]}function vC({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,i=g.useRef(n),s=hn(t);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}const yf=g.forwardRef((e,t)=>{const{children:r,...n}=e,i=g.Children.toArray(r),s=i.find(gC);if(s){const a=s.props.children,o=i.map(l=>l===s?g.Children.count(a)>1?g.Children.only(null):g.isValidElement(a)?a.props.children:null:l);return g.createElement(Vc,qe({},n,{ref:t}),g.isValidElement(a)?g.cloneElement(a,void 0,o):null)}return g.createElement(Vc,qe({},n,{ref:t}),r)});yf.displayName="Slot";const Vc=g.forwardRef((e,t)=>{const{children:r,...n}=e;return g.isValidElement(r)?g.cloneElement(r,{...SC(n,r.props),ref:mg(t,r.ref)}):g.Children.count(r)>1?g.Children.only(null):null});Vc.displayName="SlotClone";const yC=({children:e})=>g.createElement(g.Fragment,null,e);function gC(e){return g.isValidElement(e)&&e.type===yC}function SC(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{s(...o),i(...o)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const EC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ki=EC.reduce((e,t)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...a}=n,o=s?yf:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(o,qe({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wC(e,t){e&&ui.flushSync(()=>e.dispatchEvent(t))}function CC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xc="dismissableLayer.update",PC="dismissableLayer.pointerDownOutside",$C="dismissableLayer.focusOutside";let Mp;const OC=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bC=g.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...u}=e,d=g.useContext(OC),[c,h]=g.useState(null),S=(r=c==null?void 0:c.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=g.useState({}),f=Js(t,b=>h(b)),P=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=P.indexOf(m),y=c?P.indexOf(c):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,$=y>=v,R=xC(b=>{const I=b.target,A=[...d.branches].some(X=>X.contains(I));!$||A||(s==null||s(b),o==null||o(b),b.defaultPrevented||l==null||l())},S),x=RC(b=>{const I=b.target;[...d.branches].some(X=>X.contains(I))||(a==null||a(b),o==null||o(b),b.defaultPrevented||l==null||l())},S);return CC(b=>{y===d.layers.size-1&&(i==null||i(b),!b.defaultPrevented&&l&&(b.preventDefault(),l()))},S),g.useEffect(()=>{if(c)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Mp=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),_p(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Mp)}},[c,S,n,d]),g.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),_p())},[c,d]),g.useEffect(()=>{const b=()=>E({});return document.addEventListener(Xc,b),()=>document.removeEventListener(Xc,b)},[]),g.createElement(ki.div,qe({},u,{ref:f,style:{pointerEvents:w?$?"auto":"none":void 0,...e.style},onFocusCapture:ai(e.onFocusCapture,x.onFocusCapture),onBlurCapture:ai(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:ai(e.onPointerDownCapture,R.onPointerDownCapture)}))});function xC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=o=>{if(o.target&&!n.current){let u=function(){vg(PC,r,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function RC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&vg($C,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _p(){const e=new CustomEvent(Xc);document.dispatchEvent(e)}function vg(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?wC(i,s):i.dispatchEvent(s)}const au="focusScope.autoFocusOnMount",ou="focusScope.autoFocusOnUnmount",kp={bubbles:!1,cancelable:!0},TC=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,l]=g.useState(null),u=hn(i),d=hn(s),c=g.useRef(null),h=Js(t,f=>l(f)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let f=function(m){if(S.paused||!o)return;const v=m.target;o.contains(v)?c.current=v:Yr(c.current,{select:!0})},P=function(m){S.paused||!o||o.contains(m.relatedTarget)||Yr(c.current,{select:!0})};return document.addEventListener("focusin",f),document.addEventListener("focusout",P),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",P)}}},[n,o,S.paused]),g.useEffect(()=>{if(o){Ap.add(S);const f=document.activeElement;if(!o.contains(f)){const m=new CustomEvent(au,kp);o.addEventListener(au,u),o.dispatchEvent(m),m.defaultPrevented||(MC(LC(yg(o)),{select:!0}),document.activeElement===f&&Yr(o))}return()=>{o.removeEventListener(au,u),setTimeout(()=>{const m=new CustomEvent(ou,kp);o.addEventListener(ou,d),o.dispatchEvent(m),m.defaultPrevented||Yr(f??document.body,{select:!0}),o.removeEventListener(ou,d),Ap.remove(S)},0)}}},[o,u,d,S]);const E=g.useCallback(f=>{if(!r&&!n||S.paused)return;const P=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=document.activeElement;if(P&&m){const v=f.currentTarget,[y,w]=_C(v);y&&w?!f.shiftKey&&m===w?(f.preventDefault(),r&&Yr(y,{select:!0})):f.shiftKey&&m===y&&(f.preventDefault(),r&&Yr(w,{select:!0})):m===v&&f.preventDefault()}},[r,n,S.paused]);return g.createElement(ki.div,qe({tabIndex:-1},a,{ref:h,onKeyDown:E}))});function MC(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Yr(n,{select:t}),document.activeElement!==r)return}function _C(e){const t=yg(e),r=Dp(t,e),n=Dp(t.reverse(),e);return[r,n]}function yg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Dp(e,t){for(const r of e)if(!kC(r,{upTo:t}))return r}function kC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DC(e){return e instanceof HTMLInputElement&&"select"in e}function Yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&DC(e)&&t&&e.select()}}const Ap=AC();function AC(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Lp(e,t),e.unshift(t)},remove(t){var r;e=Lp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Lp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LC(e){return e.filter(t=>t.tagName!=="A")}const gg=g.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?vE.createPortal(g.createElement(ki.div,qe({},i,{ref:t})),n):null});function NC(e,t){return g.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const ll=e=>{const{present:t,children:r}=e,n=FC(t),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=Js(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};ll.displayName="Presence";function FC(e){const[t,r]=g.useState(),n=g.useRef({}),i=g.useRef(e),s=g.useRef("none"),a=e?"mounted":"unmounted",[o,l]=NC(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=ba(n.current);s.current=o==="mounted"?u:"none"},[o]),Kc(()=>{const u=n.current,d=i.current;if(d!==e){const h=s.current,S=ba(u);e?l("MOUNT"):S==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Kc(()=>{if(t){const u=c=>{const S=ba(n.current).includes(c.animationName);c.target===t&&S&&ui.flushSync(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(s.current=ba(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ba(e){return(e==null?void 0:e.animationName)||"none"}let lu=0;function qC(){g.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Np()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Np()),lu++,()=>{lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),lu--}},[])}function Np(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Wt=function(){return Wt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u")return tP;var t=rP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iP=Cg(),sP=function(e,t,r,n){var i=e.left,s=e.top,a=e.right,o=e.gap;return r===void 0&&(r="margin"),` .`.concat(QC,` { overflow: hidden `).concat(n,`; padding-right: `).concat(o,"px ").concat(n,`; } body { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(s,`px; padding-right: `).concat(a,`px; margin-left:0; margin-top:0; margin-right: `).concat(o,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(Ja,` { right: `).concat(o,"px ").concat(n,`; } .`).concat(Za,` { margin-right: `).concat(o,"px ").concat(n,`; } .`).concat(Ja," .").concat(Ja,` { right: 0 `).concat(n,`; } .`).concat(Za," .").concat(Za,` { margin-right: 0 `).concat(n,`; } body { `).concat(UC,": ").concat(o,`px; } `)},aP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return nP(i)},[i]);return g.createElement(iP,{styles:sP(s,!t,i,r?"":"!important")})},Yc=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return Yc=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{Yc=!1}var Tn=Yc?{passive:!1}:!1,oP=function(e){return e.tagName==="TEXTAREA"},Pg=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!oP(e)&&r[t]==="visible")},lP=function(e){return Pg(e,"overflowY")},uP=function(e){return Pg(e,"overflowX")},qp=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=$g(e,r);if(n){var i=Og(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},cP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},dP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$g=function(e,t){return e==="v"?lP(t):uP(t)},Og=function(e,t){return e==="v"?cP(t):dP(t)},fP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,r,n,i){var s=fP(e,window.getComputedStyle(t).direction),a=s*n,o=r.target,l=t.contains(o),u=!1,d=a>0,c=0,h=0;do{var S=Og(e,o),E=S[0],f=S[1],P=S[2],m=f-P-s*E;(E||m)&&$g(e,o)&&(c+=m,h+=E),o=o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(i&&c===0||!i&&a>c)||!d&&(i&&h===0||!i&&-a>h))&&(u=!0),u},Ra=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ip=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},pP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mP=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},vP=0,Mn=[];function yP(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(vP++)[0],s=g.useState(function(){return Cg()})[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=IC([e.lockRef.current],(e.shards||[]).map(Qp),!0).filter(Boolean);return f.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=g.useCallback(function(f,P){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var m=Ra(f),v=r.current,y="deltaX"in f?f.deltaX:v[0]-m[0],w="deltaY"in f?f.deltaY:v[1]-m[1],$,R=f.target,x=Math.abs(y)>Math.abs(w)?"h":"v";if("touches"in f&&x==="h"&&R.type==="range")return!1;var b=qp(x,R);if(!b)return!0;if(b?$=x:($=x==="v"?"h":"v",b=qp(x,R)),!b)return!1;if(!n.current&&"changedTouches"in f&&(y||w)&&(n.current=$),!$)return!0;var I=n.current||$;return hP(I,P,f,I==="h"?y:w,!0)},[]),l=g.useCallback(function(f){var P=f;if(!(!Mn.length||Mn[Mn.length-1]!==s)){var m="deltaY"in P?Ip(P):Ra(P),v=t.current.filter(function($){return $.name===P.type&&$.target===P.target&&pP($.delta,m)})[0];if(v&&v.should){P.cancelable&&P.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(Qp).filter(Boolean).filter(function($){return $.contains(P.target)}),w=y.length>0?o(P,y[0]):!a.current.noIsolation;w&&P.cancelable&&P.preventDefault()}}},[]),u=g.useCallback(function(f,P,m,v){var y={name:f,delta:P,target:m,should:v};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(w){return w!==y})},1)},[]),d=g.useCallback(function(f){r.current=Ra(f),n.current=void 0},[]),c=g.useCallback(function(f){u(f.type,Ip(f),f.target,o(f,e.lockRef.current))},[]),h=g.useCallback(function(f){u(f.type,Ra(f),f.target,o(f,e.lockRef.current))},[]);g.useEffect(function(){return Mn.push(s),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Tn),document.addEventListener("touchmove",l,Tn),document.addEventListener("touchstart",d,Tn),function(){Mn=Mn.filter(function(f){return f!==s}),document.removeEventListener("wheel",l,Tn),document.removeEventListener("touchmove",l,Tn),document.removeEventListener("touchstart",d,Tn)}},[]);var S=e.removeScrollBar,E=e.inert;return g.createElement(g.Fragment,null,E?g.createElement(s,{styles:mP(i)}):null,S?g.createElement(aP,{gapMode:"margin"}):null)}const gP=KC(wg,yP);var bg=g.forwardRef(function(e,t){return g.createElement(ul,Wt({},e,{ref:t,sideCar:gP}))});bg.classNames=ul.classNames;const SP=bg;var EP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_n=new WeakMap,Ta=new WeakMap,Ma={},du=0,xg=function(e){return e&&(e.host||xg(e.parentNode))},wP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xg(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},CP=function(e,t,r,n){var i=wP(t,Array.isArray(e)?e:[e]);Ma[r]||(Ma[r]=new WeakMap);var s=Ma[r],a=[],o=new Set,l=new Set(i),u=function(c){!c||o.has(c)||(o.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(o.has(h))d(h);else{var S=h.getAttribute(n),E=S!==null&&S!=="false",f=(_n.get(h)||0)+1,P=(s.get(h)||0)+1;_n.set(h,f),s.set(h,P),a.push(h),f===1&&E&&Ta.set(h,!0),P===1&&h.setAttribute(r,"true"),E||h.setAttribute(n,"true")}})};return d(t),o.clear(),du++,function(){a.forEach(function(c){var h=_n.get(c)-1,S=s.get(c)-1;_n.set(c,h),s.set(c,S),h||(Ta.has(c)||c.removeAttribute(n),Ta.delete(c)),S||c.removeAttribute(r)}),du--,du||(_n=new WeakMap,_n=new WeakMap,Ta=new WeakMap,Ma={})}},PP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||EP(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),CP(n,i,r,"aria-hidden")):function(){return null}};const Rg="Dialog",[Tg,p2]=dC(Rg),[$P,pr]=Tg(Rg),OP=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,o=g.useRef(null),l=g.useRef(null),[u=!1,d]=mC({prop:n,defaultProp:i,onChange:s});return g.createElement($P,{scope:t,triggerRef:o,contentRef:l,contentId:su(),titleId:su(),descriptionId:su(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(c=>!c),[d]),modal:a},r)},Mg="DialogPortal",[bP,_g]=Tg(Mg,{forceMount:void 0}),xP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=pr(Mg,t);return g.createElement(bP,{scope:t,forceMount:r},g.Children.map(n,a=>g.createElement(ll,{present:r||s.open},g.createElement(gg,{asChild:!0,container:i},a))))},Jc="DialogOverlay",RP=g.forwardRef((e,t)=>{const r=_g(Jc,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=pr(Jc,e.__scopeDialog);return s.modal?g.createElement(ll,{present:n||s.open},g.createElement(TP,qe({},i,{ref:t}))):null}),TP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(Jc,r);return g.createElement(SP,{as:yf,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(ki.div,qe({"data-state":Dg(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),zs="DialogContent",MP=g.forwardRef((e,t)=>{const r=_g(zs,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=pr(zs,e.__scopeDialog);return g.createElement(ll,{present:n||s.open},s.modal?g.createElement(_P,qe({},i,{ref:t})):g.createElement(kP,qe({},i,{ref:t})))}),_P=g.forwardRef((e,t)=>{const r=pr(zs,e.__scopeDialog),n=g.useRef(null),i=Js(t,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return PP(s)},[]),g.createElement(kg,qe({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ai(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ai(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:ai(e.onFocusOutside,s=>s.preventDefault())}))}),kP=g.forwardRef((e,t)=>{const r=pr(zs,e.__scopeDialog),n=g.useRef(!1);return g.createElement(kg,qe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,i),!i.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var s,a;(s=e.onInteractOutside)===null||s===void 0||s.call(e,i),i.defaultPrevented||(n.current=!0);const o=i.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(o))&&i.preventDefault()}}))}),kg=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,o=pr(zs,r),l=g.useRef(null),u=Js(t,l);return qC(),g.createElement(g.Fragment,null,g.createElement(TC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(bC,qe({role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Dg(o.open)},a,{ref:u,onDismiss:()=>o.onOpenChange(!1)}))),!1)}),DP="DialogTitle",AP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(DP,r);return g.createElement(ki.h2,qe({id:i.titleId},n,{ref:t}))}),LP="DialogDescription",NP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(LP,r);return g.createElement(ki.p,qe({id:i.descriptionId},n,{ref:t}))});function Dg(e){return e?"open":"closed"}const FP=OP,m2=xP,qP=RP,IP=MP,v2=AP,y2=NP,Ag=()=>{const[e,t]=g.useState({height:window.innerHeight,width:window.innerWidth});return g.useEffect(()=>{const r=()=>{t({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),e},QP=({size:e="20",color:t="currentColor",...r})=>ot("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[D("path",{d:"M15 5L5 15",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),D("path",{d:"M5 5L15 15",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),cl=Te.createContext({portalRef:void 0,isLargeModal:!0}),UP=({children:e})=>D(qP,{className:"bg-grey-90/40 fixed top-0 bottom-0 left-0 right-0 z-50 grid place-items-center overflow-y-auto",children:e}),jP=({children:e})=>{const{height:t}=Ag(),r={maxHeight:t-64};return D(IP,{style:r,className:"min-w-modal rounded-rounded bg-grey-0 overflow-x-hidden",children:e})},gt=({open:e=!0,handleClose:t,isLargeModal:r=!0,children:n})=>{const i=Te.useRef(null);return D(FP,{open:e,onOpenChange:t,children:D(gg,{ref:i,children:D(cl.Provider,{value:{portalRef:i,isLargeModal:r},children:D(UP,{children:D(jP,{children:n})})})})})};gt.Body=({children:e,className:t,style:r})=>(Te.useContext(cl),D("div",{style:r,className:ct("inter-base-regular h-full",t),onClick:n=>n.stopPropagation(),children:e}));gt.Content=({children:e,className:t})=>{const{isLargeModal:r}=Te.useContext(cl),{height:n}=Ag(),i={maxHeight:n-90-141};return D("div",{style:i,className:ct("overflow-y-auto px-8 pt-6",{["w-largeModal pb-7"]:r,["pb-5"]:!r},t),children:e})};gt.Header=({handleClose:e=void 0,children:t})=>ot("div",{className:"flex w-full items-center border-b px-8 py-6",onClick:r=>r.stopPropagation(),children:[D("div",{className:"flex flex-grow",children:t}),D("div",{className:"self-end",children:e&&D(Mo,{variant:"ghost",size:"small",onClick:e,className:"text-grey-50 cursor-pointer border p-1.5",children:D(QP,{size:20})})})]});gt.Footer=({children:e,className:t})=>{const{isLargeModal:r}=Te.useContext(cl);return D("div",{onClick:n=>n.stopPropagation(),className:ct("bottom-0 flex w-full px-7 pb-5",{"border-grey-20 border-t pt-4":r},t),children:e})};const Lg={screens:[],push:e=>{},pop:()=>{},reset:()=>{}},Ng=Te.createContext(Lg),zP=(e,t)=>{switch(t.type){case 0:return{...e,screens:[...e.screens,t.payload]};case 1:return{...e,screens:e.screens.slice(0,-1)};case 2:return{...e,screens:[]}}},BP=({children:e})=>{const[t,r]=g.useReducer(zP,Lg);return D(Ng.Provider,{value:{...t,push:n=>{r({type:0,payload:n})},pop:()=>{r({type:1})},reset:()=>{r({type:2})}},children:e})},HP=({context:e,children:t,handleClose:r,open:n,isLargeModal:i=!0})=>{const s=()=>{e.reset(),r()},a=e.screens[e.screens.length-1];return ot(gt,{open:n,isLargeModal:i,handleClose:s,children:[D(gt.Body,{className:ct("flex flex-col justify-between transition-transform duration-200",{"translate-x-0":typeof a<"u","translate-x-full":typeof a>"u"}),children:a?ot(zc,{children:[D(gt.Header,{handleClose:s,children:ot("div",{className:"flex items-center",children:[D(Mo,{variant:"ghost",size:"small",className:"text-grey-50 h-8 w-8 border",onClick:a.onBack,children:D(uC,{size:20})}),ot("div",{className:"gap-x-2xsmall flex items-center",children:[D("h2",{className:"inter-xlarge-semibold ml-4",children:a.title}),a.subtitle&&ot("span",{className:"inter-xlarge-regular text-grey-50",children:["(",a.subtitle,")"]})]})]})}),a.view]}):D(zc,{})}),D("div",{className:ct("transition-transform duration-200",{"-translate-x-full":typeof a<"u"}),children:D("div",{className:ct("transition-display",{"hidden opacity-0 delay-500":typeof a<"u"}),children:t})})]})},g2=()=>{const e=g.useContext(Ng);if(e===null)throw new Error("useLayeredModal must be used within a LayeredModalProvider");return e},Fg={currentStep:0,nextStepEnabled:!0,enableNextPage:()=>{},disableNextPage:()=>{},goToNextPage:()=>{},goToPreviousPage:()=>{},submit:()=>{},reset:()=>{},setPage:e=>{}},WP=Te.createContext(Fg),GP=(e,t)=>{switch(t.type){case 0:return{...e,nextStepEnabled:!0};case 1:return{...e,nextStepEnabled:!1};case 2:return{...e,currentStep:e.currentStep+1};case 3:return{...e,currentStep:Math.max(0,e.currentStep-1)};case 4:return{...e,currentStep:t.payload>0?t.payload:e.currentStep};case 5:return{...e};case 6:return{...e,currentStep:0,nextStepEnabled:!0}}},KP=({children:e})=>{const[t,r]=g.useReducer(GP,Fg);return D(WP.Provider,{value:{...t,enableNextPage:()=>{r({type:0})},disableNextPage:()=>{r({type:1})},goToNextPage:()=>{r({type:2})},goToPreviousPage:()=>{r({type:3})},submit:()=>{r({type:5})},setPage:n=>{r({type:4,payload:n})},reset:()=>{r({type:6})}},children:e})},S2=({context:e,steps:t,layeredContext:r,title:n,onSubmit:i,lastScreenIsSummary:s=!1,handleClose:a,isLargeModal:o=!0})=>{const l=()=>{e.reset(),a()},u=()=>{i()};return ot(VP,{layeredContext:r,isLargeModal:o,handleClose:l,children:[ot(gt.Body,{className:ct("flex max-h-full flex-col justify-between transition-transform duration-100"),children:[D(gt.Header,{handleClose:l,children:ot("div",{className:"flex flex-col",children:[D("h2",{className:"inter-xlarge-semibold",children:n}),!s||s&&e.currentStep!==t.length-1&&ot("div",{className:"flex items-center",children:[D("span",{className:"text-grey-50 inter-small-regular mr-4 w-[70px]",children:`Step ${e.currentStep+1} of ${t.length}`}),t.map((d,c)=>D("span",{className:ct("mr-3 h-2 w-2 rounded-full",{"bg-grey-20":c>e.currentStep,"bg-violet-60":e.currentStep>=c},{"outline-violet-20 outline outline-4":e.currentStep===c})},c))]})]})}),D(gt.Content,{children:t[e.currentStep]})]}),D(gt.Footer,{children:ot("div",{className:"gap-x-xsmall flex w-full justify-end",children:[D(Mo,{variant:"ghost",size:"small",disabled:e.currentStep===0,onClick:()=>e.goToPreviousPage(),className:"w-[112px]",children:"Back"}),D(Mo,{variant:"primary",size:"small",disabled:!e.nextStepEnabled,onClick:()=>e.currentStep===t.length-1?u():e.goToNextPage(),className:"w-[112px]",children:e.currentStep===t.length-1?"Submit":"Next"})]})})]})},VP=({layeredContext:e,handleClose:t,isLargeModal:r=!0,children:n})=>e?D(HP,{context:e,handleClose:t,isLargeModal:r,children:n}):D(gt,{handleClose:t,isLargeModal:r,children:n});var Zc={},XP={get exports(){return Zc},set exports(e){Zc=e}},_o={},YP={get exports(){return _o},set exports(e){_o=e}},qg=function(t,r){return function(){for(var i=new Array(arguments.length),s=0;s"u"}function ZP(e){return e!==null&&!ed(e)&&e.constructor!==null&&!ed(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function e$(e){return Cn.call(e)==="[object ArrayBuffer]"}function t$(e){return typeof FormData<"u"&&e instanceof FormData}function r$(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function n$(e){return typeof e=="string"}function i$(e){return typeof e=="number"}function Ig(e){return e!==null&&typeof e=="object"}function eo(e){if(Cn.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function s$(e){return Cn.call(e)==="[object Date]"}function a$(e){return Cn.call(e)==="[object File]"}function o$(e){return Cn.call(e)==="[object Blob]"}function Qg(e){return Cn.call(e)==="[object Function]"}function l$(e){return Ig(e)&&Qg(e.pipe)}function u$(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function c$(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d$(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Sf(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),gf(e))for(var r=0,n=e.length;r"u"||(kn.isArray(l)?u=u+"[]":l=[l],kn.forEach(l,function(c){kn.isDate(c)?c=c.toISOString():kn.isObject(c)&&(c=JSON.stringify(c)),s.push(Up(u)+"="+Up(c))}))}),i=s.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},p$=pt;function dl(){this.handlers=[]}dl.prototype.use=function(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};dl.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};dl.prototype.forEach=function(t){p$.forEach(this.handlers,function(n){n!==null&&t(n)})};var m$=dl,v$=pt,y$=function(t,r){v$.forEach(t,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[s])})},jg=function(t,r,n,i,s){return t.config=r,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},fu,jp;function zg(){if(jp)return fu;jp=1;var e=jg;return fu=function(r,n,i,s,a){var o=new Error(r);return e(o,n,i,s,a)},fu}var hu,zp;function g$(){if(zp)return hu;zp=1;var e=zg();return hu=function(r,n,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},hu}var pu,Bp;function S$(){if(Bp)return pu;Bp=1;var e=pt;return pu=e.isStandardBrowserEnv()?function(){return{write:function(n,i,s,a,o,l){var u=[];u.push(n+"="+encodeURIComponent(i)),e.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(o)&&u.push("domain="+o),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),pu}var mu,Hp;function E$(){return Hp||(Hp=1,mu=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),mu}var vu,Wp;function w$(){return Wp||(Wp=1,vu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),vu}var yu,Gp;function C$(){if(Gp)return yu;Gp=1;var e=E$(),t=w$();return yu=function(n,i){return n&&!e(i)?t(n,i):i},yu}var gu,Kp;function P$(){if(Kp)return gu;Kp=1;var e=pt,t=["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"];return gu=function(n){var i={},s,a,o;return n&&e.forEach(n.split(` `),function(u){if(o=u.indexOf(":"),s=e.trim(u.substr(0,o)).toLowerCase(),a=e.trim(u.substr(o+1)),s){if(i[s]&&t.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([a]):i[s]=i[s]?i[s]+", "+a:a}}),i},gu}var Su,Vp;function $$(){if(Vp)return Su;Vp=1;var e=pt;return Su=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function s(a){var o=a;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(o){var l=e.isString(o)?s(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),Su}var Eu,Xp;function fl(){if(Xp)return Eu;Xp=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Eu=e,Eu}var wu,Yp;function Jp(){if(Yp)return wu;Yp=1;var e=pt,t=g$(),r=S$(),n=Ug,i=C$(),s=P$(),a=$$(),o=zg(),l=hl(),u=fl();return wu=function(c){return new Promise(function(S,E){var f=c.data,P=c.headers,m=c.responseType,v;function y(){c.cancelToken&&c.cancelToken.unsubscribe(v),c.signal&&c.signal.removeEventListener("abort",v)}e.isFormData(f)&&delete P["Content-Type"];var w=new XMLHttpRequest;if(c.auth){var $=c.auth.username||"",R=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";P.Authorization="Basic "+btoa($+":"+R)}var x=i(c.baseURL,c.url);w.open(c.method.toUpperCase(),n(x,c.params,c.paramsSerializer),!0),w.timeout=c.timeout;function b(){if(w){var A="getAllResponseHeaders"in w?s(w.getAllResponseHeaders()):null,X=!m||m==="text"||m==="json"?w.responseText:w.response,ae={data:X,status:w.status,statusText:w.statusText,headers:A,config:c,request:w};t(function(fe){S(fe),y()},function(fe){E(fe),y()},ae),w=null}}if("onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(E(o("Request aborted",c,"ECONNABORTED",w)),w=null)},w.onerror=function(){E(o("Network Error",c,null,w)),w=null},w.ontimeout=function(){var X=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",ae=c.transitional||l.transitional;c.timeoutErrorMessage&&(X=c.timeoutErrorMessage),E(o(X,c,ae.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},e.isStandardBrowserEnv()){var I=(c.withCredentials||a(x))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;I&&(P[c.xsrfHeaderName]=I)}"setRequestHeader"in w&&e.forEach(P,function(X,ae){typeof f>"u"&&ae.toLowerCase()==="content-type"?delete P[ae]:w.setRequestHeader(ae,X)}),e.isUndefined(c.withCredentials)||(w.withCredentials=!!c.withCredentials),m&&m!=="json"&&(w.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&w.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(v=function(A){w&&(E(!A||A&&A.type?new u("canceled"):A),w.abort(),w=null)},c.cancelToken&&c.cancelToken.subscribe(v),c.signal&&(c.signal.aborted?v():c.signal.addEventListener("abort",v))),f||(f=null),w.send(f)})},wu}var Cu,Zp;function hl(){if(Zp)return Cu;Zp=1;var e=pt,t=y$,r=jg,n={"Content-Type":"application/x-www-form-urlencoded"};function i(l,u){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=u)}function s(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=Jp()),l}function a(l,u,d){if(e.isString(l))try{return(u||JSON.parse)(l),e.trim(l)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(l)}var o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(u,d){return t(d,"Accept"),t(d,"Content-Type"),e.isFormData(u)||e.isArrayBuffer(u)||e.isBuffer(u)||e.isStream(u)||e.isFile(u)||e.isBlob(u)?u:e.isArrayBufferView(u)?u.buffer:e.isURLSearchParams(u)?(i(d,"application/x-www-form-urlencoded;charset=utf-8"),u.toString()):e.isObject(u)||d&&d["Content-Type"]==="application/json"?(i(d,"application/json"),a(u)):u}],transformResponse:[function(u){var d=this.transitional||o.transitional,c=d&&d.silentJSONParsing,h=d&&d.forcedJSONParsing,S=!c&&this.responseType==="json";if(S||h&&e.isString(u)&&u.length)try{return JSON.parse(u)}catch(E){if(S)throw E.name==="SyntaxError"?r(E,this,"E_JSON_PARSE"):E}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(u){o.headers[u]={}}),e.forEach(["post","put","patch"],function(u){o.headers[u]=e.merge(n)}),Cu=o,Cu}var O$=pt,b$=hl(),x$=function(t,r,n){var i=this||b$;return O$.forEach(n,function(a){t=a.call(i,t,r)}),t},Pu,em;function Bg(){return em||(em=1,Pu=function(t){return!!(t&&t.__CANCEL__)}),Pu}var tm=pt,$u=x$,R$=Bg(),T$=hl(),M$=fl();function Ou(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M$("canceled")}var _$=function(t){Ou(t),t.headers=t.headers||{},t.data=$u.call(t,t.data,t.headers,t.transformRequest),t.headers=tm.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),tm.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||T$.adapter;return r(t).then(function(i){return Ou(t),i.data=$u.call(t,i.data,i.headers,t.transformResponse),i},function(i){return R$(i)||(Ou(t),i&&i.response&&(i.response.data=$u.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},st=pt,Hg=function(t,r){r=r||{};var n={};function i(d,c){return st.isPlainObject(d)&&st.isPlainObject(c)?st.merge(d,c):st.isPlainObject(c)?st.merge({},c):st.isArray(c)?c.slice():c}function s(d){if(st.isUndefined(r[d])){if(!st.isUndefined(t[d]))return i(void 0,t[d])}else return i(t[d],r[d])}function a(d){if(!st.isUndefined(r[d]))return i(void 0,r[d])}function o(d){if(st.isUndefined(r[d])){if(!st.isUndefined(t[d]))return i(void 0,t[d])}else return i(void 0,r[d])}function l(d){if(d in r)return i(t[d],r[d]);if(d in t)return i(void 0,t[d])}var u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l};return st.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var h=u[c]||s,S=h(c);st.isUndefined(S)&&h!==l||(n[c]=S)}),n},bu,rm;function Wg(){return rm||(rm=1,bu={version:"0.24.0"}),bu}var k$=Wg().version,Ef={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ef[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var nm={};Ef.transitional=function(t,r,n){function i(s,a){return"[Axios v"+k$+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,o){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!nm[a]&&(nm[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,o):!0}};function D$(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],a=t[s];if(a){var o=e[s],l=o===void 0||a(o,s,e);if(l!==!0)throw new TypeError("option "+s+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+s)}}var A$={assertOptions:D$,validators:Ef},Gg=pt,L$=Ug,im=m$,sm=_$,pl=Hg,Kg=A$,Dn=Kg.validators;function Zs(e){this.defaults=e,this.interceptors={request:new im,response:new im}}Zs.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=pl(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Kg.assertOptions(r,{silentJSONParsing:Dn.transitional(Dn.boolean),forcedJSONParsing:Dn.transitional(Dn.boolean),clarifyTimeoutError:Dn.transitional(Dn.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});var a;if(!i){var o=[sm,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(s),a=Promise.resolve(t);o.length;)a=a.then(o.shift(),o.shift());return a}for(var l=t;n.length;){var u=n.shift(),d=n.shift();try{l=u(l)}catch(c){d(c);break}}try{a=sm(l)}catch(c){return Promise.reject(c)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Zs.prototype.getUri=function(t){return t=pl(this.defaults,t),L$(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Gg.forEach(["delete","get","head","options"],function(t){Zs.prototype[t]=function(r,n){return this.request(pl(n||{},{method:t,url:r,data:(n||{}).data}))}});Gg.forEach(["post","put","patch"],function(t){Zs.prototype[t]=function(r,n,i){return this.request(pl(i||{},{method:t,url:r,data:n}))}});var N$=Zs,xu,am;function F$(){if(am)return xu;am=1;var e=fl();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(s){if(i._listeners){var a,o=i._listeners.length;for(a=0;a0&&o<=t.maxRetryAfter))return s(e);a=o}e.config.raxConfig.currentRetryAttempt+=1;var l=e.config.raxConfig.currentRetryAttempt;a===0&&(a=t.backoffType==="linear"?1e3*l:t.backoffType==="static"?t.retryDelay:(Math.pow(2,l)-1)/2*1e3,typeof t.maxRetryDelay=="number"&&(a=Math.min(a,t.maxRetryDelay))),setTimeout(i,a)}),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then(function(){return r}).then(function(){return n}).then(function(){return t.instance.request(e.config)})}function W$(e){var t=e.config.raxConfig;if(!t||t.retry===0||!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries||!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n=s[0]&&a<=s[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Xg(e){if(e&&e.config)return e.config.raxConfig}let _a;const G$=new Uint8Array(16);function K$(){if(!_a&&(_a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _a(G$)}const De=[];for(let e=0;e<256;++e)De.push((e+256).toString(16).slice(1));function V$(e,t=0){return(De[e[t+0]]+De[e[t+1]]+De[e[t+2]]+De[e[t+3]]+"-"+De[e[t+4]]+De[e[t+5]]+"-"+De[e[t+6]]+De[e[t+7]]+"-"+De[e[t+8]]+De[e[t+9]]+"-"+De[e[t+10]]+De[e[t+11]]+De[e[t+12]]+De[e[t+13]]+De[e[t+14]]+De[e[t+15]]).toLowerCase()}const X$=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),dm={randomUUID:X$};function Y$(e,t,r){if(dm.randomUUID&&!t&&!e)return dm.randomUUID();e=e||{};const n=e.random||(e.rng||K$)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return V$(n)}var J$=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0},fm=typeof Symbol<"u"&&Symbol,Z$=J$,eO=function(){return typeof fm!="function"||typeof Symbol!="function"||typeof fm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Z$()},tO="Function.prototype.bind called on incompatible ",Mu=Array.prototype.slice,rO=Object.prototype.toString,nO="[object Function]",iO=function(t){var r=this;if(typeof r!="function"||rO.call(r)!==nO)throw new TypeError(tO+r);for(var n=Mu.call(arguments,1),i,s=function(){if(this instanceof i){var d=r.apply(this,n.concat(Mu.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Mu.call(arguments)))},a=Math.max(0,r.length-n.length),o=[],l=0;l"u"?J:Er(Uint8Array),li={"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":An?Er([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":Fn,"%AsyncGenerator%":Fn,"%AsyncGeneratorFunction%":Fn,"%AsyncIteratorPrototype%":Fn,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":Yg,"%GeneratorFunction%":Fn,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":An?Er(Er([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!An?J:Er(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!An?J:Er(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":An?Er(""[Symbol.iterator]()):J,"%Symbol%":An?Symbol:J,"%SyntaxError%":gi,"%ThrowTypeError%":lO,"%TypedArray%":uO,"%TypeError%":oi,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet},cO=function e(t){var r;if(t==="%AsyncFunction%")r=_u("async function () {}");else if(t==="%GeneratorFunction%")r=_u("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_u("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Er(i.prototype))}return li[t]=r,r},hm={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ea=wf,Do=oO,dO=ea.call(Function.call,Array.prototype.concat),fO=ea.call(Function.apply,Array.prototype.splice),pm=ea.call(Function.call,String.prototype.replace),Ao=ea.call(Function.call,String.prototype.slice),hO=ea.call(Function.call,RegExp.prototype.exec),pO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mO=/\\(\\)?/g,vO=function(t){var r=Ao(t,0,1),n=Ao(t,-1);if(r==="%"&&n!=="%")throw new gi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new gi("invalid intrinsic syntax, expected opening `%`");var i=[];return pm(t,pO,function(s,a,o,l){i[i.length]=o?pm(l,mO,"$1"):a||s}),i},yO=function(t,r){var n=t,i;if(Do(hm,n)&&(i=hm[n],n="%"+i[0]+"%"),Do(li,n)){var s=li[n];if(s===Fn&&(s=cO(n)),typeof s>"u"&&!r)throw new oi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new gi("intrinsic "+t+" does not exist!")},Cf=function(t,r){if(typeof t!="string"||t.length===0)throw new oi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oi('"allowMissing" argument must be a boolean');if(hO(/^%?[^%]*%?$/g,t)===null)throw new gi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vO(t),i=n.length>0?n[0]:"",s=yO("%"+i+"%",r),a=s.name,o=s.value,l=!1,u=s.alias;u&&(i=u[0],fO(n,dO([0,1],u)));for(var d=1,c=!0;d=n.length){var f=an(o,h);c=!!f,c&&"get"in f&&!("originalValue"in f.get)?o=f.get:o=o[h]}else c=Do(o,h),o=o[h];c&&!l&&(li[a]=o)}}return o},rd={},gO={get exports(){return rd},set exports(e){rd=e}};(function(e){var t=wf,r=Cf,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,n),a=r("%Object.getOwnPropertyDescriptor%",!0),o=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(o)try{o({},"a",{value:1})}catch{o=null}e.exports=function(c){var h=s(t,i,arguments);if(a&&o){var S=a(h,"length");S.configurable&&o(h,"length",{value:1+l(0,c.length-(arguments.length-1))})}return h};var u=function(){return s(t,n,arguments)};o?o(e.exports,"apply",{value:u}):e.exports.apply=u})(gO);var Jg=Cf,Zg=rd,SO=Zg(Jg("String.prototype.indexOf")),EO=function(t,r){var n=Jg(t,!!r);return typeof n=="function"&&SO(t,".prototype.")>-1?Zg(n):n};const wO={},CO=Object.freeze(Object.defineProperty({__proto__:null,default:wO},Symbol.toStringTag,{value:"Module"})),PO=yd(CO);var Pf=typeof Map=="function"&&Map.prototype,Du=Object.getOwnPropertyDescriptor&&Pf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Lo=Pf&&Du&&typeof Du.get=="function"?Du.get:null,$O=Pf&&Map.prototype.forEach,$f=typeof Set=="function"&&Set.prototype,Au=Object.getOwnPropertyDescriptor&&$f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,No=$f&&Au&&typeof Au.get=="function"?Au.get:null,OO=$f&&Set.prototype.forEach,bO=typeof WeakMap=="function"&&WeakMap.prototype,Es=bO?WeakMap.prototype.has:null,xO=typeof WeakSet=="function"&&WeakSet.prototype,ws=xO?WeakSet.prototype.has:null,RO=typeof WeakRef=="function"&&WeakRef.prototype,mm=RO?WeakRef.prototype.deref:null,TO=Boolean.prototype.valueOf,MO=Object.prototype.toString,_O=Function.prototype.toString,kO=String.prototype.match,Of=String.prototype.slice,br=String.prototype.replace,DO=String.prototype.toUpperCase,vm=String.prototype.toLowerCase,e0=RegExp.prototype.test,ym=Array.prototype.concat,Bt=Array.prototype.join,AO=Array.prototype.slice,gm=Math.floor,nd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Lu=Object.getOwnPropertySymbols,id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",He=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Si||"symbol")?Symbol.toStringTag:null,t0=Object.prototype.propertyIsEnumerable,Sm=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Em(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||e0.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-gm(-e):gm(e);if(n!==e){var i=String(n),s=Of.call(t,i.length+1);return br.call(i,r,"$&_")+"."+br.call(br.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return br.call(t,r,"$&_")}var sd=PO,wm=sd.custom,Cm=n0(wm)?wm:null,LO=function e(t,r,n,i){var s=r||{};if(wr(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wr(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=wr(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wr(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wr(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return s0(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return o?Em(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return o?Em(t,u):u}var d=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return ad(t)?"[Array]":"[Object]";var c=ZO(s,n);if(typeof i>"u")i=[];else if(i0(i,t)>=0)return"[Circular]";function h(oe,fe,We){if(fe&&(i=AO.call(i),i.push(fe)),We){var Ot={depth:s.depth};return wr(s,"quoteStyle")&&(Ot.quoteStyle=s.quoteStyle),e(oe,Ot,n+1,i)}return e(oe,s,n+1,i)}if(typeof t=="function"&&!Pm(t)){var S=BO(t),E=ka(t,h);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(E.length>0?" { "+Bt.call(E,", ")+" }":"")}if(n0(t)){var f=Si?br.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):id.call(t);return typeof t=="object"&&!Si?es(f):f}if(XO(t)){for(var P="<"+vm.call(String(t.nodeName)),m=t.attributes||[],v=0;v",P}if(ad(t)){if(t.length===0)return"[]";var y=ka(t,h);return c&&!JO(y)?"["+od(y,c)+"]":"[ "+Bt.call(y,", ")+" ]"}if(qO(t)){var w=ka(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!t0.call(t,"cause")?"{ ["+String(t)+"] "+Bt.call(ym.call("[cause]: "+h(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Bt.call(w,", ")+" }"}if(typeof t=="object"&&a){if(Cm&&typeof t[Cm]=="function"&&sd)return sd(t,{depth:d-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(HO(t)){var $=[];return $O.call(t,function(oe,fe){$.push(h(fe,t,!0)+" => "+h(oe,t))}),$m("Map",Lo.call(t),$,c)}if(KO(t)){var R=[];return OO.call(t,function(oe){R.push(h(oe,t))}),$m("Set",No.call(t),R,c)}if(WO(t))return Nu("WeakMap");if(VO(t))return Nu("WeakSet");if(GO(t))return Nu("WeakRef");if(QO(t))return es(h(Number(t)));if(jO(t))return es(h(nd.call(t)));if(UO(t))return es(TO.call(t));if(IO(t))return es(h(String(t)));if(!FO(t)&&!Pm(t)){var x=ka(t,h),b=Sm?Sm(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!b&&He&&Object(t)===t&&He in t?Of.call(zr(t),8,-1):I?"Object":"",X=b||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ae=X+(A||I?"["+Bt.call(ym.call([],A||[],I||[]),": ")+"] ":"");return x.length===0?ae+"{}":c?ae+"{"+od(x,c)+"}":ae+"{ "+Bt.call(x,", ")+" }"}return String(t)};function r0(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function NO(e){return br.call(String(e),/"/g,""")}function ad(e){return zr(e)==="[object Array]"&&(!He||!(typeof e=="object"&&He in e))}function FO(e){return zr(e)==="[object Date]"&&(!He||!(typeof e=="object"&&He in e))}function Pm(e){return zr(e)==="[object RegExp]"&&(!He||!(typeof e=="object"&&He in e))}function qO(e){return zr(e)==="[object Error]"&&(!He||!(typeof e=="object"&&He in e))}function IO(e){return zr(e)==="[object String]"&&(!He||!(typeof e=="object"&&He in e))}function QO(e){return zr(e)==="[object Number]"&&(!He||!(typeof e=="object"&&He in e))}function UO(e){return zr(e)==="[object Boolean]"&&(!He||!(typeof e=="object"&&He in e))}function n0(e){if(Si)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!id)return!1;try{return id.call(e),!0}catch{}return!1}function jO(e){if(!e||typeof e!="object"||!nd)return!1;try{return nd.call(e),!0}catch{}return!1}var zO=Object.prototype.hasOwnProperty||function(e){return e in this};function wr(e,t){return zO.call(e,t)}function zr(e){return MO.call(e)}function BO(e){if(e.name)return e.name;var t=kO.call(_O.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i0(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return s0(Of.call(e,0,t.maxStringLength),t)+n}var i=br.call(br.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,YO);return r0(i,"single",t)}function YO(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+DO.call(t.toString(16))}function es(e){return"Object("+e+")"}function Nu(e){return e+" { ? }"}function $m(e,t,r,n){var i=n?od(r,n):Bt.call(r,", ");return e+" ("+t+") {"+i+"}"}function JO(e){for(var t=0;t=0)return!1;return!0}function ZO(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Bt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Bt.call(Array(t+1),r)}}function od(e,t){if(e.length===0)return"";var r=` `+t.prev+t.base;return r+Bt.call(e,","+r)+` `+t.prev}function ka(e,t){var r=ad(e),n=[];if(r){n.length=e.length;for(var i=0;i1;){var r=t.pop(),n=r.obj[r.prop];if(Jr(n)){for(var i=[],s=0;s=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===pb.RFC1738&&(u===40||u===41)){o+=a.charAt(l);continue}if(u<128){o=o+Qt[u];continue}if(u<2048){o=o+(Qt[192|u>>6]+Qt[128|u&63]);continue}if(u<55296||u>=57344){o=o+(Qt[224|u>>12]+Qt[128|u>>6&63]+Qt[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|a.charCodeAt(l)&1023),o+=Qt[240|u>>18]+Qt[128|u>>12&63]+Qt[128|u>>6&63]+Qt[128|u&63]}return o},Eb=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i"u"&&(y=0)}if(typeof l=="function"?m=l(r,m):m instanceof Date?m=c(m):n==="comma"&&rr(m)&&(m=ld.maybeMap(m,function(q){return q instanceof Date?c(q):q})),m===null){if(s)return o&&!E?o(r,Ae.encoder,f,"key",h):r;m=""}if(Tb(m)||ld.isBuffer(m)){if(o){var R=E?r:o(r,Ae.encoder,f,"key",h);if(n==="comma"&&E){for(var x=bb.call(String(m),","),b="",I=0;I"u")return A;var X;if(n==="comma"&&rr(m))X=[{value:m.length>0?m.join(",")||null:void 0}];else if(rr(l))X=l;else{var ae=Object.keys(m);X=u?ae.sort(u):ae}for(var oe=i&&rr(m)&&m.length===1?r+"[]":r,fe=0;fe"u"?Ae.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ae.charsetSentinel,delimiter:typeof t.delimiter>"u"?Ae.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ae.encode,encoder:typeof t.encoder=="function"?t.encoder:Ae.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ae.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ae.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ae.strictNullHandling}},kb=function(e,t){var r=e,n=_b(t),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):rr(n.filter)&&(s=n.filter,i=s);var a=[];if(typeof r!="object"||r===null)return"";var o;t&&t.arrayFormat in Om?o=t.arrayFormat:t&&"indices"in t?o=t.indices?"indices":"repeat":o="indices";var l=Om[o];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=l0(),c=0;c0?E+S:""},Ei=o0,ud=Object.prototype.hasOwnProperty,Db=Array.isArray,Me={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ei.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ab=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},c0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Lb="utf8=%26%2310003%3B",Nb="utf8=%E2%9C%93",Fb=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,s),o=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(E=Db(E)?[E]:E),ud.call(n,S)?n[S]=Ei.combine(n[S],E):n[S]=E}return n},qb=function(e,t,r,n){for(var i=n?t:c0(t,r),s=e.length-1;s>=0;--s){var a,o=e[s];if(o==="[]"&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(l,10);!r.parseArrays&&l===""?a={0:i}:!isNaN(u)&&o!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},Ib=function(t,r,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(s),u=l?s.slice(0,l.index):s,d=[];if(u){if(!n.plainObjects&&ud.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var c=0;n.depth>0&&(l=o.exec(s))!==null&&c"u"?Me.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Me.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Me.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Me.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Me.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Me.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Me.comma,decoder:typeof t.decoder=="function"?t.decoder:Me.decoder,delimiter:typeof t.delimiter=="string"||Ei.isRegExp(t.delimiter)?t.delimiter:Me.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Me.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Me.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Me.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Me.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Me.strictNullHandling}},Ub=function(e,t){var r=Qb(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Fb(e,r):e,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),a=0;a(e[e.INVALID_REQUEST=0]="INVALID_REQUEST",e[e.API=1]="API",e[e.AUTHENTICATION=2]="AUTHENTICATION",e[e.PERMISSION=3]="PERMISSION",e[e.CONNECTION=4]="CONNECTION",e))(qn||{}),Hb=class extends Ai{},Wb=class extends Ai{},Gb=class extends Ai{},Kb=class extends Ai{},Vb=class extends Ai{},Xb=class{constructor(){this.publishableApiKey=null}registerPublishableApiKey(t){this.publishableApiKey=t}getPublishableApiKey(){return this.publishableApiKey}},d0=new Xb,Yb={"/admin/auth":"POST","/admin/users/password-token":"POST","/admin/users/reset-password":"POST","/admin/invites/accept":"POST"},xm={maxRetries:0,baseUrl:"http://localhost:9000"},Jb=class{constructor(e){this.axiosClient=this.createClient({...xm,...e}),this.config={...xm,...e}}shouldRetryCondition(e,t,r){return t>=r?!1:!e.response||e.response.status===409||e.response.status>500&&e.response.status<=599}normalizeHeaders(e){return e&&typeof e=="object"?Object.keys(e).reduce((t,r)=>(t[this.normalizeHeader(r)]=e[r],t),{}):e}normalizeHeader(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()).join("-")}requiresAuthentication(e,t){return e.startsWith("/admin")&&Yb[e]!==t}setHeaders(e,t,r,n={}){let i={Accept:"application/json","Content-Type":"application/json"};this.config.apiKey&&this.requiresAuthentication(r,t)&&(i={...i,Authorization:`Bearer ${this.config.apiKey}`});let s=this.config.publishableApiKey||d0.getPublishableApiKey();return s&&(i["x-publishable-api-key"]=s),this.config.maxRetries>0&&t==="POST"&&(i["Idempotency-Key"]=Y$()),Object.assign({},i,this.normalizeHeaders(e),n)}createClient(e){let t=ko.create({baseURL:e.baseUrl});return z$(t),t.defaults.raxConfig={instance:t,retry:e.maxRetries,backoffType:"exponential",shouldRetry:r=>{let n=Xg(r);return n?this.shouldRetryCondition(r,n.currentRetryAttempt??1,n.retry??3):!1}},t}async request(e,t,r={},n={},i={}){let s={method:e,withCredentials:!0,url:t,json:!0,headers:this.setHeaders(n,e,t,i)};["POST","DELETE"].includes(e)&&(s.data=r);let{data:a,...o}=await this.axiosClient(s);return{...a,response:o}}},Zb=Jb,U=class{constructor(t){this.client=t}},ex=class extends U{addAddress(e,t={}){let r="/store/customers/me/addresses";return this.client.request("POST",r,e,{},t)}deleteAddress(e,t={}){let r=`/store/customers/me/addresses/${e}`;return this.client.request("DELETE",r,void 0,{},t)}updateAddress(e,t,r={}){let n=`/store/customers/me/addresses/${e}`;return this.client.request("POST",n,t,{},r)}},tx=ex,rx=class extends U{authenticate(e,t={}){let r="/store/auth";return this.client.request("POST",r,e,{},t)}deleteSession(e={}){let t="/store/auth";return this.client.request("DELETE",t,{},{},e)}getSession(e={}){let t="/store/auth";return this.client.request("GET",t,void 0,{},e)}exists(e,t={}){let r=`/store/auth/${e}`;return this.client.request("GET",r,void 0,{},t)}},nx=rx,ix=class extends U{create(e,t,r={}){let n=`/store/carts/${e}/line-items`;return this.client.request("POST",n,t,{},r)}update(e,t,r,n={}){let i=`/store/carts/${e}/line-items/${t}`;return this.client.request("POST",i,r,{},n)}delete(e,t,r={}){let n=`/store/carts/${e}/line-items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},sx=ix,ax=class extends U{constructor(){super(...arguments),this.lineItems=new sx(this.client)}addShippingMethod(e,t,r={}){let n=`/store/carts/${e}/shipping-methods`;return this.client.request("POST",n,t,{},r)}complete(e,t={}){let r=`/store/carts/${e}/complete`;return this.client.request("POST",r,void 0,{},t)}create(e,t={}){let r="/store/carts";return this.client.request("POST",r,e,{},t)}createPaymentSessions(e,t={}){let r=`/store/carts/${e}/payment-sessions`;return this.client.request("POST",r,void 0,{},t)}deleteDiscount(e,t,r={}){let n=`/store/carts/${e}/discounts/${t}`;return this.client.request("DELETE",n,void 0,{},r)}deletePaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-sessions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}refreshPaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-sessions/${t}/refresh`;return this.client.request("POST",n,void 0,{},r)}retrieve(e,t={}){let r=`/store/carts/${e}`;return this.client.request("GET",r,void 0,{},t)}setPaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-session`;return this.client.request("POST",n,t,{},r)}update(e,t,r={}){let n=`/store/carts/${e}`;return this.client.request("POST",n,t,{},r)}updatePaymentSession(e,t,r,n={}){let i=`/store/carts/${e}/payment-sessions/${t}`;return this.client.request("POST",i,r,{},n)}},ox=ax,lx=class extends U{retrieve(e,t={}){let r=`/store/collections/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/collections";return e&&(r=`/store/collections?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},ux=lx,cx=class extends U{list(t={}){let r="/store/customers/me/payment-methods";return this.client.request("GET",r,void 0,{},t)}},f0=cx,dx=class extends U{constructor(){super(...arguments),this.paymentMethods=new f0(this.client),this.addresses=new tx(this.client)}create(t,r={}){let n="/store/customers";return this.client.request("POST",n,t,{},r)}retrieve(t={}){let r="/store/customers/me";return this.client.request("GET",r,void 0,{},t)}update(t,r={}){let n="/store/customers/me";return this.client.request("POST",n,t,{},r)}listOrders(t,r={}){let n="/store/customers/me/orders";if(t){let i=N.stringify(t);i&&(n+=`?${i}`)}return this.client.request("GET",n,void 0,{},r)}resetPassword(t,r={}){let n="/store/customers/password-reset";return this.client.request("POST",n,t,{},r)}generatePasswordToken(t,r={}){let n="/store/customers/password-token";return this.client.request("POST",n,t,{},r)}},fx=dx,hx=class extends U{retrieve(t,r={}){let n=`/store/gift-cards/${t}`;return this.client.request("GET",n,void 0,{},r)}},px=hx,mx=class extends U{retrieve(t,r={}){let n=`/store/order-edits/${t}`;return this.client.request("GET",n,void 0,{},r)}decline(t,r,n={}){let i=`/store/order-edits/${t}/decline`;return this.client.request("POST",i,r,{},n)}complete(t,r={}){let n=`/store/order-edits/${t}/complete`;return this.client.request("POST",n,void 0,{},r)}},vx=mx,yx=class extends U{retrieve(e,t={}){let r=`/store/orders/${e}`;return this.client.request("GET",r,void 0,{},t)}retrieveByCartId(e,t={}){let r=`/store/orders/cart/${e}`;return this.client.request("GET",r,void 0,{},t)}lookupOrder(e,t={}){let r="/store/orders?";return r=`/store/orders?${N.stringify(e)}`,this.client.request("GET",r,e,{},t)}requestCustomerOrders(e,t={}){let r="/store/orders/batch/customer/token";return this.client.request("POST",r,e,{},t)}confirmRequest(e,t={}){let r="/store/orders/customer/confirm";return this.client.request("POST",r,e,{},t)}},gx=yx,Sx=class extends U{retrieve(t,r,n={}){let i=`/store/payment-collections/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("GET",i,void 0,{},n)}authorizePaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/${r}/authorize`;return this.client.request("POST",i,void 0,{},n)}authorizePaymentSessionsBatch(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/batch/authorize`;return this.client.request("POST",i,r,{},n)}managePaymentSessionsBatch(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/batch`;return this.client.request("POST",i,r,{},n)}managePaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions`;return this.client.request("POST",i,r,{},n)}refreshPaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/${r}`;return this.client.request("POST",i,void 0,{},n)}},Ex=Sx,wx=class extends U{retrieve(t,r,n={}){let i=`/store/product-categories/${t}`;if(r){let s=N.stringify(r);i=`${i}?${s}`}return this.client.request("GET",i,void 0,{},n)}list(t,r={}){let n="/store/product-categories";if(t){let i=N.stringify(t);n=`${n}?${i}`}return this.client.request("GET",n,void 0,{},r)}},Cx=wx,Px=class extends U{list(e,t={}){let r="/store/product-tags";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},$x=Px,Ox=class extends U{list(e,t={}){let r="/store/product-types";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},bx=Ox,xx=class extends U{retrieve(e,t={}){let r=`/store/variants/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/variants";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},Rx=xx,Tx=class extends U{constructor(){super(...arguments),this.variants=new Rx(this.client)}retrieve(e,t={}){let r=`/store/products/${e}`;return this.client.request("GET",r,void 0,{},t)}search(e,t={}){let r="/store/products/search";return this.client.request("POST",r,e,{},t)}list(e,t={}){let r="/store/products";return e&&(r=`/store/products?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},Mx=Tx,_x=class extends U{list(e={}){let t="/store/regions";return this.client.request("GET",t,void 0,{},e)}retrieve(e,t={}){let r=`/store/regions/${e}`;return this.client.request("GET",r,void 0,{},t)}},kx=_x,Dx=class extends U{retrieve(t,r={}){let n=`/store/return-reasons/${t}`;return this.client.request("GET",n,void 0,{},r)}list(t={}){let r="/store/return-reasons";return this.client.request("GET",r,void 0,{},t)}},Ax=Dx,Lx=class extends U{create(e,t={}){let r="/store/returns";return this.client.request("POST",r,e,{},t)}},Nx=Lx,Fx=class extends U{listCartOptions(e,t={}){let r=`/store/shipping-options/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/shipping-options";return e&&(r=`/store/shipping-options?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},qx=Fx,Ix=class extends U{create(e,t={}){let r="/store/swaps";return this.client.request("POST",r,e,{},t)}retrieveByCartId(e,t={}){let r=`/store/swaps/${e}`;return this.client.request("GET",r,void 0,{},t)}},Qx=Ix,Ux=class extends U{getSession(e={}){let t="/admin/auth";return this.client.request("GET",t,void 0,{},e)}deleteSession(e={}){let t="/admin/auth";return this.client.request("DELETE",t,void 0,{},e)}createSession(e,t={}){let r="/admin/auth";return this.client.request("POST",r,e,{},t)}},jx=Ux;function zx(e){let t=r=>{let n={};return Object.keys(r).reduce((i,s)=>(r[s]===null?i[s]="null":typeof r[s]=="object"?i[s]=t(r[s]):i[s]=r[s],i),n),n};return t(e)}var Bx=class extends U{create(t,r={}){let n="/admin/batch-jobs";return this.client.request("POST",n,t,{},r)}list(t,r={}){let n="/admin/batch-jobs";return t&&(n=`/admin/batch-jobs?${N.stringify(zx(t))}`),this.client.request("GET",n,void 0,{},r)}cancel(t,r={}){let n=`/admin/batch-jobs/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}confirm(t,r={}){let n=`/admin/batch-jobs/${t}/confirm`;return this.client.request("POST",n,void 0,{},r)}retrieve(t,r={}){let n=`/admin/batch-jobs/${t}`;return this.client.request("GET",n,void 0,{},r)}},Hx=Bx,Wx=class extends U{create(e,t={}){let r="/admin/collections";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/collections/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/collections/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/collections/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/collections";return e&&(r=`/admin/collections?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addProducts(e,t,r={}){let n=`/admin/collections/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}removeProducts(e,t,r={}){let n=`/admin/collections/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}},Gx=Wx,Kx=class extends U{list(e,t={}){let r="/admin/currencies";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/currencies/${e}`;return this.client.request("POST",n,t,{},r)}},Vx=Kx,Xx=class extends U{create(e,t={}){let r="/admin/customer-groups";return this.client.request("POST",r,e,{},t)}retrieve(e,t,r={}){let n=`/admin/customer-groups/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r={}){let n=`/admin/customer-groups/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/customer-groups/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/customer-groups";return e&&(r=`/admin/customer-groups?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers/batch`;return this.client.request("POST",n,t,{},r)}removeCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers/batch`;return this.client.request("DELETE",n,t,{},r)}listCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},Yx=Xx,Jx=class extends U{create(e,t={}){let r="/admin/customers";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/customers/${e}`;return this.client.request("POST",n,t,{},r)}retrieve(e,t={}){let r=`/admin/customers/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/customers";return e&&(r=`/admin/customers?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},Zx=Jx,eR=class extends U{addRegion(e,t,r={}){let n=`/admin/discounts/${e}/regions/${t}`;return this.client.request("POST",n,void 0,{},r)}create(e,t={}){let r="/admin/discounts";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/discounts/${e}`;return this.client.request("POST",n,t,{},r)}createDynamicCode(e,t,r={}){let n=`/admin/discounts/${e}/dynamic-codes`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/discounts/${e}`;return this.client.request("DELETE",r,void 0,{},t)}deleteDynamicCode(e,t,r={}){let n=`/admin/discounts/${e}/dynamic-codes/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(e,t={}){let r=`/admin/discounts/${e}`;return this.client.request("GET",r,void 0,{},t)}retrieveByCode(e,t={}){let r=`/admin/discounts/code/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/discounts";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}removeRegion(e,t,r={}){let n=`/admin/discounts/${e}/regions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}createCondition(e,t,r={},n={}){let i=`/admin/discounts/${e}/conditions`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}updateCondition(e,t,r,n={},i={}){let s=`/admin/discounts/${e}/conditions/${t}`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}deleteCondition(e,t,r={}){let n=`/admin/discounts/${e}/conditions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}getCondition(e,t,r,n={}){let i=`/admin/discounts/${e}/conditions/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("GET",i,void 0,{},n)}addConditionResourceBatch(e,t,r,n,i={}){let s=`/admin/discounts/${e}/conditions/${t}/batch`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}deleteConditionResourceBatch(e,t,r,n={}){let i=`/admin/discounts/${e}/conditions/${t}/batch`;return this.client.request("DELETE",i,r,{},n)}},tR=eR,rR=class extends U{create(e,t={}){let r="/admin/draft-orders";return this.client.request("POST",r,e,{},t)}addLineItem(e,t,r={}){let n=`/admin/draft-orders/${e}/line-items`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/draft-orders/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeLineItem(e,t,r={}){let n=`/admin/draft-orders/${e}/line-items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(e,t={}){let r=`/admin/draft-orders/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/draft-orders";return e&&(r=`/admin/draft-orders?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}markPaid(e,t={}){let r=`/admin/draft-orders/${e}/pay`;return this.client.request("POST",r,{},t)}update(e,t,r={}){let n=`/admin/draft-orders/${e}`;return this.client.request("POST",n,t,{},r)}updateLineItem(e,t,r,n={}){let i=`/admin/draft-orders/${e}/line-items/${t}`;return this.client.request("POST",i,r,{},n)}},nR=rR,iR=class extends U{create(e,t={}){let r="/admin/gift-cards";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/gift-cards/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/gift-cards/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/gift-cards/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/gift-cards/";return e&&(r=`/admin/gift-cards?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},sR=iR,aR=class extends U{retrieve(e,t,r={}){let n=`/admin/inventory-items/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r,n={}){let i=`/admin/inventory-items/${e}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}delete(e,t={}){let r=`/admin/inventory-items/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/inventory-items";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}updateLocationLevel(e,t,r,n,i={}){let s=`/admin/inventory-items/${e}/location-levels/${t}`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}createLocationLevel(e,t,r,n={}){let i=`/admin/inventory-items/${e}/location-levels`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}deleteLocationLevel(e,t,r,n={}){let i=`/admin/inventory-items/${e}/location-levels/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("DELETE",i,void 0,{},n)}listLocationLevels(e,t,r={}){let n=`/admin/inventory-items/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},oR=aR,lR=class extends U{accept(e,t={}){let r="/admin/invites/accept";return this.client.request("POST",r,e,{},t)}create(e,t={}){let r="/admin/invites";return this.client.request("POST",r,e,{},t)}delete(e,t={}){let r=`/admin/invites/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e={}){let t="/admin/invites";return this.client.request("GET",t,void 0,{},e)}resend(e,t={}){let r=`/admin/invites/${e}`;return this.client.request("POST",r,void 0,{},t)}},uR=lR,cR=class extends U{create(e,t={}){let r="/admin/notes";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/notes/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/notes/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/notes/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/notes/";return e&&(r=`/admin/notes?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},dR=cR,fR=class extends U{list(e,t={}){let r="/admin/notifications";return e&&(r=`/admin/notifications?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}resend(e,t,r={}){let n=`/admin/notifications/${e}/resend`;return this.client.request("POST",n,t,{},r)}},hR=fR,pR=class extends U{retrieve(e,t,r={}){let n=`/admin/order-edits/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/order-edits";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/order-edits";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/order-edits/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/order-edits/${e}`;return this.client.request("DELETE",r,void 0,{},t)}addLineItem(e,t,r={}){let n=`/admin/order-edits/${e}/items`;return this.client.request("POST",n,t,{},r)}deleteItemChange(e,t,r={}){let n=`/admin/order-edits/${e}/changes/${t}`;return this.client.request("DELETE",n,void 0,{},r)}requestConfirmation(e,t={}){let r=`/admin/order-edits/${e}/request`;return this.client.request("POST",r,void 0,{},t)}cancel(e,t={}){let r=`/admin/order-edits/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}confirm(e,t={}){let r=`/admin/order-edits/${e}/confirm`;return this.client.request("POST",r,void 0,{},t)}updateLineItem(e,t,r,n={}){let i=`/admin/order-edits/${e}/items/${t}`;return this.client.request("POST",i,r,{},n)}removeLineItem(e,t,r={}){let n=`/admin/order-edits/${e}/items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},mR=pR,vR=class extends U{update(e,t,r={}){let n=`/admin/orders/${e}`;return this.client.request("POST",n,t,{},r)}retrieve(e,t,r={}){let n=`/admin/orders/${e}`;if(t){let i=N.stringify(t);n=`/admin/orders/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/orders";return e&&(r=`/admin/orders?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}complete(e,t={}){let r=`/admin/orders/${e}/complete`;return this.client.request("POST",r,void 0,{},t)}capturePayment(e,t={}){let r=`/admin/orders/${e}/capture`;return this.client.request("POST",r,void 0,{},t)}refundPayment(e,t,r={}){let n=`/admin/orders/${e}/refund`;return this.client.request("POST",n,t,{},r)}createFulfillment(e,t,r={}){let n=`/admin/orders/${e}/fulfillment`;return this.client.request("POST",n,t,{},r)}cancelFulfillment(e,t,r={}){let n=`/admin/orders/${e}/fulfillments/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}cancelSwapFulfillment(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/fulfillments/${r}/cancel`;return this.client.request("POST",i,void 0,{},n)}cancelClaimFulfillment(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/fulfillments/${r}/cancel`;return this.client.request("POST",i,void 0,{},n)}createShipment(e,t,r={}){let n=`/admin/orders/${e}/shipment`;return this.client.request("POST",n,t,{},r)}requestReturn(e,t,r={}){let n=`/admin/orders/${e}/return`;return this.client.request("POST",n,t,{},r)}cancel(e,t={}){let r=`/admin/orders/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}addShippingMethod(e,t,r={}){let n=`/admin/orders/${e}/shipping-methods`;return this.client.request("POST",n,t,{},r)}archive(e,t={}){let r=`/admin/orders/${e}/archive`;return this.client.request("POST",r,void 0,{},t)}createSwap(e,t,r={}){let n=`/admin/orders/${e}/swaps`;return this.client.request("POST",n,t,{},r)}cancelSwap(e,t,r={}){let n=`/admin/orders/${e}/swaps/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}fulfillSwap(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/fulfillments`;return this.client.request("POST",i,r,{},n)}createSwapShipment(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/shipments`;return this.client.request("POST",i,r,{},n)}processSwapPayment(e,t,r={}){let n=`/admin/orders/${e}/swaps/${t}/process-payment`;return this.client.request("POST",n,void 0,{},r)}createClaim(e,t,r={}){let n=`/admin/orders/${e}/claims`;return this.client.request("POST",n,t,{},r)}cancelClaim(e,t,r={}){let n=`/admin/orders/${e}/claims/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}updateClaim(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}`;return this.client.request("POST",i,r,{},n)}fulfillClaim(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/fulfillments`;return this.client.request("POST",i,r,{},n)}createClaimShipment(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/shipments`;return this.client.request("POST",i,r,{},n)}},yR=vR,gR=class extends U{retrieve(e,t,r={}){let n=`/admin/payment-collections/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r={}){let n=`/admin/payment-collections/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/payment-collections/${e}`;return this.client.request("DELETE",r,void 0,{},t)}markAsAuthorized(e,t={}){let r=`/admin/payment-collections/${e}/authorize`;return this.client.request("POST",r,void 0,{},t)}},SR=gR,ER=class extends U{retrieve(e,t,r={}){let n=`/admin/payments/${e}`;if(t){let i=N.stringify(t);n=`/admin/payments/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}capturePayment(e,t={}){let r=`/admin/payments/${e}/capture`;return this.client.request("POST",r,void 0,{},t)}refundPayment(e,t,r={}){let n=`/admin/payments/${e}/refund`;return this.client.request("POST",n,t,{},r)}},wR=ER,CR=class extends U{create(e,t={}){let r="/admin/price-lists";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/price-lists/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/price-lists/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/price-lists/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/price-lists/";return e&&(r=`/admin/price-lists?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}listProducts(e,t,r={}){let n=`/admin/price-lists/${e}/products`;if(t){let i=N.stringify(t);n=`/admin/price-lists/${e}/products?${i}`}return this.client.request("GET",n,void 0,{},r)}addPrices(e,t,r={}){let n=`/admin/price-lists/${e}/prices/batch`;return this.client.request("POST",n,t,{},r)}deletePrices(e,t,r={}){let n=`/admin/price-lists/${e}/prices/batch`;return this.client.request("DELETE",n,t,{},r)}deleteProductPrices(e,t,r={}){let n=`/admin/price-lists/${e}/products/${t}/prices`;return this.client.request("DELETE",n,void 0,{},r)}deleteVariantPrices(e,t,r={}){let n=`/admin/price-lists/${e}/variants/${t}/prices`;return this.client.request("DELETE",n,void 0,{},r)}},PR=CR,$R=class extends U{retrieve(e,t,r={}){let n=`/admin/product-categories/${e}`;if(t){let i=N.stringify(t);n=`${n}?${i}`}return this.client.request("GET",n,void 0,{},r)}create(e,t={}){let r="/admin/product-categories";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/product-categories/${e}`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/product-categories";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}delete(e,t={}){let r=`/admin/product-categories/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeProducts(e,t,r={}){let n=`/admin/product-categories/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}addProducts(e,t,r={}){let n=`/admin/product-categories/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}},OR=$R,bR=class extends U{list(t){let r="/admin/product-tags";return t&&(r=`/admin/product-tags?${N.stringify(t)}`),this.client.request("GET",r)}},xR=bR,RR=class extends U{list(t,r={}){let n="/admin/product-types";if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},TR=RR,MR=class extends U{create(e,t={}){let r="/admin/products/";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/products/${e}`;return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/products/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/products/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/products";return e&&(r=`/admin/products?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}listTypes(e={}){let t="/admin/products/types";return this.client.request("GET",t,void 0,{},e)}listTags(e={}){let t="/admin/products/tag-usage";return this.client.request("GET",t,void 0,{},e)}setMetadata(e,t,r={}){let n=`/admin/products/${e}/metadata`;return this.client.request("POST",n,t,{},r)}createVariant(e,t,r={}){let n=`/admin/products/${e}/variants`;return this.client.request("POST",n,t,{},r)}updateVariant(e,t,r,n={}){let i=`/admin/products/${e}/variants/${t}`;return this.client.request("POST",i,r,{},n)}deleteVariant(e,t,r={}){let n=`/admin/products/${e}/variants/${t}`;return this.client.request("DELETE",n,void 0,{},r)}addOption(e,t,r={}){let n=`/admin/products/${e}/options`;return this.client.request("POST",n,t,{},r)}updateOption(e,t,r,n={}){let i=`/admin/products/${e}/options/${t}`;return this.client.request("POST",i,r,{},n)}deleteOption(e,t,r={}){let n=`/admin/products/${e}/options/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},_R=MR,kR=class extends U{retrieve(e,t,r={}){let n=`/admin/publishable-api-keys/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/publishable-api-keys";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/publishable-api-keys";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/publishable-api-keys/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/publishable-api-keys/${e}`;return this.client.request("DELETE",r,void 0,{},t)}revoke(e,t={}){let r=`/admin/publishable-api-keys/${e}/revoke`;return this.client.request("POST",r,{},{},t)}addSalesChannelsBatch(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels/batch`;return this.client.request("POST",n,t,{},r)}deleteSalesChannelsBatch(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels/batch`;return this.client.request("DELETE",n,t,{},r)}listSalesChannels(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},DR=kR,AR=class extends U{create(e,t={}){let r="/admin/regions";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/regions/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/regions/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/regions/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/regions";return e&&(r=`/admin/regions?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addCountry(e,t,r={}){let n=`/admin/regions/${e}/countries`;return this.client.request("POST",n,t,{},r)}deleteCountry(e,t,r={}){let n=`/admin/regions/${e}/countries/${t}`;return this.client.request("DELETE",n,void 0,{},r)}addFulfillmentProvider(e,t,r={}){let n=`/admin/regions/${e}/fulfillment-providers`;return this.client.request("POST",n,t,{},r)}deleteFulfillmentProvider(e,t,r={}){let n=`/admin/regions/${e}/fulfillment-providers/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieveFulfillmentOptions(e,t={}){let r=`/admin/regions/${e}/fulfillment-options`;return this.client.request("GET",r,void 0,{},t)}addPaymentProvider(e,t,r={}){let n=`/admin/regions/${e}/payment-providers`;return this.client.request("POST",n,t,{},r)}deletePaymentProvider(e,t,r={}){let n=`/admin/regions/${e}/payment-providers/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},LR=AR,NR=class extends U{retrieve(e,t={}){let r=`/admin/reservations/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/reservations";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/reservations";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/reservations/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/reservations/${e}`;return this.client.request("DELETE",r,void 0,{},t)}},FR=NR,qR=class extends U{create(e,t={}){let r="/admin/return-reasons";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/return-reasons/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/return-reasons/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/return-reasons/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e={}){let t="/admin/return-reasons";return this.client.request("GET",t,void 0,{},e)}},IR=qR,QR=class extends U{cancel(e,t={}){let r=`/admin/returns/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}receive(e,t,r={}){let n=`/admin/returns/${e}/receive`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/returns/";return e&&(r=`/admin/returns?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},UR=QR,jR=class extends U{retrieve(e,t={}){let r=`/admin/sales-channels/${e}`;return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/sales-channels";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/sales-channels/${e}`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/sales-channels";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}delete(e,t={}){let r=`/admin/sales-channels/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeProducts(e,t,r={}){let n=`/admin/sales-channels/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}addProducts(e,t,r={}){let n=`/admin/sales-channels/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}addLocation(e,t,r={}){let n=`/admin/sales-channels/${e}/stock-locations`;return this.client.request("POST",n,t,{},r)}removeLocation(e,t,r={}){let n=`/admin/sales-channels/${e}/stock-locations`;return this.client.request("DELETE",n,t,{},r)}},zR=jR,BR=class extends U{create(e,t={}){let r="/admin/shipping-options";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/shipping-options/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/shipping-options/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/shipping-options/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/shipping-options";return e&&(r=`/admin/shipping-options?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},HR=BR,WR=class extends U{create(t,r={}){let n="/admin/shipping-profiles/";return this.client.request("POST",n,t,{},r)}update(t,r,n={}){let i=`/admin/shipping-profiles/${t}`;return this.client.request("POST",i,r,{},n)}delete(t,r={}){let n=`/admin/shipping-profiles/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(t,r={}){let n=`/admin/shipping-profiles/${t}`;return this.client.request("GET",n,void 0,{},r)}list(t={}){let r="/admin/shipping-profiles/";return this.client.request("GET",r,void 0,{},t)}},GR=WR,KR=class extends U{create(e,t={}){let r="/admin/stock-locations";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/stock-locations/${e}`;return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/stock-locations/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/stock-locations/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/stock-locations";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},VR=KR,XR=class extends U{update(e,t={}){let r="/admin/store/";return this.client.request("POST",r,e,{},t)}addCurrency(e,t={}){let r=`/admin/store/${e}`;return this.client.request("POST",r,void 0,{},t)}deleteCurrency(e,t={}){let r=`/admin/store/currencies/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e={}){let t="/admin/store/";return this.client.request("GET",t,void 0,{},e)}listPaymentProviders(e={}){let t="/admin/store/payment-providers";return this.client.request("GET",t,void 0,{},e)}listTaxProviders(e={}){let t="/admin/store/tax-providers";return this.client.request("GET",t,void 0,{},e)}},YR=XR,JR=class extends U{retrieve(e,t={}){let r=`/admin/swaps/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/swaps/";return e&&(r=`/admin/swaps?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},ZR=JR,eT=class extends U{retrieve(e,t,r={}){let n=`/admin/tax-rates/${e}`;if(t){let i=N.stringify(t);n=`/admin/tax-rates/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/tax-rates";return e&&(r=`/admin/tax-rates?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}create(e,t,r={}){let n="/admin/tax-rates";return t&&(n=`/admin/tax-rates?${N.stringify(t)}`),this.client.request("POST",n,e,{},r)}update(e,t,r,n={}){let i=`/admin/tax-rates/${e}`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}?${s}`}return this.client.request("POST",i,t,{},n)}addProducts(e,t,r,n={}){let i=`/admin/tax-rates/${e}/products/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/products/batch?${s}`}return this.client.request("POST",i,t,{},n)}addProductTypes(e,t,r,n={}){let i=`/admin/tax-rates/${e}/product-types/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/product-types/batch?${s}`}return this.client.request("POST",i,t,{},n)}addShippingOptions(e,t,r,n={}){let i=`/admin/tax-rates/${e}/shipping-options/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/shipping-options/batch?${s}`}return this.client.request("POST",i,t,{},n)}removeProducts(e,t,r,n={}){let i=`/admin/tax-rates/${e}/products/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/products/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}removeProductTypes(e,t,r,n={}){let i=`/admin/tax-rates/${e}/product-types/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/product-types/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}removeShippingOptions(e,t,r,n={}){let i=`/admin/tax-rates/${e}/shipping-options/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/shipping-options/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}delete(e,t={}){let r=`/admin/tax-rates/${e}`;return this.client.request("DELETE",r,void 0,{},t)}},tT=eT,rT=class extends U{constructor(){super(...arguments),this.headers={"Content-Type":"multipart/form-data"}}create(t){let r="/admin/uploads",n=this._createPayload(t);return this.client.request("POST",r,n,{},this.headers)}createProtected(t){let r="/admin/uploads/protected",n=this._createPayload(t);return this.client.request("POST",r,n,{},this.headers)}delete(t,r={}){let n="/admin/uploads";return this.client.request("DELETE",n,t,{},r)}getPresignedDownloadUrl(t,r={}){let n="/admin/uploads/download-url";return this.client.request("POST",n,t,{},r)}_createPayload(t){let r=new FormData;return Array.isArray(t)?t.forEach(n=>r.append("files",n)):r.append("files",t),r}},nT=rT,iT=class extends U{sendResetPasswordToken(e,t={}){let r="/admin/users/password-token";return this.client.request("POST",r,e,{},t)}resetPassword(e,t={}){let r="admin/users/reset-password";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/users/${e}`;return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/users";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/users/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/users/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e={}){let t="/admin/users";return this.client.request("GET",t,void 0,{},e)}},sT=iT,aT=class extends U{list(e,t={}){let r="/admin/variants";return e&&(r=`/admin/variants?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}retrieve(e,t,r={}){let n=`/admin/variants/${e}`;return t&&(n=`/admin/variants?${N.stringify(t)}`),this.client.request("GET",n,void 0,{},r)}getInventory(e,t={}){let r=`/admin/variants/${e}/inventory`;return this.client.request("GET",r,void 0,{},t)}},oT=aT,lT=class extends U{constructor(){super(...arguments),this.auth=new jx(this.client),this.batchJobs=new Hx(this.client),this.customers=new Zx(this.client),this.customerGroups=new Yx(this.client),this.discounts=new tR(this.client),this.currencies=new Vx(this.client),this.collections=new Gx(this.client),this.draftOrders=new nR(this.client),this.giftCards=new sR(this.client),this.invites=new uR(this.client),this.inventoryItems=new oR(this.client),this.notes=new dR(this.client),this.priceLists=new PR(this.client),this.products=new _R(this.client),this.productTags=new xR(this.client),this.productTypes=new TR(this.client),this.users=new sT(this.client),this.returns=new UR(this.client),this.orders=new yR(this.client),this.orderEdits=new mR(this.client),this.publishableApiKeys=new DR(this.client),this.returnReasons=new IR(this.client),this.variants=new oT(this.client),this.salesChannels=new zR(this.client),this.swaps=new ZR(this.client),this.shippingProfiles=new GR(this.client),this.stockLocations=new VR(this.client),this.store=new YR(this.client),this.shippingOptions=new HR(this.client),this.regions=new LR(this.client),this.reservations=new FR(this.client),this.notifications=new hR(this.client),this.taxRates=new tT(this.client),this.uploads=new nT(this.client),this.paymentCollections=new SR(this.client),this.payments=new wR(this.client),this.productCategories=new OR(this.client)}},uT=class{constructor(e){this.client=new Zb(e),this.admin=new lT(this.client),this.auth=new nx(this.client),this.carts=new ox(this.client),this.customers=new fx(this.client),this.errors=new Ai,this.orders=new gx(this.client),this.orderEdits=new vx(this.client),this.products=new Mx(this.client),this.productTypes=new bx(this.client),this.regions=new kx(this.client),this.returnReasons=new Ax(this.client),this.returns=new Nx(this.client),this.shippingOptions=new qx(this.client),this.swaps=new Qx(this.client),this.collections=new ux(this.client),this.giftCards=new px(this.client),this.paymentMethods=new f0(this.client),this.paymentCollections=new Ex(this.client),this.productTags=new $x(this.client),this.productCategories=new Cx(this.client)}setPublishableKey(e){d0.registerPublishableApiKey(e)}},cT=uT,p={},Z={},mr={},Pn={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});class dT{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(r=>r!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}vr.Subscribable=dT;var K={};Object.defineProperty(K,"__esModule",{value:!0});const fT=typeof window>"u"||"Deno"in window;function hT(){}function pT(e,t){return typeof e=="function"?e(t):e}function mT(e){return typeof e=="number"&&e>=0&&e!==1/0}function vT(e,t){return e.filter(r=>t.indexOf(r)===-1)}function yT(e,t,r){const n=e.slice(0);return n[t]=r,n}function gT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ST(e,t,r){return $n(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ET(e,t,r){return $n(e)?typeof t=="function"?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function wT(e,t,r){return $n(e)?[{...t,queryKey:e},r]:[e||{},t]}function CT(e,t,r){return $n(e)?[{...t,mutationKey:e},r]:[e||{},t]}function PT(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if($n(a)){if(n){if(t.queryHash!==h0(a,t.options))return!1}else if(!Tf(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function $T(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:s}=e;if($n(s)){if(!t.options.mutationKey)return!1;if(r){if(Fo(t.options.mutationKey)!==Fo(s))return!1}else if(!Tf(t.options.mutationKey,s))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function h0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fo)(e)}function Fo(e){return JSON.stringify(e,(t,r)=>qo(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Tf(e,t){return Mf(e,t)}function Mf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Mf(e[r],t[r])):!1}function _f(e,t){if(e===t)return e;const r=cd(e)&&cd(t);if(r||qo(e)&&qo(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let o=0;for(let l=0;l"u")return!0;const r=t.prototype;return!(!Rm(r)||!r.hasOwnProperty("isPrototypeOf"))}function Rm(e){return Object.prototype.toString.call(e)==="[object Object]"}function $n(e){return Array.isArray(e)}function bT(e){return e instanceof Error}function p0(e){return new Promise(t=>{setTimeout(t,e)})}function xT(e){p0(0).then(e)}function RT(){if(typeof AbortController=="function")return new AbortController}function TT(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?_f(e,t):t}K.difference=vT;K.functionalUpdate=pT;K.getAbortController=RT;K.hashQueryKey=Fo;K.hashQueryKeyByOptions=h0;K.isError=bT;K.isPlainArray=cd;K.isPlainObject=qo;K.isQueryKey=$n;K.isServer=fT;K.isValidTimeout=mT;K.matchMutation=$T;K.matchQuery=PT;K.noop=hT;K.parseFilterArgs=wT;K.parseMutationArgs=ET;K.parseMutationFilterArgs=CT;K.parseQueryArgs=ST;K.partialDeepEqual=Mf;K.partialMatchKey=Tf;K.replaceAt=yT;K.replaceData=TT;K.replaceEqualDeep=_f;K.scheduleMicrotask=xT;K.shallowEqualObjects=OT;K.sleep=p0;K.timeUntilStale=gT;Object.defineProperty(Pn,"__esModule",{value:!0});var MT=vr,_T=K;class m0 extends MT.Subscribable{constructor(){super(),this.setup=t=>{if(!_T.isServer&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const kT=new m0;Pn.FocusManager=m0;Pn.focusManager=kT;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});var DT=vr,AT=K;class v0 extends DT.Subscribable{constructor(){super(),this.setup=t=>{if(!AT.isServer&&window.addEventListener){const r=()=>t();return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const LT=new v0;Li.OnlineManager=v0;Li.onlineManager=LT;Object.defineProperty(mr,"__esModule",{value:!0});var NT=Pn,y0=Li,FT=K;function qT(e){return Math.min(1e3*2**e,3e4)}function g0(e){return(e??"online")==="online"?y0.onlineManager.isOnline():!0}class kf{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function IT(e){return e instanceof kf}function QT(e){let t=!1,r=0,n=!1,i,s,a;const o=new Promise((P,m)=>{s=P,a=m}),l=P=>{n||(S(new kf(P)),e.abort==null||e.abort())},u=()=>{t=!0},d=()=>{t=!1},c=()=>!NT.focusManager.isFocused()||e.networkMode!=="always"&&!y0.onlineManager.isOnline(),h=P=>{n||(n=!0,e.onSuccess==null||e.onSuccess(P),i==null||i(),s(P))},S=P=>{n||(n=!0,e.onError==null||e.onError(P),i==null||i(),a(P))},E=()=>new Promise(P=>{i=m=>{if(n||!c())return P(m)},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),f=()=>{if(n)return;let P;try{P=e.fn()}catch(m){P=Promise.reject(m)}Promise.resolve(P).then(h).catch(m=>{var v,y;if(n)return;const w=(v=e.retry)!=null?v:3,$=(y=e.retryDelay)!=null?y:qT,R=typeof $=="function"?$(r,m):$,x=w===!0||typeof w=="number"&&r{if(c())return E()}).then(()=>{t?S(m):f()})})};return g0(e.networkMode)?f():E().then(f),{promise:o,cancel:l,continue:()=>{i==null||i()},cancelRetry:u,continueRetry:d}}mr.CancelledError=kf;mr.canFetch=g0;mr.createRetryer=QT;mr.isCancelledError=IT;var ml={},Df={};const UT=console,jT=Object.freeze(Object.defineProperty({__proto__:null,defaultLogger:UT},Symbol.toStringTag,{value:"Module"})),Af=yd(jT);var $t={};Object.defineProperty($t,"__esModule",{value:!0});var Tm=K;function S0(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const i=d=>{let c;t++;try{c=d()}finally{t--,t||o()}return c},s=d=>{t?e.push(d):Tm.scheduleMicrotask(()=>{r(d)})},a=d=>(...c)=>{s(()=>{d(...c)})},o=()=>{const d=e;e=[],d.length&&Tm.scheduleMicrotask(()=>{n(()=>{d.forEach(c=>{r(c)})})})};return{batch:i,batchCalls:a,schedule:s,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const zT=S0();$t.createNotifyManager=S0;$t.notifyManager=zT;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var Mm=K;class BT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mm.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Mm.isServer?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}vl.Removable=BT;Object.defineProperty(Df,"__esModule",{value:!0});var ts=K,HT=Af,WT=$t,rs=mr,GT=vl;class KT extends GT.Removable{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||HT.defaultLogger,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||VT(this.options),this.state=this.initialState}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=ts.replaceData(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ts.noop).catch(ts.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ts.timeUntilStale(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(E=>E.options.queryFn);S&&this.setOptions(S.options)}Array.isArray(this.options.queryKey);const a=ts.getAbortController(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(o);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=d.fetchOptions)==null?void 0:i.meta)){var c;this.dispatch({type:"fetch",meta:(c=d.fetchOptions)==null?void 0:c.meta})}const h=S=>{if(rs.isCancelledError(S)&&S.silent||this.dispatch({type:"error",error:S}),!rs.isCancelledError(S)){var E,f;(E=(f=this.cache.config).onError)==null||E.call(f,S,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rs.createRetryer({fn:d.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:S=>{var E,f;if(typeof S>"u"){h(new Error("undefined"));return}this.setData(S),(E=(f=this.cache.config).onSuccess)==null||E.call(f,S,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(S,E)=>{this.dispatch({type:"failed",failureCount:S,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,s;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:rs.canFetch(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return rs.isCancelledError(a)&&a.revert&&this.revertState?{...this.revertState}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),WT.notifyManager.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function VT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}Df.Query=KT;Object.defineProperty(ml,"__esModule",{value:!0});var ns=K,XT=Df,La=$t,YT=vr;class JT extends YT.Subscribable{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var i;const s=r.queryKey,a=(i=r.queryHash)!=null?i:ns.hashQueryKeyByOptions(s,r);let o=this.get(a);return o||(o=new XT.Query({cache:this,logger:t.getLogger(),queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ns.parseFilterArgs(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>ns.matchQuery(n,i))}findAll(t,r){const[n]=ns.parseFilterArgs(t,r);return Object.keys(n).length>0?this.queries.filter(i=>ns.matchQuery(n,i)):this.queries}notify(t){La.notifyManager.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}ml.QueryCache=JT;var Lf={},yl={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});var ZT=Af,eM=$t,tM=vl,_m=mr;class rM extends tM.Removable{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||ZT.defaultLogger,this.observers=[],this.state=t.state||E0(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var y;return this.retryer=_m.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(w,$)=>{this.dispatch({type:"failed",failureCount:w,error:$})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(y=this.options.retry)!=null?y:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,s,a,o,l;if(!r){var u,d,c,h;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(d=this.mutationCache.config).onMutate)==null?void 0:u.call(d,this.state.variables,this));const w=await((c=(h=this.options).onMutate)==null?void 0:c.call(h,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const y=await t();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,y,this.state.variables,this.state.context,this)),await((s=(a=this.options).onSuccess)==null?void 0:s.call(a,y,this.state.variables,this.state.context)),await((o=(l=this.options).onSettled)==null?void 0:o.call(l,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(y){try{var S,E,f,P,m,v;throw await((S=(E=this.mutationCache.config).onError)==null?void 0:S.call(E,y,this.state.variables,this.state.context,this)),await((f=(P=this.options).onError)==null?void 0:f.call(P,y,this.state.variables,this.state.context)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,void 0,y,this.state.variables,this.state.context)),y}finally{this.dispatch({type:"error",error:y})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!_m.canFetch(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),eM.notifyManager.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function E0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}ta.Mutation=rM;ta.getDefaultState=E0;Object.defineProperty(yl,"__esModule",{value:!0});var Qu=$t,nM=ta,Uu=K,iM=vr;class sM extends iM.Subscribable{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new nM.Mutation({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Qu.notifyManager.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>Uu.matchMutation(t,r))}findAll(t){return this.mutations.filter(r=>Uu.matchMutation(t,r))}notify(t){Qu.notifyManager.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.mutations.filter(r=>r.state.isPaused);return Qu.notifyManager.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Uu.noop)),Promise.resolve()))}}yl.MutationCache=sM;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});function aM(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,s,a;const o=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",c=(l==null?void 0:l.direction)==="backward",h=((s=e.state.data)==null?void 0:s.pages)||[],S=((a=e.state.data)==null?void 0:a.pageParams)||[];let E=S,f=!1;const P=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var x;if((x=e.signal)!=null&&x.aborted)f=!0;else{var b;(b=e.signal)==null||b.addEventListener("abort",()=>{f=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),v=(R,x,b,I)=>(E=I?[x,...E]:[...E,x],I?[b,...R]:[...R,b]),y=(R,x,b,I)=>{if(f)return Promise.reject("Cancelled");if(typeof b>"u"&&!x&&R.length)return Promise.resolve(R);const A={queryKey:e.queryKey,pageParam:b,meta:e.options.meta};P(A);const X=m(A);return Promise.resolve(X).then(oe=>v(R,b,oe,I))};let w;if(!h.length)w=y([]);else if(d){const R=typeof u<"u",x=R?u:Io(e.options,h);w=y(h,R,x)}else if(c){const R=typeof u<"u",x=R?u:Nf(e.options,h);w=y(h,R,x,!0)}else{E=[];const R=typeof e.options.getNextPageParam>"u";w=(o&&h[0]?o(h[0],0,h):!0)?y([],R,S[0]):Promise.resolve(v([],S[0],h[0]));for(let b=1;b{if(o&&h[b]?o(h[b],b,h):!0){const X=R?S[b]:Io(e.options,I);return y(I,R,X)}return Promise.resolve(v(I,S[b],h[b]))})}return w.then(R=>({pages:R,pageParams:E}))}}}}function Io(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Nf(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function oM(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=Io(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function lM(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=Nf(e,t);return typeof r<"u"&&r!==null&&r!==!1}}Br.getNextPageParam=Io;Br.getPreviousPageParam=Nf;Br.hasNextPage=oM;Br.hasPreviousPage=lM;Br.infiniteQueryBehavior=aM;Object.defineProperty(Lf,"__esModule",{value:!0});var le=K,uM=ml,cM=yl,km=Pn,Dm=Li,Ln=$t,dM=Br,fM=Af;class hM{constructor(t={}){this.queryCache=t.queryCache||new uM.QueryCache,this.mutationCache=t.mutationCache||new cM.MutationCache,this.logger=t.logger||fM.defaultLogger,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=km.focusManager.subscribe(()=>{km.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Dm.onlineManager.subscribe(()=>{Dm.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=le.parseFilterArgs(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const i=le.parseQueryArgs(t,r,n),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(t,r,n){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,a=le.functionalUpdate(r,s);if(typeof a>"u")return;const o=le.parseQueryArgs(t),l=this.defaultQueryOptions(o);return this.queryCache.build(this,l).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return Ln.notifyManager.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=le.parseFilterArgs(t,r),i=this.queryCache;Ln.notifyManager.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n),a=this.queryCache,o={type:"active",...i};return Ln.notifyManager.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(o,s)))}cancelQueries(t,r,n){const[i,s={}]=le.parseFilterArgs(t,r,n);typeof s.revert>"u"&&(s.revert=!0);const a=Ln.notifyManager.batch(()=>this.queryCache.findAll(i).map(o=>o.cancel(s)));return Promise.all(a).then(le.noop).catch(le.noop)}invalidateQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n);return Ln.notifyManager.batch(()=>{var a,o;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(o=i.refetchType)!=null?o:i.type)!=null?a:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n),a=Ln.notifyManager.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let o=Promise.all(a).then(le.noop);return s!=null&&s.throwOnError||(o=o.catch(le.noop)),o}fetchQuery(t,r,n){const i=le.parseQueryArgs(t,r,n),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const a=this.queryCache.build(this,s);return a.isStaleByTime(s.staleTime)?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(le.noop).catch(le.noop)}fetchInfiniteQuery(t,r,n){const i=le.parseQueryArgs(t,r,n);return i.behavior=dM.infiniteQueryBehavior(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(le.noop).catch(le.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(i=>le.hashQueryKey(t)===le.hashQueryKey(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>le.partialMatchKey(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(i=>le.hashQueryKey(t)===le.hashQueryKey(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>le.partialMatchKey(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=le.hashQueryKeyByOptions(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}Lf.QueryClient=hM;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});var Ut=K,pM=$t,mM=Pn,vM=vr,Am=mr;class yM extends vM.Subscribable{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Lm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return dd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Ut.shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const s=this.hasListeners();s&&Nm(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ut.noop)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Ut.isServer||this.currentResult.isStale||!Ut.isValidTimeout(this.options.staleTime))return;const r=Ut.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Ut.isServer||this.options.enabled===!1||!Ut.isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||mM.focusManager.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,i=this.options,s=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,l=t!==n,u=l?t.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:c}=t;let{dataUpdatedAt:h,error:S,errorUpdatedAt:E,fetchStatus:f,status:P}=c,m=!1,v=!1,y;if(r._optimisticResults){const b=this.hasListeners(),I=!b&&Lm(t,r),A=b&&Nm(t,n,r,i);(I||A)&&(f=Am.canFetch(t.options.networkMode)?"fetching":"paused",h||(P="loading")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.keepPreviousData&&!c.dataUpdatedAt&&d!=null&&d.isSuccess&&P!=="error")y=d.data,h=d.dataUpdatedAt,P=d.status,m=!0;else if(r.select&&typeof c.data<"u")if(s&&c.data===(a==null?void 0:a.data)&&r.select===this.selectFn)y=this.selectResult;else try{this.selectFn=r.select,y=r.select(c.data),y=Ut.replaceData(s==null?void 0:s.data,y,r),this.selectResult=y,this.selectError=null}catch(b){this.selectError=b}else y=c.data;if(typeof r.placeholderData<"u"&&typeof y>"u"&&P==="loading"){let b;if(s!=null&&s.isPlaceholderData&&r.placeholderData===(o==null?void 0:o.placeholderData))b=s.data;else if(b=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof b<"u")try{b=r.select(b),this.selectError=null}catch(I){this.selectError=I}typeof b<"u"&&(P="success",y=Ut.replaceData(s==null?void 0:s.data,b,r),v=!0)}this.selectError&&(S=this.selectError,y=this.selectResult,E=Date.now(),P="error");const w=f==="fetching",$=P==="loading",R=P==="error";return{status:P,fetchStatus:f,isLoading:$,isSuccess:P==="success",isError:R,isInitialLoading:$&&w,data:y,dataUpdatedAt:h,error:S,errorUpdatedAt:E,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!$,isLoadingError:R&&c.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:R&&c.dataUpdatedAt!==0,isStale:Ff(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ut.shallowEqualObjects(n,r))return;this.currentResult=n;const i={cache:!0},s=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const o=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==r[u]&&o.has(u)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Am.isCancelledError(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){pM.notifyManager.batch(()=>{if(t.onSuccess){var r,n,i,s;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(t.onError){var a,o,l,u;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function gM(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lm(e,t){return gM(e,t)||e.state.dataUpdatedAt>0&&dd(e,t,t.refetchOnMount)}function dd(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Ff(e,t)}return!1}function Nm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Ff(e,r)}function Ff(e,t){return e.isStaleByTime(t.staleTime)}ra.QueryObserver=yM;var qf={};Object.defineProperty(qf,"__esModule",{value:!0});var ju=K,Fm=$t,SM=ra,EM=vr;class wM extends EM.Subscribable{constructor(t,r){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},r&&this.setQueries(r)}onSubscribe(){this.listeners.length===1&&this.observers.forEach(t=>{t.subscribe(r=>{this.onUpdate(t,r)})})}onUnsubscribe(){this.listeners.length||this.destroy()}destroy(){this.listeners=[],this.observers.forEach(t=>{t.destroy()})}setQueries(t,r){this.queries=t,Fm.notifyManager.batch(()=>{const n=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions,r));const s=i.map(u=>u.observer),a=Object.fromEntries(s.map(u=>[u.options.queryHash,u])),o=s.map(u=>u.getCurrentResult()),l=s.some((u,d)=>u!==n[d]);n.length===s.length&&!l||(this.observers=s,this.observersMap=a,this.result=o,this.hasListeners()&&(ju.difference(n,s).forEach(u=>{u.destroy()}),ju.difference(s,n).forEach(u=>{u.subscribe(d=>{this.onUpdate(u,d)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(r=>r.observer.getOptimisticResult(r.defaultedQueryOptions))}findMatchingObservers(t){const r=this.observers,n=t.map(c=>this.client.defaultQueryOptions(c)),i=n.flatMap(c=>{const h=r.find(S=>S.options.queryHash===c.queryHash);return h!=null?[{defaultedQueryOptions:c,observer:h}]:[]}),s=i.map(c=>c.defaultedQueryOptions.queryHash),a=n.filter(c=>!s.includes(c.queryHash)),o=r.filter(c=>!i.some(h=>h.observer===c)),l=c=>{const h=this.client.defaultQueryOptions(c),S=this.observersMap[h.queryHash];return S??new SM.QueryObserver(this.client,h)},u=a.map((c,h)=>{if(c.keepPreviousData){const S=o[h];if(S!==void 0)return{defaultedQueryOptions:c,observer:S}}return{defaultedQueryOptions:c,observer:l(c)}}),d=(c,h)=>n.indexOf(c.defaultedQueryOptions)-n.indexOf(h.defaultedQueryOptions);return i.concat(u).sort(d)}onUpdate(t,r){const n=this.observers.indexOf(t);n!==-1&&(this.result=ju.replaceAt(this.result,n,r),this.notify())}notify(){Fm.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(this.result)})})}}qf.QueriesObserver=wM;var If={};Object.defineProperty(If,"__esModule",{value:!0});var CM=ra,Na=Br;class PM extends CM.QueryObserver{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:Na.infiniteQueryBehavior()},r)}getOptimisticResult(t){return t.behavior=Na.infiniteQueryBehavior(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,i,s,a,o,l;const{state:u}=t,d=super.createResult(t,r),{isFetching:c,isRefetching:h}=d,S=c&&((n=u.fetchMeta)==null||(i=n.fetchMore)==null?void 0:i.direction)==="forward",E=c&&((s=u.fetchMeta)==null||(a=s.fetchMore)==null?void 0:a.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Na.hasNextPage(r,(o=u.data)==null?void 0:o.pages),hasPreviousPage:Na.hasPreviousPage(r,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:S,isFetchingPreviousPage:E,isRefetching:h&&!S&&!E}}}If.InfiniteQueryObserver=PM;var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0});var $M=ta,OM=$t,bM=vr,xM=K;let RM=class extends bM.Subscribable{constructor(t,r){super(),this.client=t,this.setOptions(r),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.client.defaultMutationOptions(t),xM.shallowEqualObjects(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const r={listeners:!0};t.type==="success"?r.onSuccess=!0:t.type==="error"&&(r.onError=!0),this.notify(r)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,r){return this.mutateOptions=r,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:$M.getDefaultState(),r={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){OM.notifyManager.batch(()=>{if(this.mutateOptions){if(t.onSuccess){var r,n,i,s;(r=(n=this.mutateOptions).onSuccess)==null||r.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,o,l,u;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)})})}};Qf.MutationObserver=RM;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});function TM(e){return{mutationKey:e.options.mutationKey,state:e.state}}function MM(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}function w0(e){return e.state.isPaused}function C0(e){return e.state.status==="success"}function _M(e,t={}){const r=[],n=[];if(t.dehydrateMutations!==!1){const i=t.shouldDehydrateMutation||w0;e.getMutationCache().getAll().forEach(s=>{i(s)&&r.push(TM(s))})}if(t.dehydrateQueries!==!1){const i=t.shouldDehydrateQuery||C0;e.getQueryCache().getAll().forEach(s=>{i(s)&&n.push(MM(s))})}return{mutations:r,queries:n}}function kM(e,t,r){if(typeof t!="object"||t===null)return;const n=e.getMutationCache(),i=e.getQueryCache(),s=t.mutations||[],a=t.queries||[];s.forEach(o=>{var l;n.build(e,{...r==null||(l=r.defaultOptions)==null?void 0:l.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(o=>{var l;const u=i.get(o.queryHash);if(u){u.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YM:XM;$0.useSyncExternalStore=wi.useSyncExternalStore!==void 0?wi.useSyncExternalStore:JM;(function(e){e.exports=$0})(zM);const ZM=fd.useSyncExternalStore,e_=Object.freeze(Object.defineProperty({__proto__:null,useSyncExternalStore:ZM},Symbol.toStringTag,{value:"Module"})),na=yd(e_);var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});var t_=g;function r_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var on=r_(t_);const hd=on.createContext(void 0),O0=on.createContext(!1);function b0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=hd),window.ReactQueryClientContext):hd)}const n_=({context:e}={})=>{const t=on.useContext(b0(e,on.useContext(O0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i_=({client:e,children:t,context:r,contextSharing:n=!1})=>{on.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=b0(r,n);return on.createElement(O0.Provider,{value:!r&&n},on.createElement(i.Provider,{value:e},t))};Lt.QueryClientProvider=i_;Lt.defaultContext=hd;Lt.useQueryClient=n_;var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var s_=g;function a_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var x0=a_(s_);const R0=x0.createContext(!1),o_=()=>x0.useContext(R0),l_=R0.Provider;Fi.IsRestoringProvider=l_;Fi.useIsRestoring=o_;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});var u_=g;function c_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Qo=c_(u_);function T0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const M0=Qo.createContext(T0()),d_=()=>Qo.useContext(M0),f_=({children:e})=>{const[t]=Qo.useState(()=>T0());return Qo.createElement(M0.Provider,{value:t},typeof e=="function"?e(t):e)};qi.QueryErrorResetBoundary=f_;qi.useQueryErrorResetBoundary=d_;var Ii={},Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});function h_(e,t){return typeof e=="function"?e(...t):!!e}Sl.shouldThrowError=h_;Object.defineProperty(Ii,"__esModule",{value:!0});var p_=g,m_=Sl;function v_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var y_=v_(p_);const g_=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},S_=e=>{y_.useEffect(()=>{e.clearReset()},[e])},E_=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&m_.shouldThrowError(r,[e.error,n]);Ii.ensurePreventErrorBoundaryRetry=g_;Ii.getHasError=E_;Ii.useClearResetErrorBoundary=S_;var On={};Object.defineProperty(On,"__esModule",{value:!0});const w_=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},_0=(e,t)=>e.isLoading&&e.isFetching&&!t,C_=(e,t,r)=>(e==null?void 0:e.suspense)&&_0(t,r),P_=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});On.ensureStaleTime=w_;On.fetchOptimistic=P_;On.shouldSuspend=C_;On.willFetch=_0;Object.defineProperty(Uf,"__esModule",{value:!0});var $_=g,O_=na,qm=Z,b_=Lt,x_=Fi,R_=qi,Bu=Ii,Nn=On;function T_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Fa=T_($_);function M_({queries:e,context:t}){const r=b_.useQueryClient({context:t}),n=x_.useIsRestoring(),i=Fa.useMemo(()=>e.map(c=>{const h=r.defaultQueryOptions(c);return h._optimisticResults=n?"isRestoring":"optimistic",h}),[e,r,n]),[s]=Fa.useState(()=>new qm.QueriesObserver(r,i)),a=s.getOptimisticResult(i);O_.useSyncExternalStore(Fa.useCallback(c=>n?()=>{}:s.subscribe(qm.notifyManager.batchCalls(c)),[s,n]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Fa.useEffect(()=>{s.setQueries(i,{listeners:!1})},[i,s]);const o=R_.useQueryErrorResetBoundary();i.forEach(c=>{Bu.ensurePreventErrorBoundaryRetry(c,o),Nn.ensureStaleTime(c)}),Bu.useClearResetErrorBoundary(o);const u=a.some((c,h)=>Nn.shouldSuspend(i[h],c,n))?a.flatMap((c,h)=>{const S=i[h],E=s.getObservers()[h];if(S&&E){if(Nn.shouldSuspend(S,c,n))return Nn.fetchOptimistic(S,E,o);Nn.willFetch(c,n)&&Nn.fetchOptimistic(S,E,o)}return[]}):[];if(u.length>0)throw Promise.all(u);const d=a.find((c,h)=>{var S,E;return Bu.getHasError({result:c,errorResetBoundary:o,useErrorBoundary:(S=(E=i[h])==null?void 0:E.useErrorBoundary)!=null?S:!1,query:s.getQueries()[h]})});if(d!=null&&d.error)throw d.error;return a}Uf.useQueries=M_;var jf={},El={};Object.defineProperty(El,"__esModule",{value:!0});var __=g,k_=na,qa=Z,D_=qi,A_=Lt,L_=Fi,Hu=Ii,Wu=On;function N_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Gu=N_(__);function F_(e,t){const r=A_.useQueryClient({context:e.context}),n=L_.useIsRestoring(),i=D_.useQueryErrorResetBoundary(),s=r.defaultQueryOptions(e);s._optimisticResults=n?"isRestoring":"optimistic",s.onError&&(s.onError=qa.notifyManager.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=qa.notifyManager.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=qa.notifyManager.batchCalls(s.onSettled)),Wu.ensureStaleTime(s),Hu.ensurePreventErrorBoundaryRetry(s,i),Hu.useClearResetErrorBoundary(i);const[a]=Gu.useState(()=>new t(r,s)),o=a.getOptimisticResult(s);if(k_.useSyncExternalStore(Gu.useCallback(l=>n?()=>{}:a.subscribe(qa.notifyManager.batchCalls(l)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),Gu.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Wu.shouldSuspend(s,o,n))throw Wu.fetchOptimistic(s,a,i);if(Hu.getHasError({result:o,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:a.getCurrentQuery()}))throw o.error;return s.notifyOnChangeProps?o:a.trackResult(o)}El.useBaseQuery=F_;Object.defineProperty(jf,"__esModule",{value:!0});var Im=Z,q_=El;function I_(e,t,r){const n=Im.parseQueryArgs(e,t,r);return q_.useBaseQuery(n,Im.QueryObserver)}jf.useQuery=I_;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Q_=g,U_=Z,j_=Lt;function z_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Qm=z_(Q_);function k0(e,t={}){const r=j_.useQueryClient({context:t.context}),n=Qm.useRef(t);n.current=t,Qm.useMemo(()=>{e&&U_.hydrate(r,e,n.current)},[r,e])}const B_=({children:e,options:t,state:r})=>(k0(r,t),e);wl.Hydrate=B_;wl.useHydrate=k0;var zf={};Object.defineProperty(zf,"__esModule",{value:!0});var H_=g,Um=Z,W_=na,G_=Lt;function K_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var V_=K_(H_);function X_(e,t,r){const[n,i={}]=Um.parseFilterArgs(e,t,r),s=G_.useQueryClient({context:i.context}),a=s.getQueryCache();return W_.useSyncExternalStore(V_.useCallback(o=>a.subscribe(Um.notifyManager.batchCalls(o)),[a]),()=>s.isFetching(n),()=>s.isFetching(n))}zf.useIsFetching=X_;var Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});var Y_=g,J_=na,jm=Z,Z_=Lt;function ek(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var tk=ek(Y_);function rk(e,t,r){const[n,i={}]=jm.parseMutationFilterArgs(e,t,r),s=Z_.useQueryClient({context:i.context}),a=s.getMutationCache();return J_.useSyncExternalStore(tk.useCallback(o=>a.subscribe(jm.notifyManager.batchCalls(o)),[a]),()=>s.isMutating(n),()=>s.isMutating(n))}Bf.useIsMutating=rk;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});var nk=g,ik=na,Ku=Z,sk=Lt,ak=Sl;function ok(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Ia=ok(nk);function lk(e,t,r){const n=Ku.parseMutationArgs(e,t,r),i=sk.useQueryClient({context:n.context}),[s]=Ia.useState(()=>new Ku.MutationObserver(i,n));Ia.useEffect(()=>{s.setOptions(n)},[s,n]);const a=ik.useSyncExternalStore(Ia.useCallback(l=>s.subscribe(Ku.notifyManager.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=Ia.useCallback((l,u)=>{s.mutate(l,u).catch(uk)},[s]);if(a.error&&ak.shouldThrowError(s.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function uk(){}Hf.useMutation=lk;var Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});var zm=Z,ck=El;function dk(e,t,r){const n=zm.parseQueryArgs(e,t,r);return ck.useBaseQuery(n,zm.InfiniteQueryObserver)}Wf.useInfiniteQuery=dk;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Z,r=Uf,n=jf,i=Lt,s=wl,a=qi,o=zf,l=Bf,u=Hf,d=Wf,c=Fi;e.useQueries=r.useQueries,e.useQuery=n.useQuery,e.QueryClientProvider=i.QueryClientProvider,e.defaultContext=i.defaultContext,e.useQueryClient=i.useQueryClient,e.Hydrate=s.Hydrate,e.useHydrate=s.useHydrate,e.QueryErrorResetBoundary=a.QueryErrorResetBoundary,e.useQueryErrorResetBoundary=a.useQueryErrorResetBoundary,e.useIsFetching=o.useIsFetching,e.useIsMutating=l.useIsMutating,e.useMutation=u.useMutation,e.useInfiniteQuery=d.useInfiniteQuery,e.IsRestoringProvider=c.IsRestoringProvider,e.useIsRestoring=c.useIsRestoring,Object.keys(t).forEach(function(h){h!=="default"&&!e.hasOwnProperty(h)&&Object.defineProperty(e,h,{enumerable:!0,get:function(){return t[h]}})})})(p);var D0=Te.createContext(null),C=()=>{let e=Te.useContext(D0);if(!e)throw new Error("useMedusa must be used within a MedusaProvider");return e},fk=({queryClientProviderProps:e,baseUrl:t,apiKey:r,publishableApiKey:n,children:i})=>{let s=new cT({baseUrl:t,maxRetries:0,apiKey:r,publishableApiKey:n});return Te.createElement(p.QueryClientProvider,{...e},Te.createElement(D0.Provider,{value:{client:s}},i))},ee=e=>{let t={all:[e],lists:()=>[...t.all,"list"],list:r=>[...t.lists(),{query:r}],details:()=>[...t.all,"detail"],detail:r=>[...t.details(),r]};return t};Te.createContext(null);var T=(e,t,r)=>({...r,onSuccess:(...n)=>{if(r!=null&&r.onSuccess)return r.onSuccess(...n);t!==void 0&&t.forEach(i=>{e.invalidateQueries({queryKey:i})})}});Te.createContext(null);var hk="admin_auth",Gf=ee(hk),pk=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Gf.details(),()=>t.admin.auth.getSession(),e);return{...r,...n}},U2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.auth.createSession(n),T(r,Gf.details(),e))},j2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(()=>t.admin.auth.deleteSession(),T(r,Gf.details(),e))},mk="admin_batches",pn=ee(mk),vk=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pn.list(e),()=>r.admin.batchJobs.list(e),t);return{...n,...i}},z2=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pn.detail(e),()=>r.admin.batchJobs.retrieve(e),t);return{...n,...i}},B2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.batchJobs.create(n),T(r,pn.lists(),e))},H2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.batchJobs.cancel(e),T(n,[pn.lists(),pn.detail(e)],t))},W2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.batchJobs.confirm(e),T(n,[pn.lists(),pn.detail(e)],t))},yk="admin_orders",ne={...ee(yk),detailOrder(e,t){return[...this.detail(e),{...t||{}}]}},G2=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(ne.list(e),()=>r.admin.orders.list(e),t);return{...n,...i}},K2=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(ne.detailOrder(e,t),()=>n.admin.orders.retrieve(e,t),r);return{...i,...s}},V2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createClaim(e,i),T(n,ne.detail(e),t))},X2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelClaim(e,i),T(n,ne.detail(e),t))},Y2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,...s})=>r.admin.orders.fulfillClaim(e,i,s),T(n,ne.detail(e),t))},J2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,fulfillment_id:s})=>r.admin.orders.cancelClaimFulfillment(e,i,s),T(n,ne.detail(e),t))},Z2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,...s})=>r.admin.orders.createClaimShipment(e,i,s),T(n,ne.detail(e),t))},gk="admin_collections",mn=ee(gk),eD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(mn.list(e),()=>r.admin.collections.list(e),t);return{...n,...i}},tD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(mn.detail(e),()=>r.admin.collections.retrieve(e),t);return{...n,...i}},rD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.collections.create(n),T(r,mn.lists(),e))},nD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.collections.update(e,i),T(n,[mn.lists(),mn.detail(e)],t))},iD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.collections.delete(e),T(n,[mn.lists(),mn.detail(e)],t))},Sk="admin_currencies",pd=ee(Sk),sD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pd.list(e),()=>r.admin.currencies.list(e),t);return{...n,...i}},aD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.currencies.update(e,i),T(n,[pd.lists(),pd.detail(e)],t))},Ek="admin_customer_groups",Pt={...ee(Ek),detailCustomer(e,t){return[...this.detail(e),"customers",{...t||{}}]}},oD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Pt.detail(e),()=>n.admin.customerGroups.retrieve(e,t),r);return{...i,...s}},lD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pt.list(e),()=>r.admin.customerGroups.list(e),t);return{...n,...i}},uD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Pt.detailCustomer(e,t),()=>n.admin.customerGroups.listCustomers(e,t),r);return{...i,...s}},cD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.customerGroups.create(n),T(r,Pt.lists(),e))},dD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.update(e,i),T(n,[Pt.lists(),Pt.detail(e)],t))},fD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.customerGroups.delete(e),T(n,[Pt.lists(),Pt.detail(e)],t))},hD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.addCustomers(e,i),T(n,[Pt.lists(),Pt.detailCustomer(e)],t))},pD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.removeCustomers(e,i),T(n,[Pt.lists(),Pt.detailCustomer(e)],t))},wk="admin_customers",Ci=ee(wk),mD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ci.list(e),()=>r.admin.customers.list(e),t);return{...n,...i}},vD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ci.detail(e),()=>r.admin.customers.retrieve(e),t);return{...n,...i}},yD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customers.update(e,i),T(n,[Ci.lists(),Ci.detail(e)],t))},Ck="admin_discounts",Xt={...ee(Ck),detailCondition(e,t){return[...this.detail(e),"condition",{...t||{}}]}},gD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Xt.list(e),()=>r.admin.discounts.list(e),t);return{...n,...i}},SD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Xt.detail(e),()=>n.admin.discounts.retrieve(e,t),r);return{...i,...s}},ED=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Xt.detail(e),()=>r.admin.discounts.retrieveByCode(e),t);return{...n,...i}},wD=(e,t,r,n)=>{let{client:i}=C(),{data:s,...a}=p.useQuery(Xt.detailCondition(t),()=>i.admin.discounts.getCondition(e,t,r),n);return{...s,...a}},CD=(e,t,r,n)=>{let{client:i}=C(),s=p.useQueryClient();return p.useMutation(a=>i.admin.discounts.addConditionResourceBatch(e,t,a,r),T(s,Xt.detail(e),n))},PD=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(s=>n.admin.discounts.deleteConditionResourceBatch(e,t,s),T(i,[Xt.detail(e)],r))},$D=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.discounts.create(n),T(r,Xt.lists(),e))},OD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.discounts.update(e,i),T(n,Xt.detail(e),t))},bD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.discounts.delete(e),T(n,Xt.lists(),t))},xD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.discounts.deleteCondition(e,i),T(n,Xt.detail(e),t))},Pk="admin_draft_orders",Fr=ee(Pk),RD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Fr.list(e),()=>r.admin.draftOrders.list(e),t);return{...n,...i}},TD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Fr.detail(e),()=>r.admin.draftOrders.retrieve(e),t);return{...n,...i}},MD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.draftOrders.create(n),T(r,Fr.lists(),e))},_D=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.draftOrders.update(e,i),T(n,[Fr.detail(e),Fr.lists()],t))},kD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.draftOrders.delete(e),T(n,[Fr.detail(e),Fr.lists()],t))},DD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.draftOrders.markPaid(e),T(n,Fr.detail(e),t))},$k="admin_gift_cards",Bs=ee($k),AD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Bs.list(e),()=>r.admin.giftCards.list(e),t);return{...n,...i}},LD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Bs.detail(e),()=>r.admin.giftCards.retrieve(e),t);return{...n,...i}},ND=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.giftCards.create(n),T(r,Bs.lists(),e))},FD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.giftCards.update(e,i),T(n,[Bs.lists(),Bs.detail(e)],t))},Ok="admin_inventory_items",vn=ee(Ok),qD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(vn.list(e),()=>r.admin.inventoryItems.list(e),{...t});return{...n,...i}},ID=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.updateLocationLevel(e,i.stockLocationId,{incoming_quantity:i.incoming_quantity,stocked_quantity:i.stocked_quantity}),T(n,[vn.detail(e),vn.lists()],t))},QD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.deleteLocationLevel(e,i),T(n,[vn.detail(e),vn.lists()],t))},UD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.createLocationLevel(e,i),T(n,[vn.detail(e),vn.lists()],t))},bk="admin_invites",A0=ee(bk),jD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.invites.accept(n),T(r,A0.lists(),e))},zD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.invites.create(n),T(r,A0.lists(),e))},xk="admin_notes",Uo=ee(xk),BD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Uo.list(e),()=>r.admin.notes.list(e),t);return{...n,...i}},HD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.notes.create(n),T(r,Uo.lists(),e))},WD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.notes.delete(e),T(n,[Uo.detail(e),Uo.lists()],t))},Rk="admin_notifications",md=ee(Rk),GD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(md.list(e),()=>r.admin.notifications.list(e),t);return{...n,...i}},KD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.notifications.resend(e,i),T(n,[md.lists(),md.detail(e)],t))},VD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.update(e,i),T(n,[ne.lists(),ne.detail(e)],t))},XD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orders.cancel(e),T(n,[ne.lists(),ne.detail(e)],t))},YD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orders.capturePayment(e),T(n,[ne.lists(),ne.detail(e)],t))},JD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.refundPayment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},ZD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createFulfillment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},eA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelFulfillment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},tA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createShipment(e,i),T(n,ne.detail(e),t))},rA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.requestReturn(e,i),T(n,ne.detail(e),t))},Tk="admin_order_edits",Ce=ee(Tk),nA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Ce.detail(e),()=>n.admin.orderEdits.retrieve(e,t),r);return{...i,...s}},iA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ce.list(e),()=>r.admin.orderEdits.list(e),t);return{...n,...i}},sA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.orderEdits.create(n),T(r,[Ce.lists(),ne.details()],e))},aA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.delete(e),T(n,[Ce.detail(e),Ce.lists(),ne.details()],t))},oA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.orderEdits.deleteItemChange(e,t),T(i,[Ce.detail(e),Ce.lists()],r))},lA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(s=>n.admin.orderEdits.updateLineItem(e,t,s),T(i,[Ce.detail(e),Ce.lists()],r))},uA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.orderEdits.removeLineItem(e,t),T(i,[Ce.detail(e),Ce.lists()],r))},cA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orderEdits.update(e,i),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},dA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orderEdits.addLineItem(e,i),T(n,[Ce.lists(),Ce.detail(e)],t))},fA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.requestConfirmation(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},hA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.cancel(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},pA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.confirm(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},Mk="admin_price_lists",Dt={...ee(Mk),detailProducts(e,t){return[...this.detail(e),"products",{...t||{}}]}},mA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Dt.list(e),()=>r.admin.priceLists.list(e),t);return{...n,...i}},vA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Dt.detailProducts(e,t),()=>n.admin.priceLists.listProducts(e,t),r);return{...i,...s}},yA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Dt.detail(e),()=>r.admin.priceLists.retrieve(e),t);return{...n,...i}},_k="admin_products",Pe=ee(_k),gA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pe.list(e),()=>r.admin.products.list(e),t);return{...n,...i}},SA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pe.detail(e),()=>r.admin.products.retrieve(e),t);return{...n,...i}},EA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.products.create(n),T(r,Pe.lists(),e))},wA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.update(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},CA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.products.delete(e),T(n,[Pe.lists(),Pe.detail(e)],t))},PA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.createVariant(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},$A=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({variant_id:i,...s})=>r.admin.products.updateVariant(e,i,s),T(n,[Pe.lists(),Pe.detail(e)],t))},OA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.deleteVariant(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},bA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.addOption(e,i),T(n,Pe.detail(e),t))},xA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({option_id:i,...s})=>r.admin.products.updateOption(e,i,s),T(n,Pe.detail(e),t))},RA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.deleteOption(e,i),T(n,Pe.detail(e),t))},kk="admin_variants",Kf=ee(kk),TA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Kf.list(e),()=>r.admin.variants.list(e),t);return{...n,...i}},MA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Kf.detail(e),()=>n.admin.variants.retrieve(e,t),r);return{...i,...s}},_A=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Kf.detail(e),()=>r.admin.variants.getInventory(e),t);return{...n,...i}},kA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.priceLists.create(n),T(r,Dt.lists(),e))},DA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.priceLists.update(e,i),T(n,[Dt.detail(e),Dt.lists(),Dt.detailProducts(e)],t))},AA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.priceLists.delete(e),T(n,[Dt.detail(e),Dt.lists()],t))},LA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.priceLists.deleteProductPrices(e,t),T(i,[Dt.detail(e),Dt.lists(),Pe.detail(t)],r))},Dk="admin_product_tags",Ak=ee(Dk),NA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ak.list(e),()=>r.admin.productTags.list(e),t);return{...n,...i}},Lk="admin_product_types",Nk=ee(Lk),FA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Nk.list(e),()=>r.admin.productTypes.list(e),t);return{...n,...i}},Fk="product_categories",Pi=ee(Fk),qA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pi.list(e),()=>r.admin.productCategories.list(e),t);return{...n,...i}},IA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.productCategories.create(n),T(r,[Pi.list(),Pe.details()],e))},QA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.productCategories.update(e,i),T(n,[Pi.lists(),Pi.detail(e),Pe.details()],t))},UA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.productCategories.delete(e),T(n,[Pi.lists(),Pi.detail(e)],t))},qk="admin_publishable_api_keys",Et={...ee(qk),detailSalesChannels(e,t){return[...this.detail(e),"sales_channels",{...t||{}}]}},jA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Et.list(e),()=>r.admin.publishableApiKeys.list(e),t);return{...n,...i}},zA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Et.detailSalesChannels(e,t),()=>n.admin.publishableApiKeys.listSalesChannels(e,t),r);return{...i,...s}},BA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.publishableApiKeys.create(n),T(r,[Et.lists()],e))},HA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.update(e,i),T(n,[Et.lists(),Et.detail(e),Et.details()],t))},WA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.publishableApiKeys.delete(e),T(n,[Et.detail(e),Et.lists()],t))},GA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.publishableApiKeys.revoke(e),T(n,[Et.lists(),Et.detail(e)],t))},KA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.addSalesChannelsBatch(e,i),T(n,[Et.detailSalesChannels(e)],t))},VA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.deleteSalesChannelsBatch(e,i),T(n,[Et.detailSalesChannels(e)],t))},Ik="admin_regions",qr=ee(Ik),XA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.list(e),()=>r.admin.regions.list(e),t);return{...n,...i}},YA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.detail(e),()=>r.admin.regions.retrieve(e),t);return{...n,...i}},JA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.detail(`${e}_fullfillment-options`),()=>r.admin.regions.retrieveFulfillmentOptions(e),t);return{...n,...i}},ZA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.regions.create(n),T(r,qr.lists(),e))},eL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.regions.update(e,i),T(n,[qr.lists(),qr.detail(e)],t))},tL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.regions.delete(e),T(n,[qr.lists(),qr.detail(e)],t))},Qk="admin_return_reasons",$i=ee(Qk),rL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery($i.lists(),()=>t.admin.returnReasons.list(),e);return{...r,...n}},nL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.returnReasons.create(n),T(r,$i.lists(),e))},iL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.returnReasons.update(e,i),T(n,[$i.detail(e),$i.lists()],t))},sL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.returnReasons.delete(e),T(n,[$i.detail(e),$i.lists()],t))},Uk="admin_returns",jo=ee(Uk),aL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.returns.receive(e,i),T(n,[jo.detail(e),jo.list()],t))},oL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.returns.cancel(e),T(n,[jo.detail(e),jo.list()],t))},jk="admin_stock_locations",Oi=ee(jk),lL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Oi.list(e),()=>r.admin.reservations.list(e),{...t});return{...n,...i}},uL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.reservations.create(n),T(r,[Oi.lists()],e))},cL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.reservations.update(e,i),T(n,[Oi.lists(),Oi.detail(e)],t))},dL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.reservations.delete(e),T(n,[Oi.lists(),Oi.detail(e)],t))},zk="admin_sales_channels",nt=ee(zk),fL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(nt.list(e),()=>r.admin.salesChannels.list(e),t);return{...n,...i}},Bk="admin_stock_locations",Ir=ee(Bk),hL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ir.list(e),()=>r.admin.stockLocations.list(e),t);return{...n,...i}},pL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.stockLocations.create(n),T(r,[Ir.lists()],e))},mL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.stockLocations.update(e,i),T(n,[Ir.lists(),Ir.detail(e)],t))},vL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.stockLocations.delete(e),T(n,[Ir.lists(),Ir.detail(e)],t))},yL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.salesChannels.create(n),T(r,[nt.list()],e))},gL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.update(e,i),T(n,[nt.lists(),nt.detail(e)],t))},SL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.salesChannels.delete(e),T(n,[nt.lists(),nt.detail(e)],t))},EL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.removeProducts(e,i),T(n,[nt.lists(),nt.detail(e),Pe.list({sales_channel_id:[e]})],t))},wL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.addProducts(e,i),T(n,[nt.lists(),nt.detail(e),Pe.list({sales_channel_id:[e]})],t))},CL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(({sales_channel_id:n,location_id:i})=>t.admin.salesChannels.addLocation(n,{location_id:i}),T(r,[nt.lists(),nt.details(),Ir.all],e))},PL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(({sales_channel_id:n,location_id:i})=>t.admin.salesChannels.removeLocation(n,{location_id:i}),T(r,[nt.lists(),nt.details(),Ir.all],e))},Hk="admin_shipping_options",yn=ee(Hk),$L=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(yn.list(e),()=>r.admin.shippingOptions.list(e),t);return{...n,...i}},OL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(yn.detail(e),()=>r.admin.shippingOptions.retrieve(e),t);return{...n,...i}},bL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.shippingOptions.create(n),T(r,yn.lists(),e))},xL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.shippingOptions.update(e,i),T(n,[yn.lists(),yn.detail(e)],t))},RL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.shippingOptions.delete(e),T(n,[yn.lists(),yn.detail(e)],t))},Wk="admin_shippingProfiles",Gk=ee(Wk),TL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Gk.lists(),()=>t.admin.shippingProfiles.list(),e);return{...r,...n}},Kk="admin_store",Vf=ee(Kk),ML=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Vf.detail("tax_providers"),()=>t.admin.store.listTaxProviders(),e);return{...r,...n}},Vk=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Vf.details(),()=>t.admin.store.retrieve(),e);return{...r,...n}},_L=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.store.update(n),T(r,Vf.details(),e))},Xk="admin_swaps",Cl=ee(Xk),kL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createSwap(e,i),T(n,[ne.detail(e),Cl.lists()],t))},DL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelSwap(e,i),T(n,[ne.detail(e),Cl.lists()],t))},AL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,...s})=>r.admin.orders.fulfillSwap(e,i,s),T(n,[ne.detail(e),Cl.lists()],t))},LL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,...s})=>r.admin.orders.createSwapShipment(e,i,s),T(n,ne.detail(e),t))},NL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,fulfillment_id:s})=>r.admin.orders.cancelSwapFulfillment(e,i,s),T(n,[ne.detail(e),Cl.lists()],t))},Yk="admin_tax_rates",gn=ee(Yk),FL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(gn.list(e),()=>r.admin.taxRates.list(e),t);return{...n,...i}},qL=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(gn.detail(e),()=>n.admin.taxRates.retrieve(e,t),r);return{...i,...s}},IL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.taxRates.create(n),T(r,gn.lists(),e))},QL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.taxRates.update(e,i),T(n,[gn.lists(),gn.detail(e)],t))},UL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.taxRates.delete(e),T(n,[gn.lists(),gn.detail(e)],t))},jL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.create(n),T(r,void 0,e))},zL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.createProtected(n),T(r,void 0,e))},BL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.getPresignedDownloadUrl(n),T(r,void 0,e))},HL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.delete(n),T(r,void 0,e))},Jk="admin_users",L0=ee(Jk),WL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(L0.lists(),()=>t.admin.users.list(),e);return{...r,...n}},GL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(L0.detail(e),()=>r.admin.users.retrieve(e),t);return{...n,...i}},KL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.users.update(e,i),T(n,[Ci.lists(),Ci.detail(e)],t))},VL=e=>{let{client:t}=C();return p.useMutation(r=>t.admin.users.resetPassword(r),e)},XL=e=>{let{client:t}=C();return p.useMutation(r=>t.admin.users.sendResetPasswordToken(r),e)},Zk=(e=>(e.PRODUCT_CATEGORIES="product_categories",e))(Zk||{});const e2={featureToggleList:{},isFeatureEnabled:function(e){return!!this.featureToggleList[e]}},N0=Te.createContext(e2),t2=({children:e})=>{const{user:t,isLoading:r}=pk(),[n,i]=g.useState([]),{store:s,isFetching:a}=Vk();g.useEffect(()=>{var u;a||!s||!t&&!r||!((u=s.feature_flags)!=null&&u.length)||i([...s.feature_flags,...s.modules.map(d=>({key:d.module,value:!0}))])},[a,s,t,r]);const o=n.reduce((u,d)=>({...u,[d.key]:d.value}),{}),l=u=>!!o[u];return D(N0.Provider,{value:{isFeatureEnabled:l,featureToggleList:o},children:e})},YL=()=>{const e=g.useContext(N0);if(!e)throw new Error("useFeatureFlag must be used within a FeatureFlagProvider");return e},r2="/",n2=new p.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:9e4,retry:1}}}),i2=({children:e})=>D(fk,{queryClientProviderProps:{client:n2},baseUrl:r2,children:e}),F0=Te.createContext(null),q0=new Date(new Date().setMonth(new Date().getMonth()-1));q0.setHours(0,0,0,0);const us=[2,5,10,15,30,60],s2=e=>{let t=Date.now();return{current:e,register(){t=Date.now();const r=us.findIndex(n=>n===this.current);this.current=us[Math.min(us.length-1,r+1)]},isEnabled(){return Date.now()>=t},reset(){t=Date.now(),this.current=us[0]}}},is=s2(us[0]),a2=({children:e})=>{const{batch_jobs:t,isError:r,refetch:n}=vk({created_at:{gte:q0},failed_at:null},{refetchOnWindowFocus:!0,refetchInterval:is.current*1e3,enabled:is.isEnabled(),onSettled:is.register.bind(is)}),i=g.useCallback(async()=>{is.reset(),await n()},[n]),s=g.useMemo(()=>({batchJobs:t,hasPollingError:r,resetInterval:i,refetch:n}),[n,t,r,i]);return D(F0.Provider,{value:s,children:e})},JL=()=>{const e=Te.useContext(F0);if(!e)throw new Error("usePolling must be used within a PollingProvider");return e},o2=({children:e})=>D(i2,{children:D(t2,{children:D(a2,{children:D(KP,{children:D(BP,{children:e})})})})});class l2{render(){return D(Te.StrictMode,{children:D(o2,{children:D(lC,{})})})}}async function u2(){const e=new l2;Vu.createRoot(document.getElementById("root")).render(e.render())}u2();export{dC as $,uD as A,Mo as B,hD as C,tD as D,J2 as E,zc as F,fD as G,Ti as H,YL as I,p as J,QP as K,Jw as L,gt as M,nD as N,Js as O,mC as P,gA as Q,Te as R,pg as S,pk as T,pD as U,ki as V,rD as W,ai as X,iD as Y,_i as Z,qe as _,D as a,sA as a$,WL as a0,Vk as a1,su as a2,ll as a3,PP as a4,SP as a5,yf as a6,qC as a7,TC as a8,bC as a9,AD as aA,ND as aB,EA as aC,qD as aD,MA as aE,ID as aF,hL as aG,fL as aH,pL as aI,CL as aJ,mL as aK,PL as aL,vL as aM,iA as aN,_A as aO,ZD as aP,AL as aQ,Y2 as aR,JD as aS,tA as aT,LL as aU,Z2 as aV,dA as aW,uA as aX,lA as aY,oA as aZ,TA as a_,Ag as aa,vE as ab,hn as ac,Kc as ad,$D as ae,OD as af,bD as ag,gD as ah,Ng as ai,eD as aj,NA as ak,FA as al,HP as am,CD as an,PD as ao,SD as ap,wD as aq,xD as ar,XA as as,LD as at,FD as au,wA as av,PA as aw,OA as ax,$A as ay,CA as az,c2 as b,RA as b$,fA as b0,cA as b1,aA as b2,uL as b3,C as b4,cL as b5,dL as b6,lL as b7,g2 as b8,rL as b9,ED as bA,MD as bB,S2 as bC,TD as bD,DD as bE,kD as bF,_D as bG,kA as bH,DA as bI,vA as bJ,AA as bK,HL as bL,jL as bM,H2 as bN,W2 as bO,z2 as bP,LA as bQ,yA as bR,mA as bS,SA as bT,qA as bU,uC as bV,Zk as bW,QD as bX,UD as bY,xA as bZ,bA as b_,YA as ba,$L as bb,V2 as bc,rA as bd,K2 as be,kL as bf,BD as bg,GD as bh,aL as bi,oL as bj,X2 as bk,DL as bl,GL as bm,WD as bn,KD as bo,nA as bp,hA as bq,pA as br,HD as bs,YD as bt,XD as bu,JL as bv,B2 as bw,RD as bx,OL as by,WP as bz,ct as c,zL as c0,jA as c1,GA as c2,WA as c3,HA as c4,KA as c5,zA as c6,VA as c7,BA as c8,gL as c9,h2 as cA,zD as cB,IA as cC,Pi as cD,UA as cE,QA as cF,f2 as cG,wC as cH,mg as cI,j2 as cJ,yC as cK,FP as cL,m2 as cM,qP as cN,IP as cO,BL as cP,v2 as cQ,y2 as cR,jD as cS,U2 as cT,XL as cU,VL as cV,db as cW,yd as cX,yL as ca,EL as cb,wL as cc,SL as cd,aD as ce,Vf as cf,_L as cg,sD as ch,KL as ci,eL as cj,tL as ck,TL as cl,JA as cm,xL as cn,RL as co,bL as cp,ZA as cq,nL as cr,sL as cs,iL as ct,QL as cu,qL as cv,IL as cw,ML as cx,UL as cy,FL as cz,r2 as d,d2 as e,Qw as f,vd as g,Xr as h,yE as i,ot as j,eA as k,ro as l,ui as m,cl as n,VD as o,vD as p,G2 as q,g as r,NL as s,lD as t,dg as u,mD as v,yD as w,cD as x,dD as y,oD as z};