@neosianexus/super-tebex 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,22 +1,22 @@
1
- var E4=Object.create;var{getPrototypeOf:q4,defineProperty:J0,getOwnPropertyNames:U1,getOwnPropertyDescriptor:w4}=Object,J1=Object.prototype.hasOwnProperty;var K0=(B,G,Y)=>{Y=B!=null?E4(q4(B)):{};let X=G||!B||!B.__esModule?J0(Y,"default",{value:B,enumerable:!0}):Y;for(let $ of U1(B))if(!J1.call(X,$))J0(X,$,{get:()=>B[$],enumerable:!0});return X},W1=new WeakMap,F4=(B)=>{var G=W1.get(B),Y;if(G)return G;if(G=J0({},"__esModule",{value:!0}),B&&typeof B==="object"||typeof B==="function")U1(B).map((X)=>!J1.call(G,X)&&J0(G,X,{get:()=>B[X],enumerable:!(Y=w4(B,X))||Y.enumerable}));return W1.set(B,G),G},b0=(B,G)=>()=>(G||B((G={exports:{}}).exports,G),G.exports);var K1=(B,G)=>{for(var Y in G)J0(B,Y,{get:G[Y],enumerable:!0,configurable:!0,set:(X)=>G[Y]=()=>X})};var e1=b0((C,e0)=>{(function(){function B(Z,U){Object.defineProperty(X.prototype,Z,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function G(Z){if(Z===null||typeof Z!=="object")return null;return Z=sB&&Z[sB]||Z["@@iterator"],typeof Z==="function"?Z:null}function Y(Z,U){Z=(Z=Z.constructor)&&(Z.displayName||Z.name)||"ReactClass";var N=Z+"."+U;oB[N]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",U,Z),oB[N]=!0)}function X(Z,U,N){this.props=Z,this.context=U,this.refs=KB,this.updater=N||aB}function $(){}function z(Z,U,N){this.props=Z,this.context=U,this.refs=KB,this.updater=N||aB}function Q(Z){return""+Z}function H(Z){try{Q(Z);var U=!1}catch(F){U=!0}if(U){U=console;var N=U.error,V=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return N.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),Q(Z)}}function P(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===H4?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case WB:return"Fragment";case pB:return"Profiler";case cB:return"StrictMode";case iB:return"Suspense";case K4:return"SuspenseList";case P4:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case lB:return"Portal";case nB:return(Z.displayName||"Context")+".Provider";case UB:return(Z._context.displayName||"Context")+".Consumer";case rB:var U=Z.render;return Z=Z.displayName,Z||(Z=U.displayName||U.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case JB:return U=Z.displayName||null,U!==null?U:P(Z.type)||"Memo";case T0:U=Z._payload,Z=Z._init;try{return P(Z(U))}catch(N){}}return null}function K(Z){if(Z===WB)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===T0)return"<...>";try{var U=P(Z);return U?"<"+U+">":"<...>"}catch(N){return"<...>"}}function L(){var Z=S.A;return Z===null?null:Z.getOwner()}function J(){return Error("react-stack-top-frame")}function M(Z){if(j0.call(Z,"key")){var U=Object.getOwnPropertyDescriptor(Z,"key").get;if(U&&U.isReactWarning)return!1}return Z.key!==void 0}function I(Z,U){function N(){G1||(G1=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",U))}N.isReactWarning=!0,Object.defineProperty(Z,"key",{get:N,configurable:!0})}function E(){var Z=P(this.type);return X1[Z]||(X1[Z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Z=this.props.ref,Z!==void 0?Z:null}function q(Z,U,N,V,F,T,A,_){return N=T.ref,Z={$$typeof:MB,type:Z,key:U,props:T,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:E}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function w(Z,U){return U=q(Z.type,U,void 0,void 0,Z._owner,Z.props,Z._debugStack,Z._debugTask),Z._store&&(U._store.validated=Z._store.validated),U}function R(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===MB}function x(Z){var U={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(N){return U[N]})}function j(Z,U){return typeof Z==="object"&&Z!==null&&Z.key!=null?(H(Z.key),x(""+Z.key)):U.toString(36)}function h(){}function f(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(h,h):(Z.status="pending",Z.then(function(U){Z.status==="pending"&&(Z.status="fulfilled",Z.value=U)},function(U){Z.status==="pending"&&(Z.status="rejected",Z.reason=U)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function g(Z,U,N,V,F){var T=typeof Z;if(T==="undefined"||T==="boolean")Z=null;var A=!1;if(Z===null)A=!0;else switch(T){case"bigint":case"string":case"number":A=!0;break;case"object":switch(Z.$$typeof){case MB:case lB:A=!0;break;case T0:return A=Z._init,g(A(Z._payload),U,N,V,F)}}if(A){A=Z,F=F(A);var _=V===""?"."+j(A,0):V;return eB(F)?(N="",_!=null&&(N=_.replace($1,"$&/")+"/"),g(F,U,N,"",function(t){return t})):F!=null&&(R(F)&&(F.key!=null&&(A&&A.key===F.key||H(F.key)),N=w(F,N+(F.key==null||A&&A.key===F.key?"":(""+F.key).replace($1,"$&/")+"/")+_),V!==""&&A!=null&&R(A)&&A.key==null&&A._store&&!A._store.validated&&(N._store.validated=2),F=N),U.push(F)),1}if(A=0,_=V===""?".":V+":",eB(Z))for(var O=0;O<Z.length;O++)V=Z[O],T=_+j(V,O),A+=g(V,U,N,T,F);else if(O=G(Z),typeof O==="function")for(O===Z.entries&&(Z1||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Z1=!0),Z=O.call(Z),O=0;!(V=Z.next()).done;)V=V.value,T=_+j(V,O++),A+=g(V,U,N,T,F);else if(T==="object"){if(typeof Z.then==="function")return g(f(Z),U,N,V,F);throw U=String(Z),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return A}function l(Z,U,N){if(Z==null)return Z;var V=[],F=0;return g(Z,V,"","",function(T){return U.call(N,T,F++)}),V}function Y0(Z){if(Z._status===-1){var U=Z._result;U=U(),U.then(function(N){if(Z._status===0||Z._status===-1)Z._status=1,Z._result=N},function(N){if(Z._status===0||Z._status===-1)Z._status=2,Z._result=N}),Z._status===-1&&(Z._status=0,Z._result=U)}if(Z._status===1)return U=Z._result,U===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var w5=Object.create;var{getPrototypeOf:F5,defineProperty:V0,getOwnPropertyNames:U4,getOwnPropertyDescriptor:C5}=Object,P4=Object.prototype.hasOwnProperty;var W0=(B,G,Y)=>{Y=B!=null?w5(F5(B)):{};let X=G||!B||!B.__esModule?V0(Y,"default",{value:B,enumerable:!0}):Y;for(let $ of U4(B))if(!P4.call(X,$))V0(X,$,{get:()=>B[$],enumerable:!0});return X},K4=new WeakMap,D5=(B)=>{var G=K4.get(B),Y;if(G)return G;if(G=V0({},"__esModule",{value:!0}),B&&typeof B==="object"||typeof B==="function")U4(B).map((X)=>!P4.call(G,X)&&V0(G,X,{get:()=>B[X],enumerable:!(Y=C5(B,X))||Y.enumerable}));return K4.set(B,G),G},g0=(B,G)=>()=>(G||B((G={exports:{}}).exports,G),G.exports);var H4=(B,G)=>{for(var Y in G)V0(B,Y,{get:G[Y],enumerable:!0,configurable:!0,set:(X)=>G[Y]=()=>X})};var G5=g0((O,Z1)=>{(function(){function B(Z,J){Object.defineProperty(X.prototype,Z,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",J[0],J[1])}})}function G(Z){if(Z===null||typeof Z!=="object")return null;return Z=a1&&Z[a1]||Z["@@iterator"],typeof Z==="function"?Z:null}function Y(Z,J){Z=(Z=Z.constructor)&&(Z.displayName||Z.name)||"ReactClass";var V=Z+"."+J;t1[V]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",J,Z),t1[V]=!0)}function X(Z,J,V){this.props=Z,this.context=J,this.refs=L1,this.updater=V||e1}function $(){}function z(Z,J,V){this.props=Z,this.context=J,this.refs=L1,this.updater=V||e1}function Q(Z){return""+Z}function P(Z){try{Q(Z);var J=!1}catch(F){J=!0}if(J){J=console;var V=J.error,I=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return V.call(J,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I),Q(Z)}}function H(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===N5?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case U1:return"Fragment";case r1:return"Profiler";case n1:return"StrictMode";case o1:return"Suspense";case H5:return"SuspenseList";case L5:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case c1:return"Portal";case i1:return(Z.displayName||"Context")+".Provider";case P1:return(Z._context.displayName||"Context")+".Consumer";case s1:var J=Z.render;return Z=Z.displayName,Z||(Z=J.displayName||J.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case H1:return J=Z.displayName||null,J!==null?J:H(Z.type)||"Memo";case v0:J=Z._payload,Z=Z._init;try{return H(Z(J))}catch(V){}}return null}function U(Z){if(Z===U1)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===v0)return"<...>";try{var J=H(Z);return J?"<"+J+">":"<...>"}catch(V){return"<...>"}}function L(){var Z=S.A;return Z===null?null:Z.getOwner()}function K(){return Error("react-stack-top-frame")}function M(Z){if(y0.call(Z,"key")){var J=Object.getOwnPropertyDescriptor(Z,"key").get;if(J&&J.isReactWarning)return!1}return Z.key!==void 0}function N(Z,J){function V(){X4||(X4=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",J))}V.isReactWarning=!0,Object.defineProperty(Z,"key",{get:V,configurable:!0})}function E(){var Z=H(this.type);return $4[Z]||($4[Z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Z=this.props.ref,Z!==void 0?Z:null}function q(Z,J,V,I,F,R,x,_){return V=R.ref,Z={$$typeof:K1,type:Z,key:J,props:R,_owner:F},(V!==void 0?V:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:E}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function w(Z,J){return J=q(Z.type,J,void 0,void 0,Z._owner,Z.props,Z._debugStack,Z._debugTask),Z._store&&(J._store.validated=Z._store.validated),J}function j(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===K1}function C(Z){var J={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(V){return J[V]})}function A(Z,J){return typeof Z==="object"&&Z!==null&&Z.key!=null?(P(Z.key),C(""+Z.key)):J.toString(36)}function y(){}function f(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(y,y):(Z.status="pending",Z.then(function(J){Z.status==="pending"&&(Z.status="fulfilled",Z.value=J)},function(J){Z.status==="pending"&&(Z.status="rejected",Z.reason=J)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function k(Z,J,V,I,F){var R=typeof Z;if(R==="undefined"||R==="boolean")Z=null;var x=!1;if(Z===null)x=!0;else switch(R){case"bigint":case"string":case"number":x=!0;break;case"object":switch(Z.$$typeof){case K1:case c1:x=!0;break;case v0:return x=Z._init,k(x(Z._payload),J,V,I,F)}}if(x){x=Z,F=F(x);var _=I===""?"."+A(x,0):I;return G4(F)?(V="",_!=null&&(V=_.replace(z4,"$&/")+"/"),k(F,J,V,"",function(B0){return B0})):F!=null&&(j(F)&&(F.key!=null&&(x&&x.key===F.key||P(F.key)),V=w(F,V+(F.key==null||x&&x.key===F.key?"":(""+F.key).replace(z4,"$&/")+"/")+_),I!==""&&x!=null&&j(x)&&x.key==null&&x._store&&!x._store.validated&&(V._store.validated=2),F=V),J.push(F)),1}if(x=0,_=I===""?".":I+":",G4(Z))for(var T=0;T<Z.length;T++)I=Z[T],R=_+A(I,T),x+=k(I,J,V,R,F);else if(T=G(Z),typeof T==="function")for(T===Z.entries&&(Q4||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Q4=!0),Z=T.call(Z),T=0;!(I=Z.next()).done;)I=I.value,R=_+A(I,T++),x+=k(I,J,V,R,F);else if(R==="object"){if(typeof Z.then==="function")return k(f(Z),J,V,I,F);throw J=String(Z),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return x}function d(Z,J,V){if(Z==null)return Z;var I=[],F=0;return k(Z,I,"","",function(R){return J.call(V,R,F++)}),I}function e(Z){if(Z._status===-1){var J=Z._result;J=J(),J.then(function(V){if(Z._status===0||Z._status===-1)Z._status=1,Z._result=V},function(V){if(Z._status===0||Z._status===-1)Z._status=2,Z._result=V}),Z._status===-1&&(Z._status=0,Z._result=J)}if(Z._status===1)return J=Z._result,J===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,U),"default"in U||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,J),"default"in J||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,U),U.default;throw Z._result}function k(){var Z=S.H;return Z===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,J),J.default;throw Z._result}function v(){var Z=S.H;return Z===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),Z}function J4(){}function x0(Z){if(_0===null)try{var U=("require"+Math.random()).slice(0,7);_0=(e0&&e0[U]).call(e0,"timers").setImmediate}catch(N){_0=function(V){z1===!1&&(z1=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var F=new MessageChannel;F.port1.onmessage=V,F.port2.postMessage(void 0)}}return _0(Z)}function U0(Z){return 1<Z.length&&typeof AggregateError==="function"?new AggregateError(Z):Z[0]}function S0(Z,U){U!==k0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),k0=U}function QB(Z,U,N){var V=S.actQueue;if(V!==null)if(V.length!==0)try{zB(V),x0(function(){return QB(Z,U,N)});return}catch(F){S.thrownErrors.push(F)}else S.actQueue=null;0<S.thrownErrors.length?(V=U0(S.thrownErrors),S.thrownErrors.length=0,N(V)):U(Z)}function zB(Z){if(!PB){PB=!0;var U=0;try{for(;U<Z.length;U++){var N=Z[U];do{S.didUsePromise=!1;var V=N(!1);if(V!==null){if(S.didUsePromise){Z[U]=N,Z.splice(0,U);return}N=V}else break}while(1)}Z.length=0}catch(F){Z.splice(0,U+1),S.thrownErrors.push(F)}finally{PB=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var MB=Symbol.for("react.transitional.element"),lB=Symbol.for("react.portal"),WB=Symbol.for("react.fragment"),cB=Symbol.for("react.strict_mode"),pB=Symbol.for("react.profiler");Symbol.for("react.provider");var UB=Symbol.for("react.consumer"),nB=Symbol.for("react.context"),rB=Symbol.for("react.forward_ref"),iB=Symbol.for("react.suspense"),K4=Symbol.for("react.suspense_list"),JB=Symbol.for("react.memo"),T0=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),sB=Symbol.iterator,oB={},aB={isMounted:function(){return!1},enqueueForceUpdate:function(Z){Y(Z,"forceUpdate")},enqueueReplaceState:function(Z){Y(Z,"replaceState")},enqueueSetState:function(Z){Y(Z,"setState")}},tB=Object.assign,KB={};Object.freeze(KB),X.prototype.isReactComponent={},X.prototype.setState=function(Z,U){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,U,"setState")},X.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};var c={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},R0;for(R0 in c)c.hasOwnProperty(R0)&&B(R0,c[R0]);$.prototype=X.prototype,c=z.prototype=new $,c.constructor=z,tB(c,X.prototype),c.isPureReactComponent=!0;var eB=Array.isArray,H4=Symbol.for("react.client.reference"),S={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},j0=Object.prototype.hasOwnProperty,B1=console.createTask?console.createTask:function(){return null};c={"react-stack-bottom-frame":function(Z){return Z()}};var G1,Y1,X1={},L4=c["react-stack-bottom-frame"].bind(c,J)(),I4=B1(K(J)),Z1=!1,$1=/\/+/g,Q1=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},z1=!1,_0=null,k0=0,v0=!1,PB=!1,M1=typeof queueMicrotask==="function"?function(Z){queueMicrotask(function(){return queueMicrotask(Z)})}:x0;c=Object.freeze({__proto__:null,c:function(Z){return k().useMemoCache(Z)}}),C.Children={map:l,forEach:function(Z,U,N){l(Z,function(){U.apply(this,arguments)},N)},count:function(Z){var U=0;return l(Z,function(){U++}),U},toArray:function(Z){return l(Z,function(U){return U})||[]},only:function(Z){if(!R(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},C.Component=X,C.Fragment=WB,C.Profiler=pB,C.PureComponent=z,C.StrictMode=cB,C.Suspense=iB,C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,C.__COMPILER_RUNTIME=c,C.act=function(Z){var U=S.actQueue,N=k0;k0++;var V=S.actQueue=U!==null?U:[],F=!1;try{var T=Z()}catch(O){S.thrownErrors.push(O)}if(0<S.thrownErrors.length)throw S0(U,N),Z=U0(S.thrownErrors),S.thrownErrors.length=0,Z;if(T!==null&&typeof T==="object"&&typeof T.then==="function"){var A=T;return M1(function(){F||v0||(v0=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(O,t){F=!0,A.then(function(X0){if(S0(U,N),N===0){try{zB(V),x0(function(){return QB(X0,O,t)})}catch(V4){S.thrownErrors.push(V4)}if(0<S.thrownErrors.length){var N4=U0(S.thrownErrors);S.thrownErrors.length=0,t(N4)}}else O(X0)},function(X0){S0(U,N),0<S.thrownErrors.length?(X0=U0(S.thrownErrors),S.thrownErrors.length=0,t(X0)):t(X0)})}}}var _=T;if(S0(U,N),N===0&&(zB(V),V.length!==0&&M1(function(){F||v0||(v0=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),S.actQueue=null),0<S.thrownErrors.length)throw Z=U0(S.thrownErrors),S.thrownErrors.length=0,Z;return{then:function(O,t){F=!0,N===0?(S.actQueue=V,x0(function(){return QB(_,O,t)})):O(_)}}},C.cache=function(Z){return function(){return Z.apply(null,arguments)}},C.captureOwnerStack=function(){var Z=S.getCurrentStack;return Z===null?null:Z()},C.cloneElement=function(Z,U,N){if(Z===null||Z===void 0)throw Error("The argument must be a React element, but you passed "+Z+".");var V=tB({},Z.props),F=Z.key,T=Z._owner;if(U!=null){var A;B:{if(j0.call(U,"ref")&&(A=Object.getOwnPropertyDescriptor(U,"ref").get)&&A.isReactWarning){A=!1;break B}A=U.ref!==void 0}A&&(T=L()),M(U)&&(H(U.key),F=""+U.key);for(_ in U)!j0.call(U,_)||_==="key"||_==="__self"||_==="__source"||_==="ref"&&U.ref===void 0||(V[_]=U[_])}var _=arguments.length-2;if(_===1)V.children=N;else if(1<_){A=Array(_);for(var O=0;O<_;O++)A[O]=arguments[O+2];V.children=A}V=q(Z.type,F,void 0,void 0,T,V,Z._debugStack,Z._debugTask);for(F=2;F<arguments.length;F++)T=arguments[F],R(T)&&T._store&&(T._store.validated=1);return V},C.createContext=function(Z){return Z={$$typeof:nB,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:UB,_context:Z},Z._currentRenderer=null,Z._currentRenderer2=null,Z},C.createElement=function(Z,U,N){for(var V=2;V<arguments.length;V++){var F=arguments[V];R(F)&&F._store&&(F._store.validated=1)}if(V={},F=null,U!=null)for(O in Y1||!("__self"in U)||"key"in U||(Y1=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(U)&&(H(U.key),F=""+U.key),U)j0.call(U,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(V[O]=U[O]);var T=arguments.length-2;if(T===1)V.children=N;else if(1<T){for(var A=Array(T),_=0;_<T;_++)A[_]=arguments[_+2];Object.freeze&&Object.freeze(A),V.children=A}if(Z&&Z.defaultProps)for(O in T=Z.defaultProps,T)V[O]===void 0&&(V[O]=T[O]);F&&I(V,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z);var O=1e4>S.recentlyCreatedOwnerStacks++;return q(Z,F,void 0,void 0,L(),V,O?Error("react-stack-top-frame"):L4,O?B1(K(Z)):I4)},C.createRef=function(){var Z={current:null};return Object.seal(Z),Z},C.forwardRef=function(Z){Z!=null&&Z.$$typeof===JB?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!=="function"?console.error("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&Z.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:rB,render:Z},N;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(V){N=V,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:V}),Z.displayName=V)}}),U},C.isValidElement=R,C.lazy=function(Z){return{$$typeof:T0,_payload:{_status:-1,_result:Z},_init:Y0}},C.memo=function(Z,U){Z==null&&console.error("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z),U={$$typeof:JB,type:Z,compare:U===void 0?null:U};var N;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(V){N=V,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:V}),Z.displayName=V)}}),U},C.startTransition=function(Z){var U=S.T,N={};S.T=N,N._updatedFibers=new Set;try{var V=Z(),F=S.S;F!==null&&F(N,V),typeof V==="object"&&V!==null&&typeof V.then==="function"&&V.then(J4,Q1)}catch(T){Q1(T)}finally{U===null&&N._updatedFibers&&(Z=N._updatedFibers.size,N._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),S.T=U}},C.unstable_useCacheRefresh=function(){return k().useCacheRefresh()},C.use=function(Z){return k().use(Z)},C.useActionState=function(Z,U,N){return k().useActionState(Z,U,N)},C.useCallback=function(Z,U){return k().useCallback(Z,U)},C.useContext=function(Z){var U=k();return Z.$$typeof===UB&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(Z)},C.useDebugValue=function(Z,U){return k().useDebugValue(Z,U)},C.useDeferredValue=function(Z,U){return k().useDeferredValue(Z,U)},C.useEffect=function(Z,U,N){Z==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var V=k();if(typeof N==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(Z,U)},C.useId=function(){return k().useId()},C.useImperativeHandle=function(Z,U,N){return k().useImperativeHandle(Z,U,N)},C.useInsertionEffect=function(Z,U){return Z==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),k().useInsertionEffect(Z,U)},C.useLayoutEffect=function(Z,U){return Z==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),k().useLayoutEffect(Z,U)},C.useMemo=function(Z,U){return k().useMemo(Z,U)},C.useOptimistic=function(Z,U){return k().useOptimistic(Z,U)},C.useReducer=function(Z,U,N){return k().useReducer(Z,U,N)},C.useRef=function(Z){return k().useRef(Z)},C.useState=function(Z){return k().useState(Z)},C.useSyncExternalStore=function(Z,U,N){return k().useSyncExternalStore(Z,U,N)},C.useTransition=function(){return k().useTransition()},C.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var M0=b0((F8,B4)=>{B4.exports=e1()});var Y4=b0((u)=>{(function(){function B(){}function G(J){return""+J}function Y(J,M,I){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(E);var q=!1}catch(w){q=!0}return q&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),G(E)),{$$typeof:K,key:E==null?null:""+E,children:J,containerInfo:M,implementation:I}}function X(J,M){if(J==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function $(J){return J===null?"`null`":J===void 0?"`undefined`":J===""?"an empty string":'something with type "'+typeof J+'"'}function z(J){return J===null?"`null`":J===void 0?"`undefined`":J===""?"an empty string":typeof J==="string"?JSON.stringify(J):typeof J==="number"?"`"+J+"`":'something with type "'+typeof J+'"'}function Q(){var J=L.H;return J===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),Z}function P5(){}function _0(Z){if(f0===null)try{var J=("require"+Math.random()).slice(0,7);f0=(Z1&&Z1[J]).call(Z1,"timers").setImmediate}catch(V){f0=function(I){W4===!1&&(W4=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var F=new MessageChannel;F.port1.onmessage=I,F.port2.postMessage(void 0)}}return f0(Z)}function N0(Z){return 1<Z.length&&typeof AggregateError==="function"?new AggregateError(Z):Z[0]}function k0(Z,J){J!==m0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),m0=J}function W1(Z,J,V){var I=S.actQueue;if(I!==null)if(I.length!==0)try{J1(I),_0(function(){return W1(Z,J,V)});return}catch(F){S.thrownErrors.push(F)}else S.actQueue=null;0<S.thrownErrors.length?(I=N0(S.thrownErrors),S.thrownErrors.length=0,V(I)):J(Z)}function J1(Z){if(!N1){N1=!0;var J=0;try{for(;J<Z.length;J++){var V=Z[J];do{S.didUsePromise=!1;var I=V(!1);if(I!==null){if(S.didUsePromise){Z[J]=V,Z.splice(0,J);return}V=I}else break}while(1)}Z.length=0}catch(F){Z.splice(0,J+1),S.thrownErrors.push(F)}finally{N1=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K1=Symbol.for("react.transitional.element"),c1=Symbol.for("react.portal"),U1=Symbol.for("react.fragment"),n1=Symbol.for("react.strict_mode"),r1=Symbol.for("react.profiler");Symbol.for("react.provider");var P1=Symbol.for("react.consumer"),i1=Symbol.for("react.context"),s1=Symbol.for("react.forward_ref"),o1=Symbol.for("react.suspense"),H5=Symbol.for("react.suspense_list"),H1=Symbol.for("react.memo"),v0=Symbol.for("react.lazy"),L5=Symbol.for("react.activity"),a1=Symbol.iterator,t1={},e1={isMounted:function(){return!1},enqueueForceUpdate:function(Z){Y(Z,"forceUpdate")},enqueueReplaceState:function(Z){Y(Z,"replaceState")},enqueueSetState:function(Z){Y(Z,"setState")}},B4=Object.assign,L1={};Object.freeze(L1),X.prototype.isReactComponent={},X.prototype.setState=function(Z,J){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,J,"setState")},X.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};var p={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},b0;for(b0 in p)p.hasOwnProperty(b0)&&B(b0,p[b0]);$.prototype=X.prototype,p=z.prototype=new $,p.constructor=z,B4(p,X.prototype),p.isPureReactComponent=!0;var G4=Array.isArray,N5=Symbol.for("react.client.reference"),S={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},y0=Object.prototype.hasOwnProperty,Y4=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(Z){return Z()}};var X4,Z4,$4={},V5=p["react-stack-bottom-frame"].bind(p,K)(),I5=Y4(U(K)),Q4=!1,z4=/\/+/g,M4=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},W4=!1,f0=null,m0=0,h0=!1,N1=!1,J4=typeof queueMicrotask==="function"?function(Z){queueMicrotask(function(){return queueMicrotask(Z)})}:_0;p=Object.freeze({__proto__:null,c:function(Z){return v().useMemoCache(Z)}}),O.Children={map:d,forEach:function(Z,J,V){d(Z,function(){J.apply(this,arguments)},V)},count:function(Z){var J=0;return d(Z,function(){J++}),J},toArray:function(Z){return d(Z,function(J){return J})||[]},only:function(Z){if(!j(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},O.Component=X,O.Fragment=U1,O.Profiler=r1,O.PureComponent=z,O.StrictMode=n1,O.Suspense=o1,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,O.__COMPILER_RUNTIME=p,O.act=function(Z){var J=S.actQueue,V=m0;m0++;var I=S.actQueue=J!==null?J:[],F=!1;try{var R=Z()}catch(T){S.thrownErrors.push(T)}if(0<S.thrownErrors.length)throw k0(J,V),Z=N0(S.thrownErrors),S.thrownErrors.length=0,Z;if(R!==null&&typeof R==="object"&&typeof R.then==="function"){var x=R;return J4(function(){F||h0||(h0=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(T,B0){F=!0,x.then(function(M0){if(k0(J,V),V===0){try{J1(I),_0(function(){return W1(M0,T,B0)})}catch(q5){S.thrownErrors.push(q5)}if(0<S.thrownErrors.length){var E5=N0(S.thrownErrors);S.thrownErrors.length=0,B0(E5)}}else T(M0)},function(M0){k0(J,V),0<S.thrownErrors.length?(M0=N0(S.thrownErrors),S.thrownErrors.length=0,B0(M0)):B0(M0)})}}}var _=R;if(k0(J,V),V===0&&(J1(I),I.length!==0&&J4(function(){F||h0||(h0=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),S.actQueue=null),0<S.thrownErrors.length)throw Z=N0(S.thrownErrors),S.thrownErrors.length=0,Z;return{then:function(T,B0){F=!0,V===0?(S.actQueue=I,_0(function(){return W1(_,T,B0)})):T(_)}}},O.cache=function(Z){return function(){return Z.apply(null,arguments)}},O.captureOwnerStack=function(){var Z=S.getCurrentStack;return Z===null?null:Z()},O.cloneElement=function(Z,J,V){if(Z===null||Z===void 0)throw Error("The argument must be a React element, but you passed "+Z+".");var I=B4({},Z.props),F=Z.key,R=Z._owner;if(J!=null){var x;B:{if(y0.call(J,"ref")&&(x=Object.getOwnPropertyDescriptor(J,"ref").get)&&x.isReactWarning){x=!1;break B}x=J.ref!==void 0}x&&(R=L()),M(J)&&(P(J.key),F=""+J.key);for(_ in J)!y0.call(J,_)||_==="key"||_==="__self"||_==="__source"||_==="ref"&&J.ref===void 0||(I[_]=J[_])}var _=arguments.length-2;if(_===1)I.children=V;else if(1<_){x=Array(_);for(var T=0;T<_;T++)x[T]=arguments[T+2];I.children=x}I=q(Z.type,F,void 0,void 0,R,I,Z._debugStack,Z._debugTask);for(F=2;F<arguments.length;F++)R=arguments[F],j(R)&&R._store&&(R._store.validated=1);return I},O.createContext=function(Z){return Z={$$typeof:i1,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:P1,_context:Z},Z._currentRenderer=null,Z._currentRenderer2=null,Z},O.createElement=function(Z,J,V){for(var I=2;I<arguments.length;I++){var F=arguments[I];j(F)&&F._store&&(F._store.validated=1)}if(I={},F=null,J!=null)for(T in Z4||!("__self"in J)||"key"in J||(Z4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(J)&&(P(J.key),F=""+J.key),J)y0.call(J,T)&&T!=="key"&&T!=="__self"&&T!=="__source"&&(I[T]=J[T]);var R=arguments.length-2;if(R===1)I.children=V;else if(1<R){for(var x=Array(R),_=0;_<R;_++)x[_]=arguments[_+2];Object.freeze&&Object.freeze(x),I.children=x}if(Z&&Z.defaultProps)for(T in R=Z.defaultProps,R)I[T]===void 0&&(I[T]=R[T]);F&&N(I,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z);var T=1e4>S.recentlyCreatedOwnerStacks++;return q(Z,F,void 0,void 0,L(),I,T?Error("react-stack-top-frame"):V5,T?Y4(U(Z)):I5)},O.createRef=function(){var Z={current:null};return Object.seal(Z),Z},O.forwardRef=function(Z){Z!=null&&Z.$$typeof===H1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!=="function"?console.error("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&Z.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var J={$$typeof:s1,render:Z},V;return Object.defineProperty(J,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(I){V=I,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:I}),Z.displayName=I)}}),J},O.isValidElement=j,O.lazy=function(Z){return{$$typeof:v0,_payload:{_status:-1,_result:Z},_init:e}},O.memo=function(Z,J){Z==null&&console.error("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z),J={$$typeof:H1,type:Z,compare:J===void 0?null:J};var V;return Object.defineProperty(J,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(I){V=I,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:I}),Z.displayName=I)}}),J},O.startTransition=function(Z){var J=S.T,V={};S.T=V,V._updatedFibers=new Set;try{var I=Z(),F=S.S;F!==null&&F(V,I),typeof I==="object"&&I!==null&&typeof I.then==="function"&&I.then(P5,M4)}catch(R){M4(R)}finally{J===null&&V._updatedFibers&&(Z=V._updatedFibers.size,V._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),S.T=J}},O.unstable_useCacheRefresh=function(){return v().useCacheRefresh()},O.use=function(Z){return v().use(Z)},O.useActionState=function(Z,J,V){return v().useActionState(Z,J,V)},O.useCallback=function(Z,J){return v().useCallback(Z,J)},O.useContext=function(Z){var J=v();return Z.$$typeof===P1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),J.useContext(Z)},O.useDebugValue=function(Z,J){return v().useDebugValue(Z,J)},O.useDeferredValue=function(Z,J){return v().useDeferredValue(Z,J)},O.useEffect=function(Z,J,V){Z==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var I=v();if(typeof V==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(Z,J)},O.useId=function(){return v().useId()},O.useImperativeHandle=function(Z,J,V){return v().useImperativeHandle(Z,J,V)},O.useInsertionEffect=function(Z,J){return Z==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),v().useInsertionEffect(Z,J)},O.useLayoutEffect=function(Z,J){return Z==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),v().useLayoutEffect(Z,J)},O.useMemo=function(Z,J){return v().useMemo(Z,J)},O.useOptimistic=function(Z,J){return v().useOptimistic(Z,J)},O.useReducer=function(Z,J,V){return v().useReducer(Z,J,V)},O.useRef=function(Z){return v().useRef(Z)},O.useState=function(Z){return v().useState(Z)},O.useSyncExternalStore=function(Z,J,V){return v().useSyncExternalStore(Z,J,V)},O.useTransition=function(){return v().useTransition()},O.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $0=g0((A8,Y5)=>{Y5.exports=G5()});var X5=g0((u)=>{(function(){function B(){}function G(K){return""+K}function Y(K,M,N){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(E);var q=!1}catch(w){q=!0}return q&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),G(E)),{$$typeof:U,key:E==null?null:""+E,children:K,containerInfo:M,implementation:N}}function X(K,M){if(K==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function $(K){return K===null?"`null`":K===void 0?"`undefined`":K===""?"an empty string":'something with type "'+typeof K+'"'}function z(K){return K===null?"`null`":K===void 0?"`undefined`":K===""?"an empty string":typeof K==="string"?JSON.stringify(K):typeof K==="number"?"`"+K+"`":'something with type "'+typeof K+'"'}function Q(){var K=L.H;return K===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),J}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=M0(),P={d:{f:B,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:B,C:B,L:B,m:B,X:B,S:B,M:B},p:0,findDOMNode:null},K=Symbol.for("react.portal"),L=H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,u.createPortal=function(J,M){var I=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(J,M,null,I)},u.flushSync=function(J){var M=L.T,I=P.p;try{if(L.T=null,P.p=2,J)return J()}finally{L.T=M,P.p=I,P.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},u.preconnect=function(J,M){typeof J==="string"&&J?M!=null&&typeof M!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",z(M)):M!=null&&typeof M.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",$(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(J)),typeof J==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,P.d.C(J,M))},u.prefetchDNS=function(J){if(typeof J!=="string"||!J)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(J));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M))}typeof J==="string"&&P.d.D(J)},u.preinit=function(J,M){if(typeof J==="string"&&J?M==null||typeof M!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",z(M)):M.as!=="style"&&M.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',z(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(J)),typeof J==="string"&&M&&typeof M.as==="string"){var I=M.as,E=X(I,M.crossOrigin),q=typeof M.integrity==="string"?M.integrity:void 0,w=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;I==="style"?P.d.S(J,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:E,integrity:q,fetchPriority:w}):I==="script"&&P.d.X(J,{crossOrigin:E,integrity:q,fetchPriority:w,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},u.preinitModule=function(J,M){var I="";if(typeof J==="string"&&J||(I+=" The `href` argument encountered was "+$(J)+"."),M!==void 0&&typeof M!=="object"?I+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&M.as!=="script"&&(I+=" The `as` option encountered was "+z(M.as)+"."),I)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",I);else switch(I=M&&typeof M.as==="string"?M.as:"script",I){case"script":break;default:I=z(I),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',I,J)}if(typeof J==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")I=X(M.as,M.crossOrigin),P.d.M(J,{crossOrigin:I,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&P.d.M(J)},u.preload=function(J,M){var I="";if(typeof J==="string"&&J||(I+=" The `href` argument encountered was "+$(J)+"."),M==null||typeof M!=="object"?I+=" The `options` argument encountered was "+$(M)+".":typeof M.as==="string"&&M.as||(I+=" The `as` option encountered was "+$(M.as)+"."),I&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',I),typeof J==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){I=M.as;var E=X(I,M.crossOrigin);P.d.L(J,I,{crossOrigin:E,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},u.preloadModule=function(J,M){var I="";typeof J==="string"&&J||(I+=" The `href` argument encountered was "+$(J)+"."),M!==void 0&&typeof M!=="object"?I+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(I+=" The `as` option encountered was "+$(M.as)+"."),I&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',I),typeof J==="string"&&(M?(I=X(M.as,M.crossOrigin),P.d.m(J,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:I,integrity:typeof M.integrity==="string"?M.integrity:void 0})):P.d.m(J))},u.requestFormReset=function(J){P.d.r(J)},u.unstable_batchedUpdates=function(J,M){return J(M)},u.useFormState=function(J,M,I){return Q().useFormState(J,M,I)},u.useFormStatus=function(){return Q().useHostTransitionStatus()},u.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Z4=b0((S8,X4)=>{X4.exports=Y4()});var JG={};K1(JG,{useShopUserStore:()=>$B,useShopUiStore:()=>O0,useShopBasketStore:()=>ZB,useCreateBasket:()=>U4,useCategories:()=>G4,getTebex:()=>a,categoriesService:()=>BB,basketService:()=>GB});module.exports=F4(JG);function P0(B,G){return function Y(){return B.apply(G,arguments)}}var{toString:D4}=Object.prototype,{getPrototypeOf:LB}=Object,{iterator:f0,toStringTag:H1}=Symbol,m0=((B)=>(G)=>{let Y=D4.call(G);return B[Y]||(B[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),n=(B)=>{return B=B.toLowerCase(),(G)=>m0(G)===B},h0=(B)=>(G)=>typeof G===B,{isArray:Z0}=Array,H0=h0("undefined");function C4(B){return B!==null&&!H0(B)&&B.constructor!==null&&!H0(B.constructor)&&d(B.constructor.isBuffer)&&B.constructor.isBuffer(B)}var L1=n("ArrayBuffer");function A4(B){let G;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)G=ArrayBuffer.isView(B);else G=B&&B.buffer&&L1(B.buffer);return G}var O4=h0("string"),d=h0("function"),I1=h0("number"),g0=(B)=>B!==null&&typeof B==="object",x4=(B)=>B===!0||B===!1,y0=(B)=>{if(m0(B)!=="object")return!1;let G=LB(B);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(H1 in B)&&!(f0 in B)},S4=n("Date"),T4=n("File"),R4=n("Blob"),j4=n("FileList"),_4=(B)=>g0(B)&&d(B.pipe),k4=(B)=>{let G;return B&&(typeof FormData==="function"&&B instanceof FormData||d(B.append)&&((G=m0(B))==="formdata"||G==="object"&&d(B.toString)&&B.toString()==="[object FormData]"))},v4=n("URLSearchParams"),[b4,y4,f4,m4]=["ReadableStream","Request","Response","Headers"].map(n),h4=(B)=>B.trim?B.trim():B.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L0(B,G,{allOwnKeys:Y=!1}={}){if(B===null||typeof B==="undefined")return;let X,$;if(typeof B!=="object")B=[B];if(Z0(B))for(X=0,$=B.length;X<$;X++)G.call(null,B[X],X,B);else{let z=Y?Object.getOwnPropertyNames(B):Object.keys(B),Q=z.length,H;for(X=0;X<Q;X++)H=z[X],G.call(null,B[H],H,B)}}function N1(B,G){G=G.toLowerCase();let Y=Object.keys(B),X=Y.length,$;while(X-- >0)if($=Y[X],G===$.toLowerCase())return $;return null}var G0=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),V1=(B)=>!H0(B)&&B!==G0;function HB(){let{caseless:B}=V1(this)&&this||{},G={},Y=(X,$)=>{let z=B&&N1(G,$)||$;if(y0(G[z])&&y0(X))G[z]=HB(G[z],X);else if(y0(X))G[z]=HB({},X);else if(Z0(X))G[z]=X.slice();else G[z]=X};for(let X=0,$=arguments.length;X<$;X++)arguments[X]&&L0(arguments[X],Y);return G}var g4=(B,G,Y,{allOwnKeys:X}={})=>{return L0(G,($,z)=>{if(Y&&d($))B[z]=P0($,Y);else B[z]=$},{allOwnKeys:X}),B},u4=(B)=>{if(B.charCodeAt(0)===65279)B=B.slice(1);return B},d4=(B,G,Y,X)=>{B.prototype=Object.create(G.prototype,X),B.prototype.constructor=B,Object.defineProperty(B,"super",{value:G.prototype}),Y&&Object.assign(B.prototype,Y)},l4=(B,G,Y,X)=>{let $,z,Q,H={};if(G=G||{},B==null)return G;do{$=Object.getOwnPropertyNames(B),z=$.length;while(z-- >0)if(Q=$[z],(!X||X(Q,B,G))&&!H[Q])G[Q]=B[Q],H[Q]=!0;B=Y!==!1&&LB(B)}while(B&&(!Y||Y(B,G))&&B!==Object.prototype);return G},c4=(B,G,Y)=>{if(B=String(B),Y===void 0||Y>B.length)Y=B.length;Y-=G.length;let X=B.indexOf(G,Y);return X!==-1&&X===Y},p4=(B)=>{if(!B)return null;if(Z0(B))return B;let G=B.length;if(!I1(G))return null;let Y=new Array(G);while(G-- >0)Y[G]=B[G];return Y},n4=((B)=>{return(G)=>{return B&&G instanceof B}})(typeof Uint8Array!=="undefined"&&LB(Uint8Array)),r4=(B,G)=>{let X=(B&&B[f0]).call(B),$;while(($=X.next())&&!$.done){let z=$.value;G.call(B,z[0],z[1])}},i4=(B,G)=>{let Y,X=[];while((Y=B.exec(G))!==null)X.push(Y);return X},s4=n("HTMLFormElement"),o4=(B)=>{return B.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function G(Y,X,$){return X.toUpperCase()+$})},P1=(({hasOwnProperty:B})=>(G,Y)=>B.call(G,Y))(Object.prototype),a4=n("RegExp"),E1=(B,G)=>{let Y=Object.getOwnPropertyDescriptors(B),X={};L0(Y,($,z)=>{let Q;if((Q=G($,z,B))!==!1)X[z]=Q||$}),Object.defineProperties(B,X)},t4=(B)=>{E1(B,(G,Y)=>{if(d(B)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let X=B[Y];if(!d(X))return;if(G.enumerable=!1,"writable"in G){G.writable=!1;return}if(!G.set)G.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},e4=(B,G)=>{let Y={},X=($)=>{$.forEach((z)=>{Y[z]=!0})};return Z0(B)?X(B):X(String(B).split(G)),Y},B5=()=>{},G5=(B,G)=>{return B!=null&&Number.isFinite(B=+B)?B:G};function Y5(B){return!!(B&&d(B.append)&&B[H1]==="FormData"&&B[f0])}var X5=(B)=>{let G=new Array(10),Y=(X,$)=>{if(g0(X)){if(G.indexOf(X)>=0)return;if(!("toJSON"in X)){G[$]=X;let z=Z0(X)?[]:{};return L0(X,(Q,H)=>{let P=Y(Q,$+1);!H0(P)&&(z[H]=P)}),G[$]=void 0,z}}return X};return Y(B,0)},Z5=n("AsyncFunction"),$5=(B)=>B&&(g0(B)||d(B))&&d(B.then)&&d(B.catch),q1=((B,G)=>{if(B)return setImmediate;return G?((Y,X)=>{return G0.addEventListener("message",({source:$,data:z})=>{if($===G0&&z===Y)X.length&&X.shift()()},!1),($)=>{X.push($),G0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",d(G0.postMessage)),Q5=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(G0):typeof process!=="undefined"&&process.nextTick||q1,z5=(B)=>B!=null&&d(B[f0]),W={isArray:Z0,isArrayBuffer:L1,isBuffer:C4,isFormData:k4,isArrayBufferView:A4,isString:O4,isNumber:I1,isBoolean:x4,isObject:g0,isPlainObject:y0,isReadableStream:b4,isRequest:y4,isResponse:f4,isHeaders:m4,isUndefined:H0,isDate:S4,isFile:T4,isBlob:R4,isRegExp:a4,isFunction:d,isStream:_4,isURLSearchParams:v4,isTypedArray:n4,isFileList:j4,forEach:L0,merge:HB,extend:g4,trim:h4,stripBOM:u4,inherits:d4,toFlatObject:l4,kindOf:m0,kindOfTest:n,endsWith:c4,toArray:p4,forEachEntry:r4,matchAll:i4,isHTMLForm:s4,hasOwnProperty:P1,hasOwnProp:P1,reduceDescriptors:E1,freezeMethods:t4,toObjectSet:e4,toCamelCase:o4,noop:B5,toFiniteNumber:G5,findKey:N1,global:G0,isContextDefined:V1,isSpecCompliantForm:Y5,toJSONObject:X5,isAsyncFn:Z5,isThenable:$5,setImmediate:q1,asap:Q5,isIterable:z5};function $0(B,G,Y,X,$){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;if(this.message=B,this.name="AxiosError",G&&(this.code=G),Y&&(this.config=Y),X&&(this.request=X),$)this.response=$,this.status=$.status?$.status:null}W.inherits($0,Error,{toJSON:function B(){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:W.toJSONObject(this.config),code:this.code,status:this.status}}});var w1=$0.prototype,F1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((B)=>{F1[B]={value:B}});Object.defineProperties($0,F1);Object.defineProperty(w1,"isAxiosError",{value:!0});$0.from=(B,G,Y,X,$,z)=>{let Q=Object.create(w1);return W.toFlatObject(B,Q,function H(P){return P!==Error.prototype},(H)=>{return H!=="isAxiosError"}),$0.call(Q,B.message,G,Y,X,$),Q.cause=B,Q.name=B.name,z&&Object.assign(Q,z),Q};var D=$0;var u0=null;function IB(B){return W.isPlainObject(B)||W.isArray(B)}function C1(B){return W.endsWith(B,"[]")?B.slice(0,-2):B}function D1(B,G,Y){if(!B)return G;return B.concat(G).map(function X($,z){return $=C1($),!Y&&z?"["+$+"]":$}).join(Y?".":"")}function M5(B){return W.isArray(B)&&!B.some(IB)}var W5=W.toFlatObject(W,{},null,function B(G){return/^is[A-Z]/.test(G)});function U5(B,G,Y){if(!W.isObject(B))throw new TypeError("target must be an object");G=G||new(u0||FormData),Y=W.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function E(q,w){return!W.isUndefined(w[q])});let X=Y.metaTokens,$=Y.visitor||L,z=Y.dots,Q=Y.indexes,P=(Y.Blob||typeof Blob!=="undefined"&&Blob)&&W.isSpecCompliantForm(G);if(!W.isFunction($))throw new TypeError("visitor must be a function");function K(E){if(E===null)return"";if(W.isDate(E))return E.toISOString();if(W.isBoolean(E))return E.toString();if(!P&&W.isBlob(E))throw new D("Blob is not supported. Use a Buffer instead.");if(W.isArrayBuffer(E)||W.isTypedArray(E))return P&&typeof Blob==="function"?new Blob([E]):Buffer.from(E);return E}function L(E,q,w){let R=E;if(E&&!w&&typeof E==="object"){if(W.endsWith(q,"{}"))q=X?q:q.slice(0,-2),E=JSON.stringify(E);else if(W.isArray(E)&&M5(E)||(W.isFileList(E)||W.endsWith(q,"[]"))&&(R=W.toArray(E)))return q=C1(q),R.forEach(function x(j,h){!(W.isUndefined(j)||j===null)&&G.append(Q===!0?D1([q],h,z):Q===null?q:q+"[]",K(j))}),!1}if(IB(E))return!0;return G.append(D1(w,q,z),K(E)),!1}let J=[],M=Object.assign(W5,{defaultVisitor:L,convertValue:K,isVisitable:IB});function I(E,q){if(W.isUndefined(E))return;if(J.indexOf(E)!==-1)throw Error("Circular reference detected in "+q.join("."));J.push(E),W.forEach(E,function w(R,x){if((!(W.isUndefined(R)||R===null)&&$.call(G,R,W.isString(x)?x.trim():x,q,M))===!0)I(R,q?q.concat(x):[x])}),J.pop()}if(!W.isObject(B))throw new TypeError("data must be an object");return I(B),G}var e=U5;function A1(B){let G={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(B).replace(/[!'()~]|%20|%00/g,function Y(X){return G[X]})}function O1(B,G){this._pairs=[],B&&e(B,this,G)}var x1=O1.prototype;x1.append=function B(G,Y){this._pairs.push([G,Y])};x1.toString=function B(G){let Y=G?function(X){return G.call(this,X,A1)}:A1;return this._pairs.map(function X($){return Y($[0])+"="+Y($[1])},"").join("&")};var d0=O1;function J5(B){return encodeURIComponent(B).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I0(B,G,Y){if(!G)return B;let X=Y&&Y.encode||J5;if(W.isFunction(Y))Y={serialize:Y};let $=Y&&Y.serialize,z;if($)z=$(G,Y);else z=W.isURLSearchParams(G)?G.toString():new d0(G,Y).toString(X);if(z){let Q=B.indexOf("#");if(Q!==-1)B=B.slice(0,Q);B+=(B.indexOf("?")===-1?"?":"&")+z}return B}class S1{constructor(){this.handlers=[]}use(B,G,Y){return this.handlers.push({fulfilled:B,rejected:G,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(B){if(this.handlers[B])this.handlers[B]=null}clear(){if(this.handlers)this.handlers=[]}forEach(B){W.forEach(this.handlers,function G(Y){if(Y!==null)B(Y)})}}var NB=S1;var l0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var T1=typeof URLSearchParams!=="undefined"?URLSearchParams:d0;var R1=typeof FormData!=="undefined"?FormData:null;var j1=typeof Blob!=="undefined"?Blob:null;var _1={isBrowser:!0,classes:{URLSearchParams:T1,FormData:R1,Blob:j1},protocols:["http","https","file","blob","url","data"]};var qB={};K1(qB,{origin:()=>H5,navigator:()=>VB,hasStandardBrowserWebWorkerEnv:()=>P5,hasStandardBrowserEnv:()=>K5,hasBrowserEnv:()=>EB});var EB=typeof window!=="undefined"&&typeof document!=="undefined",VB=typeof navigator==="object"&&navigator||void 0,K5=EB&&(!VB||["ReactNative","NativeScript","NS"].indexOf(VB.product)<0),P5=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),H5=EB&&window.location.href||"http://localhost";var v={...qB,..._1};function wB(B,G){return e(B,new v.classes.URLSearchParams,Object.assign({visitor:function(Y,X,$,z){if(v.isNode&&W.isBuffer(Y))return this.append(X,Y.toString("base64")),!1;return z.defaultVisitor.apply(this,arguments)}},G))}function L5(B){return W.matchAll(/\w+|\[(\w*)]/g,B).map((G)=>{return G[0]==="[]"?"":G[1]||G[0]})}function I5(B){let G={},Y=Object.keys(B),X,$=Y.length,z;for(X=0;X<$;X++)z=Y[X],G[z]=B[z];return G}function N5(B){function G(Y,X,$,z){let Q=Y[z++];if(Q==="__proto__")return!0;let H=Number.isFinite(+Q),P=z>=Y.length;if(Q=!Q&&W.isArray($)?$.length:Q,P){if(W.hasOwnProp($,Q))$[Q]=[$[Q],X];else $[Q]=X;return!H}if(!$[Q]||!W.isObject($[Q]))$[Q]=[];if(G(Y,X,$[Q],z)&&W.isArray($[Q]))$[Q]=I5($[Q]);return!H}if(W.isFormData(B)&&W.isFunction(B.entries)){let Y={};return W.forEachEntry(B,(X,$)=>{G(L5(X),$,Y,0)}),Y}return null}var c0=N5;function V5(B,G,Y){if(W.isString(B))try{return(G||JSON.parse)(B),W.trim(B)}catch(X){if(X.name!=="SyntaxError")throw X}return(Y||JSON.stringify)(B)}var FB={transitional:l0,adapter:["xhr","http","fetch"],transformRequest:[function B(G,Y){let X=Y.getContentType()||"",$=X.indexOf("application/json")>-1,z=W.isObject(G);if(z&&W.isHTMLForm(G))G=new FormData(G);if(W.isFormData(G))return $?JSON.stringify(c0(G)):G;if(W.isArrayBuffer(G)||W.isBuffer(G)||W.isStream(G)||W.isFile(G)||W.isBlob(G)||W.isReadableStream(G))return G;if(W.isArrayBufferView(G))return G.buffer;if(W.isURLSearchParams(G))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),G.toString();let H;if(z){if(X.indexOf("application/x-www-form-urlencoded")>-1)return wB(G,this.formSerializer).toString();if((H=W.isFileList(G))||X.indexOf("multipart/form-data")>-1){let P=this.env&&this.env.FormData;return e(H?{"files[]":G}:G,P&&new P,this.formSerializer)}}if(z||$)return Y.setContentType("application/json",!1),V5(G);return G}],transformResponse:[function B(G){let Y=this.transitional||FB.transitional,X=Y&&Y.forcedJSONParsing,$=this.responseType==="json";if(W.isResponse(G)||W.isReadableStream(G))return G;if(G&&W.isString(G)&&(X&&!this.responseType||$)){let Q=!(Y&&Y.silentJSONParsing)&&$;try{return JSON.parse(G)}catch(H){if(Q){if(H.name==="SyntaxError")throw D.from(H,D.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return G}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function B(G){return G>=200&&G<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(B)=>{FB.headers[B]={}});var Q0=FB;var E5=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k1=(B)=>{let G={},Y,X,$;return B&&B.split(`
18
- `).forEach(function z(Q){if($=Q.indexOf(":"),Y=Q.substring(0,$).trim().toLowerCase(),X=Q.substring($+1).trim(),!Y||G[Y]&&E5[Y])return;if(Y==="set-cookie")if(G[Y])G[Y].push(X);else G[Y]=[X];else G[Y]=G[Y]?G[Y]+", "+X:X}),G};var v1=Symbol("internals");function N0(B){return B&&String(B).trim().toLowerCase()}function p0(B){if(B===!1||B==null)return B;return W.isArray(B)?B.map(p0):String(B)}function q5(B){let G=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,X;while(X=Y.exec(B))G[X[1]]=X[2];return G}var w5=(B)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(B.trim());function DB(B,G,Y,X,$){if(W.isFunction(X))return X.call(this,G,Y);if($)G=Y;if(!W.isString(G))return;if(W.isString(X))return G.indexOf(X)!==-1;if(W.isRegExp(X))return X.test(G)}function F5(B){return B.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(G,Y,X)=>{return Y.toUpperCase()+X})}function D5(B,G){let Y=W.toCamelCase(" "+G);["get","set","has"].forEach((X)=>{Object.defineProperty(B,X+Y,{value:function($,z,Q){return this[X].call(this,G,$,z,Q)},configurable:!0})})}class V0{constructor(B){B&&this.set(B)}set(B,G,Y){let X=this;function $(Q,H,P){let K=N0(H);if(!K)throw new Error("header name must be a non-empty string");let L=W.findKey(X,K);if(!L||X[L]===void 0||P===!0||P===void 0&&X[L]!==!1)X[L||H]=p0(Q)}let z=(Q,H)=>W.forEach(Q,(P,K)=>$(P,K,H));if(W.isPlainObject(B)||B instanceof this.constructor)z(B,G);else if(W.isString(B)&&(B=B.trim())&&!w5(B))z(k1(B),G);else if(W.isObject(B)&&W.isIterable(B)){let Q={},H,P;for(let K of B){if(!W.isArray(K))throw TypeError("Object iterator must return a key-value pair");Q[P=K[0]]=(H=Q[P])?W.isArray(H)?[...H,K[1]]:[H,K[1]]:K[1]}z(Q,G)}else B!=null&&$(G,B,Y);return this}get(B,G){if(B=N0(B),B){let Y=W.findKey(this,B);if(Y){let X=this[Y];if(!G)return X;if(G===!0)return q5(X);if(W.isFunction(G))return G.call(this,X,Y);if(W.isRegExp(G))return G.exec(X);throw new TypeError("parser must be boolean|regexp|function")}}}has(B,G){if(B=N0(B),B){let Y=W.findKey(this,B);return!!(Y&&this[Y]!==void 0&&(!G||DB(this,this[Y],Y,G)))}return!1}delete(B,G){let Y=this,X=!1;function $(z){if(z=N0(z),z){let Q=W.findKey(Y,z);if(Q&&(!G||DB(Y,Y[Q],Q,G)))delete Y[Q],X=!0}}if(W.isArray(B))B.forEach($);else $(B);return X}clear(B){let G=Object.keys(this),Y=G.length,X=!1;while(Y--){let $=G[Y];if(!B||DB(this,this[$],$,B,!0))delete this[$],X=!0}return X}normalize(B){let G=this,Y={};return W.forEach(this,(X,$)=>{let z=W.findKey(Y,$);if(z){G[z]=p0(X),delete G[$];return}let Q=B?F5($):String($).trim();if(Q!==$)delete G[$];G[Q]=p0(X),Y[Q]=!0}),this}concat(...B){return this.constructor.concat(this,...B)}toJSON(B){let G=Object.create(null);return W.forEach(this,(Y,X)=>{Y!=null&&Y!==!1&&(G[X]=B&&W.isArray(Y)?Y.join(", "):Y)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([B,G])=>B+": "+G).join(`
19
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(B){return B instanceof this?B:new this(B)}static concat(B,...G){let Y=new this(B);return G.forEach((X)=>Y.set(X)),Y}static accessor(B){let Y=(this[v1]=this[v1]={accessors:{}}).accessors,X=this.prototype;function $(z){let Q=N0(z);if(!Y[Q])D5(X,z),Y[Q]=!0}return W.isArray(B)?B.forEach($):$(B),this}}V0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(V0.prototype,({value:B},G)=>{let Y=G[0].toUpperCase()+G.slice(1);return{get:()=>B,set(X){this[Y]=X}}});W.freezeMethods(V0);var y=V0;function E0(B,G){let Y=this||Q0,X=G||Y,$=y.from(X.headers),z=X.data;return W.forEach(B,function Q(H){z=H.call(Y,z,$.normalize(),G?G.status:void 0)}),$.normalize(),z}function q0(B){return!!(B&&B.__CANCEL__)}function b1(B,G,Y){D.call(this,B==null?"canceled":B,D.ERR_CANCELED,G,Y),this.name="CanceledError"}W.inherits(b1,D,{__CANCEL__:!0});var i=b1;function w0(B,G,Y){let X=Y.config.validateStatus;if(!Y.status||!X||X(Y.status))B(Y);else G(new D("Request failed with status code "+Y.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function CB(B){let G=/^([-+\w]{1,25})(:?\/\/|:)/.exec(B);return G&&G[1]||""}function C5(B,G){B=B||10;let Y=new Array(B),X=new Array(B),$=0,z=0,Q;return G=G!==void 0?G:1000,function H(P){let K=Date.now(),L=X[z];if(!Q)Q=K;Y[$]=P,X[$]=K;let J=z,M=0;while(J!==$)M+=Y[J++],J=J%B;if($=($+1)%B,$===z)z=(z+1)%B;if(K-Q<G)return;let I=L&&K-L;return I?Math.round(M*1000/I):void 0}}var y1=C5;function A5(B,G){let Y=0,X=1000/G,$,z,Q=(K,L=Date.now())=>{if(Y=L,$=null,z)clearTimeout(z),z=null;B.apply(null,K)};return[(...K)=>{let L=Date.now(),J=L-Y;if(J>=X)Q(K,L);else if($=K,!z)z=setTimeout(()=>{z=null,Q($)},X-J)},()=>$&&Q($)]}var f1=A5;var z0=(B,G,Y=3)=>{let X=0,$=y1(50,250);return f1((z)=>{let Q=z.loaded,H=z.lengthComputable?z.total:void 0,P=Q-X,K=$(P),L=Q<=H;X=Q;let J={loaded:Q,total:H,progress:H?Q/H:void 0,bytes:P,rate:K?K:void 0,estimated:K&&H&&L?(H-Q)/K:void 0,event:z,lengthComputable:H!=null,[G?"download":"upload"]:!0};B(J)},Y)},AB=(B,G)=>{let Y=B!=null;return[(X)=>G[0]({lengthComputable:Y,total:B,loaded:X}),G[1]]},OB=(B)=>(...G)=>W.asap(()=>B(...G));var m1=v.hasStandardBrowserEnv?((B,G)=>(Y)=>{return Y=new URL(Y,v.origin),B.protocol===Y.protocol&&B.host===Y.host&&(G||B.port===Y.port)})(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0;var h1=v.hasStandardBrowserEnv?{write(B,G,Y,X,$,z){let Q=[B+"="+encodeURIComponent(G)];W.isNumber(Y)&&Q.push("expires="+new Date(Y).toGMTString()),W.isString(X)&&Q.push("path="+X),W.isString($)&&Q.push("domain="+$),z===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read(B){let G=document.cookie.match(new RegExp("(^|;\\s*)("+B+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove(B){this.write(B,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function xB(B){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(B)}function SB(B,G){return G?B.replace(/\/?\/$/,"")+"/"+G.replace(/^\/+/,""):B}function F0(B,G,Y){let X=!xB(G);if(B&&(X||Y==!1))return SB(B,G);return G}var g1=(B)=>B instanceof y?{...B}:B;function r(B,G){G=G||{};let Y={};function X(K,L,J,M){if(W.isPlainObject(K)&&W.isPlainObject(L))return W.merge.call({caseless:M},K,L);else if(W.isPlainObject(L))return W.merge({},L);else if(W.isArray(L))return L.slice();return L}function $(K,L,J,M){if(!W.isUndefined(L))return X(K,L,J,M);else if(!W.isUndefined(K))return X(void 0,K,J,M)}function z(K,L){if(!W.isUndefined(L))return X(void 0,L)}function Q(K,L){if(!W.isUndefined(L))return X(void 0,L);else if(!W.isUndefined(K))return X(void 0,K)}function H(K,L,J){if(J in G)return X(K,L);else if(J in B)return X(void 0,K)}let P={url:z,method:z,data:z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,withXSRFToken:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:H,headers:(K,L,J)=>$(g1(K),g1(L),J,!0)};return W.forEach(Object.keys(Object.assign({},B,G)),function K(L){let J=P[L]||$,M=J(B[L],G[L],L);W.isUndefined(M)&&J!==H||(Y[L]=M)}),Y}var n0=(B)=>{let G=r({},B),{data:Y,withXSRFToken:X,xsrfHeaderName:$,xsrfCookieName:z,headers:Q,auth:H}=G;if(G.headers=Q=y.from(Q),G.url=I0(F0(G.baseURL,G.url,G.allowAbsoluteUrls),B.params,B.paramsSerializer),H)Q.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));let P;if(W.isFormData(Y)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)Q.setContentType(void 0);else if((P=Q.getContentType())!==!1){let[K,...L]=P?P.split(";").map((J)=>J.trim()).filter(Boolean):[];Q.setContentType([K||"multipart/form-data",...L].join("; "))}}if(v.hasStandardBrowserEnv){if(X&&W.isFunction(X)&&(X=X(G)),X||X!==!1&&m1(G.url)){let K=$&&z&&h1.read(z);if(K)Q.set($,K)}}return G};var O5=typeof XMLHttpRequest!=="undefined",u1=O5&&function(B){return new Promise(function G(Y,X){let $=n0(B),z=$.data,Q=y.from($.headers).normalize(),{responseType:H,onUploadProgress:P,onDownloadProgress:K}=$,L,J,M,I,E;function q(){I&&I(),E&&E(),$.cancelToken&&$.cancelToken.unsubscribe(L),$.signal&&$.signal.removeEventListener("abort",L)}let w=new XMLHttpRequest;w.open($.method.toUpperCase(),$.url,!0),w.timeout=$.timeout;function R(){if(!w)return;let j=y.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),f={data:!H||H==="text"||H==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:j,config:B,request:w};w0(function g(l){Y(l),q()},function g(l){X(l),q()},f),w=null}if("onloadend"in w)w.onloadend=R;else w.onreadystatechange=function j(){if(!w||w.readyState!==4)return;if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0))return;setTimeout(R)};if(w.onabort=function j(){if(!w)return;X(new D("Request aborted",D.ECONNABORTED,B,w)),w=null},w.onerror=function j(){X(new D("Network Error",D.ERR_NETWORK,B,w)),w=null},w.ontimeout=function j(){let h=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",f=$.transitional||l0;if($.timeoutErrorMessage)h=$.timeoutErrorMessage;X(new D(h,f.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,B,w)),w=null},z===void 0&&Q.setContentType(null),"setRequestHeader"in w)W.forEach(Q.toJSON(),function j(h,f){w.setRequestHeader(f,h)});if(!W.isUndefined($.withCredentials))w.withCredentials=!!$.withCredentials;if(H&&H!=="json")w.responseType=$.responseType;if(K)[M,E]=z0(K,!0),w.addEventListener("progress",M);if(P&&w.upload)[J,I]=z0(P),w.upload.addEventListener("progress",J),w.upload.addEventListener("loadend",I);if($.cancelToken||$.signal){if(L=(j)=>{if(!w)return;X(!j||j.type?new i(null,B,w):j),w.abort(),w=null},$.cancelToken&&$.cancelToken.subscribe(L),$.signal)$.signal.aborted?L():$.signal.addEventListener("abort",L)}let x=CB($.url);if(x&&v.protocols.indexOf(x)===-1){X(new D("Unsupported protocol "+x+":",D.ERR_BAD_REQUEST,B));return}w.send(z||null)})};var x5=(B,G)=>{let{length:Y}=B=B?B.filter(Boolean):[];if(G||Y){let X=new AbortController,$,z=function(K){if(!$){$=!0,H();let L=K instanceof Error?K:this.reason;X.abort(L instanceof D?L:new i(L instanceof Error?L.message:L))}},Q=G&&setTimeout(()=>{Q=null,z(new D(`timeout ${G} of ms exceeded`,D.ETIMEDOUT))},G),H=()=>{if(B)Q&&clearTimeout(Q),Q=null,B.forEach((K)=>{K.unsubscribe?K.unsubscribe(z):K.removeEventListener("abort",z)}),B=null};B.forEach((K)=>K.addEventListener("abort",z));let{signal:P}=X;return P.unsubscribe=()=>W.asap(H),P}},d1=x5;var S5=function*(B,G){let Y=B.byteLength;if(!G||Y<G){yield B;return}let X=0,$;while(X<Y)$=X+G,yield B.slice(X,$),X=$},T5=async function*(B,G){for await(let Y of R5(B))yield*S5(Y,G)},R5=async function*(B){if(B[Symbol.asyncIterator]){yield*B;return}let G=B.getReader();try{for(;;){let{done:Y,value:X}=await G.read();if(Y)break;yield X}}finally{await G.cancel()}},TB=(B,G,Y,X)=>{let $=T5(B,G),z=0,Q,H=(P)=>{if(!Q)Q=!0,X&&X(P)};return new ReadableStream({async pull(P){try{let{done:K,value:L}=await $.next();if(K){H(),P.close();return}let J=L.byteLength;if(Y){let M=z+=J;Y(M)}P.enqueue(new Uint8Array(L))}catch(K){throw H(K),K}},cancel(P){return H(P),$.return()}},{highWaterMark:2})};var i0=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",c1=i0&&typeof ReadableStream==="function",j5=i0&&(typeof TextEncoder==="function"?((B)=>(G)=>B.encode(G))(new TextEncoder):async(B)=>new Uint8Array(await new Response(B).arrayBuffer())),p1=(B,...G)=>{try{return!!B(...G)}catch(Y){return!1}},_5=c1&&p1(()=>{let B=!1,G=new Request(v.origin,{body:new ReadableStream,method:"POST",get duplex(){return B=!0,"half"}}).headers.has("Content-Type");return B&&!G}),l1=65536,RB=c1&&p1(()=>W.isReadableStream(new Response("").body)),r0={stream:RB&&((B)=>B.body)};i0&&((B)=>{["text","arrayBuffer","blob","formData","stream"].forEach((G)=>{!r0[G]&&(r0[G]=W.isFunction(B[G])?(Y)=>Y[G]():(Y,X)=>{throw new D(`Response type '${G}' is not supported`,D.ERR_NOT_SUPPORT,X)})})})(new Response);var k5=async(B)=>{if(B==null)return 0;if(W.isBlob(B))return B.size;if(W.isSpecCompliantForm(B))return(await new Request(v.origin,{method:"POST",body:B}).arrayBuffer()).byteLength;if(W.isArrayBufferView(B)||W.isArrayBuffer(B))return B.byteLength;if(W.isURLSearchParams(B))B=B+"";if(W.isString(B))return(await j5(B)).byteLength},v5=async(B,G)=>{let Y=W.toFiniteNumber(B.getContentLength());return Y==null?k5(G):Y},n1=i0&&(async(B)=>{let{url:G,method:Y,data:X,signal:$,cancelToken:z,timeout:Q,onDownloadProgress:H,onUploadProgress:P,responseType:K,headers:L,withCredentials:J="same-origin",fetchOptions:M}=n0(B);K=K?(K+"").toLowerCase():"text";let I=d1([$,z&&z.toAbortSignal()],Q),E,q=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),w;try{if(P&&_5&&Y!=="get"&&Y!=="head"&&(w=await v5(L,X))!==0){let f=new Request(G,{method:"POST",body:X,duplex:"half"}),g;if(W.isFormData(X)&&(g=f.headers.get("content-type")))L.setContentType(g);if(f.body){let[l,Y0]=AB(w,z0(OB(P)));X=TB(f.body,l1,l,Y0)}}if(!W.isString(J))J=J?"include":"omit";let R="credentials"in Request.prototype;E=new Request(G,{...M,signal:I,method:Y.toUpperCase(),headers:L.normalize().toJSON(),body:X,duplex:"half",credentials:R?J:void 0});let x=await fetch(E,M),j=RB&&(K==="stream"||K==="response");if(RB&&(H||j&&q)){let f={};["status","statusText","headers"].forEach((k)=>{f[k]=x[k]});let g=W.toFiniteNumber(x.headers.get("content-length")),[l,Y0]=H&&AB(g,z0(OB(H),!0))||[];x=new Response(TB(x.body,l1,l,()=>{Y0&&Y0(),q&&q()}),f)}K=K||"text";let h=await r0[W.findKey(r0,K)||"text"](x,B);return!j&&q&&q(),await new Promise((f,g)=>{w0(f,g,{data:h,headers:y.from(x.headers),status:x.status,statusText:x.statusText,config:B,request:E})})}catch(R){if(q&&q(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message))throw Object.assign(new D("Network Error",D.ERR_NETWORK,B,E),{cause:R.cause||R});throw D.from(R,R&&R.code,B,E)}});var jB={http:u0,xhr:u1,fetch:n1};W.forEach(jB,(B,G)=>{if(B){try{Object.defineProperty(B,"name",{value:G})}catch(Y){}Object.defineProperty(B,"adapterName",{value:G})}});var r1=(B)=>`- ${B}`,b5=(B)=>W.isFunction(B)||B===null||B===!1,s0={getAdapter:(B)=>{B=W.isArray(B)?B:[B];let{length:G}=B,Y,X,$={};for(let z=0;z<G;z++){Y=B[z];let Q;if(X=Y,!b5(Y)){if(X=jB[(Q=String(Y)).toLowerCase()],X===void 0)throw new D(`Unknown adapter '${Q}'`)}if(X)break;$[Q||"#"+z]=X}if(!X){let z=Object.entries($).map(([H,P])=>`adapter ${H} `+(P===!1?"is not supported by the environment":"is not available in the build")),Q=G?z.length>1?`since :
20
- `+z.map(r1).join(`
21
- `):" "+r1(z[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+Q,"ERR_NOT_SUPPORT")}return X},adapters:jB};function _B(B){if(B.cancelToken)B.cancelToken.throwIfRequested();if(B.signal&&B.signal.aborted)throw new i(null,B)}function o0(B){if(_B(B),B.headers=y.from(B.headers),B.data=E0.call(B,B.transformRequest),["post","put","patch"].indexOf(B.method)!==-1)B.headers.setContentType("application/x-www-form-urlencoded",!1);return s0.getAdapter(B.adapter||Q0.adapter)(B).then(function Y(X){return _B(B),X.data=E0.call(B,B.transformResponse,X),X.headers=y.from(X.headers),X},function Y(X){if(!q0(X)){if(_B(B),X&&X.response)X.response.data=E0.call(B,B.transformResponse,X.response),X.response.headers=y.from(X.response.headers)}return Promise.reject(X)})}var a0="1.10.0";var t0={};["object","boolean","number","function","string","symbol"].forEach((B,G)=>{t0[B]=function Y(X){return typeof X===B||"a"+(G<1?"n ":" ")+B}});var i1={};t0.transitional=function B(G,Y,X){function $(z,Q){return"[Axios v"+a0+"] Transitional option '"+z+"'"+Q+(X?". "+X:"")}return(z,Q,H)=>{if(G===!1)throw new D($(Q," has been removed"+(Y?" in "+Y:"")),D.ERR_DEPRECATED);if(Y&&!i1[Q])i1[Q]=!0,console.warn($(Q," has been deprecated since v"+Y+" and will be removed in the near future"));return G?G(z,Q,H):!0}};t0.spelling=function B(G){return(Y,X)=>{return console.warn(`${X} is likely a misspelling of ${G}`),!0}};function y5(B,G,Y){if(typeof B!=="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let X=Object.keys(B),$=X.length;while($-- >0){let z=X[$],Q=G[z];if(Q){let H=B[z],P=H===void 0||Q(H,z,B);if(P!==!0)throw new D("option "+z+" must be "+P,D.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new D("Unknown option "+z,D.ERR_BAD_OPTION)}}var D0={assertOptions:y5,validators:t0};var s=D0.validators;class C0{constructor(B){this.defaults=B||{},this.interceptors={request:new NB,response:new NB}}async request(B,G){try{return await this._request(B,G)}catch(Y){if(Y instanceof Error){let X={};Error.captureStackTrace?Error.captureStackTrace(X):X=new Error;let $=X.stack?X.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=$;else if($&&!String(Y.stack).endsWith($.replace(/^.+\n.+\n/,"")))Y.stack+=`
22
- `+$}catch(z){}}throw Y}}_request(B,G){if(typeof B==="string")G=G||{},G.url=B;else G=B||{};G=r(this.defaults,G);let{transitional:Y,paramsSerializer:X,headers:$}=G;if(Y!==void 0)D0.assertOptions(Y,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);if(X!=null)if(W.isFunction(X))G.paramsSerializer={serialize:X};else D0.assertOptions(X,{encode:s.function,serialize:s.function},!0);if(G.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)G.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else G.allowAbsoluteUrls=!0;D0.assertOptions(G,{baseUrl:s.spelling("baseURL"),withXsrfToken:s.spelling("withXSRFToken")},!0),G.method=(G.method||this.defaults.method||"get").toLowerCase();let z=$&&W.merge($.common,$[G.method]);$&&W.forEach(["delete","get","head","post","put","patch","common"],(I)=>{delete $[I]}),G.headers=y.concat(z,$);let Q=[],H=!0;this.interceptors.request.forEach(function I(E){if(typeof E.runWhen==="function"&&E.runWhen(G)===!1)return;H=H&&E.synchronous,Q.unshift(E.fulfilled,E.rejected)});let P=[];this.interceptors.response.forEach(function I(E){P.push(E.fulfilled,E.rejected)});let K,L=0,J;if(!H){let I=[o0.bind(this),void 0];I.unshift.apply(I,Q),I.push.apply(I,P),J=I.length,K=Promise.resolve(G);while(L<J)K=K.then(I[L++],I[L++]);return K}J=Q.length;let M=G;L=0;while(L<J){let I=Q[L++],E=Q[L++];try{M=I(M)}catch(q){E.call(this,q);break}}try{K=o0.call(this,M)}catch(I){return Promise.reject(I)}L=0,J=P.length;while(L<J)K=K.then(P[L++],P[L++]);return K}getUri(B){B=r(this.defaults,B);let G=F0(B.baseURL,B.url,B.allowAbsoluteUrls);return I0(G,B.params,B.paramsSerializer)}}W.forEach(["delete","get","head","options"],function B(G){C0.prototype[G]=function(Y,X){return this.request(r(X||{},{method:G,url:Y,data:(X||{}).data}))}});W.forEach(["post","put","patch"],function B(G){function Y(X){return function $(z,Q,H){return this.request(r(H||{},{method:G,headers:X?{"Content-Type":"multipart/form-data"}:{},url:z,data:Q}))}}C0.prototype[G]=Y(),C0.prototype[G+"Form"]=Y(!0)});var A0=C0;class kB{constructor(B){if(typeof B!=="function")throw new TypeError("executor must be a function.");let G;this.promise=new Promise(function X($){G=$});let Y=this;this.promise.then((X)=>{if(!Y._listeners)return;let $=Y._listeners.length;while($-- >0)Y._listeners[$](X);Y._listeners=null}),this.promise.then=(X)=>{let $,z=new Promise((Q)=>{Y.subscribe(Q),$=Q}).then(X);return z.cancel=function Q(){Y.unsubscribe($)},z},B(function X($,z,Q){if(Y.reason)return;Y.reason=new i($,z,Q),G(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(B){if(this.reason){B(this.reason);return}if(this._listeners)this._listeners.push(B);else this._listeners=[B]}unsubscribe(B){if(!this._listeners)return;let G=this._listeners.indexOf(B);if(G!==-1)this._listeners.splice(G,1)}toAbortSignal(){let B=new AbortController,G=(Y)=>{B.abort(Y)};return this.subscribe(G),B.signal.unsubscribe=()=>this.unsubscribe(G),B.signal}static source(){let B;return{token:new kB(function Y(X){B=X}),cancel:B}}}var s1=kB;function vB(B){return function G(Y){return B.apply(null,Y)}}function bB(B){return W.isObject(B)&&B.isAxiosError===!0}var yB={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yB).forEach(([B,G])=>{yB[G]=B});var o1=yB;function a1(B){let G=new A0(B),Y=P0(A0.prototype.request,G);return W.extend(Y,A0.prototype,G,{allOwnKeys:!0}),W.extend(Y,G,null,{allOwnKeys:!0}),Y.create=function X($){return a1(r(B,$))},Y}var b=a1(Q0);b.Axios=A0;b.CanceledError=i;b.CancelToken=s1;b.isCancel=q0;b.VERSION=a0;b.toFormData=e;b.AxiosError=D;b.Cancel=b.CanceledError;b.all=function B(G){return Promise.all(G)};b.spread=vB;b.isAxiosError=bB;b.mergeConfig=r;b.AxiosHeaders=y;b.formToJSON=(B)=>c0(W.isHTMLForm(B)?new FormData(B):B);b.getAdapter=s0.getAdapter;b.HttpStatusCode=o1;b.default=b;var fB=b;var f5="https://headless.tebex.io";async function m(B,G,Y,X,$,z,Q,H){if(Q){for(let[L,J]of Object.entries(Q))if(typeof J==="boolean")Q[L]=J?1:0}let P={url:`${f5}/api/${$}/${X}${z??""}`,params:Q,method:Y,data:H,headers:{"Content-Type":"application/json"}};if(B&&G)P.auth={username:B,password:G};return(await fB.request(P)).data}var t1=class{constructor(B,G){this.webstoreIdentifier=B,this.privateKey=G}async getCategories(B,G,Y){let{data:X}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/categories",{includePackages:B,basketIdent:G,ipAddress:Y});return X}async getCategory(B,G,Y,X){let{data:$}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/categories/${B}`,{includePackages:G,basketIdent:Y,ipAddress:X});return $}async apply(B,G,Y){return await m(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}`,{},Y)}async remove(B,G,Y){return await m(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}/remove`,{},Y)}async getPackage(B,G,Y){let{data:X}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/packages/${B}`,{basketIdent:G,ipAddress:Y});return X}async getPackages(B,G){let{data:Y}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/packages",{basketIdent:B,ipAddress:G});return Y}async getBasket(B){let{data:G}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}`);return G}async createBasket(B,G,Y,X,$){let{data:z}=await m(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:$},{complete_url:B,cancel_url:G,custom:Y,complete_auto_redirect:X});return z}async createMinecraftBasket(B,G,Y,X,$,z){let{data:Q}=await m(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:z},{username:B,complete_url:G,cancel_url:Y,custom:X,complete_auto_redirect:$});return Q}async getBasketAuthUrl(B,G){return await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}/auth`,{returnUrl:G})}async addPackageToBasket(B,G,Y,X,$){let{data:z}=await m(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,quantity:Y,type:X,variable_data:$});return z}async giftPackage(B,G,Y){let{data:X}=await m(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,target_username_id:Y});return X}async removePackage(B,G){let{data:Y}=await m(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages/remove",{},{package_id:G});return Y}async updateQuantity(B,G,Y){let{data:X}=await m(this.webstoreIdentifier,this.privateKey,"put",B,"baskets",`/packages/${G}`,{},{quantity:Y});return X}async getWebstore(){let{data:B}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts");return B}async getPages(){let{data:B}=await m(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/pages");return B}async updateTier(B,G){return await m(this.webstoreIdentifier,this.privateKey,"patch",this.webstoreIdentifier,"accounts",`/tiers/${B}`,{},{package_id:G})}};var mB=null,m5=async()=>{if(!mB){let B=process.env.NEXT_PUBLIC_TEBEX_PUBLIC_KEY;if(!B)throw new Error("Missing NEXT_PUBLIC_TEBEX_PUBLIC_KEY env variable");mB=new t1(B)}return mB},a=m5;var B0=K0(M0());var h5=async({includePackages:B,basketIdent:G,ipAddress:Y})=>{return(await a()).getCategories(B,G,Y)},g5={getCategories:h5},BB=g5;var u5=(B)=>{let[G,Y]=B0.useState(null),[X,$]=B0.useState(!0),[z,Q]=B0.useState(null),H=async()=>{$(!0),Q(null);try{let K=await BB.getCategories(B);Y(K)}catch(K){Q(K),Y(null)}finally{$(!1)}};B0.useEffect(()=>{H()},[]);let P=B0.useCallback((K)=>G?.find((L)=>L.name.toLowerCase()===K.toLowerCase()),[G]);return{categories:G,loading:X,error:z,getByName:P,refetch:H}},G4=u5;var W4=K0(M0());var o=K0(M0()),l5=K0(Z4());function d5(B){if(!B||typeof document=="undefined")return;let G=document.head||document.getElementsByTagName("head")[0],Y=document.createElement("style");Y.type="text/css",G.appendChild(Y),Y.styleSheet?Y.styleSheet.cssText=B:Y.appendChild(document.createTextNode(B))}var T8=Array(12).fill(0);var hB=1;class $4{constructor(){this.subscribe=(B)=>{return this.subscribers.push(B),()=>{let G=this.subscribers.indexOf(B);this.subscribers.splice(G,1)}},this.publish=(B)=>{this.subscribers.forEach((G)=>G(B))},this.addToast=(B)=>{this.publish(B),this.toasts=[...this.toasts,B]},this.create=(B)=>{var G;let{message:Y,...X}=B,$=typeof(B==null?void 0:B.id)==="number"||((G=B.id)==null?void 0:G.length)>0?B.id:hB++,z=this.toasts.find((H)=>{return H.id===$}),Q=B.dismissible===void 0?!0:B.dismissible;if(this.dismissedToasts.has($))this.dismissedToasts.delete($);if(z)this.toasts=this.toasts.map((H)=>{if(H.id===$)return this.publish({...H,...B,id:$,title:Y}),{...H,...B,id:$,dismissible:Q,title:Y};return H});else this.addToast({title:Y,...X,dismissible:Q,id:$});return $},this.dismiss=(B)=>{if(B)this.dismissedToasts.add(B),requestAnimationFrame(()=>this.subscribers.forEach((G)=>G({id:B,dismiss:!0})));else this.toasts.forEach((G)=>{this.subscribers.forEach((Y)=>Y({id:G.id,dismiss:!0}))});return B},this.message=(B,G)=>{return this.create({...G,message:B})},this.error=(B,G)=>{return this.create({...G,message:B,type:"error"})},this.success=(B,G)=>{return this.create({...G,type:"success",message:B})},this.info=(B,G)=>{return this.create({...G,type:"info",message:B})},this.warning=(B,G)=>{return this.create({...G,type:"warning",message:B})},this.loading=(B,G)=>{return this.create({...G,type:"loading",message:B})},this.promise=(B,G)=>{if(!G)return;let Y=void 0;if(G.loading!==void 0)Y=this.create({...G,promise:B,type:"loading",message:G.loading,description:typeof G.description!=="function"?G.description:void 0});let X=Promise.resolve(B instanceof Function?B():B),$=Y!==void 0,z,Q=X.then(async(P)=>{if(z=["resolve",P],o.default.isValidElement(P))$=!1,this.create({id:Y,type:"default",message:P});else if(p5(P)&&!P.ok){$=!1;let L=typeof G.error==="function"?await G.error(`HTTP error! status: ${P.status}`):G.error,J=typeof G.description==="function"?await G.description(`HTTP error! status: ${P.status}`):G.description,I=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"error",description:J,...I})}else if(P instanceof Error){$=!1;let L=typeof G.error==="function"?await G.error(P):G.error,J=typeof G.description==="function"?await G.description(P):G.description,I=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"error",description:J,...I})}else if(G.success!==void 0){$=!1;let L=typeof G.success==="function"?await G.success(P):G.success,J=typeof G.description==="function"?await G.description(P):G.description,I=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"success",description:J,...I})}}).catch(async(P)=>{if(z=["reject",P],G.error!==void 0){$=!1;let K=typeof G.error==="function"?await G.error(P):G.error,L=typeof G.description==="function"?await G.description(P):G.description,M=typeof K==="object"&&!o.default.isValidElement(K)?K:{message:K};this.create({id:Y,type:"error",description:L,...M})}}).finally(()=>{if($)this.dismiss(Y),Y=void 0;G.finally==null||G.finally.call(G)}),H=()=>new Promise((P,K)=>Q.then(()=>z[0]==="reject"?K(z[1]):P(z[1])).catch(K));if(typeof Y!=="string"&&typeof Y!=="number")return{unwrap:H};else return Object.assign(Y,{unwrap:H})},this.custom=(B,G)=>{let Y=(G==null?void 0:G.id)||hB++;return this.create({jsx:B(Y),id:Y,...G}),Y},this.getActiveToasts=()=>{return this.toasts.filter((B)=>!this.dismissedToasts.has(B.id))},this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}var p=new $4,c5=(B,G)=>{let Y=(G==null?void 0:G.id)||hB++;return p.addToast({title:B,...G,id:Y}),Y},p5=(B)=>{return B&&typeof B==="object"&&"ok"in B&&typeof B.ok==="boolean"&&"status"in B&&typeof B.status==="number"},n5=c5,r5=()=>p.toasts,i5=()=>p.getActiveToasts(),gB=Object.assign(n5,{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:r5,getToasts:i5});d5("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var s5=async({username:B,completeUrl:G,cancelUrl:Y,custom:X,completeAutoRedirect:$,ipAddress:z})=>{return(await a()).createMinecraftBasket(B,G,Y,X,$,z)},o5=async(B)=>{return(await a()).getBasket(B)},a5=async(B,G,Y,X,$)=>{return(await a()).addPackageToBasket(B,G,Y??1,X,$)},t5=async(B,G,Y)=>{return(await a()).updateQuantity(B,G,Y-1>=0?Y-1:0)},e5={createBasket:s5,getBasket:o5,addPackageToBasket:a5,removePackageFromBasket:t5},GB=e5;var Q4=(B)=>{let G,Y=new Set,X=(K,L)=>{let J=typeof K==="function"?K(G):K;if(!Object.is(J,G)){let M=G;G=(L!=null?L:typeof J!=="object"||J===null)?J:Object.assign({},G,J),Y.forEach((I)=>I(G,M))}},$=()=>G,H={setState:X,getState:$,getInitialState:()=>P,subscribe:(K)=>{return Y.add(K),()=>Y.delete(K)}},P=G=B(X,$,H);return H},z4=(B)=>B?Q4(B):Q4;var uB=K0(M0());var BG=(B)=>B;function GG(B,G=BG){let Y=uB.default.useSyncExternalStore(B.subscribe,()=>G(B.getState()),()=>G(B.getInitialState()));return uB.default.useDebugValue(Y),Y}var M4=(B)=>{let G=z4(B),Y=(X)=>GG(G,X);return Object.assign(Y,G),Y},W0=(B)=>B?M4(B):M4;var YG=(B)=>(G,Y,X)=>{let $=X.subscribe;return X.subscribe=(Q,H,P)=>{let K=Q;if(H){let L=(P==null?void 0:P.equalityFn)||Object.is,J=Q(X.getState());if(K=(M)=>{let I=Q(M);if(!L(J,I)){let E=J;H(J=I,E)}},P==null?void 0:P.fireImmediately)H(J,J)}return $(K)},B(G,Y,X)},YB=YG;function XG(B,G){let Y;try{Y=B()}catch($){return}return{getItem:($)=>{var z;let Q=(P)=>{if(P===null)return null;return JSON.parse(P,G==null?void 0:G.reviver)},H=(z=Y.getItem($))!=null?z:null;if(H instanceof Promise)return H.then(Q);return Q(H)},setItem:($,z)=>Y.setItem($,JSON.stringify(z,G==null?void 0:G.replacer)),removeItem:($)=>Y.removeItem($)}}var dB=(B)=>(G)=>{try{let Y=B(G);if(Y instanceof Promise)return Y;return{then(X){return dB(X)(Y)},catch(X){return this}}}catch(Y){return{then(X){return this},catch(X){return dB(X)(Y)}}}},ZG=(B,G)=>(Y,X,$)=>{let z={storage:XG(()=>localStorage),partialize:(q)=>q,version:0,merge:(q,w)=>({...w,...q}),...G},Q=!1,H=new Set,P=new Set,K=z.storage;if(!K)return B((...q)=>{console.warn(`[zustand persist middleware] Unable to update item '${z.name}', the given storage is currently unavailable.`),Y(...q)},X,$);let L=()=>{let q=z.partialize({...X()});return K.setItem(z.name,{state:q,version:z.version})},J=$.setState;$.setState=(q,w)=>{J(q,w),L()};let M=B((...q)=>{Y(...q),L()},X,$);$.getInitialState=()=>M;let I,E=()=>{var q,w;if(!K)return;Q=!1,H.forEach((x)=>{var j;return x((j=X())!=null?j:M)});let R=((w=z.onRehydrateStorage)==null?void 0:w.call(z,(q=X())!=null?q:M))||void 0;return dB(K.getItem.bind(K))(z.name).then((x)=>{if(x)if(typeof x.version==="number"&&x.version!==z.version){if(z.migrate){let j=z.migrate(x.state,x.version);if(j instanceof Promise)return j.then((h)=>[!0,h]);return[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then((x)=>{var j;let[h,f]=x;if(I=z.merge(f,(j=X())!=null?j:M),Y(I,!0),h)return L()}).then(()=>{R==null||R(I,void 0),I=X(),Q=!0,P.forEach((x)=>x(I))}).catch((x)=>{R==null||R(void 0,x)})};if($.persist={setOptions:(q)=>{if(z={...z,...q},q.storage)K=q.storage},clearStorage:()=>{K==null||K.removeItem(z.name)},getOptions:()=>z,rehydrate:()=>E(),hasHydrated:()=>Q,onHydrate:(q)=>{return H.add(q),()=>{H.delete(q)}},onFinishHydration:(q)=>{return P.add(q),()=>{P.delete(q)}}},!z.skipHydration)E();return I||M},XB=ZG;var $G=W0()(YB(XB((B)=>({basketIdent:null,setBasketIdent:(G)=>B({basketIdent:G}),clearBasketIdent:()=>B({basketIdent:null})}),{name:"shop-basket-store"}))),ZB=$G;var QG=W0()(YB((B)=>({isGlobalLoading:!1,setIsGlobalLoading:(G)=>B({isGlobalLoading:G}),isCreatingBasket:!1,setIsCreatingBasket:(G)=>B({isCreatingBasket:G})}))),O0=QG;var zG=W0()(XB((B)=>({username:"",setUsername:(G)=>B({username:G}),clearUsername:()=>B({username:""})}),{name:"shop-user-store"})),$B=zG;var MG=async(B)=>{let{isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:$,username:z}=B;if(G)return null;let{completeUrl:Q,cancelUrl:H}=UG();try{Y(!0);let P=await $({username:z,completeUrl:Q,cancelUrl:H,completeAutoRedirect:!1,ipAddress:""});if(!P?.ident)return gB.error("Une erreur est survenue lors de la création du panier"),null;return X(P.ident),P}catch{return gB.error("Erreur lors de la création du panier. Contactez le support si le problème persiste."),null}finally{Y(!1)}},WG=(B)=>{let G=O0((Q)=>Q.isCreatingBasket),Y=O0((Q)=>Q.setIsCreatingBasket),X=ZB((Q)=>Q.setBasketIdent),$=$B((Q)=>Q.username);return W4.useCallback(()=>MG({isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:GB.createBasket,username:B??$}),[G,Y,X,B,$])},UG=()=>{if(!process.env.NEXT_PUBLIC_APP_URL)throw new Error("NEXT_PUBLIC_APP_URL is not set");return{completeUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/complete-purchase`,cancelUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/cancel-purchase`}},U4=WG;
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),K}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=$0(),H={d:{f:B,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:B,C:B,L:B,m:B,X:B,S:B,M:B},p:0,findDOMNode:null},U=Symbol.for("react.portal"),L=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,u.createPortal=function(K,M){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(K,M,null,N)},u.flushSync=function(K){var M=L.T,N=H.p;try{if(L.T=null,H.p=2,K)return K()}finally{L.T=M,H.p=N,H.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},u.preconnect=function(K,M){typeof K==="string"&&K?M!=null&&typeof M!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",z(M)):M!=null&&typeof M.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",$(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(K)),typeof K==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,H.d.C(K,M))},u.prefetchDNS=function(K){if(typeof K!=="string"||!K)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(K));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M))}typeof K==="string"&&H.d.D(K)},u.preinit=function(K,M){if(typeof K==="string"&&K?M==null||typeof M!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",z(M)):M.as!=="style"&&M.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',z(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(K)),typeof K==="string"&&M&&typeof M.as==="string"){var N=M.as,E=X(N,M.crossOrigin),q=typeof M.integrity==="string"?M.integrity:void 0,w=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;N==="style"?H.d.S(K,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:E,integrity:q,fetchPriority:w}):N==="script"&&H.d.X(K,{crossOrigin:E,integrity:q,fetchPriority:w,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},u.preinitModule=function(K,M){var N="";if(typeof K==="string"&&K||(N+=" The `href` argument encountered was "+$(K)+"."),M!==void 0&&typeof M!=="object"?N+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&M.as!=="script"&&(N+=" The `as` option encountered was "+z(M.as)+"."),N)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",N);else switch(N=M&&typeof M.as==="string"?M.as:"script",N){case"script":break;default:N=z(N),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',N,K)}if(typeof K==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")N=X(M.as,M.crossOrigin),H.d.M(K,{crossOrigin:N,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&H.d.M(K)},u.preload=function(K,M){var N="";if(typeof K==="string"&&K||(N+=" The `href` argument encountered was "+$(K)+"."),M==null||typeof M!=="object"?N+=" The `options` argument encountered was "+$(M)+".":typeof M.as==="string"&&M.as||(N+=" The `as` option encountered was "+$(M.as)+"."),N&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',N),typeof K==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){N=M.as;var E=X(N,M.crossOrigin);H.d.L(K,N,{crossOrigin:E,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},u.preloadModule=function(K,M){var N="";typeof K==="string"&&K||(N+=" The `href` argument encountered was "+$(K)+"."),M!==void 0&&typeof M!=="object"?N+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(N+=" The `as` option encountered was "+$(M.as)+"."),N&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',N),typeof K==="string"&&(M?(N=X(M.as,M.crossOrigin),H.d.m(K,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:N,integrity:typeof M.integrity==="string"?M.integrity:void 0})):H.d.m(K))},u.requestFormReset=function(K){H.d.r(K)},u.unstable_batchedUpdates=function(K,M){return K(M)},u.useFormState=function(K,M,N){return Q().useFormState(K,M,N)},u.useFormStatus=function(){return Q().useHostTransitionStatus()},u.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $5=g0((x8,Z5)=>{Z5.exports=X5()});var HG={};H4(HG,{useShopUserStore:()=>L0,useShopUiStore:()=>j0,useShopBasketStore:()=>Q0,useCreateBasket:()=>M1,useCategories:()=>U5,useBasket:()=>K5,getTebex:()=>t,categoriesService:()=>z1,basketService:()=>Y0});module.exports=D5(HG);function I0(B,G){return function Y(){return B.apply(G,arguments)}}var{toString:A5}=Object.prototype,{getPrototypeOf:I1}=Object,{iterator:d0,toStringTag:N4}=Symbol,l0=((B)=>(G)=>{let Y=A5.call(G);return B[Y]||(B[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),n=(B)=>{return B=B.toLowerCase(),(G)=>l0(G)===B},p0=(B)=>(G)=>typeof G===B,{isArray:J0}=Array,E0=p0("undefined");function O5(B){return B!==null&&!E0(B)&&B.constructor!==null&&!E0(B.constructor)&&l(B.constructor.isBuffer)&&B.constructor.isBuffer(B)}var V4=n("ArrayBuffer");function x5(B){let G;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)G=ArrayBuffer.isView(B);else G=B&&B.buffer&&V4(B.buffer);return G}var T5=p0("string"),l=p0("function"),I4=p0("number"),c0=(B)=>B!==null&&typeof B==="object",S5=(B)=>B===!0||B===!1,u0=(B)=>{if(l0(B)!=="object")return!1;let G=I1(B);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(N4 in B)&&!(d0 in B)},R5=n("Date"),j5=n("File"),_5=n("Blob"),k5=n("FileList"),v5=(B)=>c0(B)&&l(B.pipe),b5=(B)=>{let G;return B&&(typeof FormData==="function"&&B instanceof FormData||l(B.append)&&((G=l0(B))==="formdata"||G==="object"&&l(B.toString)&&B.toString()==="[object FormData]"))},y5=n("URLSearchParams"),[f5,m5,h5,g5]=["ReadableStream","Request","Response","Headers"].map(n),u5=(B)=>B.trim?B.trim():B.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q0(B,G,{allOwnKeys:Y=!1}={}){if(B===null||typeof B==="undefined")return;let X,$;if(typeof B!=="object")B=[B];if(J0(B))for(X=0,$=B.length;X<$;X++)G.call(null,B[X],X,B);else{let z=Y?Object.getOwnPropertyNames(B):Object.keys(B),Q=z.length,P;for(X=0;X<Q;X++)P=z[X],G.call(null,B[P],P,B)}}function E4(B,G){G=G.toLowerCase();let Y=Object.keys(B),X=Y.length,$;while(X-- >0)if($=Y[X],G===$.toLowerCase())return $;return null}var Z0=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),q4=(B)=>!E0(B)&&B!==Z0;function V1(){let{caseless:B}=q4(this)&&this||{},G={},Y=(X,$)=>{let z=B&&E4(G,$)||$;if(u0(G[z])&&u0(X))G[z]=V1(G[z],X);else if(u0(X))G[z]=V1({},X);else if(J0(X))G[z]=X.slice();else G[z]=X};for(let X=0,$=arguments.length;X<$;X++)arguments[X]&&q0(arguments[X],Y);return G}var d5=(B,G,Y,{allOwnKeys:X}={})=>{return q0(G,($,z)=>{if(Y&&l($))B[z]=I0($,Y);else B[z]=$},{allOwnKeys:X}),B},l5=(B)=>{if(B.charCodeAt(0)===65279)B=B.slice(1);return B},p5=(B,G,Y,X)=>{B.prototype=Object.create(G.prototype,X),B.prototype.constructor=B,Object.defineProperty(B,"super",{value:G.prototype}),Y&&Object.assign(B.prototype,Y)},c5=(B,G,Y,X)=>{let $,z,Q,P={};if(G=G||{},B==null)return G;do{$=Object.getOwnPropertyNames(B),z=$.length;while(z-- >0)if(Q=$[z],(!X||X(Q,B,G))&&!P[Q])G[Q]=B[Q],P[Q]=!0;B=Y!==!1&&I1(B)}while(B&&(!Y||Y(B,G))&&B!==Object.prototype);return G},n5=(B,G,Y)=>{if(B=String(B),Y===void 0||Y>B.length)Y=B.length;Y-=G.length;let X=B.indexOf(G,Y);return X!==-1&&X===Y},r5=(B)=>{if(!B)return null;if(J0(B))return B;let G=B.length;if(!I4(G))return null;let Y=new Array(G);while(G-- >0)Y[G]=B[G];return Y},i5=((B)=>{return(G)=>{return B&&G instanceof B}})(typeof Uint8Array!=="undefined"&&I1(Uint8Array)),s5=(B,G)=>{let X=(B&&B[d0]).call(B),$;while(($=X.next())&&!$.done){let z=$.value;G.call(B,z[0],z[1])}},o5=(B,G)=>{let Y,X=[];while((Y=B.exec(G))!==null)X.push(Y);return X},a5=n("HTMLFormElement"),t5=(B)=>{return B.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function G(Y,X,$){return X.toUpperCase()+$})},L4=(({hasOwnProperty:B})=>(G,Y)=>B.call(G,Y))(Object.prototype),e5=n("RegExp"),w4=(B,G)=>{let Y=Object.getOwnPropertyDescriptors(B),X={};q0(Y,($,z)=>{let Q;if((Q=G($,z,B))!==!1)X[z]=Q||$}),Object.defineProperties(B,X)},BB=(B)=>{w4(B,(G,Y)=>{if(l(B)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let X=B[Y];if(!l(X))return;if(G.enumerable=!1,"writable"in G){G.writable=!1;return}if(!G.set)G.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},GB=(B,G)=>{let Y={},X=($)=>{$.forEach((z)=>{Y[z]=!0})};return J0(B)?X(B):X(String(B).split(G)),Y},YB=()=>{},XB=(B,G)=>{return B!=null&&Number.isFinite(B=+B)?B:G};function ZB(B){return!!(B&&l(B.append)&&B[N4]==="FormData"&&B[d0])}var $B=(B)=>{let G=new Array(10),Y=(X,$)=>{if(c0(X)){if(G.indexOf(X)>=0)return;if(!("toJSON"in X)){G[$]=X;let z=J0(X)?[]:{};return q0(X,(Q,P)=>{let H=Y(Q,$+1);!E0(H)&&(z[P]=H)}),G[$]=void 0,z}}return X};return Y(B,0)},QB=n("AsyncFunction"),zB=(B)=>B&&(c0(B)||l(B))&&l(B.then)&&l(B.catch),F4=((B,G)=>{if(B)return setImmediate;return G?((Y,X)=>{return Z0.addEventListener("message",({source:$,data:z})=>{if($===Z0&&z===Y)X.length&&X.shift()()},!1),($)=>{X.push($),Z0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",l(Z0.postMessage)),MB=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(Z0):typeof process!=="undefined"&&process.nextTick||F4,WB=(B)=>B!=null&&l(B[d0]),W={isArray:J0,isArrayBuffer:V4,isBuffer:O5,isFormData:b5,isArrayBufferView:x5,isString:T5,isNumber:I4,isBoolean:S5,isObject:c0,isPlainObject:u0,isReadableStream:f5,isRequest:m5,isResponse:h5,isHeaders:g5,isUndefined:E0,isDate:R5,isFile:j5,isBlob:_5,isRegExp:e5,isFunction:l,isStream:v5,isURLSearchParams:y5,isTypedArray:i5,isFileList:k5,forEach:q0,merge:V1,extend:d5,trim:u5,stripBOM:l5,inherits:p5,toFlatObject:c5,kindOf:l0,kindOfTest:n,endsWith:n5,toArray:r5,forEachEntry:s5,matchAll:o5,isHTMLForm:a5,hasOwnProperty:L4,hasOwnProp:L4,reduceDescriptors:w4,freezeMethods:BB,toObjectSet:GB,toCamelCase:t5,noop:YB,toFiniteNumber:XB,findKey:E4,global:Z0,isContextDefined:q4,isSpecCompliantForm:ZB,toJSONObject:$B,isAsyncFn:QB,isThenable:zB,setImmediate:F4,asap:MB,isIterable:WB};function K0(B,G,Y,X,$){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;if(this.message=B,this.name="AxiosError",G&&(this.code=G),Y&&(this.config=Y),X&&(this.request=X),$)this.response=$,this.status=$.status?$.status:null}W.inherits(K0,Error,{toJSON:function B(){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:W.toJSONObject(this.config),code:this.code,status:this.status}}});var C4=K0.prototype,D4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((B)=>{D4[B]={value:B}});Object.defineProperties(K0,D4);Object.defineProperty(C4,"isAxiosError",{value:!0});K0.from=(B,G,Y,X,$,z)=>{let Q=Object.create(C4);return W.toFlatObject(B,Q,function P(H){return H!==Error.prototype},(P)=>{return P!=="isAxiosError"}),K0.call(Q,B.message,G,Y,X,$),Q.cause=B,Q.name=B.name,z&&Object.assign(Q,z),Q};var D=K0;var n0=null;function E1(B){return W.isPlainObject(B)||W.isArray(B)}function O4(B){return W.endsWith(B,"[]")?B.slice(0,-2):B}function A4(B,G,Y){if(!B)return G;return B.concat(G).map(function X($,z){return $=O4($),!Y&&z?"["+$+"]":$}).join(Y?".":"")}function JB(B){return W.isArray(B)&&!B.some(E1)}var KB=W.toFlatObject(W,{},null,function B(G){return/^is[A-Z]/.test(G)});function UB(B,G,Y){if(!W.isObject(B))throw new TypeError("target must be an object");G=G||new(n0||FormData),Y=W.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function E(q,w){return!W.isUndefined(w[q])});let X=Y.metaTokens,$=Y.visitor||L,z=Y.dots,Q=Y.indexes,H=(Y.Blob||typeof Blob!=="undefined"&&Blob)&&W.isSpecCompliantForm(G);if(!W.isFunction($))throw new TypeError("visitor must be a function");function U(E){if(E===null)return"";if(W.isDate(E))return E.toISOString();if(W.isBoolean(E))return E.toString();if(!H&&W.isBlob(E))throw new D("Blob is not supported. Use a Buffer instead.");if(W.isArrayBuffer(E)||W.isTypedArray(E))return H&&typeof Blob==="function"?new Blob([E]):Buffer.from(E);return E}function L(E,q,w){let j=E;if(E&&!w&&typeof E==="object"){if(W.endsWith(q,"{}"))q=X?q:q.slice(0,-2),E=JSON.stringify(E);else if(W.isArray(E)&&JB(E)||(W.isFileList(E)||W.endsWith(q,"[]"))&&(j=W.toArray(E)))return q=O4(q),j.forEach(function C(A,y){!(W.isUndefined(A)||A===null)&&G.append(Q===!0?A4([q],y,z):Q===null?q:q+"[]",U(A))}),!1}if(E1(E))return!0;return G.append(A4(w,q,z),U(E)),!1}let K=[],M=Object.assign(KB,{defaultVisitor:L,convertValue:U,isVisitable:E1});function N(E,q){if(W.isUndefined(E))return;if(K.indexOf(E)!==-1)throw Error("Circular reference detected in "+q.join("."));K.push(E),W.forEach(E,function w(j,C){if((!(W.isUndefined(j)||j===null)&&$.call(G,j,W.isString(C)?C.trim():C,q,M))===!0)N(j,q?q.concat(C):[C])}),K.pop()}if(!W.isObject(B))throw new TypeError("data must be an object");return N(B),G}var G0=UB;function x4(B){let G={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(B).replace(/[!'()~]|%20|%00/g,function Y(X){return G[X]})}function T4(B,G){this._pairs=[],B&&G0(B,this,G)}var S4=T4.prototype;S4.append=function B(G,Y){this._pairs.push([G,Y])};S4.toString=function B(G){let Y=G?function(X){return G.call(this,X,x4)}:x4;return this._pairs.map(function X($){return Y($[0])+"="+Y($[1])},"").join("&")};var r0=T4;function PB(B){return encodeURIComponent(B).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w0(B,G,Y){if(!G)return B;let X=Y&&Y.encode||PB;if(W.isFunction(Y))Y={serialize:Y};let $=Y&&Y.serialize,z;if($)z=$(G,Y);else z=W.isURLSearchParams(G)?G.toString():new r0(G,Y).toString(X);if(z){let Q=B.indexOf("#");if(Q!==-1)B=B.slice(0,Q);B+=(B.indexOf("?")===-1?"?":"&")+z}return B}class R4{constructor(){this.handlers=[]}use(B,G,Y){return this.handlers.push({fulfilled:B,rejected:G,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(B){if(this.handlers[B])this.handlers[B]=null}clear(){if(this.handlers)this.handlers=[]}forEach(B){W.forEach(this.handlers,function G(Y){if(Y!==null)B(Y)})}}var q1=R4;var i0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var j4=typeof URLSearchParams!=="undefined"?URLSearchParams:r0;var _4=typeof FormData!=="undefined"?FormData:null;var k4=typeof Blob!=="undefined"?Blob:null;var v4={isBrowser:!0,classes:{URLSearchParams:j4,FormData:_4,Blob:k4},protocols:["http","https","file","blob","url","data"]};var C1={};H4(C1,{origin:()=>NB,navigator:()=>w1,hasStandardBrowserWebWorkerEnv:()=>LB,hasStandardBrowserEnv:()=>HB,hasBrowserEnv:()=>F1});var F1=typeof window!=="undefined"&&typeof document!=="undefined",w1=typeof navigator==="object"&&navigator||void 0,HB=F1&&(!w1||["ReactNative","NativeScript","NS"].indexOf(w1.product)<0),LB=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),NB=F1&&window.location.href||"http://localhost";var b={...C1,...v4};function D1(B,G){return G0(B,new b.classes.URLSearchParams,Object.assign({visitor:function(Y,X,$,z){if(b.isNode&&W.isBuffer(Y))return this.append(X,Y.toString("base64")),!1;return z.defaultVisitor.apply(this,arguments)}},G))}function VB(B){return W.matchAll(/\w+|\[(\w*)]/g,B).map((G)=>{return G[0]==="[]"?"":G[1]||G[0]})}function IB(B){let G={},Y=Object.keys(B),X,$=Y.length,z;for(X=0;X<$;X++)z=Y[X],G[z]=B[z];return G}function EB(B){function G(Y,X,$,z){let Q=Y[z++];if(Q==="__proto__")return!0;let P=Number.isFinite(+Q),H=z>=Y.length;if(Q=!Q&&W.isArray($)?$.length:Q,H){if(W.hasOwnProp($,Q))$[Q]=[$[Q],X];else $[Q]=X;return!P}if(!$[Q]||!W.isObject($[Q]))$[Q]=[];if(G(Y,X,$[Q],z)&&W.isArray($[Q]))$[Q]=IB($[Q]);return!P}if(W.isFormData(B)&&W.isFunction(B.entries)){let Y={};return W.forEachEntry(B,(X,$)=>{G(VB(X),$,Y,0)}),Y}return null}var s0=EB;function qB(B,G,Y){if(W.isString(B))try{return(G||JSON.parse)(B),W.trim(B)}catch(X){if(X.name!=="SyntaxError")throw X}return(Y||JSON.stringify)(B)}var A1={transitional:i0,adapter:["xhr","http","fetch"],transformRequest:[function B(G,Y){let X=Y.getContentType()||"",$=X.indexOf("application/json")>-1,z=W.isObject(G);if(z&&W.isHTMLForm(G))G=new FormData(G);if(W.isFormData(G))return $?JSON.stringify(s0(G)):G;if(W.isArrayBuffer(G)||W.isBuffer(G)||W.isStream(G)||W.isFile(G)||W.isBlob(G)||W.isReadableStream(G))return G;if(W.isArrayBufferView(G))return G.buffer;if(W.isURLSearchParams(G))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),G.toString();let P;if(z){if(X.indexOf("application/x-www-form-urlencoded")>-1)return D1(G,this.formSerializer).toString();if((P=W.isFileList(G))||X.indexOf("multipart/form-data")>-1){let H=this.env&&this.env.FormData;return G0(P?{"files[]":G}:G,H&&new H,this.formSerializer)}}if(z||$)return Y.setContentType("application/json",!1),qB(G);return G}],transformResponse:[function B(G){let Y=this.transitional||A1.transitional,X=Y&&Y.forcedJSONParsing,$=this.responseType==="json";if(W.isResponse(G)||W.isReadableStream(G))return G;if(G&&W.isString(G)&&(X&&!this.responseType||$)){let Q=!(Y&&Y.silentJSONParsing)&&$;try{return JSON.parse(G)}catch(P){if(Q){if(P.name==="SyntaxError")throw D.from(P,D.ERR_BAD_RESPONSE,this,null,this.response);throw P}}}return G}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:b.classes.FormData,Blob:b.classes.Blob},validateStatus:function B(G){return G>=200&&G<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(B)=>{A1.headers[B]={}});var U0=A1;var wB=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),b4=(B)=>{let G={},Y,X,$;return B&&B.split(`
18
+ `).forEach(function z(Q){if($=Q.indexOf(":"),Y=Q.substring(0,$).trim().toLowerCase(),X=Q.substring($+1).trim(),!Y||G[Y]&&wB[Y])return;if(Y==="set-cookie")if(G[Y])G[Y].push(X);else G[Y]=[X];else G[Y]=G[Y]?G[Y]+", "+X:X}),G};var y4=Symbol("internals");function F0(B){return B&&String(B).trim().toLowerCase()}function o0(B){if(B===!1||B==null)return B;return W.isArray(B)?B.map(o0):String(B)}function FB(B){let G=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,X;while(X=Y.exec(B))G[X[1]]=X[2];return G}var CB=(B)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(B.trim());function O1(B,G,Y,X,$){if(W.isFunction(X))return X.call(this,G,Y);if($)G=Y;if(!W.isString(G))return;if(W.isString(X))return G.indexOf(X)!==-1;if(W.isRegExp(X))return X.test(G)}function DB(B){return B.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(G,Y,X)=>{return Y.toUpperCase()+X})}function AB(B,G){let Y=W.toCamelCase(" "+G);["get","set","has"].forEach((X)=>{Object.defineProperty(B,X+Y,{value:function($,z,Q){return this[X].call(this,G,$,z,Q)},configurable:!0})})}class C0{constructor(B){B&&this.set(B)}set(B,G,Y){let X=this;function $(Q,P,H){let U=F0(P);if(!U)throw new Error("header name must be a non-empty string");let L=W.findKey(X,U);if(!L||X[L]===void 0||H===!0||H===void 0&&X[L]!==!1)X[L||P]=o0(Q)}let z=(Q,P)=>W.forEach(Q,(H,U)=>$(H,U,P));if(W.isPlainObject(B)||B instanceof this.constructor)z(B,G);else if(W.isString(B)&&(B=B.trim())&&!CB(B))z(b4(B),G);else if(W.isObject(B)&&W.isIterable(B)){let Q={},P,H;for(let U of B){if(!W.isArray(U))throw TypeError("Object iterator must return a key-value pair");Q[H=U[0]]=(P=Q[H])?W.isArray(P)?[...P,U[1]]:[P,U[1]]:U[1]}z(Q,G)}else B!=null&&$(G,B,Y);return this}get(B,G){if(B=F0(B),B){let Y=W.findKey(this,B);if(Y){let X=this[Y];if(!G)return X;if(G===!0)return FB(X);if(W.isFunction(G))return G.call(this,X,Y);if(W.isRegExp(G))return G.exec(X);throw new TypeError("parser must be boolean|regexp|function")}}}has(B,G){if(B=F0(B),B){let Y=W.findKey(this,B);return!!(Y&&this[Y]!==void 0&&(!G||O1(this,this[Y],Y,G)))}return!1}delete(B,G){let Y=this,X=!1;function $(z){if(z=F0(z),z){let Q=W.findKey(Y,z);if(Q&&(!G||O1(Y,Y[Q],Q,G)))delete Y[Q],X=!0}}if(W.isArray(B))B.forEach($);else $(B);return X}clear(B){let G=Object.keys(this),Y=G.length,X=!1;while(Y--){let $=G[Y];if(!B||O1(this,this[$],$,B,!0))delete this[$],X=!0}return X}normalize(B){let G=this,Y={};return W.forEach(this,(X,$)=>{let z=W.findKey(Y,$);if(z){G[z]=o0(X),delete G[$];return}let Q=B?DB($):String($).trim();if(Q!==$)delete G[$];G[Q]=o0(X),Y[Q]=!0}),this}concat(...B){return this.constructor.concat(this,...B)}toJSON(B){let G=Object.create(null);return W.forEach(this,(Y,X)=>{Y!=null&&Y!==!1&&(G[X]=B&&W.isArray(Y)?Y.join(", "):Y)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([B,G])=>B+": "+G).join(`
19
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(B){return B instanceof this?B:new this(B)}static concat(B,...G){let Y=new this(B);return G.forEach((X)=>Y.set(X)),Y}static accessor(B){let Y=(this[y4]=this[y4]={accessors:{}}).accessors,X=this.prototype;function $(z){let Q=F0(z);if(!Y[Q])AB(X,z),Y[Q]=!0}return W.isArray(B)?B.forEach($):$(B),this}}C0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(C0.prototype,({value:B},G)=>{let Y=G[0].toUpperCase()+G.slice(1);return{get:()=>B,set(X){this[Y]=X}}});W.freezeMethods(C0);var h=C0;function D0(B,G){let Y=this||U0,X=G||Y,$=h.from(X.headers),z=X.data;return W.forEach(B,function Q(P){z=P.call(Y,z,$.normalize(),G?G.status:void 0)}),$.normalize(),z}function A0(B){return!!(B&&B.__CANCEL__)}function f4(B,G,Y){D.call(this,B==null?"canceled":B,D.ERR_CANCELED,G,Y),this.name="CanceledError"}W.inherits(f4,D,{__CANCEL__:!0});var i=f4;function O0(B,G,Y){let X=Y.config.validateStatus;if(!Y.status||!X||X(Y.status))B(Y);else G(new D("Request failed with status code "+Y.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function x1(B){let G=/^([-+\w]{1,25})(:?\/\/|:)/.exec(B);return G&&G[1]||""}function OB(B,G){B=B||10;let Y=new Array(B),X=new Array(B),$=0,z=0,Q;return G=G!==void 0?G:1000,function P(H){let U=Date.now(),L=X[z];if(!Q)Q=U;Y[$]=H,X[$]=U;let K=z,M=0;while(K!==$)M+=Y[K++],K=K%B;if($=($+1)%B,$===z)z=(z+1)%B;if(U-Q<G)return;let N=L&&U-L;return N?Math.round(M*1000/N):void 0}}var m4=OB;function xB(B,G){let Y=0,X=1000/G,$,z,Q=(U,L=Date.now())=>{if(Y=L,$=null,z)clearTimeout(z),z=null;B.apply(null,U)};return[(...U)=>{let L=Date.now(),K=L-Y;if(K>=X)Q(U,L);else if($=U,!z)z=setTimeout(()=>{z=null,Q($)},X-K)},()=>$&&Q($)]}var h4=xB;var P0=(B,G,Y=3)=>{let X=0,$=m4(50,250);return h4((z)=>{let Q=z.loaded,P=z.lengthComputable?z.total:void 0,H=Q-X,U=$(H),L=Q<=P;X=Q;let K={loaded:Q,total:P,progress:P?Q/P:void 0,bytes:H,rate:U?U:void 0,estimated:U&&P&&L?(P-Q)/U:void 0,event:z,lengthComputable:P!=null,[G?"download":"upload"]:!0};B(K)},Y)},T1=(B,G)=>{let Y=B!=null;return[(X)=>G[0]({lengthComputable:Y,total:B,loaded:X}),G[1]]},S1=(B)=>(...G)=>W.asap(()=>B(...G));var g4=b.hasStandardBrowserEnv?((B,G)=>(Y)=>{return Y=new URL(Y,b.origin),B.protocol===Y.protocol&&B.host===Y.host&&(G||B.port===Y.port)})(new URL(b.origin),b.navigator&&/(msie|trident)/i.test(b.navigator.userAgent)):()=>!0;var u4=b.hasStandardBrowserEnv?{write(B,G,Y,X,$,z){let Q=[B+"="+encodeURIComponent(G)];W.isNumber(Y)&&Q.push("expires="+new Date(Y).toGMTString()),W.isString(X)&&Q.push("path="+X),W.isString($)&&Q.push("domain="+$),z===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read(B){let G=document.cookie.match(new RegExp("(^|;\\s*)("+B+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove(B){this.write(B,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function R1(B){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(B)}function j1(B,G){return G?B.replace(/\/?\/$/,"")+"/"+G.replace(/^\/+/,""):B}function x0(B,G,Y){let X=!R1(G);if(B&&(X||Y==!1))return j1(B,G);return G}var d4=(B)=>B instanceof h?{...B}:B;function r(B,G){G=G||{};let Y={};function X(U,L,K,M){if(W.isPlainObject(U)&&W.isPlainObject(L))return W.merge.call({caseless:M},U,L);else if(W.isPlainObject(L))return W.merge({},L);else if(W.isArray(L))return L.slice();return L}function $(U,L,K,M){if(!W.isUndefined(L))return X(U,L,K,M);else if(!W.isUndefined(U))return X(void 0,U,K,M)}function z(U,L){if(!W.isUndefined(L))return X(void 0,L)}function Q(U,L){if(!W.isUndefined(L))return X(void 0,L);else if(!W.isUndefined(U))return X(void 0,U)}function P(U,L,K){if(K in G)return X(U,L);else if(K in B)return X(void 0,U)}let H={url:z,method:z,data:z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,withXSRFToken:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:P,headers:(U,L,K)=>$(d4(U),d4(L),K,!0)};return W.forEach(Object.keys(Object.assign({},B,G)),function U(L){let K=H[L]||$,M=K(B[L],G[L],L);W.isUndefined(M)&&K!==P||(Y[L]=M)}),Y}var a0=(B)=>{let G=r({},B),{data:Y,withXSRFToken:X,xsrfHeaderName:$,xsrfCookieName:z,headers:Q,auth:P}=G;if(G.headers=Q=h.from(Q),G.url=w0(x0(G.baseURL,G.url,G.allowAbsoluteUrls),B.params,B.paramsSerializer),P)Q.set("Authorization","Basic "+btoa((P.username||"")+":"+(P.password?unescape(encodeURIComponent(P.password)):"")));let H;if(W.isFormData(Y)){if(b.hasStandardBrowserEnv||b.hasStandardBrowserWebWorkerEnv)Q.setContentType(void 0);else if((H=Q.getContentType())!==!1){let[U,...L]=H?H.split(";").map((K)=>K.trim()).filter(Boolean):[];Q.setContentType([U||"multipart/form-data",...L].join("; "))}}if(b.hasStandardBrowserEnv){if(X&&W.isFunction(X)&&(X=X(G)),X||X!==!1&&g4(G.url)){let U=$&&z&&u4.read(z);if(U)Q.set($,U)}}return G};var TB=typeof XMLHttpRequest!=="undefined",l4=TB&&function(B){return new Promise(function G(Y,X){let $=a0(B),z=$.data,Q=h.from($.headers).normalize(),{responseType:P,onUploadProgress:H,onDownloadProgress:U}=$,L,K,M,N,E;function q(){N&&N(),E&&E(),$.cancelToken&&$.cancelToken.unsubscribe(L),$.signal&&$.signal.removeEventListener("abort",L)}let w=new XMLHttpRequest;w.open($.method.toUpperCase(),$.url,!0),w.timeout=$.timeout;function j(){if(!w)return;let A=h.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),f={data:!P||P==="text"||P==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:B,request:w};O0(function k(d){Y(d),q()},function k(d){X(d),q()},f),w=null}if("onloadend"in w)w.onloadend=j;else w.onreadystatechange=function A(){if(!w||w.readyState!==4)return;if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0))return;setTimeout(j)};if(w.onabort=function A(){if(!w)return;X(new D("Request aborted",D.ECONNABORTED,B,w)),w=null},w.onerror=function A(){X(new D("Network Error",D.ERR_NETWORK,B,w)),w=null},w.ontimeout=function A(){let y=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",f=$.transitional||i0;if($.timeoutErrorMessage)y=$.timeoutErrorMessage;X(new D(y,f.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,B,w)),w=null},z===void 0&&Q.setContentType(null),"setRequestHeader"in w)W.forEach(Q.toJSON(),function A(y,f){w.setRequestHeader(f,y)});if(!W.isUndefined($.withCredentials))w.withCredentials=!!$.withCredentials;if(P&&P!=="json")w.responseType=$.responseType;if(U)[M,E]=P0(U,!0),w.addEventListener("progress",M);if(H&&w.upload)[K,N]=P0(H),w.upload.addEventListener("progress",K),w.upload.addEventListener("loadend",N);if($.cancelToken||$.signal){if(L=(A)=>{if(!w)return;X(!A||A.type?new i(null,B,w):A),w.abort(),w=null},$.cancelToken&&$.cancelToken.subscribe(L),$.signal)$.signal.aborted?L():$.signal.addEventListener("abort",L)}let C=x1($.url);if(C&&b.protocols.indexOf(C)===-1){X(new D("Unsupported protocol "+C+":",D.ERR_BAD_REQUEST,B));return}w.send(z||null)})};var SB=(B,G)=>{let{length:Y}=B=B?B.filter(Boolean):[];if(G||Y){let X=new AbortController,$,z=function(U){if(!$){$=!0,P();let L=U instanceof Error?U:this.reason;X.abort(L instanceof D?L:new i(L instanceof Error?L.message:L))}},Q=G&&setTimeout(()=>{Q=null,z(new D(`timeout ${G} of ms exceeded`,D.ETIMEDOUT))},G),P=()=>{if(B)Q&&clearTimeout(Q),Q=null,B.forEach((U)=>{U.unsubscribe?U.unsubscribe(z):U.removeEventListener("abort",z)}),B=null};B.forEach((U)=>U.addEventListener("abort",z));let{signal:H}=X;return H.unsubscribe=()=>W.asap(P),H}},p4=SB;var RB=function*(B,G){let Y=B.byteLength;if(!G||Y<G){yield B;return}let X=0,$;while(X<Y)$=X+G,yield B.slice(X,$),X=$},jB=async function*(B,G){for await(let Y of _B(B))yield*RB(Y,G)},_B=async function*(B){if(B[Symbol.asyncIterator]){yield*B;return}let G=B.getReader();try{for(;;){let{done:Y,value:X}=await G.read();if(Y)break;yield X}}finally{await G.cancel()}},_1=(B,G,Y,X)=>{let $=jB(B,G),z=0,Q,P=(H)=>{if(!Q)Q=!0,X&&X(H)};return new ReadableStream({async pull(H){try{let{done:U,value:L}=await $.next();if(U){P(),H.close();return}let K=L.byteLength;if(Y){let M=z+=K;Y(M)}H.enqueue(new Uint8Array(L))}catch(U){throw P(U),U}},cancel(H){return P(H),$.return()}},{highWaterMark:2})};var e0=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",n4=e0&&typeof ReadableStream==="function",kB=e0&&(typeof TextEncoder==="function"?((B)=>(G)=>B.encode(G))(new TextEncoder):async(B)=>new Uint8Array(await new Response(B).arrayBuffer())),r4=(B,...G)=>{try{return!!B(...G)}catch(Y){return!1}},vB=n4&&r4(()=>{let B=!1,G=new Request(b.origin,{body:new ReadableStream,method:"POST",get duplex(){return B=!0,"half"}}).headers.has("Content-Type");return B&&!G}),c4=65536,k1=n4&&r4(()=>W.isReadableStream(new Response("").body)),t0={stream:k1&&((B)=>B.body)};e0&&((B)=>{["text","arrayBuffer","blob","formData","stream"].forEach((G)=>{!t0[G]&&(t0[G]=W.isFunction(B[G])?(Y)=>Y[G]():(Y,X)=>{throw new D(`Response type '${G}' is not supported`,D.ERR_NOT_SUPPORT,X)})})})(new Response);var bB=async(B)=>{if(B==null)return 0;if(W.isBlob(B))return B.size;if(W.isSpecCompliantForm(B))return(await new Request(b.origin,{method:"POST",body:B}).arrayBuffer()).byteLength;if(W.isArrayBufferView(B)||W.isArrayBuffer(B))return B.byteLength;if(W.isURLSearchParams(B))B=B+"";if(W.isString(B))return(await kB(B)).byteLength},yB=async(B,G)=>{let Y=W.toFiniteNumber(B.getContentLength());return Y==null?bB(G):Y},i4=e0&&(async(B)=>{let{url:G,method:Y,data:X,signal:$,cancelToken:z,timeout:Q,onDownloadProgress:P,onUploadProgress:H,responseType:U,headers:L,withCredentials:K="same-origin",fetchOptions:M}=a0(B);U=U?(U+"").toLowerCase():"text";let N=p4([$,z&&z.toAbortSignal()],Q),E,q=N&&N.unsubscribe&&(()=>{N.unsubscribe()}),w;try{if(H&&vB&&Y!=="get"&&Y!=="head"&&(w=await yB(L,X))!==0){let f=new Request(G,{method:"POST",body:X,duplex:"half"}),k;if(W.isFormData(X)&&(k=f.headers.get("content-type")))L.setContentType(k);if(f.body){let[d,e]=T1(w,P0(S1(H)));X=_1(f.body,c4,d,e)}}if(!W.isString(K))K=K?"include":"omit";let j="credentials"in Request.prototype;E=new Request(G,{...M,signal:N,method:Y.toUpperCase(),headers:L.normalize().toJSON(),body:X,duplex:"half",credentials:j?K:void 0});let C=await fetch(E,M),A=k1&&(U==="stream"||U==="response");if(k1&&(P||A&&q)){let f={};["status","statusText","headers"].forEach((v)=>{f[v]=C[v]});let k=W.toFiniteNumber(C.headers.get("content-length")),[d,e]=P&&T1(k,P0(S1(P),!0))||[];C=new Response(_1(C.body,c4,d,()=>{e&&e(),q&&q()}),f)}U=U||"text";let y=await t0[W.findKey(t0,U)||"text"](C,B);return!A&&q&&q(),await new Promise((f,k)=>{O0(f,k,{data:y,headers:h.from(C.headers),status:C.status,statusText:C.statusText,config:B,request:E})})}catch(j){if(q&&q(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message))throw Object.assign(new D("Network Error",D.ERR_NETWORK,B,E),{cause:j.cause||j});throw D.from(j,j&&j.code,B,E)}});var v1={http:n0,xhr:l4,fetch:i4};W.forEach(v1,(B,G)=>{if(B){try{Object.defineProperty(B,"name",{value:G})}catch(Y){}Object.defineProperty(B,"adapterName",{value:G})}});var s4=(B)=>`- ${B}`,fB=(B)=>W.isFunction(B)||B===null||B===!1,B1={getAdapter:(B)=>{B=W.isArray(B)?B:[B];let{length:G}=B,Y,X,$={};for(let z=0;z<G;z++){Y=B[z];let Q;if(X=Y,!fB(Y)){if(X=v1[(Q=String(Y)).toLowerCase()],X===void 0)throw new D(`Unknown adapter '${Q}'`)}if(X)break;$[Q||"#"+z]=X}if(!X){let z=Object.entries($).map(([P,H])=>`adapter ${P} `+(H===!1?"is not supported by the environment":"is not available in the build")),Q=G?z.length>1?`since :
20
+ `+z.map(s4).join(`
21
+ `):" "+s4(z[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+Q,"ERR_NOT_SUPPORT")}return X},adapters:v1};function b1(B){if(B.cancelToken)B.cancelToken.throwIfRequested();if(B.signal&&B.signal.aborted)throw new i(null,B)}function G1(B){if(b1(B),B.headers=h.from(B.headers),B.data=D0.call(B,B.transformRequest),["post","put","patch"].indexOf(B.method)!==-1)B.headers.setContentType("application/x-www-form-urlencoded",!1);return B1.getAdapter(B.adapter||U0.adapter)(B).then(function Y(X){return b1(B),X.data=D0.call(B,B.transformResponse,X),X.headers=h.from(X.headers),X},function Y(X){if(!A0(X)){if(b1(B),X&&X.response)X.response.data=D0.call(B,B.transformResponse,X.response),X.response.headers=h.from(X.response.headers)}return Promise.reject(X)})}var Y1="1.10.0";var X1={};["object","boolean","number","function","string","symbol"].forEach((B,G)=>{X1[B]=function Y(X){return typeof X===B||"a"+(G<1?"n ":" ")+B}});var o4={};X1.transitional=function B(G,Y,X){function $(z,Q){return"[Axios v"+Y1+"] Transitional option '"+z+"'"+Q+(X?". "+X:"")}return(z,Q,P)=>{if(G===!1)throw new D($(Q," has been removed"+(Y?" in "+Y:"")),D.ERR_DEPRECATED);if(Y&&!o4[Q])o4[Q]=!0,console.warn($(Q," has been deprecated since v"+Y+" and will be removed in the near future"));return G?G(z,Q,P):!0}};X1.spelling=function B(G){return(Y,X)=>{return console.warn(`${X} is likely a misspelling of ${G}`),!0}};function mB(B,G,Y){if(typeof B!=="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let X=Object.keys(B),$=X.length;while($-- >0){let z=X[$],Q=G[z];if(Q){let P=B[z],H=P===void 0||Q(P,z,B);if(H!==!0)throw new D("option "+z+" must be "+H,D.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new D("Unknown option "+z,D.ERR_BAD_OPTION)}}var T0={assertOptions:mB,validators:X1};var s=T0.validators;class S0{constructor(B){this.defaults=B||{},this.interceptors={request:new q1,response:new q1}}async request(B,G){try{return await this._request(B,G)}catch(Y){if(Y instanceof Error){let X={};Error.captureStackTrace?Error.captureStackTrace(X):X=new Error;let $=X.stack?X.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=$;else if($&&!String(Y.stack).endsWith($.replace(/^.+\n.+\n/,"")))Y.stack+=`
22
+ `+$}catch(z){}}throw Y}}_request(B,G){if(typeof B==="string")G=G||{},G.url=B;else G=B||{};G=r(this.defaults,G);let{transitional:Y,paramsSerializer:X,headers:$}=G;if(Y!==void 0)T0.assertOptions(Y,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);if(X!=null)if(W.isFunction(X))G.paramsSerializer={serialize:X};else T0.assertOptions(X,{encode:s.function,serialize:s.function},!0);if(G.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)G.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else G.allowAbsoluteUrls=!0;T0.assertOptions(G,{baseUrl:s.spelling("baseURL"),withXsrfToken:s.spelling("withXSRFToken")},!0),G.method=(G.method||this.defaults.method||"get").toLowerCase();let z=$&&W.merge($.common,$[G.method]);$&&W.forEach(["delete","get","head","post","put","patch","common"],(N)=>{delete $[N]}),G.headers=h.concat(z,$);let Q=[],P=!0;this.interceptors.request.forEach(function N(E){if(typeof E.runWhen==="function"&&E.runWhen(G)===!1)return;P=P&&E.synchronous,Q.unshift(E.fulfilled,E.rejected)});let H=[];this.interceptors.response.forEach(function N(E){H.push(E.fulfilled,E.rejected)});let U,L=0,K;if(!P){let N=[G1.bind(this),void 0];N.unshift.apply(N,Q),N.push.apply(N,H),K=N.length,U=Promise.resolve(G);while(L<K)U=U.then(N[L++],N[L++]);return U}K=Q.length;let M=G;L=0;while(L<K){let N=Q[L++],E=Q[L++];try{M=N(M)}catch(q){E.call(this,q);break}}try{U=G1.call(this,M)}catch(N){return Promise.reject(N)}L=0,K=H.length;while(L<K)U=U.then(H[L++],H[L++]);return U}getUri(B){B=r(this.defaults,B);let G=x0(B.baseURL,B.url,B.allowAbsoluteUrls);return w0(G,B.params,B.paramsSerializer)}}W.forEach(["delete","get","head","options"],function B(G){S0.prototype[G]=function(Y,X){return this.request(r(X||{},{method:G,url:Y,data:(X||{}).data}))}});W.forEach(["post","put","patch"],function B(G){function Y(X){return function $(z,Q,P){return this.request(r(P||{},{method:G,headers:X?{"Content-Type":"multipart/form-data"}:{},url:z,data:Q}))}}S0.prototype[G]=Y(),S0.prototype[G+"Form"]=Y(!0)});var R0=S0;class y1{constructor(B){if(typeof B!=="function")throw new TypeError("executor must be a function.");let G;this.promise=new Promise(function X($){G=$});let Y=this;this.promise.then((X)=>{if(!Y._listeners)return;let $=Y._listeners.length;while($-- >0)Y._listeners[$](X);Y._listeners=null}),this.promise.then=(X)=>{let $,z=new Promise((Q)=>{Y.subscribe(Q),$=Q}).then(X);return z.cancel=function Q(){Y.unsubscribe($)},z},B(function X($,z,Q){if(Y.reason)return;Y.reason=new i($,z,Q),G(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(B){if(this.reason){B(this.reason);return}if(this._listeners)this._listeners.push(B);else this._listeners=[B]}unsubscribe(B){if(!this._listeners)return;let G=this._listeners.indexOf(B);if(G!==-1)this._listeners.splice(G,1)}toAbortSignal(){let B=new AbortController,G=(Y)=>{B.abort(Y)};return this.subscribe(G),B.signal.unsubscribe=()=>this.unsubscribe(G),B.signal}static source(){let B;return{token:new y1(function Y(X){B=X}),cancel:B}}}var a4=y1;function f1(B){return function G(Y){return B.apply(null,Y)}}function m1(B){return W.isObject(B)&&B.isAxiosError===!0}var h1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(h1).forEach(([B,G])=>{h1[G]=B});var t4=h1;function e4(B){let G=new R0(B),Y=I0(R0.prototype.request,G);return W.extend(Y,R0.prototype,G,{allOwnKeys:!0}),W.extend(Y,G,null,{allOwnKeys:!0}),Y.create=function X($){return e4(r(B,$))},Y}var m=e4(U0);m.Axios=R0;m.CanceledError=i;m.CancelToken=a4;m.isCancel=A0;m.VERSION=Y1;m.toFormData=G0;m.AxiosError=D;m.Cancel=m.CanceledError;m.all=function B(G){return Promise.all(G)};m.spread=f1;m.isAxiosError=m1;m.mergeConfig=r;m.AxiosHeaders=h;m.formToJSON=(B)=>s0(W.isHTMLForm(B)?new FormData(B):B);m.getAdapter=B1.getAdapter;m.HttpStatusCode=t4;m.default=m;var g1=m;var hB="https://headless.tebex.io";async function g(B,G,Y,X,$,z,Q,P){if(Q){for(let[L,K]of Object.entries(Q))if(typeof K==="boolean")Q[L]=K?1:0}let H={url:`${hB}/api/${$}/${X}${z??""}`,params:Q,method:Y,data:P,headers:{"Content-Type":"application/json"}};if(B&&G)H.auth={username:B,password:G};return(await g1.request(H)).data}var B5=class{constructor(B,G){this.webstoreIdentifier=B,this.privateKey=G}async getCategories(B,G,Y){let{data:X}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/categories",{includePackages:B,basketIdent:G,ipAddress:Y});return X}async getCategory(B,G,Y,X){let{data:$}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/categories/${B}`,{includePackages:G,basketIdent:Y,ipAddress:X});return $}async apply(B,G,Y){return await g(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}`,{},Y)}async remove(B,G,Y){return await g(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}/remove`,{},Y)}async getPackage(B,G,Y){let{data:X}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/packages/${B}`,{basketIdent:G,ipAddress:Y});return X}async getPackages(B,G){let{data:Y}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/packages",{basketIdent:B,ipAddress:G});return Y}async getBasket(B){let{data:G}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}`);return G}async createBasket(B,G,Y,X,$){let{data:z}=await g(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:$},{complete_url:B,cancel_url:G,custom:Y,complete_auto_redirect:X});return z}async createMinecraftBasket(B,G,Y,X,$,z){let{data:Q}=await g(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:z},{username:B,complete_url:G,cancel_url:Y,custom:X,complete_auto_redirect:$});return Q}async getBasketAuthUrl(B,G){return await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}/auth`,{returnUrl:G})}async addPackageToBasket(B,G,Y,X,$){let{data:z}=await g(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,quantity:Y,type:X,variable_data:$});return z}async giftPackage(B,G,Y){let{data:X}=await g(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,target_username_id:Y});return X}async removePackage(B,G){let{data:Y}=await g(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages/remove",{},{package_id:G});return Y}async updateQuantity(B,G,Y){let{data:X}=await g(this.webstoreIdentifier,this.privateKey,"put",B,"baskets",`/packages/${G}`,{},{quantity:Y});return X}async getWebstore(){let{data:B}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts");return B}async getPages(){let{data:B}=await g(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/pages");return B}async updateTier(B,G){return await g(this.webstoreIdentifier,this.privateKey,"patch",this.webstoreIdentifier,"accounts",`/tiers/${B}`,{},{package_id:G})}};var u1=null,gB=async()=>{if(!u1){let B=process.env.NEXT_PUBLIC_TEBEX_PUBLIC_KEY;if(!B)throw new Error("Missing NEXT_PUBLIC_TEBEX_PUBLIC_KEY env variable");u1=new B5(B)}return u1},t=gB;var z0=W0($0());var o=W0($0()),dB=W0($5());function uB(B){if(!B||typeof document=="undefined")return;let G=document.head||document.getElementsByTagName("head")[0],Y=document.createElement("style");Y.type="text/css",G.appendChild(Y),Y.styleSheet?Y.styleSheet.cssText=B:Y.appendChild(document.createTextNode(B))}var T8=Array(12).fill(0);var d1=1;class Q5{constructor(){this.subscribe=(B)=>{return this.subscribers.push(B),()=>{let G=this.subscribers.indexOf(B);this.subscribers.splice(G,1)}},this.publish=(B)=>{this.subscribers.forEach((G)=>G(B))},this.addToast=(B)=>{this.publish(B),this.toasts=[...this.toasts,B]},this.create=(B)=>{var G;let{message:Y,...X}=B,$=typeof(B==null?void 0:B.id)==="number"||((G=B.id)==null?void 0:G.length)>0?B.id:d1++,z=this.toasts.find((P)=>{return P.id===$}),Q=B.dismissible===void 0?!0:B.dismissible;if(this.dismissedToasts.has($))this.dismissedToasts.delete($);if(z)this.toasts=this.toasts.map((P)=>{if(P.id===$)return this.publish({...P,...B,id:$,title:Y}),{...P,...B,id:$,dismissible:Q,title:Y};return P});else this.addToast({title:Y,...X,dismissible:Q,id:$});return $},this.dismiss=(B)=>{if(B)this.dismissedToasts.add(B),requestAnimationFrame(()=>this.subscribers.forEach((G)=>G({id:B,dismiss:!0})));else this.toasts.forEach((G)=>{this.subscribers.forEach((Y)=>Y({id:G.id,dismiss:!0}))});return B},this.message=(B,G)=>{return this.create({...G,message:B})},this.error=(B,G)=>{return this.create({...G,message:B,type:"error"})},this.success=(B,G)=>{return this.create({...G,type:"success",message:B})},this.info=(B,G)=>{return this.create({...G,type:"info",message:B})},this.warning=(B,G)=>{return this.create({...G,type:"warning",message:B})},this.loading=(B,G)=>{return this.create({...G,type:"loading",message:B})},this.promise=(B,G)=>{if(!G)return;let Y=void 0;if(G.loading!==void 0)Y=this.create({...G,promise:B,type:"loading",message:G.loading,description:typeof G.description!=="function"?G.description:void 0});let X=Promise.resolve(B instanceof Function?B():B),$=Y!==void 0,z,Q=X.then(async(H)=>{if(z=["resolve",H],o.default.isValidElement(H))$=!1,this.create({id:Y,type:"default",message:H});else if(pB(H)&&!H.ok){$=!1;let L=typeof G.error==="function"?await G.error(`HTTP error! status: ${H.status}`):G.error,K=typeof G.description==="function"?await G.description(`HTTP error! status: ${H.status}`):G.description,N=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"error",description:K,...N})}else if(H instanceof Error){$=!1;let L=typeof G.error==="function"?await G.error(H):G.error,K=typeof G.description==="function"?await G.description(H):G.description,N=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"error",description:K,...N})}else if(G.success!==void 0){$=!1;let L=typeof G.success==="function"?await G.success(H):G.success,K=typeof G.description==="function"?await G.description(H):G.description,N=typeof L==="object"&&!o.default.isValidElement(L)?L:{message:L};this.create({id:Y,type:"success",description:K,...N})}}).catch(async(H)=>{if(z=["reject",H],G.error!==void 0){$=!1;let U=typeof G.error==="function"?await G.error(H):G.error,L=typeof G.description==="function"?await G.description(H):G.description,M=typeof U==="object"&&!o.default.isValidElement(U)?U:{message:U};this.create({id:Y,type:"error",description:L,...M})}}).finally(()=>{if($)this.dismiss(Y),Y=void 0;G.finally==null||G.finally.call(G)}),P=()=>new Promise((H,U)=>Q.then(()=>z[0]==="reject"?U(z[1]):H(z[1])).catch(U));if(typeof Y!=="string"&&typeof Y!=="number")return{unwrap:P};else return Object.assign(Y,{unwrap:P})},this.custom=(B,G)=>{let Y=(G==null?void 0:G.id)||d1++;return this.create({jsx:B(Y),id:Y,...G}),Y},this.getActiveToasts=()=>{return this.toasts.filter((B)=>!this.dismissedToasts.has(B.id))},this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}var c=new Q5,lB=(B,G)=>{let Y=(G==null?void 0:G.id)||d1++;return c.addToast({title:B,...G,id:Y}),Y},pB=(B)=>{return B&&typeof B==="object"&&"ok"in B&&typeof B.ok==="boolean"&&"status"in B&&typeof B.status==="number"},cB=lB,nB=()=>c.toasts,rB=()=>c.getActiveToasts(),a=Object.assign(cB,{success:c.success,info:c.info,warning:c.warning,error:c.error,custom:c.custom,message:c.message,promise:c.promise,dismiss:c.dismiss,loading:c.loading},{getHistory:nB,getToasts:rB});uB("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var iB=async({username:B,completeUrl:G,cancelUrl:Y,custom:X,completeAutoRedirect:$,ipAddress:z})=>{return(await t()).createMinecraftBasket(B,G,Y,X,$,z)},sB=async(B)=>{return(await t()).getBasket(B)},oB=async(B,G,Y,X,$)=>{return(await t()).addPackageToBasket(B,G,Y??1,X,$)},aB=async(B,G,Y)=>{return(await t()).updateQuantity(B,G,Y-1>=0?Y-1:0)},tB={createBasket:iB,getBasket:sB,addPackageToBasket:oB,removePackageFromBasket:aB},Y0=tB;var z5=(B)=>{let G,Y=new Set,X=(U,L)=>{let K=typeof U==="function"?U(G):U;if(!Object.is(K,G)){let M=G;G=(L!=null?L:typeof K!=="object"||K===null)?K:Object.assign({},G,K),Y.forEach((N)=>N(G,M))}},$=()=>G,P={setState:X,getState:$,getInitialState:()=>H,subscribe:(U)=>{return Y.add(U),()=>Y.delete(U)}},H=G=B(X,$,P);return P},M5=(B)=>B?z5(B):z5;var l1=W0($0());var eB=(B)=>B;function BG(B,G=eB){let Y=l1.default.useSyncExternalStore(B.subscribe,()=>G(B.getState()),()=>G(B.getInitialState()));return l1.default.useDebugValue(Y),Y}var W5=(B)=>{let G=M5(B),Y=(X)=>BG(G,X);return Object.assign(Y,G),Y},H0=(B)=>B?W5(B):W5;var GG=(B)=>(G,Y,X)=>{let $=X.subscribe;return X.subscribe=(Q,P,H)=>{let U=Q;if(P){let L=(H==null?void 0:H.equalityFn)||Object.is,K=Q(X.getState());if(U=(M)=>{let N=Q(M);if(!L(K,N)){let E=K;P(K=N,E)}},H==null?void 0:H.fireImmediately)P(K,K)}return $(U)},B(G,Y,X)},$1=GG;function YG(B,G){let Y;try{Y=B()}catch($){return}return{getItem:($)=>{var z;let Q=(H)=>{if(H===null)return null;return JSON.parse(H,G==null?void 0:G.reviver)},P=(z=Y.getItem($))!=null?z:null;if(P instanceof Promise)return P.then(Q);return Q(P)},setItem:($,z)=>Y.setItem($,JSON.stringify(z,G==null?void 0:G.replacer)),removeItem:($)=>Y.removeItem($)}}var p1=(B)=>(G)=>{try{let Y=B(G);if(Y instanceof Promise)return Y;return{then(X){return p1(X)(Y)},catch(X){return this}}}catch(Y){return{then(X){return this},catch(X){return p1(X)(Y)}}}},XG=(B,G)=>(Y,X,$)=>{let z={storage:YG(()=>localStorage),partialize:(q)=>q,version:0,merge:(q,w)=>({...w,...q}),...G},Q=!1,P=new Set,H=new Set,U=z.storage;if(!U)return B((...q)=>{console.warn(`[zustand persist middleware] Unable to update item '${z.name}', the given storage is currently unavailable.`),Y(...q)},X,$);let L=()=>{let q=z.partialize({...X()});return U.setItem(z.name,{state:q,version:z.version})},K=$.setState;$.setState=(q,w)=>{K(q,w),L()};let M=B((...q)=>{Y(...q),L()},X,$);$.getInitialState=()=>M;let N,E=()=>{var q,w;if(!U)return;Q=!1,P.forEach((C)=>{var A;return C((A=X())!=null?A:M)});let j=((w=z.onRehydrateStorage)==null?void 0:w.call(z,(q=X())!=null?q:M))||void 0;return p1(U.getItem.bind(U))(z.name).then((C)=>{if(C)if(typeof C.version==="number"&&C.version!==z.version){if(z.migrate){let A=z.migrate(C.state,C.version);if(A instanceof Promise)return A.then((y)=>[!0,y]);return[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then((C)=>{var A;let[y,f]=C;if(N=z.merge(f,(A=X())!=null?A:M),Y(N,!0),y)return L()}).then(()=>{j==null||j(N,void 0),N=X(),Q=!0,H.forEach((C)=>C(N))}).catch((C)=>{j==null||j(void 0,C)})};if($.persist={setOptions:(q)=>{if(z={...z,...q},q.storage)U=q.storage},clearStorage:()=>{U==null||U.removeItem(z.name)},getOptions:()=>z,rehydrate:()=>E(),hasHydrated:()=>Q,onHydrate:(q)=>{return P.add(q),()=>{P.delete(q)}},onFinishHydration:(q)=>{return H.add(q),()=>{H.delete(q)}}},!z.skipHydration)E();return N||M},Q1=XG;var ZG=H0()($1(Q1((B)=>({basketIdent:null,setBasketIdent:(G)=>B({basketIdent:G}),clearBasketIdent:()=>B({basketIdent:null})}),{name:"shop-basket-store"}))),Q0=ZG;var $G=H0()($1((B)=>({isGlobalLoading:!1,setIsGlobalLoading:(G)=>B({isGlobalLoading:G}),isCreatingBasket:!1,setIsCreatingBasket:(G)=>B({isCreatingBasket:G})}))),j0=$G;var QG=H0()(Q1((B)=>({username:"",setUsername:(G)=>B({username:G}),clearUsername:()=>B({username:""})}),{name:"shop-user-store"})),L0=QG;var J5=W0($0());var zG=async({includePackages:B,basketIdent:G,ipAddress:Y})=>{return(await t()).getCategories(B,G,Y)},MG={getCategories:zG},z1=MG;var WG=async(B)=>{let{isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:$,username:z}=B;if(G)return null;let{completeUrl:Q,cancelUrl:P}=KG();try{Y(!0);let H=await $({username:z,completeUrl:Q,cancelUrl:P,completeAutoRedirect:!1,ipAddress:""});if(!H?.ident)return a.error("Une erreur est survenue lors de la création du panier"),null;return X(H.ident),H}catch{return a.error("Erreur lors de la création du panier. Contactez le support si le problème persiste."),null}finally{Y(!1)}},JG=(B)=>{let G=j0((Q)=>Q.isCreatingBasket),Y=j0((Q)=>Q.setIsCreatingBasket),X=Q0((Q)=>Q.setBasketIdent),$=L0((Q)=>Q.username);return J5.useCallback(()=>WG({isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:Y0.createBasket,username:B??$}),[G,Y,X,B,$])},KG=()=>{if(!process.env.NEXT_PUBLIC_APP_URL)throw new Error("NEXT_PUBLIC_APP_URL is not set");return{completeUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/complete-purchase`,cancelUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/cancel-purchase`}},M1=JG;var UG=(B)=>{let G=Q0((C)=>C.basketIdent),Y=Q0((C)=>C.setBasketIdent),X=L0((C)=>C.username),[$,z]=z0.useState(null),[Q,P]=z0.useState(!1),[H,U]=z0.useState(null),[L,K]=z0.useState(!1),M=M1(B??X),N=async(C)=>{P(!0);try{let A=await Y0.getBasket(C);if(A.complete){z(null),Y("");return}z(A),Y(A.ident),U(null)}catch(A){U(A),z(null),Y("")}finally{P(!1)}},E=async(C,A,y,f)=>{if(L)return;try{if(K(!0),!B&&!X){a.error("Vous devez vous connecter pour ajouter des articles à votre panier");return}let k=null;if(!G){if(k=(await M())?.ident??null,!k){a.error("Une erreur est survenue lors de la création du panier");return}Y(k),await N(k)}else await N(G),k=G;if(!k){a.error("Vous n'avez pas de panier. Si le problème persiste, veuillez vous rapprocher du support.");return}let d=Y0.addPackageToBasket(k,C,A,y,f)?.then((e)=>{z(e),w()});a.promise(d,{loading:"Ajout de l'article dans votre panier...",success:"Article ajouté avec succès !",error:"Une erreur est survenue lors de l'ajout de l'article dans votre panier"})}finally{K(!1)}},q=async(C)=>{if(L)return;try{if(K(!0),!G){a.error("Vous n'avez pas de panier. Si le problème persiste, veuillez vous rapprocher du support.");return}let A=Y0.removePackageFromBasket(G,C,$?.packages.find((y)=>y.id===C)?.in_basket.quantity??0)?.then((y)=>{z(y),w()});a.promise(A,{loading:"Suppression de l'article de votre panier...",success:"Article supprimé avec succès !",error:"Une erreur est survenue lors de la suppression de l'article de votre panier"})}finally{K(!1)}},w=()=>{if(G)N(G)},j=(C)=>{z(C)};return z0.useEffect(()=>{if(!G)return;N(G)},[G]),{basket:$,loading:Q,error:H,updateManualBasket:j,addPackageToBasket:E,removePackageFromBasket:q,refetch:w}},K5=UG;var X0=W0($0());var PG=(B)=>{let[G,Y]=X0.useState(null),[X,$]=X0.useState(!0),[z,Q]=X0.useState(null),P=async()=>{$(!0),Q(null);try{let U=await z1.getCategories(B);Y(U)}catch(U){Q(U),Y(null)}finally{$(!1)}};X0.useEffect(()=>{P()},[]);let H=X0.useCallback((U)=>G?.find((L)=>L.name.toLowerCase()===U.toLowerCase()),[G]);return{categories:G,loading:X,error:z,getByName:H,refetch:P}},U5=PG;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,16 @@
3
3
  import { Basket, Category, InBasket, Package, PackageType, TebexHeadless } from 'tebex_headless';
4
4
 
5
5
  export declare const getTebex: () => Promise<TebexHeadless>;
6
+ export interface UseBasketResult {
7
+ basket: Basket | null;
8
+ loading: boolean;
9
+ error: Error | null;
10
+ addPackageToBasket: (packageId: Package["id"], quantity?: InBasket["quantity"], type?: PackageType, variableData?: Record<string, string>) => Promise<void>;
11
+ removePackageFromBasket: (packageId: Package["id"]) => Promise<void>;
12
+ updateManualBasket: (basket: Basket | null) => void;
13
+ refetch: () => void;
14
+ }
15
+ export declare const useBasket: (username: string | null) => UseBasketResult;
6
16
  export interface CreateBasketProps {
7
17
  username: string;
8
18
  completeUrl: string;
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- var U4=Object.create;var{getPrototypeOf:J4,defineProperty:QB,getOwnPropertyNames:K4}=Object;var P4=Object.prototype.hasOwnProperty;var e=(B,G,Y)=>{Y=B!=null?U4(J4(B)):{};let X=G||!B||!B.__esModule?QB(Y,"default",{value:B,enumerable:!0}):Y;for(let $ of K4(B))if(!P4.call(X,$))QB(X,$,{get:()=>B[$],enumerable:!0});return X};var zB=(B,G)=>()=>(G||B((G={exports:{}}).exports,G),G.exports);var H4=(B,G)=>{for(var Y in G)QB(B,Y,{get:G[Y],enumerable:!0,configurable:!0,set:(X)=>G[Y]=()=>X})};var z0=zB((j5,i0)=>{(function(){function B(Z,J){Object.defineProperty(X.prototype,Z,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",J[0],J[1])}})}function G(Z){if(Z===null||typeof Z!=="object")return null;return Z=iB&&Z[iB]||Z["@@iterator"],typeof Z==="function"?Z:null}function Y(Z,J){Z=(Z=Z.constructor)&&(Z.displayName||Z.name)||"ReactClass";var I=Z+"."+J;sB[I]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",J,Z),sB[I]=!0)}function X(Z,J,I){this.props=Z,this.context=J,this.refs=ZB,this.updater=I||oB}function $(){}function z(Z,J,I){this.props=Z,this.context=J,this.refs=ZB,this.updater=I||oB}function Q(Z){return""+Z}function K(Z){try{Q(Z);var J=!1}catch(F){J=!0}if(J){J=console;var I=J.error,N=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return I.call(J,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),Q(Z)}}function H(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===$4?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case GB:return"Fragment";case cB:return"Profiler";case lB:return"StrictMode";case rB:return"Suspense";case X4:return"SuspenseList";case Z4:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case dB:return"Portal";case pB:return(Z.displayName||"Context")+".Provider";case YB:return(Z._context.displayName||"Context")+".Consumer";case nB:var J=Z.render;return Z=Z.displayName,Z||(Z=J.displayName||J.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case XB:return J=Z.displayName||null,J!==null?J:H(Z.type)||"Memo";case A0:J=Z._payload,Z=Z._init;try{return H(Z(J))}catch(I){}}return null}function P(Z){if(Z===GB)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===A0)return"<...>";try{var J=H(Z);return J?"<"+J+">":"<...>"}catch(I){return"<...>"}}function W(){var Z=x.A;return Z===null?null:Z.getOwner()}function M(){return Error("react-stack-top-frame")}function L(Z){if(x0.call(Z,"key")){var J=Object.getOwnPropertyDescriptor(Z,"key").get;if(J&&J.isReactWarning)return!1}return Z.key!==void 0}function E(Z,J){function I(){B1||(B1=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",J))}I.isReactWarning=!0,Object.defineProperty(Z,"key",{get:I,configurable:!0})}function q(){var Z=H(this.type);return Y1[Z]||(Y1[Z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Z=this.props.ref,Z!==void 0?Z:null}function V(Z,J,I,N,F,S,C,j){return I=S.ref,Z={$$typeof:BB,type:Z,key:J,props:S,_owner:F},(I!==void 0?I:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:q}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function w(Z,J){return J=V(Z.type,J,void 0,void 0,Z._owner,Z.props,Z._debugStack,Z._debugTask),Z._store&&(J._store.validated=Z._store.validated),J}function T(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===BB}function O(Z){var J={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(I){return J[I]})}function R(Z,J){return typeof Z==="object"&&Z!==null&&Z.key!=null?(K(Z.key),O(""+Z.key)):J.toString(36)}function m(){}function y(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(m,m):(Z.status="pending",Z.then(function(J){Z.status==="pending"&&(Z.status="fulfilled",Z.value=J)},function(J){Z.status==="pending"&&(Z.status="rejected",Z.reason=J)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function h(Z,J,I,N,F){var S=typeof Z;if(S==="undefined"||S==="boolean")Z=null;var C=!1;if(Z===null)C=!0;else switch(S){case"bigint":case"string":case"number":C=!0;break;case"object":switch(Z.$$typeof){case BB:case dB:C=!0;break;case A0:return C=Z._init,h(C(Z._payload),J,I,N,F)}}if(C){C=Z,F=F(C);var j=N===""?"."+R(C,0):N;return tB(F)?(I="",j!=null&&(I=j.replace(Z1,"$&/")+"/"),h(F,J,I,"",function(s){return s})):F!=null&&(T(F)&&(F.key!=null&&(C&&C.key===F.key||K(F.key)),I=w(F,I+(F.key==null||C&&C.key===F.key?"":(""+F.key).replace(Z1,"$&/")+"/")+j),N!==""&&C!=null&&T(C)&&C.key==null&&C._store&&!C._store.validated&&(I._store.validated=2),F=I),J.push(F)),1}if(C=0,j=N===""?".":N+":",tB(Z))for(var A=0;A<Z.length;A++)N=Z[A],S=j+R(N,A),C+=h(N,J,I,S,F);else if(A=G(Z),typeof A==="function")for(A===Z.entries&&(X1||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),X1=!0),Z=A.call(Z),A=0;!(N=Z.next()).done;)N=N.value,S=j+R(N,A++),C+=h(N,J,I,S,F);else if(S==="object"){if(typeof Z.then==="function")return h(y(Z),J,I,N,F);throw J=String(Z),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return C}function u(Z,J,I){if(Z==null)return Z;var N=[],F=0;return h(Z,N,"","",function(S){return J.call(I,S,F++)}),N}function G0(Z){if(Z._status===-1){var J=Z._result;J=J(),J.then(function(I){if(Z._status===0||Z._status===-1)Z._status=1,Z._result=I},function(I){if(Z._status===0||Z._status===-1)Z._status=2,Z._result=I}),Z._status===-1&&(Z._status=0,Z._result=J)}if(Z._status===1)return J=Z._result,J===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var U5=Object.create;var{getPrototypeOf:P5,defineProperty:K1,getOwnPropertyNames:H5}=Object;var L5=Object.prototype.hasOwnProperty;var t=(B,G,Y)=>{Y=B!=null?U5(P5(B)):{};let X=G||!B||!B.__esModule?K1(Y,"default",{value:B,enumerable:!0}):Y;for(let $ of H5(B))if(!L5.call(X,$))K1(X,$,{get:()=>B[$],enumerable:!0});return X};var U1=(B,G)=>()=>(G||B((G={exports:{}}).exports,G),G.exports);var N5=(B,G)=>{for(var Y in G)K1(B,Y,{get:G[Y],enumerable:!0,configurable:!0,set:(X)=>G[Y]=()=>X})};var X0=U1((kB,e0)=>{(function(){function B(Z,K){Object.defineProperty(X.prototype,Z,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",K[0],K[1])}})}function G(Z){if(Z===null||typeof Z!=="object")return null;return Z=o1&&Z[o1]||Z["@@iterator"],typeof Z==="function"?Z:null}function Y(Z,K){Z=(Z=Z.constructor)&&(Z.displayName||Z.name)||"ReactClass";var N=Z+"."+K;a1[N]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",K,Z),a1[N]=!0)}function X(Z,K,N){this.props=Z,this.context=K,this.refs=W1,this.updater=N||t1}function $(){}function z(Z,K,N){this.props=Z,this.context=K,this.refs=W1,this.updater=N||t1}function Q(Z){return""+Z}function U(Z){try{Q(Z);var K=!1}catch(F){K=!0}if(K){K=console;var N=K.error,V=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return N.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),Q(Z)}}function H(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===z5?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case Q1:return"Fragment";case n1:return"Profiler";case c1:return"StrictMode";case s1:return"Suspense";case $5:return"SuspenseList";case Q5:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case p1:return"Portal";case r1:return(Z.displayName||"Context")+".Provider";case z1:return(Z._context.displayName||"Context")+".Consumer";case i1:var K=Z.render;return Z=Z.displayName,Z||(Z=K.displayName||K.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case M1:return K=Z.displayName||null,K!==null?K:H(Z.type)||"Memo";case R0:K=Z._payload,Z=Z._init;try{return H(Z(K))}catch(N){}}return null}function P(Z){if(Z===Q1)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===R0)return"<...>";try{var K=H(Z);return K?"<"+K+">":"<...>"}catch(N){return"<...>"}}function W(){var Z=T.A;return Z===null?null:Z.getOwner()}function M(){return Error("react-stack-top-frame")}function L(Z){if(_0.call(Z,"key")){var K=Object.getOwnPropertyDescriptor(Z,"key").get;if(K&&K.isReactWarning)return!1}return Z.key!==void 0}function I(Z,K){function N(){Y4||(Y4=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}N.isReactWarning=!0,Object.defineProperty(Z,"key",{get:N,configurable:!0})}function q(){var Z=H(this.type);return Z4[Z]||(Z4[Z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Z=this.props.ref,Z!==void 0?Z:null}function E(Z,K,N,V,F,S,O,j){return N=S.ref,Z={$$typeof:$1,type:Z,key:K,props:S,_owner:F},(N!==void 0?N:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:q}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function w(Z,K){return K=E(Z.type,K,void 0,void 0,Z._owner,Z.props,Z._debugStack,Z._debugTask),Z._store&&(K._store.validated=Z._store.validated),K}function R(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===$1}function C(Z){var K={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(N){return K[N]})}function A(Z,K){return typeof Z==="object"&&Z!==null&&Z.key!=null?(U(Z.key),C(""+Z.key)):K.toString(36)}function b(){}function y(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status==="string"?Z.then(b,b):(Z.status="pending",Z.then(function(K){Z.status==="pending"&&(Z.status="fulfilled",Z.value=K)},function(K){Z.status==="pending"&&(Z.status="rejected",Z.reason=K)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function _(Z,K,N,V,F){var S=typeof Z;if(S==="undefined"||S==="boolean")Z=null;var O=!1;if(Z===null)O=!0;else switch(S){case"bigint":case"string":case"number":O=!0;break;case"object":switch(Z.$$typeof){case $1:case p1:O=!0;break;case R0:return O=Z._init,_(O(Z._payload),K,N,V,F)}}if(O){O=Z,F=F(O);var j=V===""?"."+A(O,0):V;return B4(F)?(N="",j!=null&&(N=j.replace(Q4,"$&/")+"/"),_(F,K,N,"",function(a){return a})):F!=null&&(R(F)&&(F.key!=null&&(O&&O.key===F.key||U(F.key)),N=w(F,N+(F.key==null||O&&O.key===F.key?"":(""+F.key).replace(Q4,"$&/")+"/")+j),V!==""&&O!=null&&R(O)&&O.key==null&&O._store&&!O._store.validated&&(N._store.validated=2),F=N),K.push(F)),1}if(O=0,j=V===""?".":V+":",B4(Z))for(var x=0;x<Z.length;x++)V=Z[x],S=j+A(V,x),O+=_(V,K,N,S,F);else if(x=G(Z),typeof x==="function")for(x===Z.entries&&($4||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$4=!0),Z=x.call(Z),x=0;!(V=Z.next()).done;)V=V.value,S=j+A(V,x++),O+=_(V,K,N,S,F);else if(S==="object"){if(typeof Z.then==="function")return _(y(Z),K,N,V,F);throw K=String(Z),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return O}function g(Z,K,N){if(Z==null)return Z;var V=[],F=0;return _(Z,V,"","",function(S){return K.call(N,S,F++)}),V}function o(Z){if(Z._status===-1){var K=Z._result;K=K(),K.then(function(N){if(Z._status===0||Z._status===-1)Z._status=1,Z._result=N},function(N){if(Z._status===0||Z._status===-1)Z._status=2,Z._result=N}),Z._status===-1&&(Z._status=0,Z._result=K)}if(Z._status===1)return K=Z._result,K===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,J),"default"in J||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,K),"default"in K||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,J),J.default;throw Z._result}function _(){var Z=x.H;return Z===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,K),K.default;throw Z._result}function k(){var Z=T.H;return Z===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),Z}function Y4(){}function D0(Z){if(S0===null)try{var J=("require"+Math.random()).slice(0,7);S0=(i0&&i0[J]).call(i0,"timers").setImmediate}catch(I){S0=function(N){Q1===!1&&(Q1=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var F=new MessageChannel;F.port1.onmessage=N,F.port2.postMessage(void 0)}}return S0(Z)}function W0(Z){return 1<Z.length&&typeof AggregateError==="function"?new AggregateError(Z):Z[0]}function C0(Z,J){J!==T0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),T0=J}function t0(Z,J,I){var N=x.actQueue;if(N!==null)if(N.length!==0)try{e0(N),D0(function(){return t0(Z,J,I)});return}catch(F){x.thrownErrors.push(F)}else x.actQueue=null;0<x.thrownErrors.length?(N=W0(x.thrownErrors),x.thrownErrors.length=0,I(N)):J(Z)}function e0(Z){if(!$B){$B=!0;var J=0;try{for(;J<Z.length;J++){var I=Z[J];do{x.didUsePromise=!1;var N=I(!1);if(N!==null){if(x.didUsePromise){Z[J]=I,Z.splice(0,J);return}I=N}else break}while(1)}Z.length=0}catch(F){Z.splice(0,J+1),x.thrownErrors.push(F)}finally{$B=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var BB=Symbol.for("react.transitional.element"),dB=Symbol.for("react.portal"),GB=Symbol.for("react.fragment"),lB=Symbol.for("react.strict_mode"),cB=Symbol.for("react.profiler");Symbol.for("react.provider");var YB=Symbol.for("react.consumer"),pB=Symbol.for("react.context"),nB=Symbol.for("react.forward_ref"),rB=Symbol.for("react.suspense"),X4=Symbol.for("react.suspense_list"),XB=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Z4=Symbol.for("react.activity"),iB=Symbol.iterator,sB={},oB={isMounted:function(){return!1},enqueueForceUpdate:function(Z){Y(Z,"forceUpdate")},enqueueReplaceState:function(Z){Y(Z,"replaceState")},enqueueSetState:function(Z){Y(Z,"setState")}},aB=Object.assign,ZB={};Object.freeze(ZB),X.prototype.isReactComponent={},X.prototype.setState=function(Z,J){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,J,"setState")},X.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},O0;for(O0 in d)d.hasOwnProperty(O0)&&B(O0,d[O0]);$.prototype=X.prototype,d=z.prototype=new $,d.constructor=z,aB(d,X.prototype),d.isPureReactComponent=!0;var tB=Array.isArray,$4=Symbol.for("react.client.reference"),x={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},x0=Object.prototype.hasOwnProperty,eB=console.createTask?console.createTask:function(){return null};d={"react-stack-bottom-frame":function(Z){return Z()}};var B1,G1,Y1={},Q4=d["react-stack-bottom-frame"].bind(d,M)(),z4=eB(P(M)),X1=!1,Z1=/\/+/g,$1=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},Q1=!1,S0=null,T0=0,R0=!1,$B=!1,z1=typeof queueMicrotask==="function"?function(Z){queueMicrotask(function(){return queueMicrotask(Z)})}:D0;d=Object.freeze({__proto__:null,c:function(Z){return _().useMemoCache(Z)}}),j5.Children={map:u,forEach:function(Z,J,I){u(Z,function(){J.apply(this,arguments)},I)},count:function(Z){var J=0;return u(Z,function(){J++}),J},toArray:function(Z){return u(Z,function(J){return J})||[]},only:function(Z){if(!T(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},j5.Component=X,j5.Fragment=GB,j5.Profiler=cB,j5.PureComponent=z,j5.StrictMode=lB,j5.Suspense=rB,j5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,j5.__COMPILER_RUNTIME=d,j5.act=function(Z){var J=x.actQueue,I=T0;T0++;var N=x.actQueue=J!==null?J:[],F=!1;try{var S=Z()}catch(A){x.thrownErrors.push(A)}if(0<x.thrownErrors.length)throw C0(J,I),Z=W0(x.thrownErrors),x.thrownErrors.length=0,Z;if(S!==null&&typeof S==="object"&&typeof S.then==="function"){var C=S;return z1(function(){F||R0||(R0=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(A,s){F=!0,C.then(function(Y0){if(C0(J,I),I===0){try{e0(N),D0(function(){return t0(Y0,A,s)})}catch(W4){x.thrownErrors.push(W4)}if(0<x.thrownErrors.length){var M4=W0(x.thrownErrors);x.thrownErrors.length=0,s(M4)}}else A(Y0)},function(Y0){C0(J,I),0<x.thrownErrors.length?(Y0=W0(x.thrownErrors),x.thrownErrors.length=0,s(Y0)):s(Y0)})}}}var j=S;if(C0(J,I),I===0&&(e0(N),N.length!==0&&z1(function(){F||R0||(R0=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),x.actQueue=null),0<x.thrownErrors.length)throw Z=W0(x.thrownErrors),x.thrownErrors.length=0,Z;return{then:function(A,s){F=!0,I===0?(x.actQueue=N,D0(function(){return t0(j,A,s)})):A(j)}}},j5.cache=function(Z){return function(){return Z.apply(null,arguments)}},j5.captureOwnerStack=function(){var Z=x.getCurrentStack;return Z===null?null:Z()},j5.cloneElement=function(Z,J,I){if(Z===null||Z===void 0)throw Error("The argument must be a React element, but you passed "+Z+".");var N=aB({},Z.props),F=Z.key,S=Z._owner;if(J!=null){var C;B:{if(x0.call(J,"ref")&&(C=Object.getOwnPropertyDescriptor(J,"ref").get)&&C.isReactWarning){C=!1;break B}C=J.ref!==void 0}C&&(S=W()),L(J)&&(K(J.key),F=""+J.key);for(j in J)!x0.call(J,j)||j==="key"||j==="__self"||j==="__source"||j==="ref"&&J.ref===void 0||(N[j]=J[j])}var j=arguments.length-2;if(j===1)N.children=I;else if(1<j){C=Array(j);for(var A=0;A<j;A++)C[A]=arguments[A+2];N.children=C}N=V(Z.type,F,void 0,void 0,S,N,Z._debugStack,Z._debugTask);for(F=2;F<arguments.length;F++)S=arguments[F],T(S)&&S._store&&(S._store.validated=1);return N},j5.createContext=function(Z){return Z={$$typeof:pB,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:YB,_context:Z},Z._currentRenderer=null,Z._currentRenderer2=null,Z},j5.createElement=function(Z,J,I){for(var N=2;N<arguments.length;N++){var F=arguments[N];T(F)&&F._store&&(F._store.validated=1)}if(N={},F=null,J!=null)for(A in G1||!("__self"in J)||"key"in J||(G1=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),L(J)&&(K(J.key),F=""+J.key),J)x0.call(J,A)&&A!=="key"&&A!=="__self"&&A!=="__source"&&(N[A]=J[A]);var S=arguments.length-2;if(S===1)N.children=I;else if(1<S){for(var C=Array(S),j=0;j<S;j++)C[j]=arguments[j+2];Object.freeze&&Object.freeze(C),N.children=C}if(Z&&Z.defaultProps)for(A in S=Z.defaultProps,S)N[A]===void 0&&(N[A]=S[A]);F&&E(N,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z);var A=1e4>x.recentlyCreatedOwnerStacks++;return V(Z,F,void 0,void 0,W(),N,A?Error("react-stack-top-frame"):Q4,A?eB(P(Z)):z4)},j5.createRef=function(){var Z={current:null};return Object.seal(Z),Z},j5.forwardRef=function(Z){Z!=null&&Z.$$typeof===XB?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!=="function"?console.error("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&Z.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var J={$$typeof:nB,render:Z},I;return Object.defineProperty(J,"displayName",{enumerable:!1,configurable:!0,get:function(){return I},set:function(N){I=N,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:N}),Z.displayName=N)}}),J},j5.isValidElement=T,j5.lazy=function(Z){return{$$typeof:A0,_payload:{_status:-1,_result:Z},_init:G0}},j5.memo=function(Z,J){Z==null&&console.error("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z),J={$$typeof:XB,type:Z,compare:J===void 0?null:J};var I;return Object.defineProperty(J,"displayName",{enumerable:!1,configurable:!0,get:function(){return I},set:function(N){I=N,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:N}),Z.displayName=N)}}),J},j5.startTransition=function(Z){var J=x.T,I={};x.T=I,I._updatedFibers=new Set;try{var N=Z(),F=x.S;F!==null&&F(I,N),typeof N==="object"&&N!==null&&typeof N.then==="function"&&N.then(Y4,$1)}catch(S){$1(S)}finally{J===null&&I._updatedFibers&&(Z=I._updatedFibers.size,I._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),x.T=J}},j5.unstable_useCacheRefresh=function(){return _().useCacheRefresh()},j5.use=function(Z){return _().use(Z)},j5.useActionState=function(Z,J,I){return _().useActionState(Z,J,I)},j5.useCallback=function(Z,J){return _().useCallback(Z,J)},j5.useContext=function(Z){var J=_();return Z.$$typeof===YB&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),J.useContext(Z)},j5.useDebugValue=function(Z,J){return _().useDebugValue(Z,J)},j5.useDeferredValue=function(Z,J){return _().useDeferredValue(Z,J)},j5.useEffect=function(Z,J,I){Z==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var N=_();if(typeof I==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return N.useEffect(Z,J)},j5.useId=function(){return _().useId()},j5.useImperativeHandle=function(Z,J,I){return _().useImperativeHandle(Z,J,I)},j5.useInsertionEffect=function(Z,J){return Z==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useInsertionEffect(Z,J)},j5.useLayoutEffect=function(Z,J){return Z==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useLayoutEffect(Z,J)},j5.useMemo=function(Z,J){return _().useMemo(Z,J)},j5.useOptimistic=function(Z,J){return _().useOptimistic(Z,J)},j5.useReducer=function(Z,J,I){return _().useReducer(Z,J,I)},j5.useRef=function(Z){return _().useRef(Z)},j5.useState=function(Z){return _().useState(Z)},j5.useSyncExternalStore=function(Z,J,I){return _().useSyncExternalStore(Z,J,I)},j5.useTransition=function(){return _().useTransition()},j5.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var i1=zB((y5)=>{var vB=e(z0(),1);(function(){function B(){}function G(W){return""+W}function Y(W,M,L){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(E);var q=!1}catch(V){q=!0}return q&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),G(E)),{$$typeof:H,key:E==null?null:""+E,children:W,containerInfo:M,implementation:L}}function X(W,M){if(W==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function $(W){return W===null?"`null`":W===void 0?"`undefined`":W===""?"an empty string":'something with type "'+typeof W+'"'}function z(W){return W===null?"`null`":W===void 0?"`undefined`":W===""?"an empty string":typeof W==="string"?JSON.stringify(W):typeof W==="number"?"`"+W+"`":'something with type "'+typeof W+'"'}function Q(){var W=P.H;return W===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),Z}function Z5(){}function T0(Z){if(k0===null)try{var K=("require"+Math.random()).slice(0,7);k0=(e0&&e0[K]).call(e0,"timers").setImmediate}catch(N){k0=function(V){M4===!1&&(M4=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var F=new MessageChannel;F.port1.onmessage=V,F.port2.postMessage(void 0)}}return k0(Z)}function P0(Z){return 1<Z.length&&typeof AggregateError==="function"?new AggregateError(Z):Z[0]}function S0(Z,K){K!==v0-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),v0=K}function X1(Z,K,N){var V=T.actQueue;if(V!==null)if(V.length!==0)try{Z1(V),T0(function(){return X1(Z,K,N)});return}catch(F){T.thrownErrors.push(F)}else T.actQueue=null;0<T.thrownErrors.length?(V=P0(T.thrownErrors),T.thrownErrors.length=0,N(V)):K(Z)}function Z1(Z){if(!J1){J1=!0;var K=0;try{for(;K<Z.length;K++){var N=Z[K];do{T.didUsePromise=!1;var V=N(!1);if(V!==null){if(T.didUsePromise){Z[K]=N,Z.splice(0,K);return}N=V}else break}while(1)}Z.length=0}catch(F){Z.splice(0,K+1),T.thrownErrors.push(F)}finally{J1=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $1=Symbol.for("react.transitional.element"),p1=Symbol.for("react.portal"),Q1=Symbol.for("react.fragment"),c1=Symbol.for("react.strict_mode"),n1=Symbol.for("react.profiler");Symbol.for("react.provider");var z1=Symbol.for("react.consumer"),r1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),$5=Symbol.for("react.suspense_list"),M1=Symbol.for("react.memo"),R0=Symbol.for("react.lazy"),Q5=Symbol.for("react.activity"),o1=Symbol.iterator,a1={},t1={isMounted:function(){return!1},enqueueForceUpdate:function(Z){Y(Z,"forceUpdate")},enqueueReplaceState:function(Z){Y(Z,"replaceState")},enqueueSetState:function(Z){Y(Z,"setState")}},e1=Object.assign,W1={};Object.freeze(W1),X.prototype.isReactComponent={},X.prototype.setState=function(Z,K){if(typeof Z!=="object"&&typeof Z!=="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,K,"setState")},X.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},j0;for(j0 in d)d.hasOwnProperty(j0)&&B(j0,d[j0]);$.prototype=X.prototype,d=z.prototype=new $,d.constructor=z,e1(d,X.prototype),d.isPureReactComponent=!0;var B4=Array.isArray,z5=Symbol.for("react.client.reference"),T={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},_0=Object.prototype.hasOwnProperty,G4=console.createTask?console.createTask:function(){return null};d={"react-stack-bottom-frame":function(Z){return Z()}};var Y4,X4,Z4={},M5=d["react-stack-bottom-frame"].bind(d,M)(),W5=G4(P(M)),$4=!1,Q4=/\/+/g,z4=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(K))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},M4=!1,k0=null,v0=0,b0=!1,J1=!1,W4=typeof queueMicrotask==="function"?function(Z){queueMicrotask(function(){return queueMicrotask(Z)})}:T0;d=Object.freeze({__proto__:null,c:function(Z){return k().useMemoCache(Z)}}),kB.Children={map:g,forEach:function(Z,K,N){g(Z,function(){K.apply(this,arguments)},N)},count:function(Z){var K=0;return g(Z,function(){K++}),K},toArray:function(Z){return g(Z,function(K){return K})||[]},only:function(Z){if(!R(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},kB.Component=X,kB.Fragment=Q1,kB.Profiler=n1,kB.PureComponent=z,kB.StrictMode=c1,kB.Suspense=s1,kB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,kB.__COMPILER_RUNTIME=d,kB.act=function(Z){var K=T.actQueue,N=v0;v0++;var V=T.actQueue=K!==null?K:[],F=!1;try{var S=Z()}catch(x){T.thrownErrors.push(x)}if(0<T.thrownErrors.length)throw S0(K,N),Z=P0(T.thrownErrors),T.thrownErrors.length=0,Z;if(S!==null&&typeof S==="object"&&typeof S.then==="function"){var O=S;return W4(function(){F||b0||(b0=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(x,a){F=!0,O.then(function(Q0){if(S0(K,N),N===0){try{Z1(V),T0(function(){return X1(Q0,x,a)})}catch(K5){T.thrownErrors.push(K5)}if(0<T.thrownErrors.length){var J5=P0(T.thrownErrors);T.thrownErrors.length=0,a(J5)}}else x(Q0)},function(Q0){S0(K,N),0<T.thrownErrors.length?(Q0=P0(T.thrownErrors),T.thrownErrors.length=0,a(Q0)):a(Q0)})}}}var j=S;if(S0(K,N),N===0&&(Z1(V),V.length!==0&&W4(function(){F||b0||(b0=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),T.actQueue=null),0<T.thrownErrors.length)throw Z=P0(T.thrownErrors),T.thrownErrors.length=0,Z;return{then:function(x,a){F=!0,N===0?(T.actQueue=V,T0(function(){return X1(j,x,a)})):x(j)}}},kB.cache=function(Z){return function(){return Z.apply(null,arguments)}},kB.captureOwnerStack=function(){var Z=T.getCurrentStack;return Z===null?null:Z()},kB.cloneElement=function(Z,K,N){if(Z===null||Z===void 0)throw Error("The argument must be a React element, but you passed "+Z+".");var V=e1({},Z.props),F=Z.key,S=Z._owner;if(K!=null){var O;B:{if(_0.call(K,"ref")&&(O=Object.getOwnPropertyDescriptor(K,"ref").get)&&O.isReactWarning){O=!1;break B}O=K.ref!==void 0}O&&(S=W()),L(K)&&(U(K.key),F=""+K.key);for(j in K)!_0.call(K,j)||j==="key"||j==="__self"||j==="__source"||j==="ref"&&K.ref===void 0||(V[j]=K[j])}var j=arguments.length-2;if(j===1)V.children=N;else if(1<j){O=Array(j);for(var x=0;x<j;x++)O[x]=arguments[x+2];V.children=O}V=E(Z.type,F,void 0,void 0,S,V,Z._debugStack,Z._debugTask);for(F=2;F<arguments.length;F++)S=arguments[F],R(S)&&S._store&&(S._store.validated=1);return V},kB.createContext=function(Z){return Z={$$typeof:r1,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:z1,_context:Z},Z._currentRenderer=null,Z._currentRenderer2=null,Z},kB.createElement=function(Z,K,N){for(var V=2;V<arguments.length;V++){var F=arguments[V];R(F)&&F._store&&(F._store.validated=1)}if(V={},F=null,K!=null)for(x in X4||!("__self"in K)||"key"in K||(X4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),L(K)&&(U(K.key),F=""+K.key),K)_0.call(K,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(V[x]=K[x]);var S=arguments.length-2;if(S===1)V.children=N;else if(1<S){for(var O=Array(S),j=0;j<S;j++)O[j]=arguments[j+2];Object.freeze&&Object.freeze(O),V.children=O}if(Z&&Z.defaultProps)for(x in S=Z.defaultProps,S)V[x]===void 0&&(V[x]=S[x]);F&&I(V,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z);var x=1e4>T.recentlyCreatedOwnerStacks++;return E(Z,F,void 0,void 0,W(),V,x?Error("react-stack-top-frame"):M5,x?G4(P(Z)):W5)},kB.createRef=function(){var Z={current:null};return Object.seal(Z),Z},kB.forwardRef=function(Z){Z!=null&&Z.$$typeof===M1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!=="function"?console.error("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&Z.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var K={$$typeof:i1,render:Z},N;return Object.defineProperty(K,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(V){N=V,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:V}),Z.displayName=V)}}),K},kB.isValidElement=R,kB.lazy=function(Z){return{$$typeof:R0,_payload:{_status:-1,_result:Z},_init:o}},kB.memo=function(Z,K){Z==null&&console.error("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z),K={$$typeof:M1,type:Z,compare:K===void 0?null:K};var N;return Object.defineProperty(K,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(V){N=V,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:V}),Z.displayName=V)}}),K},kB.startTransition=function(Z){var K=T.T,N={};T.T=N,N._updatedFibers=new Set;try{var V=Z(),F=T.S;F!==null&&F(N,V),typeof V==="object"&&V!==null&&typeof V.then==="function"&&V.then(Z5,z4)}catch(S){z4(S)}finally{K===null&&N._updatedFibers&&(Z=N._updatedFibers.size,N._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),T.T=K}},kB.unstable_useCacheRefresh=function(){return k().useCacheRefresh()},kB.use=function(Z){return k().use(Z)},kB.useActionState=function(Z,K,N){return k().useActionState(Z,K,N)},kB.useCallback=function(Z,K){return k().useCallback(Z,K)},kB.useContext=function(Z){var K=k();return Z.$$typeof===z1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),K.useContext(Z)},kB.useDebugValue=function(Z,K){return k().useDebugValue(Z,K)},kB.useDeferredValue=function(Z,K){return k().useDeferredValue(Z,K)},kB.useEffect=function(Z,K,N){Z==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var V=k();if(typeof N==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(Z,K)},kB.useId=function(){return k().useId()},kB.useImperativeHandle=function(Z,K,N){return k().useImperativeHandle(Z,K,N)},kB.useInsertionEffect=function(Z,K){return Z==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),k().useInsertionEffect(Z,K)},kB.useLayoutEffect=function(Z,K){return Z==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),k().useLayoutEffect(Z,K)},kB.useMemo=function(Z,K){return k().useMemo(Z,K)},kB.useOptimistic=function(Z,K){return k().useOptimistic(Z,K)},kB.useReducer=function(Z,K,N){return k().useReducer(Z,K,N)},kB.useRef=function(Z){return k().useRef(Z)},kB.useState=function(Z){return k().useState(Z)},kB.useSyncExternalStore=function(Z,K,N){return k().useSyncExternalStore(Z,K,N)},kB.useTransition=function(){return k().useTransition()},kB.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var o4=U1((vB)=>{var m1=t(X0(),1);(function(){function B(){}function G(W){return""+W}function Y(W,M,L){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(I);var q=!1}catch(E){q=!0}return q&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),G(I)),{$$typeof:H,key:I==null?null:""+I,children:W,containerInfo:M,implementation:L}}function X(W,M){if(W==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function $(W){return W===null?"`null`":W===void 0?"`undefined`":W===""?"an empty string":'something with type "'+typeof W+'"'}function z(W){return W===null?"`null`":W===void 0?"`undefined`":W===""?"an empty string":typeof W==="string"?JSON.stringify(W):typeof W==="number"?"`"+W+"`":'something with type "'+typeof W+'"'}function Q(){var W=P.H;return W===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),W}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K={d:{f:B,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:B,C:B,L:B,m:B,X:B,S:B,M:B},p:0,findDOMNode:null},H=Symbol.for("react.portal"),P=vB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),y5.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,y5.createPortal=function(W,M){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(W,M,null,L)},y5.flushSync=function(W){var M=P.T,L=K.p;try{if(P.T=null,K.p=2,W)return W()}finally{P.T=M,K.p=L,K.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},y5.preconnect=function(W,M){typeof W==="string"&&W?M!=null&&typeof M!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",z(M)):M!=null&&typeof M.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",$(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W)),typeof W==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,K.d.C(W,M))},y5.prefetchDNS=function(W){if(typeof W!=="string"||!W)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M))}typeof W==="string"&&K.d.D(W)},y5.preinit=function(W,M){if(typeof W==="string"&&W?M==null||typeof M!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",z(M)):M.as!=="style"&&M.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',z(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W)),typeof W==="string"&&M&&typeof M.as==="string"){var L=M.as,E=X(L,M.crossOrigin),q=typeof M.integrity==="string"?M.integrity:void 0,V=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;L==="style"?K.d.S(W,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:E,integrity:q,fetchPriority:V}):L==="script"&&K.d.X(W,{crossOrigin:E,integrity:q,fetchPriority:V,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},y5.preinitModule=function(W,M){var L="";if(typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M!==void 0&&typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&M.as!=="script"&&(L+=" The `as` option encountered was "+z(M.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=M&&typeof M.as==="string"?M.as:"script",L){case"script":break;default:L=z(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,W)}if(typeof W==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")L=X(M.as,M.crossOrigin),K.d.M(W,{crossOrigin:L,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&K.d.M(W)},y5.preload=function(W,M){var L="";if(typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M==null||typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":typeof M.as==="string"&&M.as||(L+=" The `as` option encountered was "+$(M.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof W==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){L=M.as;var E=X(L,M.crossOrigin);K.d.L(W,L,{crossOrigin:E,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},y5.preloadModule=function(W,M){var L="";typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M!==void 0&&typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(L+=" The `as` option encountered was "+$(M.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof W==="string"&&(M?(L=X(M.as,M.crossOrigin),K.d.m(W,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:L,integrity:typeof M.integrity==="string"?M.integrity:void 0})):K.d.m(W))},y5.requestFormReset=function(W){K.d.r(W)},y5.unstable_batchedUpdates=function(W,M){return W(M)},y5.useFormState=function(W,M,L){return Q().useFormState(W,M,L)},y5.useFormStatus=function(){return Q().useHostTransitionStatus()},y5.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var o1=zB((A7,s1)=>{var f5=e(i1(),1);s1.exports=f5});function U0(B,G){return function Y(){return B.apply(G,arguments)}}var{toString:L4}=Object.prototype,{getPrototypeOf:WB}=Object,{iterator:_0,toStringTag:W1}=Symbol,k0=((B)=>(G)=>{let Y=L4.call(G);return B[Y]||(B[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),c=(B)=>{return B=B.toLowerCase(),(G)=>k0(G)===B},v0=(B)=>(G)=>typeof G===B,{isArray:X0}=Array,J0=v0("undefined");function I4(B){return B!==null&&!J0(B)&&B.constructor!==null&&!J0(B.constructor)&&g(B.constructor.isBuffer)&&B.constructor.isBuffer(B)}var U1=c("ArrayBuffer");function N4(B){let G;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)G=ArrayBuffer.isView(B);else G=B&&B.buffer&&U1(B.buffer);return G}var V4=v0("string"),g=v0("function"),J1=v0("number"),b0=(B)=>B!==null&&typeof B==="object",E4=(B)=>B===!0||B===!1,j0=(B)=>{if(k0(B)!=="object")return!1;let G=WB(B);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(W1 in B)&&!(_0 in B)},q4=c("Date"),w4=c("File"),F4=c("Blob"),D4=c("FileList"),C4=(B)=>b0(B)&&g(B.pipe),A4=(B)=>{let G;return B&&(typeof FormData==="function"&&B instanceof FormData||g(B.append)&&((G=k0(B))==="formdata"||G==="object"&&g(B.toString)&&B.toString()==="[object FormData]"))},O4=c("URLSearchParams"),[x4,S4,T4,R4]=["ReadableStream","Request","Response","Headers"].map(c),j4=(B)=>B.trim?B.trim():B.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K0(B,G,{allOwnKeys:Y=!1}={}){if(B===null||typeof B==="undefined")return;let X,$;if(typeof B!=="object")B=[B];if(X0(B))for(X=0,$=B.length;X<$;X++)G.call(null,B[X],X,B);else{let z=Y?Object.getOwnPropertyNames(B):Object.keys(B),Q=z.length,K;for(X=0;X<Q;X++)K=z[X],G.call(null,B[K],K,B)}}function K1(B,G){G=G.toLowerCase();let Y=Object.keys(B),X=Y.length,$;while(X-- >0)if($=Y[X],G===$.toLowerCase())return $;return null}var B0=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),P1=(B)=>!J0(B)&&B!==B0;function MB(){let{caseless:B}=P1(this)&&this||{},G={},Y=(X,$)=>{let z=B&&K1(G,$)||$;if(j0(G[z])&&j0(X))G[z]=MB(G[z],X);else if(j0(X))G[z]=MB({},X);else if(X0(X))G[z]=X.slice();else G[z]=X};for(let X=0,$=arguments.length;X<$;X++)arguments[X]&&K0(arguments[X],Y);return G}var _4=(B,G,Y,{allOwnKeys:X}={})=>{return K0(G,($,z)=>{if(Y&&g($))B[z]=U0($,Y);else B[z]=$},{allOwnKeys:X}),B},k4=(B)=>{if(B.charCodeAt(0)===65279)B=B.slice(1);return B},v4=(B,G,Y,X)=>{B.prototype=Object.create(G.prototype,X),B.prototype.constructor=B,Object.defineProperty(B,"super",{value:G.prototype}),Y&&Object.assign(B.prototype,Y)},b4=(B,G,Y,X)=>{let $,z,Q,K={};if(G=G||{},B==null)return G;do{$=Object.getOwnPropertyNames(B),z=$.length;while(z-- >0)if(Q=$[z],(!X||X(Q,B,G))&&!K[Q])G[Q]=B[Q],K[Q]=!0;B=Y!==!1&&WB(B)}while(B&&(!Y||Y(B,G))&&B!==Object.prototype);return G},y4=(B,G,Y)=>{if(B=String(B),Y===void 0||Y>B.length)Y=B.length;Y-=G.length;let X=B.indexOf(G,Y);return X!==-1&&X===Y},f4=(B)=>{if(!B)return null;if(X0(B))return B;let G=B.length;if(!J1(G))return null;let Y=new Array(G);while(G-- >0)Y[G]=B[G];return Y},m4=((B)=>{return(G)=>{return B&&G instanceof B}})(typeof Uint8Array!=="undefined"&&WB(Uint8Array)),h4=(B,G)=>{let X=(B&&B[_0]).call(B),$;while(($=X.next())&&!$.done){let z=$.value;G.call(B,z[0],z[1])}},g4=(B,G)=>{let Y,X=[];while((Y=B.exec(G))!==null)X.push(Y);return X},u4=c("HTMLFormElement"),d4=(B)=>{return B.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function G(Y,X,$){return X.toUpperCase()+$})},M1=(({hasOwnProperty:B})=>(G,Y)=>B.call(G,Y))(Object.prototype),l4=c("RegExp"),H1=(B,G)=>{let Y=Object.getOwnPropertyDescriptors(B),X={};K0(Y,($,z)=>{let Q;if((Q=G($,z,B))!==!1)X[z]=Q||$}),Object.defineProperties(B,X)},c4=(B)=>{H1(B,(G,Y)=>{if(g(B)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let X=B[Y];if(!g(X))return;if(G.enumerable=!1,"writable"in G){G.writable=!1;return}if(!G.set)G.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},p4=(B,G)=>{let Y={},X=($)=>{$.forEach((z)=>{Y[z]=!0})};return X0(B)?X(B):X(String(B).split(G)),Y},n4=()=>{},r4=(B,G)=>{return B!=null&&Number.isFinite(B=+B)?B:G};function i4(B){return!!(B&&g(B.append)&&B[W1]==="FormData"&&B[_0])}var s4=(B)=>{let G=new Array(10),Y=(X,$)=>{if(b0(X)){if(G.indexOf(X)>=0)return;if(!("toJSON"in X)){G[$]=X;let z=X0(X)?[]:{};return K0(X,(Q,K)=>{let H=Y(Q,$+1);!J0(H)&&(z[K]=H)}),G[$]=void 0,z}}return X};return Y(B,0)},o4=c("AsyncFunction"),a4=(B)=>B&&(b0(B)||g(B))&&g(B.then)&&g(B.catch),L1=((B,G)=>{if(B)return setImmediate;return G?((Y,X)=>{return B0.addEventListener("message",({source:$,data:z})=>{if($===B0&&z===Y)X.length&&X.shift()()},!1),($)=>{X.push($),B0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",g(B0.postMessage)),t4=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(B0):typeof process!=="undefined"&&process.nextTick||L1,e4=(B)=>B!=null&&g(B[_0]),U={isArray:X0,isArrayBuffer:U1,isBuffer:I4,isFormData:A4,isArrayBufferView:N4,isString:V4,isNumber:J1,isBoolean:E4,isObject:b0,isPlainObject:j0,isReadableStream:x4,isRequest:S4,isResponse:T4,isHeaders:R4,isUndefined:J0,isDate:q4,isFile:w4,isBlob:F4,isRegExp:l4,isFunction:g,isStream:C4,isURLSearchParams:O4,isTypedArray:m4,isFileList:D4,forEach:K0,merge:MB,extend:_4,trim:j4,stripBOM:k4,inherits:v4,toFlatObject:b4,kindOf:k0,kindOfTest:c,endsWith:y4,toArray:f4,forEachEntry:h4,matchAll:g4,isHTMLForm:u4,hasOwnProperty:M1,hasOwnProp:M1,reduceDescriptors:H1,freezeMethods:c4,toObjectSet:p4,toCamelCase:d4,noop:n4,toFiniteNumber:r4,findKey:K1,global:B0,isContextDefined:P1,isSpecCompliantForm:i4,toJSONObject:s4,isAsyncFn:o4,isThenable:a4,setImmediate:L1,asap:t4,isIterable:e4};function Z0(B,G,Y,X,$){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;if(this.message=B,this.name="AxiosError",G&&(this.code=G),Y&&(this.config=Y),X&&(this.request=X),$)this.response=$,this.status=$.status?$.status:null}U.inherits(Z0,Error,{toJSON:function B(){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:U.toJSONObject(this.config),code:this.code,status:this.status}}});var I1=Z0.prototype,N1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((B)=>{N1[B]={value:B}});Object.defineProperties(Z0,N1);Object.defineProperty(I1,"isAxiosError",{value:!0});Z0.from=(B,G,Y,X,$,z)=>{let Q=Object.create(I1);return U.toFlatObject(B,Q,function K(H){return H!==Error.prototype},(K)=>{return K!=="isAxiosError"}),Z0.call(Q,B.message,G,Y,X,$),Q.cause=B,Q.name=B.name,z&&Object.assign(Q,z),Q};var D=Z0;var y0=null;function UB(B){return U.isPlainObject(B)||U.isArray(B)}function E1(B){return U.endsWith(B,"[]")?B.slice(0,-2):B}function V1(B,G,Y){if(!B)return G;return B.concat(G).map(function X($,z){return $=E1($),!Y&&z?"["+$+"]":$}).join(Y?".":"")}function B5(B){return U.isArray(B)&&!B.some(UB)}var G5=U.toFlatObject(U,{},null,function B(G){return/^is[A-Z]/.test(G)});function Y5(B,G,Y){if(!U.isObject(B))throw new TypeError("target must be an object");G=G||new(y0||FormData),Y=U.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function q(V,w){return!U.isUndefined(w[V])});let X=Y.metaTokens,$=Y.visitor||W,z=Y.dots,Q=Y.indexes,H=(Y.Blob||typeof Blob!=="undefined"&&Blob)&&U.isSpecCompliantForm(G);if(!U.isFunction($))throw new TypeError("visitor must be a function");function P(q){if(q===null)return"";if(U.isDate(q))return q.toISOString();if(U.isBoolean(q))return q.toString();if(!H&&U.isBlob(q))throw new D("Blob is not supported. Use a Buffer instead.");if(U.isArrayBuffer(q)||U.isTypedArray(q))return H&&typeof Blob==="function"?new Blob([q]):Buffer.from(q);return q}function W(q,V,w){let T=q;if(q&&!w&&typeof q==="object"){if(U.endsWith(V,"{}"))V=X?V:V.slice(0,-2),q=JSON.stringify(q);else if(U.isArray(q)&&B5(q)||(U.isFileList(q)||U.endsWith(V,"[]"))&&(T=U.toArray(q)))return V=E1(V),T.forEach(function O(R,m){!(U.isUndefined(R)||R===null)&&G.append(Q===!0?V1([V],m,z):Q===null?V:V+"[]",P(R))}),!1}if(UB(q))return!0;return G.append(V1(w,V,z),P(q)),!1}let M=[],L=Object.assign(G5,{defaultVisitor:W,convertValue:P,isVisitable:UB});function E(q,V){if(U.isUndefined(q))return;if(M.indexOf(q)!==-1)throw Error("Circular reference detected in "+V.join("."));M.push(q),U.forEach(q,function w(T,O){if((!(U.isUndefined(T)||T===null)&&$.call(G,T,U.isString(O)?O.trim():O,V,L))===!0)E(T,V?V.concat(O):[O])}),M.pop()}if(!U.isObject(B))throw new TypeError("data must be an object");return E(B),G}var o=Y5;function q1(B){let G={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(B).replace(/[!'()~]|%20|%00/g,function Y(X){return G[X]})}function w1(B,G){this._pairs=[],B&&o(B,this,G)}var F1=w1.prototype;F1.append=function B(G,Y){this._pairs.push([G,Y])};F1.toString=function B(G){let Y=G?function(X){return G.call(this,X,q1)}:q1;return this._pairs.map(function X($){return Y($[0])+"="+Y($[1])},"").join("&")};var f0=w1;function X5(B){return encodeURIComponent(B).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P0(B,G,Y){if(!G)return B;let X=Y&&Y.encode||X5;if(U.isFunction(Y))Y={serialize:Y};let $=Y&&Y.serialize,z;if($)z=$(G,Y);else z=U.isURLSearchParams(G)?G.toString():new f0(G,Y).toString(X);if(z){let Q=B.indexOf("#");if(Q!==-1)B=B.slice(0,Q);B+=(B.indexOf("?")===-1?"?":"&")+z}return B}class D1{constructor(){this.handlers=[]}use(B,G,Y){return this.handlers.push({fulfilled:B,rejected:G,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(B){if(this.handlers[B])this.handlers[B]=null}clear(){if(this.handlers)this.handlers=[]}forEach(B){U.forEach(this.handlers,function G(Y){if(Y!==null)B(Y)})}}var JB=D1;var m0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var C1=typeof URLSearchParams!=="undefined"?URLSearchParams:f0;var A1=typeof FormData!=="undefined"?FormData:null;var O1=typeof Blob!=="undefined"?Blob:null;var x1={isBrowser:!0,classes:{URLSearchParams:C1,FormData:A1,Blob:O1},protocols:["http","https","file","blob","url","data"]};var HB={};H4(HB,{origin:()=>Q5,navigator:()=>KB,hasStandardBrowserWebWorkerEnv:()=>$5,hasStandardBrowserEnv:()=>Z5,hasBrowserEnv:()=>PB});var PB=typeof window!=="undefined"&&typeof document!=="undefined",KB=typeof navigator==="object"&&navigator||void 0,Z5=PB&&(!KB||["ReactNative","NativeScript","NS"].indexOf(KB.product)<0),$5=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),Q5=PB&&window.location.href||"http://localhost";var k={...HB,...x1};function LB(B,G){return o(B,new k.classes.URLSearchParams,Object.assign({visitor:function(Y,X,$,z){if(k.isNode&&U.isBuffer(Y))return this.append(X,Y.toString("base64")),!1;return z.defaultVisitor.apply(this,arguments)}},G))}function z5(B){return U.matchAll(/\w+|\[(\w*)]/g,B).map((G)=>{return G[0]==="[]"?"":G[1]||G[0]})}function M5(B){let G={},Y=Object.keys(B),X,$=Y.length,z;for(X=0;X<$;X++)z=Y[X],G[z]=B[z];return G}function W5(B){function G(Y,X,$,z){let Q=Y[z++];if(Q==="__proto__")return!0;let K=Number.isFinite(+Q),H=z>=Y.length;if(Q=!Q&&U.isArray($)?$.length:Q,H){if(U.hasOwnProp($,Q))$[Q]=[$[Q],X];else $[Q]=X;return!K}if(!$[Q]||!U.isObject($[Q]))$[Q]=[];if(G(Y,X,$[Q],z)&&U.isArray($[Q]))$[Q]=M5($[Q]);return!K}if(U.isFormData(B)&&U.isFunction(B.entries)){let Y={};return U.forEachEntry(B,(X,$)=>{G(z5(X),$,Y,0)}),Y}return null}var h0=W5;function U5(B,G,Y){if(U.isString(B))try{return(G||JSON.parse)(B),U.trim(B)}catch(X){if(X.name!=="SyntaxError")throw X}return(Y||JSON.stringify)(B)}var IB={transitional:m0,adapter:["xhr","http","fetch"],transformRequest:[function B(G,Y){let X=Y.getContentType()||"",$=X.indexOf("application/json")>-1,z=U.isObject(G);if(z&&U.isHTMLForm(G))G=new FormData(G);if(U.isFormData(G))return $?JSON.stringify(h0(G)):G;if(U.isArrayBuffer(G)||U.isBuffer(G)||U.isStream(G)||U.isFile(G)||U.isBlob(G)||U.isReadableStream(G))return G;if(U.isArrayBufferView(G))return G.buffer;if(U.isURLSearchParams(G))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),G.toString();let K;if(z){if(X.indexOf("application/x-www-form-urlencoded")>-1)return LB(G,this.formSerializer).toString();if((K=U.isFileList(G))||X.indexOf("multipart/form-data")>-1){let H=this.env&&this.env.FormData;return o(K?{"files[]":G}:G,H&&new H,this.formSerializer)}}if(z||$)return Y.setContentType("application/json",!1),U5(G);return G}],transformResponse:[function B(G){let Y=this.transitional||IB.transitional,X=Y&&Y.forcedJSONParsing,$=this.responseType==="json";if(U.isResponse(G)||U.isReadableStream(G))return G;if(G&&U.isString(G)&&(X&&!this.responseType||$)){let Q=!(Y&&Y.silentJSONParsing)&&$;try{return JSON.parse(G)}catch(K){if(Q){if(K.name==="SyntaxError")throw D.from(K,D.ERR_BAD_RESPONSE,this,null,this.response);throw K}}}return G}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function B(G){return G>=200&&G<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],(B)=>{IB.headers[B]={}});var $0=IB;var J5=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),S1=(B)=>{let G={},Y,X,$;return B&&B.split(`
18
- `).forEach(function z(Q){if($=Q.indexOf(":"),Y=Q.substring(0,$).trim().toLowerCase(),X=Q.substring($+1).trim(),!Y||G[Y]&&J5[Y])return;if(Y==="set-cookie")if(G[Y])G[Y].push(X);else G[Y]=[X];else G[Y]=G[Y]?G[Y]+", "+X:X}),G};var T1=Symbol("internals");function H0(B){return B&&String(B).trim().toLowerCase()}function g0(B){if(B===!1||B==null)return B;return U.isArray(B)?B.map(g0):String(B)}function K5(B){let G=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,X;while(X=Y.exec(B))G[X[1]]=X[2];return G}var P5=(B)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(B.trim());function NB(B,G,Y,X,$){if(U.isFunction(X))return X.call(this,G,Y);if($)G=Y;if(!U.isString(G))return;if(U.isString(X))return G.indexOf(X)!==-1;if(U.isRegExp(X))return X.test(G)}function H5(B){return B.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(G,Y,X)=>{return Y.toUpperCase()+X})}function L5(B,G){let Y=U.toCamelCase(" "+G);["get","set","has"].forEach((X)=>{Object.defineProperty(B,X+Y,{value:function($,z,Q){return this[X].call(this,G,$,z,Q)},configurable:!0})})}class L0{constructor(B){B&&this.set(B)}set(B,G,Y){let X=this;function $(Q,K,H){let P=H0(K);if(!P)throw new Error("header name must be a non-empty string");let W=U.findKey(X,P);if(!W||X[W]===void 0||H===!0||H===void 0&&X[W]!==!1)X[W||K]=g0(Q)}let z=(Q,K)=>U.forEach(Q,(H,P)=>$(H,P,K));if(U.isPlainObject(B)||B instanceof this.constructor)z(B,G);else if(U.isString(B)&&(B=B.trim())&&!P5(B))z(S1(B),G);else if(U.isObject(B)&&U.isIterable(B)){let Q={},K,H;for(let P of B){if(!U.isArray(P))throw TypeError("Object iterator must return a key-value pair");Q[H=P[0]]=(K=Q[H])?U.isArray(K)?[...K,P[1]]:[K,P[1]]:P[1]}z(Q,G)}else B!=null&&$(G,B,Y);return this}get(B,G){if(B=H0(B),B){let Y=U.findKey(this,B);if(Y){let X=this[Y];if(!G)return X;if(G===!0)return K5(X);if(U.isFunction(G))return G.call(this,X,Y);if(U.isRegExp(G))return G.exec(X);throw new TypeError("parser must be boolean|regexp|function")}}}has(B,G){if(B=H0(B),B){let Y=U.findKey(this,B);return!!(Y&&this[Y]!==void 0&&(!G||NB(this,this[Y],Y,G)))}return!1}delete(B,G){let Y=this,X=!1;function $(z){if(z=H0(z),z){let Q=U.findKey(Y,z);if(Q&&(!G||NB(Y,Y[Q],Q,G)))delete Y[Q],X=!0}}if(U.isArray(B))B.forEach($);else $(B);return X}clear(B){let G=Object.keys(this),Y=G.length,X=!1;while(Y--){let $=G[Y];if(!B||NB(this,this[$],$,B,!0))delete this[$],X=!0}return X}normalize(B){let G=this,Y={};return U.forEach(this,(X,$)=>{let z=U.findKey(Y,$);if(z){G[z]=g0(X),delete G[$];return}let Q=B?H5($):String($).trim();if(Q!==$)delete G[$];G[Q]=g0(X),Y[Q]=!0}),this}concat(...B){return this.constructor.concat(this,...B)}toJSON(B){let G=Object.create(null);return U.forEach(this,(Y,X)=>{Y!=null&&Y!==!1&&(G[X]=B&&U.isArray(Y)?Y.join(", "):Y)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([B,G])=>B+": "+G).join(`
19
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(B){return B instanceof this?B:new this(B)}static concat(B,...G){let Y=new this(B);return G.forEach((X)=>Y.set(X)),Y}static accessor(B){let Y=(this[T1]=this[T1]={accessors:{}}).accessors,X=this.prototype;function $(z){let Q=H0(z);if(!Y[Q])L5(X,z),Y[Q]=!0}return U.isArray(B)?B.forEach($):$(B),this}}L0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(L0.prototype,({value:B},G)=>{let Y=G[0].toUpperCase()+G.slice(1);return{get:()=>B,set(X){this[Y]=X}}});U.freezeMethods(L0);var b=L0;function I0(B,G){let Y=this||$0,X=G||Y,$=b.from(X.headers),z=X.data;return U.forEach(B,function Q(K){z=K.call(Y,z,$.normalize(),G?G.status:void 0)}),$.normalize(),z}function N0(B){return!!(B&&B.__CANCEL__)}function R1(B,G,Y){D.call(this,B==null?"canceled":B,D.ERR_CANCELED,G,Y),this.name="CanceledError"}U.inherits(R1,D,{__CANCEL__:!0});var n=R1;function V0(B,G,Y){let X=Y.config.validateStatus;if(!Y.status||!X||X(Y.status))B(Y);else G(new D("Request failed with status code "+Y.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function VB(B){let G=/^([-+\w]{1,25})(:?\/\/|:)/.exec(B);return G&&G[1]||""}function I5(B,G){B=B||10;let Y=new Array(B),X=new Array(B),$=0,z=0,Q;return G=G!==void 0?G:1000,function K(H){let P=Date.now(),W=X[z];if(!Q)Q=P;Y[$]=H,X[$]=P;let M=z,L=0;while(M!==$)L+=Y[M++],M=M%B;if($=($+1)%B,$===z)z=(z+1)%B;if(P-Q<G)return;let E=W&&P-W;return E?Math.round(L*1000/E):void 0}}var j1=I5;function N5(B,G){let Y=0,X=1000/G,$,z,Q=(P,W=Date.now())=>{if(Y=W,$=null,z)clearTimeout(z),z=null;B.apply(null,P)};return[(...P)=>{let W=Date.now(),M=W-Y;if(M>=X)Q(P,W);else if($=P,!z)z=setTimeout(()=>{z=null,Q($)},X-M)},()=>$&&Q($)]}var _1=N5;var Q0=(B,G,Y=3)=>{let X=0,$=j1(50,250);return _1((z)=>{let Q=z.loaded,K=z.lengthComputable?z.total:void 0,H=Q-X,P=$(H),W=Q<=K;X=Q;let M={loaded:Q,total:K,progress:K?Q/K:void 0,bytes:H,rate:P?P:void 0,estimated:P&&K&&W?(K-Q)/P:void 0,event:z,lengthComputable:K!=null,[G?"download":"upload"]:!0};B(M)},Y)},EB=(B,G)=>{let Y=B!=null;return[(X)=>G[0]({lengthComputable:Y,total:B,loaded:X}),G[1]]},qB=(B)=>(...G)=>U.asap(()=>B(...G));var k1=k.hasStandardBrowserEnv?((B,G)=>(Y)=>{return Y=new URL(Y,k.origin),B.protocol===Y.protocol&&B.host===Y.host&&(G||B.port===Y.port)})(new URL(k.origin),k.navigator&&/(msie|trident)/i.test(k.navigator.userAgent)):()=>!0;var v1=k.hasStandardBrowserEnv?{write(B,G,Y,X,$,z){let Q=[B+"="+encodeURIComponent(G)];U.isNumber(Y)&&Q.push("expires="+new Date(Y).toGMTString()),U.isString(X)&&Q.push("path="+X),U.isString($)&&Q.push("domain="+$),z===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read(B){let G=document.cookie.match(new RegExp("(^|;\\s*)("+B+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove(B){this.write(B,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function wB(B){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(B)}function FB(B,G){return G?B.replace(/\/?\/$/,"")+"/"+G.replace(/^\/+/,""):B}function E0(B,G,Y){let X=!wB(G);if(B&&(X||Y==!1))return FB(B,G);return G}var b1=(B)=>B instanceof b?{...B}:B;function p(B,G){G=G||{};let Y={};function X(P,W,M,L){if(U.isPlainObject(P)&&U.isPlainObject(W))return U.merge.call({caseless:L},P,W);else if(U.isPlainObject(W))return U.merge({},W);else if(U.isArray(W))return W.slice();return W}function $(P,W,M,L){if(!U.isUndefined(W))return X(P,W,M,L);else if(!U.isUndefined(P))return X(void 0,P,M,L)}function z(P,W){if(!U.isUndefined(W))return X(void 0,W)}function Q(P,W){if(!U.isUndefined(W))return X(void 0,W);else if(!U.isUndefined(P))return X(void 0,P)}function K(P,W,M){if(M in G)return X(P,W);else if(M in B)return X(void 0,P)}let H={url:z,method:z,data:z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,withXSRFToken:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:K,headers:(P,W,M)=>$(b1(P),b1(W),M,!0)};return U.forEach(Object.keys(Object.assign({},B,G)),function P(W){let M=H[W]||$,L=M(B[W],G[W],W);U.isUndefined(L)&&M!==K||(Y[W]=L)}),Y}var u0=(B)=>{let G=p({},B),{data:Y,withXSRFToken:X,xsrfHeaderName:$,xsrfCookieName:z,headers:Q,auth:K}=G;if(G.headers=Q=b.from(Q),G.url=P0(E0(G.baseURL,G.url,G.allowAbsoluteUrls),B.params,B.paramsSerializer),K)Q.set("Authorization","Basic "+btoa((K.username||"")+":"+(K.password?unescape(encodeURIComponent(K.password)):"")));let H;if(U.isFormData(Y)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)Q.setContentType(void 0);else if((H=Q.getContentType())!==!1){let[P,...W]=H?H.split(";").map((M)=>M.trim()).filter(Boolean):[];Q.setContentType([P||"multipart/form-data",...W].join("; "))}}if(k.hasStandardBrowserEnv){if(X&&U.isFunction(X)&&(X=X(G)),X||X!==!1&&k1(G.url)){let P=$&&z&&v1.read(z);if(P)Q.set($,P)}}return G};var V5=typeof XMLHttpRequest!=="undefined",y1=V5&&function(B){return new Promise(function G(Y,X){let $=u0(B),z=$.data,Q=b.from($.headers).normalize(),{responseType:K,onUploadProgress:H,onDownloadProgress:P}=$,W,M,L,E,q;function V(){E&&E(),q&&q(),$.cancelToken&&$.cancelToken.unsubscribe(W),$.signal&&$.signal.removeEventListener("abort",W)}let w=new XMLHttpRequest;w.open($.method.toUpperCase(),$.url,!0),w.timeout=$.timeout;function T(){if(!w)return;let R=b.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),y={data:!K||K==="text"||K==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:R,config:B,request:w};V0(function h(u){Y(u),V()},function h(u){X(u),V()},y),w=null}if("onloadend"in w)w.onloadend=T;else w.onreadystatechange=function R(){if(!w||w.readyState!==4)return;if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0))return;setTimeout(T)};if(w.onabort=function R(){if(!w)return;X(new D("Request aborted",D.ECONNABORTED,B,w)),w=null},w.onerror=function R(){X(new D("Network Error",D.ERR_NETWORK,B,w)),w=null},w.ontimeout=function R(){let m=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",y=$.transitional||m0;if($.timeoutErrorMessage)m=$.timeoutErrorMessage;X(new D(m,y.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,B,w)),w=null},z===void 0&&Q.setContentType(null),"setRequestHeader"in w)U.forEach(Q.toJSON(),function R(m,y){w.setRequestHeader(y,m)});if(!U.isUndefined($.withCredentials))w.withCredentials=!!$.withCredentials;if(K&&K!=="json")w.responseType=$.responseType;if(P)[L,q]=Q0(P,!0),w.addEventListener("progress",L);if(H&&w.upload)[M,E]=Q0(H),w.upload.addEventListener("progress",M),w.upload.addEventListener("loadend",E);if($.cancelToken||$.signal){if(W=(R)=>{if(!w)return;X(!R||R.type?new n(null,B,w):R),w.abort(),w=null},$.cancelToken&&$.cancelToken.subscribe(W),$.signal)$.signal.aborted?W():$.signal.addEventListener("abort",W)}let O=VB($.url);if(O&&k.protocols.indexOf(O)===-1){X(new D("Unsupported protocol "+O+":",D.ERR_BAD_REQUEST,B));return}w.send(z||null)})};var E5=(B,G)=>{let{length:Y}=B=B?B.filter(Boolean):[];if(G||Y){let X=new AbortController,$,z=function(P){if(!$){$=!0,K();let W=P instanceof Error?P:this.reason;X.abort(W instanceof D?W:new n(W instanceof Error?W.message:W))}},Q=G&&setTimeout(()=>{Q=null,z(new D(`timeout ${G} of ms exceeded`,D.ETIMEDOUT))},G),K=()=>{if(B)Q&&clearTimeout(Q),Q=null,B.forEach((P)=>{P.unsubscribe?P.unsubscribe(z):P.removeEventListener("abort",z)}),B=null};B.forEach((P)=>P.addEventListener("abort",z));let{signal:H}=X;return H.unsubscribe=()=>U.asap(K),H}},f1=E5;var q5=function*(B,G){let Y=B.byteLength;if(!G||Y<G){yield B;return}let X=0,$;while(X<Y)$=X+G,yield B.slice(X,$),X=$},w5=async function*(B,G){for await(let Y of F5(B))yield*q5(Y,G)},F5=async function*(B){if(B[Symbol.asyncIterator]){yield*B;return}let G=B.getReader();try{for(;;){let{done:Y,value:X}=await G.read();if(Y)break;yield X}}finally{await G.cancel()}},DB=(B,G,Y,X)=>{let $=w5(B,G),z=0,Q,K=(H)=>{if(!Q)Q=!0,X&&X(H)};return new ReadableStream({async pull(H){try{let{done:P,value:W}=await $.next();if(P){K(),H.close();return}let M=W.byteLength;if(Y){let L=z+=M;Y(L)}H.enqueue(new Uint8Array(W))}catch(P){throw K(P),P}},cancel(H){return K(H),$.return()}},{highWaterMark:2})};var l0=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",h1=l0&&typeof ReadableStream==="function",D5=l0&&(typeof TextEncoder==="function"?((B)=>(G)=>B.encode(G))(new TextEncoder):async(B)=>new Uint8Array(await new Response(B).arrayBuffer())),g1=(B,...G)=>{try{return!!B(...G)}catch(Y){return!1}},C5=h1&&g1(()=>{let B=!1,G=new Request(k.origin,{body:new ReadableStream,method:"POST",get duplex(){return B=!0,"half"}}).headers.has("Content-Type");return B&&!G}),m1=65536,CB=h1&&g1(()=>U.isReadableStream(new Response("").body)),d0={stream:CB&&((B)=>B.body)};l0&&((B)=>{["text","arrayBuffer","blob","formData","stream"].forEach((G)=>{!d0[G]&&(d0[G]=U.isFunction(B[G])?(Y)=>Y[G]():(Y,X)=>{throw new D(`Response type '${G}' is not supported`,D.ERR_NOT_SUPPORT,X)})})})(new Response);var A5=async(B)=>{if(B==null)return 0;if(U.isBlob(B))return B.size;if(U.isSpecCompliantForm(B))return(await new Request(k.origin,{method:"POST",body:B}).arrayBuffer()).byteLength;if(U.isArrayBufferView(B)||U.isArrayBuffer(B))return B.byteLength;if(U.isURLSearchParams(B))B=B+"";if(U.isString(B))return(await D5(B)).byteLength},O5=async(B,G)=>{let Y=U.toFiniteNumber(B.getContentLength());return Y==null?A5(G):Y},u1=l0&&(async(B)=>{let{url:G,method:Y,data:X,signal:$,cancelToken:z,timeout:Q,onDownloadProgress:K,onUploadProgress:H,responseType:P,headers:W,withCredentials:M="same-origin",fetchOptions:L}=u0(B);P=P?(P+"").toLowerCase():"text";let E=f1([$,z&&z.toAbortSignal()],Q),q,V=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),w;try{if(H&&C5&&Y!=="get"&&Y!=="head"&&(w=await O5(W,X))!==0){let y=new Request(G,{method:"POST",body:X,duplex:"half"}),h;if(U.isFormData(X)&&(h=y.headers.get("content-type")))W.setContentType(h);if(y.body){let[u,G0]=EB(w,Q0(qB(H)));X=DB(y.body,m1,u,G0)}}if(!U.isString(M))M=M?"include":"omit";let T="credentials"in Request.prototype;q=new Request(G,{...L,signal:E,method:Y.toUpperCase(),headers:W.normalize().toJSON(),body:X,duplex:"half",credentials:T?M:void 0});let O=await fetch(q,L),R=CB&&(P==="stream"||P==="response");if(CB&&(K||R&&V)){let y={};["status","statusText","headers"].forEach((_)=>{y[_]=O[_]});let h=U.toFiniteNumber(O.headers.get("content-length")),[u,G0]=K&&EB(h,Q0(qB(K),!0))||[];O=new Response(DB(O.body,m1,u,()=>{G0&&G0(),V&&V()}),y)}P=P||"text";let m=await d0[U.findKey(d0,P)||"text"](O,B);return!R&&V&&V(),await new Promise((y,h)=>{V0(y,h,{data:m,headers:b.from(O.headers),status:O.status,statusText:O.statusText,config:B,request:q})})}catch(T){if(V&&V(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message))throw Object.assign(new D("Network Error",D.ERR_NETWORK,B,q),{cause:T.cause||T});throw D.from(T,T&&T.code,B,q)}});var AB={http:y0,xhr:y1,fetch:u1};U.forEach(AB,(B,G)=>{if(B){try{Object.defineProperty(B,"name",{value:G})}catch(Y){}Object.defineProperty(B,"adapterName",{value:G})}});var d1=(B)=>`- ${B}`,x5=(B)=>U.isFunction(B)||B===null||B===!1,c0={getAdapter:(B)=>{B=U.isArray(B)?B:[B];let{length:G}=B,Y,X,$={};for(let z=0;z<G;z++){Y=B[z];let Q;if(X=Y,!x5(Y)){if(X=AB[(Q=String(Y)).toLowerCase()],X===void 0)throw new D(`Unknown adapter '${Q}'`)}if(X)break;$[Q||"#"+z]=X}if(!X){let z=Object.entries($).map(([K,H])=>`adapter ${K} `+(H===!1?"is not supported by the environment":"is not available in the build")),Q=G?z.length>1?`since :
20
- `+z.map(d1).join(`
21
- `):" "+d1(z[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+Q,"ERR_NOT_SUPPORT")}return X},adapters:AB};function OB(B){if(B.cancelToken)B.cancelToken.throwIfRequested();if(B.signal&&B.signal.aborted)throw new n(null,B)}function p0(B){if(OB(B),B.headers=b.from(B.headers),B.data=I0.call(B,B.transformRequest),["post","put","patch"].indexOf(B.method)!==-1)B.headers.setContentType("application/x-www-form-urlencoded",!1);return c0.getAdapter(B.adapter||$0.adapter)(B).then(function Y(X){return OB(B),X.data=I0.call(B,B.transformResponse,X),X.headers=b.from(X.headers),X},function Y(X){if(!N0(X)){if(OB(B),X&&X.response)X.response.data=I0.call(B,B.transformResponse,X.response),X.response.headers=b.from(X.response.headers)}return Promise.reject(X)})}var n0="1.10.0";var r0={};["object","boolean","number","function","string","symbol"].forEach((B,G)=>{r0[B]=function Y(X){return typeof X===B||"a"+(G<1?"n ":" ")+B}});var l1={};r0.transitional=function B(G,Y,X){function $(z,Q){return"[Axios v"+n0+"] Transitional option '"+z+"'"+Q+(X?". "+X:"")}return(z,Q,K)=>{if(G===!1)throw new D($(Q," has been removed"+(Y?" in "+Y:"")),D.ERR_DEPRECATED);if(Y&&!l1[Q])l1[Q]=!0,console.warn($(Q," has been deprecated since v"+Y+" and will be removed in the near future"));return G?G(z,Q,K):!0}};r0.spelling=function B(G){return(Y,X)=>{return console.warn(`${X} is likely a misspelling of ${G}`),!0}};function S5(B,G,Y){if(typeof B!=="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let X=Object.keys(B),$=X.length;while($-- >0){let z=X[$],Q=G[z];if(Q){let K=B[z],H=K===void 0||Q(K,z,B);if(H!==!0)throw new D("option "+z+" must be "+H,D.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new D("Unknown option "+z,D.ERR_BAD_OPTION)}}var q0={assertOptions:S5,validators:r0};var r=q0.validators;class w0{constructor(B){this.defaults=B||{},this.interceptors={request:new JB,response:new JB}}async request(B,G){try{return await this._request(B,G)}catch(Y){if(Y instanceof Error){let X={};Error.captureStackTrace?Error.captureStackTrace(X):X=new Error;let $=X.stack?X.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=$;else if($&&!String(Y.stack).endsWith($.replace(/^.+\n.+\n/,"")))Y.stack+=`
22
- `+$}catch(z){}}throw Y}}_request(B,G){if(typeof B==="string")G=G||{},G.url=B;else G=B||{};G=p(this.defaults,G);let{transitional:Y,paramsSerializer:X,headers:$}=G;if(Y!==void 0)q0.assertOptions(Y,{silentJSONParsing:r.transitional(r.boolean),forcedJSONParsing:r.transitional(r.boolean),clarifyTimeoutError:r.transitional(r.boolean)},!1);if(X!=null)if(U.isFunction(X))G.paramsSerializer={serialize:X};else q0.assertOptions(X,{encode:r.function,serialize:r.function},!0);if(G.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)G.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else G.allowAbsoluteUrls=!0;q0.assertOptions(G,{baseUrl:r.spelling("baseURL"),withXsrfToken:r.spelling("withXSRFToken")},!0),G.method=(G.method||this.defaults.method||"get").toLowerCase();let z=$&&U.merge($.common,$[G.method]);$&&U.forEach(["delete","get","head","post","put","patch","common"],(E)=>{delete $[E]}),G.headers=b.concat(z,$);let Q=[],K=!0;this.interceptors.request.forEach(function E(q){if(typeof q.runWhen==="function"&&q.runWhen(G)===!1)return;K=K&&q.synchronous,Q.unshift(q.fulfilled,q.rejected)});let H=[];this.interceptors.response.forEach(function E(q){H.push(q.fulfilled,q.rejected)});let P,W=0,M;if(!K){let E=[p0.bind(this),void 0];E.unshift.apply(E,Q),E.push.apply(E,H),M=E.length,P=Promise.resolve(G);while(W<M)P=P.then(E[W++],E[W++]);return P}M=Q.length;let L=G;W=0;while(W<M){let E=Q[W++],q=Q[W++];try{L=E(L)}catch(V){q.call(this,V);break}}try{P=p0.call(this,L)}catch(E){return Promise.reject(E)}W=0,M=H.length;while(W<M)P=P.then(H[W++],H[W++]);return P}getUri(B){B=p(this.defaults,B);let G=E0(B.baseURL,B.url,B.allowAbsoluteUrls);return P0(G,B.params,B.paramsSerializer)}}U.forEach(["delete","get","head","options"],function B(G){w0.prototype[G]=function(Y,X){return this.request(p(X||{},{method:G,url:Y,data:(X||{}).data}))}});U.forEach(["post","put","patch"],function B(G){function Y(X){return function $(z,Q,K){return this.request(p(K||{},{method:G,headers:X?{"Content-Type":"multipart/form-data"}:{},url:z,data:Q}))}}w0.prototype[G]=Y(),w0.prototype[G+"Form"]=Y(!0)});var F0=w0;class xB{constructor(B){if(typeof B!=="function")throw new TypeError("executor must be a function.");let G;this.promise=new Promise(function X($){G=$});let Y=this;this.promise.then((X)=>{if(!Y._listeners)return;let $=Y._listeners.length;while($-- >0)Y._listeners[$](X);Y._listeners=null}),this.promise.then=(X)=>{let $,z=new Promise((Q)=>{Y.subscribe(Q),$=Q}).then(X);return z.cancel=function Q(){Y.unsubscribe($)},z},B(function X($,z,Q){if(Y.reason)return;Y.reason=new n($,z,Q),G(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(B){if(this.reason){B(this.reason);return}if(this._listeners)this._listeners.push(B);else this._listeners=[B]}unsubscribe(B){if(!this._listeners)return;let G=this._listeners.indexOf(B);if(G!==-1)this._listeners.splice(G,1)}toAbortSignal(){let B=new AbortController,G=(Y)=>{B.abort(Y)};return this.subscribe(G),B.signal.unsubscribe=()=>this.unsubscribe(G),B.signal}static source(){let B;return{token:new xB(function Y(X){B=X}),cancel:B}}}var c1=xB;function SB(B){return function G(Y){return B.apply(null,Y)}}function TB(B){return U.isObject(B)&&B.isAxiosError===!0}var RB={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(RB).forEach(([B,G])=>{RB[G]=B});var p1=RB;function n1(B){let G=new F0(B),Y=U0(F0.prototype.request,G);return U.extend(Y,F0.prototype,G,{allOwnKeys:!0}),U.extend(Y,G,null,{allOwnKeys:!0}),Y.create=function X($){return n1(p(B,$))},Y}var v=n1($0);v.Axios=F0;v.CanceledError=n;v.CancelToken=c1;v.isCancel=N0;v.VERSION=n0;v.toFormData=o;v.AxiosError=D;v.Cancel=v.CanceledError;v.all=function B(G){return Promise.all(G)};v.spread=SB;v.isAxiosError=TB;v.mergeConfig=p;v.AxiosHeaders=b;v.formToJSON=(B)=>h0(U.isHTMLForm(B)?new FormData(B):B);v.getAdapter=c0.getAdapter;v.HttpStatusCode=p1;v.default=v;var jB=v;var T5="https://headless.tebex.io";async function f(B,G,Y,X,$,z,Q,K){if(Q){for(let[W,M]of Object.entries(Q))if(typeof M==="boolean")Q[W]=M?1:0}let H={url:`${T5}/api/${$}/${X}${z??""}`,params:Q,method:Y,data:K,headers:{"Content-Type":"application/json"}};if(B&&G)H.auth={username:B,password:G};return(await jB.request(H)).data}var r1=class{constructor(B,G){this.webstoreIdentifier=B,this.privateKey=G}async getCategories(B,G,Y){let{data:X}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/categories",{includePackages:B,basketIdent:G,ipAddress:Y});return X}async getCategory(B,G,Y,X){let{data:$}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/categories/${B}`,{includePackages:G,basketIdent:Y,ipAddress:X});return $}async apply(B,G,Y){return await f(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}`,{},Y)}async remove(B,G,Y){return await f(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}/remove`,{},Y)}async getPackage(B,G,Y){let{data:X}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/packages/${B}`,{basketIdent:G,ipAddress:Y});return X}async getPackages(B,G){let{data:Y}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/packages",{basketIdent:B,ipAddress:G});return Y}async getBasket(B){let{data:G}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}`);return G}async createBasket(B,G,Y,X,$){let{data:z}=await f(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:$},{complete_url:B,cancel_url:G,custom:Y,complete_auto_redirect:X});return z}async createMinecraftBasket(B,G,Y,X,$,z){let{data:Q}=await f(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:z},{username:B,complete_url:G,cancel_url:Y,custom:X,complete_auto_redirect:$});return Q}async getBasketAuthUrl(B,G){return await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}/auth`,{returnUrl:G})}async addPackageToBasket(B,G,Y,X,$){let{data:z}=await f(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,quantity:Y,type:X,variable_data:$});return z}async giftPackage(B,G,Y){let{data:X}=await f(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,target_username_id:Y});return X}async removePackage(B,G){let{data:Y}=await f(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages/remove",{},{package_id:G});return Y}async updateQuantity(B,G,Y){let{data:X}=await f(this.webstoreIdentifier,this.privateKey,"put",B,"baskets",`/packages/${G}`,{},{quantity:Y});return X}async getWebstore(){let{data:B}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts");return B}async getPages(){let{data:B}=await f(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/pages");return B}async updateTier(B,G){return await f(this.webstoreIdentifier,this.privateKey,"patch",this.webstoreIdentifier,"accounts",`/tiers/${B}`,{},{package_id:G})}};var _B=null,R5=async()=>{if(!_B){let B=process.env.NEXT_PUBLIC_TEBEX_PUBLIC_KEY;if(!B)throw new Error("Missing NEXT_PUBLIC_TEBEX_PUBLIC_KEY env variable");_B=new r1(B)}return _B},a=R5;var t=e(z0(),1);var _5=async({includePackages:B,basketIdent:G,ipAddress:Y})=>{return(await a()).getCategories(B,G,Y)},k5={getCategories:_5},kB=k5;var v5=(B)=>{let[G,Y]=t.useState(null),[X,$]=t.useState(!0),[z,Q]=t.useState(null),K=async()=>{$(!0),Q(null);try{let P=await kB.getCategories(B);Y(P)}catch(P){Q(P),Y(null)}finally{$(!1)}};t.useEffect(()=>{K()},[]);let H=t.useCallback((P)=>G?.find((W)=>W.name.toLowerCase()===P.toLowerCase()),[G]);return{categories:G,loading:X,error:z,getByName:H,refetch:K}},b5=v5;var G4=e(z0(),1);var i=e(z0(),1),h5=e(o1(),1);function m5(B){if(!B||typeof document=="undefined")return;let G=document.head||document.getElementsByTagName("head")[0],Y=document.createElement("style");Y.type="text/css",G.appendChild(Y),Y.styleSheet?Y.styleSheet.cssText=B:Y.appendChild(document.createTextNode(B))}var O7=Array(12).fill(0);var bB=1;class a1{constructor(){this.subscribe=(B)=>{return this.subscribers.push(B),()=>{let G=this.subscribers.indexOf(B);this.subscribers.splice(G,1)}},this.publish=(B)=>{this.subscribers.forEach((G)=>G(B))},this.addToast=(B)=>{this.publish(B),this.toasts=[...this.toasts,B]},this.create=(B)=>{var G;let{message:Y,...X}=B,$=typeof(B==null?void 0:B.id)==="number"||((G=B.id)==null?void 0:G.length)>0?B.id:bB++,z=this.toasts.find((K)=>{return K.id===$}),Q=B.dismissible===void 0?!0:B.dismissible;if(this.dismissedToasts.has($))this.dismissedToasts.delete($);if(z)this.toasts=this.toasts.map((K)=>{if(K.id===$)return this.publish({...K,...B,id:$,title:Y}),{...K,...B,id:$,dismissible:Q,title:Y};return K});else this.addToast({title:Y,...X,dismissible:Q,id:$});return $},this.dismiss=(B)=>{if(B)this.dismissedToasts.add(B),requestAnimationFrame(()=>this.subscribers.forEach((G)=>G({id:B,dismiss:!0})));else this.toasts.forEach((G)=>{this.subscribers.forEach((Y)=>Y({id:G.id,dismiss:!0}))});return B},this.message=(B,G)=>{return this.create({...G,message:B})},this.error=(B,G)=>{return this.create({...G,message:B,type:"error"})},this.success=(B,G)=>{return this.create({...G,type:"success",message:B})},this.info=(B,G)=>{return this.create({...G,type:"info",message:B})},this.warning=(B,G)=>{return this.create({...G,type:"warning",message:B})},this.loading=(B,G)=>{return this.create({...G,type:"loading",message:B})},this.promise=(B,G)=>{if(!G)return;let Y=void 0;if(G.loading!==void 0)Y=this.create({...G,promise:B,type:"loading",message:G.loading,description:typeof G.description!=="function"?G.description:void 0});let X=Promise.resolve(B instanceof Function?B():B),$=Y!==void 0,z,Q=X.then(async(H)=>{if(z=["resolve",H],i.default.isValidElement(H))$=!1,this.create({id:Y,type:"default",message:H});else if(u5(H)&&!H.ok){$=!1;let W=typeof G.error==="function"?await G.error(`HTTP error! status: ${H.status}`):G.error,M=typeof G.description==="function"?await G.description(`HTTP error! status: ${H.status}`):G.description,E=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"error",description:M,...E})}else if(H instanceof Error){$=!1;let W=typeof G.error==="function"?await G.error(H):G.error,M=typeof G.description==="function"?await G.description(H):G.description,E=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"error",description:M,...E})}else if(G.success!==void 0){$=!1;let W=typeof G.success==="function"?await G.success(H):G.success,M=typeof G.description==="function"?await G.description(H):G.description,E=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"success",description:M,...E})}}).catch(async(H)=>{if(z=["reject",H],G.error!==void 0){$=!1;let P=typeof G.error==="function"?await G.error(H):G.error,W=typeof G.description==="function"?await G.description(H):G.description,L=typeof P==="object"&&!i.default.isValidElement(P)?P:{message:P};this.create({id:Y,type:"error",description:W,...L})}}).finally(()=>{if($)this.dismiss(Y),Y=void 0;G.finally==null||G.finally.call(G)}),K=()=>new Promise((H,P)=>Q.then(()=>z[0]==="reject"?P(z[1]):H(z[1])).catch(P));if(typeof Y!=="string"&&typeof Y!=="number")return{unwrap:K};else return Object.assign(Y,{unwrap:K})},this.custom=(B,G)=>{let Y=(G==null?void 0:G.id)||bB++;return this.create({jsx:B(Y),id:Y,...G}),Y},this.getActiveToasts=()=>{return this.toasts.filter((B)=>!this.dismissedToasts.has(B.id))},this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}var l=new a1,g5=(B,G)=>{let Y=(G==null?void 0:G.id)||bB++;return l.addToast({title:B,...G,id:Y}),Y},u5=(B)=>{return B&&typeof B==="object"&&"ok"in B&&typeof B.ok==="boolean"&&"status"in B&&typeof B.status==="number"},d5=g5,l5=()=>l.toasts,c5=()=>l.getActiveToasts(),yB=Object.assign(d5,{success:l.success,info:l.info,warning:l.warning,error:l.error,custom:l.custom,message:l.message,promise:l.promise,dismiss:l.dismiss,loading:l.loading},{getHistory:l5,getToasts:c5});m5("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var p5=async({username:B,completeUrl:G,cancelUrl:Y,custom:X,completeAutoRedirect:$,ipAddress:z})=>{return(await a()).createMinecraftBasket(B,G,Y,X,$,z)},n5=async(B)=>{return(await a()).getBasket(B)},r5=async(B,G,Y,X,$)=>{return(await a()).addPackageToBasket(B,G,Y??1,X,$)},i5=async(B,G,Y)=>{return(await a()).updateQuantity(B,G,Y-1>=0?Y-1:0)},s5={createBasket:p5,getBasket:n5,addPackageToBasket:r5,removePackageFromBasket:i5},fB=s5;var t1=(B)=>{let G,Y=new Set,X=(P,W)=>{let M=typeof P==="function"?P(G):P;if(!Object.is(M,G)){let L=G;G=(W!=null?W:typeof M!=="object"||M===null)?M:Object.assign({},G,M),Y.forEach((E)=>E(G,L))}},$=()=>G,K={setState:X,getState:$,getInitialState:()=>H,subscribe:(P)=>{return Y.add(P),()=>Y.delete(P)}},H=G=B(X,$,K);return K},e1=(B)=>B?t1(B):t1;var mB=e(z0(),1);var o5=(B)=>B;function a5(B,G=o5){let Y=mB.default.useSyncExternalStore(B.subscribe,()=>G(B.getState()),()=>G(B.getInitialState()));return mB.default.useDebugValue(Y),Y}var B4=(B)=>{let G=e1(B),Y=(X)=>a5(G,X);return Object.assign(Y,G),Y},M0=(B)=>B?B4(B):B4;var t5=(B)=>(G,Y,X)=>{let $=X.subscribe;return X.subscribe=(Q,K,H)=>{let P=Q;if(K){let W=(H==null?void 0:H.equalityFn)||Object.is,M=Q(X.getState());if(P=(L)=>{let E=Q(L);if(!W(M,E)){let q=M;K(M=E,q)}},H==null?void 0:H.fireImmediately)K(M,M)}return $(P)},B(G,Y,X)},s0=t5;function e5(B,G){let Y;try{Y=B()}catch($){return}return{getItem:($)=>{var z;let Q=(H)=>{if(H===null)return null;return JSON.parse(H,G==null?void 0:G.reviver)},K=(z=Y.getItem($))!=null?z:null;if(K instanceof Promise)return K.then(Q);return Q(K)},setItem:($,z)=>Y.setItem($,JSON.stringify(z,G==null?void 0:G.replacer)),removeItem:($)=>Y.removeItem($)}}var hB=(B)=>(G)=>{try{let Y=B(G);if(Y instanceof Promise)return Y;return{then(X){return hB(X)(Y)},catch(X){return this}}}catch(Y){return{then(X){return this},catch(X){return hB(X)(Y)}}}},BG=(B,G)=>(Y,X,$)=>{let z={storage:e5(()=>localStorage),partialize:(V)=>V,version:0,merge:(V,w)=>({...w,...V}),...G},Q=!1,K=new Set,H=new Set,P=z.storage;if(!P)return B((...V)=>{console.warn(`[zustand persist middleware] Unable to update item '${z.name}', the given storage is currently unavailable.`),Y(...V)},X,$);let W=()=>{let V=z.partialize({...X()});return P.setItem(z.name,{state:V,version:z.version})},M=$.setState;$.setState=(V,w)=>{M(V,w),W()};let L=B((...V)=>{Y(...V),W()},X,$);$.getInitialState=()=>L;let E,q=()=>{var V,w;if(!P)return;Q=!1,K.forEach((O)=>{var R;return O((R=X())!=null?R:L)});let T=((w=z.onRehydrateStorage)==null?void 0:w.call(z,(V=X())!=null?V:L))||void 0;return hB(P.getItem.bind(P))(z.name).then((O)=>{if(O)if(typeof O.version==="number"&&O.version!==z.version){if(z.migrate){let R=z.migrate(O.state,O.version);if(R instanceof Promise)return R.then((m)=>[!0,m]);return[!0,R]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,O.state];return[!1,void 0]}).then((O)=>{var R;let[m,y]=O;if(E=z.merge(y,(R=X())!=null?R:L),Y(E,!0),m)return W()}).then(()=>{T==null||T(E,void 0),E=X(),Q=!0,H.forEach((O)=>O(E))}).catch((O)=>{T==null||T(void 0,O)})};if($.persist={setOptions:(V)=>{if(z={...z,...V},V.storage)P=V.storage},clearStorage:()=>{P==null||P.removeItem(z.name)},getOptions:()=>z,rehydrate:()=>q(),hasHydrated:()=>Q,onHydrate:(V)=>{return K.add(V),()=>{K.delete(V)}},onFinishHydration:(V)=>{return H.add(V),()=>{H.delete(V)}}},!z.skipHydration)q();return E||L},o0=BG;var GG=M0()(s0(o0((B)=>({basketIdent:null,setBasketIdent:(G)=>B({basketIdent:G}),clearBasketIdent:()=>B({basketIdent:null})}),{name:"shop-basket-store"}))),gB=GG;var YG=M0()(s0((B)=>({isGlobalLoading:!1,setIsGlobalLoading:(G)=>B({isGlobalLoading:G}),isCreatingBasket:!1,setIsCreatingBasket:(G)=>B({isCreatingBasket:G})}))),a0=YG;var XG=M0()(o0((B)=>({username:"",setUsername:(G)=>B({username:G}),clearUsername:()=>B({username:""})}),{name:"shop-user-store"})),uB=XG;var ZG=async(B)=>{let{isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:$,username:z}=B;if(G)return null;let{completeUrl:Q,cancelUrl:K}=QG();try{Y(!0);let H=await $({username:z,completeUrl:Q,cancelUrl:K,completeAutoRedirect:!1,ipAddress:""});if(!H?.ident)return yB.error("Une erreur est survenue lors de la création du panier"),null;return X(H.ident),H}catch{return yB.error("Erreur lors de la création du panier. Contactez le support si le problème persiste."),null}finally{Y(!1)}},$G=(B)=>{let G=a0((Q)=>Q.isCreatingBasket),Y=a0((Q)=>Q.setIsCreatingBasket),X=gB((Q)=>Q.setBasketIdent),$=uB((Q)=>Q.username);return G4.useCallback(()=>ZG({isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:fB.createBasket,username:B??$}),[G,Y,X,B,$])},QG=()=>{if(!process.env.NEXT_PUBLIC_APP_URL)throw new Error("NEXT_PUBLIC_APP_URL is not set");return{completeUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/complete-purchase`,cancelUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/cancel-purchase`}},zG=$G;export{uB as useShopUserStore,a0 as useShopUiStore,gB as useShopBasketStore,zG as useCreateBasket,b5 as useCategories,a as getTebex,kB as categoriesService,fB as basketService};
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),W}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U={d:{f:B,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:B,C:B,L:B,m:B,X:B,S:B,M:B},p:0,findDOMNode:null},H=Symbol.for("react.portal"),P=m1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),vB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,vB.createPortal=function(W,M){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(W,M,null,L)},vB.flushSync=function(W){var M=P.T,L=U.p;try{if(P.T=null,U.p=2,W)return W()}finally{P.T=M,U.p=L,U.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},vB.preconnect=function(W,M){typeof W==="string"&&W?M!=null&&typeof M!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",z(M)):M!=null&&typeof M.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",$(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W)),typeof W==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,U.d.C(W,M))},vB.prefetchDNS=function(W){if(typeof W!=="string"||!W)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",z(M))}typeof W==="string"&&U.d.D(W)},vB.preinit=function(W,M){if(typeof W==="string"&&W?M==null||typeof M!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",z(M)):M.as!=="style"&&M.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',z(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",$(W)),typeof W==="string"&&M&&typeof M.as==="string"){var L=M.as,I=X(L,M.crossOrigin),q=typeof M.integrity==="string"?M.integrity:void 0,E=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;L==="style"?U.d.S(W,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:I,integrity:q,fetchPriority:E}):L==="script"&&U.d.X(W,{crossOrigin:I,integrity:q,fetchPriority:E,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},vB.preinitModule=function(W,M){var L="";if(typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M!==void 0&&typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&M.as!=="script"&&(L+=" The `as` option encountered was "+z(M.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=M&&typeof M.as==="string"?M.as:"script",L){case"script":break;default:L=z(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,W)}if(typeof W==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")L=X(M.as,M.crossOrigin),U.d.M(W,{crossOrigin:L,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&U.d.M(W)},vB.preload=function(W,M){var L="";if(typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M==null||typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":typeof M.as==="string"&&M.as||(L+=" The `as` option encountered was "+$(M.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof W==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){L=M.as;var I=X(L,M.crossOrigin);U.d.L(W,L,{crossOrigin:I,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},vB.preloadModule=function(W,M){var L="";typeof W==="string"&&W||(L+=" The `href` argument encountered was "+$(W)+"."),M!==void 0&&typeof M!=="object"?L+=" The `options` argument encountered was "+$(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(L+=" The `as` option encountered was "+$(M.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof W==="string"&&(M?(L=X(M.as,M.crossOrigin),U.d.m(W,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:L,integrity:typeof M.integrity==="string"?M.integrity:void 0})):U.d.m(W))},vB.requestFormReset=function(W){U.d.r(W)},vB.unstable_batchedUpdates=function(W,M){return W(M)},vB.useFormState=function(W,M,L){return Q().useFormState(W,M,L)},vB.useFormStatus=function(){return Q().useHostTransitionStatus()},vB.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t4=U1((D7,a4)=>{var bB=t(o4(),1);a4.exports=bB});function H0(B,G){return function Y(){return B.apply(G,arguments)}}var{toString:V5}=Object.prototype,{getPrototypeOf:H1}=Object,{iterator:f0,toStringTag:K4}=Symbol,m0=((B)=>(G)=>{let Y=V5.call(G);return B[Y]||(B[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),p=(B)=>{return B=B.toLowerCase(),(G)=>m0(G)===B},h0=(B)=>(G)=>typeof G===B,{isArray:z0}=Array,L0=h0("undefined");function I5(B){return B!==null&&!L0(B)&&B.constructor!==null&&!L0(B.constructor)&&u(B.constructor.isBuffer)&&B.constructor.isBuffer(B)}var U4=p("ArrayBuffer");function E5(B){let G;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)G=ArrayBuffer.isView(B);else G=B&&B.buffer&&U4(B.buffer);return G}var q5=h0("string"),u=h0("function"),P4=h0("number"),g0=(B)=>B!==null&&typeof B==="object",w5=(B)=>B===!0||B===!1,y0=(B)=>{if(m0(B)!=="object")return!1;let G=H1(B);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(K4 in B)&&!(f0 in B)},F5=p("Date"),C5=p("File"),D5=p("Blob"),A5=p("FileList"),O5=(B)=>g0(B)&&u(B.pipe),x5=(B)=>{let G;return B&&(typeof FormData==="function"&&B instanceof FormData||u(B.append)&&((G=m0(B))==="formdata"||G==="object"&&u(B.toString)&&B.toString()==="[object FormData]"))},T5=p("URLSearchParams"),[S5,R5,j5,_5]=["ReadableStream","Request","Response","Headers"].map(p),k5=(B)=>B.trim?B.trim():B.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function N0(B,G,{allOwnKeys:Y=!1}={}){if(B===null||typeof B==="undefined")return;let X,$;if(typeof B!=="object")B=[B];if(z0(B))for(X=0,$=B.length;X<$;X++)G.call(null,B[X],X,B);else{let z=Y?Object.getOwnPropertyNames(B):Object.keys(B),Q=z.length,U;for(X=0;X<Q;X++)U=z[X],G.call(null,B[U],U,B)}}function H4(B,G){G=G.toLowerCase();let Y=Object.keys(B),X=Y.length,$;while(X-- >0)if($=Y[X],G===$.toLowerCase())return $;return null}var Y0=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),L4=(B)=>!L0(B)&&B!==Y0;function P1(){let{caseless:B}=L4(this)&&this||{},G={},Y=(X,$)=>{let z=B&&H4(G,$)||$;if(y0(G[z])&&y0(X))G[z]=P1(G[z],X);else if(y0(X))G[z]=P1({},X);else if(z0(X))G[z]=X.slice();else G[z]=X};for(let X=0,$=arguments.length;X<$;X++)arguments[X]&&N0(arguments[X],Y);return G}var v5=(B,G,Y,{allOwnKeys:X}={})=>{return N0(G,($,z)=>{if(Y&&u($))B[z]=H0($,Y);else B[z]=$},{allOwnKeys:X}),B},b5=(B)=>{if(B.charCodeAt(0)===65279)B=B.slice(1);return B},y5=(B,G,Y,X)=>{B.prototype=Object.create(G.prototype,X),B.prototype.constructor=B,Object.defineProperty(B,"super",{value:G.prototype}),Y&&Object.assign(B.prototype,Y)},f5=(B,G,Y,X)=>{let $,z,Q,U={};if(G=G||{},B==null)return G;do{$=Object.getOwnPropertyNames(B),z=$.length;while(z-- >0)if(Q=$[z],(!X||X(Q,B,G))&&!U[Q])G[Q]=B[Q],U[Q]=!0;B=Y!==!1&&H1(B)}while(B&&(!Y||Y(B,G))&&B!==Object.prototype);return G},m5=(B,G,Y)=>{if(B=String(B),Y===void 0||Y>B.length)Y=B.length;Y-=G.length;let X=B.indexOf(G,Y);return X!==-1&&X===Y},h5=(B)=>{if(!B)return null;if(z0(B))return B;let G=B.length;if(!P4(G))return null;let Y=new Array(G);while(G-- >0)Y[G]=B[G];return Y},g5=((B)=>{return(G)=>{return B&&G instanceof B}})(typeof Uint8Array!=="undefined"&&H1(Uint8Array)),u5=(B,G)=>{let X=(B&&B[f0]).call(B),$;while(($=X.next())&&!$.done){let z=$.value;G.call(B,z[0],z[1])}},d5=(B,G)=>{let Y,X=[];while((Y=B.exec(G))!==null)X.push(Y);return X},l5=p("HTMLFormElement"),p5=(B)=>{return B.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function G(Y,X,$){return X.toUpperCase()+$})},J4=(({hasOwnProperty:B})=>(G,Y)=>B.call(G,Y))(Object.prototype),c5=p("RegExp"),N4=(B,G)=>{let Y=Object.getOwnPropertyDescriptors(B),X={};N0(Y,($,z)=>{let Q;if((Q=G($,z,B))!==!1)X[z]=Q||$}),Object.defineProperties(B,X)},n5=(B)=>{N4(B,(G,Y)=>{if(u(B)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let X=B[Y];if(!u(X))return;if(G.enumerable=!1,"writable"in G){G.writable=!1;return}if(!G.set)G.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},r5=(B,G)=>{let Y={},X=($)=>{$.forEach((z)=>{Y[z]=!0})};return z0(B)?X(B):X(String(B).split(G)),Y},i5=()=>{},s5=(B,G)=>{return B!=null&&Number.isFinite(B=+B)?B:G};function o5(B){return!!(B&&u(B.append)&&B[K4]==="FormData"&&B[f0])}var a5=(B)=>{let G=new Array(10),Y=(X,$)=>{if(g0(X)){if(G.indexOf(X)>=0)return;if(!("toJSON"in X)){G[$]=X;let z=z0(X)?[]:{};return N0(X,(Q,U)=>{let H=Y(Q,$+1);!L0(H)&&(z[U]=H)}),G[$]=void 0,z}}return X};return Y(B,0)},t5=p("AsyncFunction"),e5=(B)=>B&&(g0(B)||u(B))&&u(B.then)&&u(B.catch),V4=((B,G)=>{if(B)return setImmediate;return G?((Y,X)=>{return Y0.addEventListener("message",({source:$,data:z})=>{if($===Y0&&z===Y)X.length&&X.shift()()},!1),($)=>{X.push($),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",u(Y0.postMessage)),BB=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(Y0):typeof process!=="undefined"&&process.nextTick||V4,GB=(B)=>B!=null&&u(B[f0]),J={isArray:z0,isArrayBuffer:U4,isBuffer:I5,isFormData:x5,isArrayBufferView:E5,isString:q5,isNumber:P4,isBoolean:w5,isObject:g0,isPlainObject:y0,isReadableStream:S5,isRequest:R5,isResponse:j5,isHeaders:_5,isUndefined:L0,isDate:F5,isFile:C5,isBlob:D5,isRegExp:c5,isFunction:u,isStream:O5,isURLSearchParams:T5,isTypedArray:g5,isFileList:A5,forEach:N0,merge:P1,extend:v5,trim:k5,stripBOM:b5,inherits:y5,toFlatObject:f5,kindOf:m0,kindOfTest:p,endsWith:m5,toArray:h5,forEachEntry:u5,matchAll:d5,isHTMLForm:l5,hasOwnProperty:J4,hasOwnProp:J4,reduceDescriptors:N4,freezeMethods:n5,toObjectSet:r5,toCamelCase:p5,noop:i5,toFiniteNumber:s5,findKey:H4,global:Y0,isContextDefined:L4,isSpecCompliantForm:o5,toJSONObject:a5,isAsyncFn:t5,isThenable:e5,setImmediate:V4,asap:BB,isIterable:GB};function M0(B,G,Y,X,$){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=new Error().stack;if(this.message=B,this.name="AxiosError",G&&(this.code=G),Y&&(this.config=Y),X&&(this.request=X),$)this.response=$,this.status=$.status?$.status:null}J.inherits(M0,Error,{toJSON:function B(){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:J.toJSONObject(this.config),code:this.code,status:this.status}}});var I4=M0.prototype,E4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((B)=>{E4[B]={value:B}});Object.defineProperties(M0,E4);Object.defineProperty(I4,"isAxiosError",{value:!0});M0.from=(B,G,Y,X,$,z)=>{let Q=Object.create(I4);return J.toFlatObject(B,Q,function U(H){return H!==Error.prototype},(U)=>{return U!=="isAxiosError"}),M0.call(Q,B.message,G,Y,X,$),Q.cause=B,Q.name=B.name,z&&Object.assign(Q,z),Q};var D=M0;var u0=null;function L1(B){return J.isPlainObject(B)||J.isArray(B)}function w4(B){return J.endsWith(B,"[]")?B.slice(0,-2):B}function q4(B,G,Y){if(!B)return G;return B.concat(G).map(function X($,z){return $=w4($),!Y&&z?"["+$+"]":$}).join(Y?".":"")}function YB(B){return J.isArray(B)&&!B.some(L1)}var XB=J.toFlatObject(J,{},null,function B(G){return/^is[A-Z]/.test(G)});function ZB(B,G,Y){if(!J.isObject(B))throw new TypeError("target must be an object");G=G||new(u0||FormData),Y=J.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function q(E,w){return!J.isUndefined(w[E])});let X=Y.metaTokens,$=Y.visitor||W,z=Y.dots,Q=Y.indexes,H=(Y.Blob||typeof Blob!=="undefined"&&Blob)&&J.isSpecCompliantForm(G);if(!J.isFunction($))throw new TypeError("visitor must be a function");function P(q){if(q===null)return"";if(J.isDate(q))return q.toISOString();if(J.isBoolean(q))return q.toString();if(!H&&J.isBlob(q))throw new D("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(q)||J.isTypedArray(q))return H&&typeof Blob==="function"?new Blob([q]):Buffer.from(q);return q}function W(q,E,w){let R=q;if(q&&!w&&typeof q==="object"){if(J.endsWith(E,"{}"))E=X?E:E.slice(0,-2),q=JSON.stringify(q);else if(J.isArray(q)&&YB(q)||(J.isFileList(q)||J.endsWith(E,"[]"))&&(R=J.toArray(q)))return E=w4(E),R.forEach(function C(A,b){!(J.isUndefined(A)||A===null)&&G.append(Q===!0?q4([E],b,z):Q===null?E:E+"[]",P(A))}),!1}if(L1(q))return!0;return G.append(q4(w,E,z),P(q)),!1}let M=[],L=Object.assign(XB,{defaultVisitor:W,convertValue:P,isVisitable:L1});function I(q,E){if(J.isUndefined(q))return;if(M.indexOf(q)!==-1)throw Error("Circular reference detected in "+E.join("."));M.push(q),J.forEach(q,function w(R,C){if((!(J.isUndefined(R)||R===null)&&$.call(G,R,J.isString(C)?C.trim():C,E,L))===!0)I(R,E?E.concat(C):[C])}),M.pop()}if(!J.isObject(B))throw new TypeError("data must be an object");return I(B),G}var e=ZB;function F4(B){let G={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(B).replace(/[!'()~]|%20|%00/g,function Y(X){return G[X]})}function C4(B,G){this._pairs=[],B&&e(B,this,G)}var D4=C4.prototype;D4.append=function B(G,Y){this._pairs.push([G,Y])};D4.toString=function B(G){let Y=G?function(X){return G.call(this,X,F4)}:F4;return this._pairs.map(function X($){return Y($[0])+"="+Y($[1])},"").join("&")};var d0=C4;function $B(B){return encodeURIComponent(B).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V0(B,G,Y){if(!G)return B;let X=Y&&Y.encode||$B;if(J.isFunction(Y))Y={serialize:Y};let $=Y&&Y.serialize,z;if($)z=$(G,Y);else z=J.isURLSearchParams(G)?G.toString():new d0(G,Y).toString(X);if(z){let Q=B.indexOf("#");if(Q!==-1)B=B.slice(0,Q);B+=(B.indexOf("?")===-1?"?":"&")+z}return B}class A4{constructor(){this.handlers=[]}use(B,G,Y){return this.handlers.push({fulfilled:B,rejected:G,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(B){if(this.handlers[B])this.handlers[B]=null}clear(){if(this.handlers)this.handlers=[]}forEach(B){J.forEach(this.handlers,function G(Y){if(Y!==null)B(Y)})}}var N1=A4;var l0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var O4=typeof URLSearchParams!=="undefined"?URLSearchParams:d0;var x4=typeof FormData!=="undefined"?FormData:null;var T4=typeof Blob!=="undefined"?Blob:null;var S4={isBrowser:!0,classes:{URLSearchParams:O4,FormData:x4,Blob:T4},protocols:["http","https","file","blob","url","data"]};var E1={};N5(E1,{origin:()=>MB,navigator:()=>V1,hasStandardBrowserWebWorkerEnv:()=>zB,hasStandardBrowserEnv:()=>QB,hasBrowserEnv:()=>I1});var I1=typeof window!=="undefined"&&typeof document!=="undefined",V1=typeof navigator==="object"&&navigator||void 0,QB=I1&&(!V1||["ReactNative","NativeScript","NS"].indexOf(V1.product)<0),zB=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),MB=I1&&window.location.href||"http://localhost";var v={...E1,...S4};function q1(B,G){return e(B,new v.classes.URLSearchParams,Object.assign({visitor:function(Y,X,$,z){if(v.isNode&&J.isBuffer(Y))return this.append(X,Y.toString("base64")),!1;return z.defaultVisitor.apply(this,arguments)}},G))}function WB(B){return J.matchAll(/\w+|\[(\w*)]/g,B).map((G)=>{return G[0]==="[]"?"":G[1]||G[0]})}function JB(B){let G={},Y=Object.keys(B),X,$=Y.length,z;for(X=0;X<$;X++)z=Y[X],G[z]=B[z];return G}function KB(B){function G(Y,X,$,z){let Q=Y[z++];if(Q==="__proto__")return!0;let U=Number.isFinite(+Q),H=z>=Y.length;if(Q=!Q&&J.isArray($)?$.length:Q,H){if(J.hasOwnProp($,Q))$[Q]=[$[Q],X];else $[Q]=X;return!U}if(!$[Q]||!J.isObject($[Q]))$[Q]=[];if(G(Y,X,$[Q],z)&&J.isArray($[Q]))$[Q]=JB($[Q]);return!U}if(J.isFormData(B)&&J.isFunction(B.entries)){let Y={};return J.forEachEntry(B,(X,$)=>{G(WB(X),$,Y,0)}),Y}return null}var p0=KB;function UB(B,G,Y){if(J.isString(B))try{return(G||JSON.parse)(B),J.trim(B)}catch(X){if(X.name!=="SyntaxError")throw X}return(Y||JSON.stringify)(B)}var w1={transitional:l0,adapter:["xhr","http","fetch"],transformRequest:[function B(G,Y){let X=Y.getContentType()||"",$=X.indexOf("application/json")>-1,z=J.isObject(G);if(z&&J.isHTMLForm(G))G=new FormData(G);if(J.isFormData(G))return $?JSON.stringify(p0(G)):G;if(J.isArrayBuffer(G)||J.isBuffer(G)||J.isStream(G)||J.isFile(G)||J.isBlob(G)||J.isReadableStream(G))return G;if(J.isArrayBufferView(G))return G.buffer;if(J.isURLSearchParams(G))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),G.toString();let U;if(z){if(X.indexOf("application/x-www-form-urlencoded")>-1)return q1(G,this.formSerializer).toString();if((U=J.isFileList(G))||X.indexOf("multipart/form-data")>-1){let H=this.env&&this.env.FormData;return e(U?{"files[]":G}:G,H&&new H,this.formSerializer)}}if(z||$)return Y.setContentType("application/json",!1),UB(G);return G}],transformResponse:[function B(G){let Y=this.transitional||w1.transitional,X=Y&&Y.forcedJSONParsing,$=this.responseType==="json";if(J.isResponse(G)||J.isReadableStream(G))return G;if(G&&J.isString(G)&&(X&&!this.responseType||$)){let Q=!(Y&&Y.silentJSONParsing)&&$;try{return JSON.parse(G)}catch(U){if(Q){if(U.name==="SyntaxError")throw D.from(U,D.ERR_BAD_RESPONSE,this,null,this.response);throw U}}}return G}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function B(G){return G>=200&&G<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(B)=>{w1.headers[B]={}});var W0=w1;var PB=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R4=(B)=>{let G={},Y,X,$;return B&&B.split(`
18
+ `).forEach(function z(Q){if($=Q.indexOf(":"),Y=Q.substring(0,$).trim().toLowerCase(),X=Q.substring($+1).trim(),!Y||G[Y]&&PB[Y])return;if(Y==="set-cookie")if(G[Y])G[Y].push(X);else G[Y]=[X];else G[Y]=G[Y]?G[Y]+", "+X:X}),G};var j4=Symbol("internals");function I0(B){return B&&String(B).trim().toLowerCase()}function c0(B){if(B===!1||B==null)return B;return J.isArray(B)?B.map(c0):String(B)}function HB(B){let G=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,X;while(X=Y.exec(B))G[X[1]]=X[2];return G}var LB=(B)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(B.trim());function F1(B,G,Y,X,$){if(J.isFunction(X))return X.call(this,G,Y);if($)G=Y;if(!J.isString(G))return;if(J.isString(X))return G.indexOf(X)!==-1;if(J.isRegExp(X))return X.test(G)}function NB(B){return B.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(G,Y,X)=>{return Y.toUpperCase()+X})}function VB(B,G){let Y=J.toCamelCase(" "+G);["get","set","has"].forEach((X)=>{Object.defineProperty(B,X+Y,{value:function($,z,Q){return this[X].call(this,G,$,z,Q)},configurable:!0})})}class E0{constructor(B){B&&this.set(B)}set(B,G,Y){let X=this;function $(Q,U,H){let P=I0(U);if(!P)throw new Error("header name must be a non-empty string");let W=J.findKey(X,P);if(!W||X[W]===void 0||H===!0||H===void 0&&X[W]!==!1)X[W||U]=c0(Q)}let z=(Q,U)=>J.forEach(Q,(H,P)=>$(H,P,U));if(J.isPlainObject(B)||B instanceof this.constructor)z(B,G);else if(J.isString(B)&&(B=B.trim())&&!LB(B))z(R4(B),G);else if(J.isObject(B)&&J.isIterable(B)){let Q={},U,H;for(let P of B){if(!J.isArray(P))throw TypeError("Object iterator must return a key-value pair");Q[H=P[0]]=(U=Q[H])?J.isArray(U)?[...U,P[1]]:[U,P[1]]:P[1]}z(Q,G)}else B!=null&&$(G,B,Y);return this}get(B,G){if(B=I0(B),B){let Y=J.findKey(this,B);if(Y){let X=this[Y];if(!G)return X;if(G===!0)return HB(X);if(J.isFunction(G))return G.call(this,X,Y);if(J.isRegExp(G))return G.exec(X);throw new TypeError("parser must be boolean|regexp|function")}}}has(B,G){if(B=I0(B),B){let Y=J.findKey(this,B);return!!(Y&&this[Y]!==void 0&&(!G||F1(this,this[Y],Y,G)))}return!1}delete(B,G){let Y=this,X=!1;function $(z){if(z=I0(z),z){let Q=J.findKey(Y,z);if(Q&&(!G||F1(Y,Y[Q],Q,G)))delete Y[Q],X=!0}}if(J.isArray(B))B.forEach($);else $(B);return X}clear(B){let G=Object.keys(this),Y=G.length,X=!1;while(Y--){let $=G[Y];if(!B||F1(this,this[$],$,B,!0))delete this[$],X=!0}return X}normalize(B){let G=this,Y={};return J.forEach(this,(X,$)=>{let z=J.findKey(Y,$);if(z){G[z]=c0(X),delete G[$];return}let Q=B?NB($):String($).trim();if(Q!==$)delete G[$];G[Q]=c0(X),Y[Q]=!0}),this}concat(...B){return this.constructor.concat(this,...B)}toJSON(B){let G=Object.create(null);return J.forEach(this,(Y,X)=>{Y!=null&&Y!==!1&&(G[X]=B&&J.isArray(Y)?Y.join(", "):Y)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([B,G])=>B+": "+G).join(`
19
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(B){return B instanceof this?B:new this(B)}static concat(B,...G){let Y=new this(B);return G.forEach((X)=>Y.set(X)),Y}static accessor(B){let Y=(this[j4]=this[j4]={accessors:{}}).accessors,X=this.prototype;function $(z){let Q=I0(z);if(!Y[Q])VB(X,z),Y[Q]=!0}return J.isArray(B)?B.forEach($):$(B),this}}E0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(E0.prototype,({value:B},G)=>{let Y=G[0].toUpperCase()+G.slice(1);return{get:()=>B,set(X){this[Y]=X}}});J.freezeMethods(E0);var m=E0;function q0(B,G){let Y=this||W0,X=G||Y,$=m.from(X.headers),z=X.data;return J.forEach(B,function Q(U){z=U.call(Y,z,$.normalize(),G?G.status:void 0)}),$.normalize(),z}function w0(B){return!!(B&&B.__CANCEL__)}function _4(B,G,Y){D.call(this,B==null?"canceled":B,D.ERR_CANCELED,G,Y),this.name="CanceledError"}J.inherits(_4,D,{__CANCEL__:!0});var n=_4;function F0(B,G,Y){let X=Y.config.validateStatus;if(!Y.status||!X||X(Y.status))B(Y);else G(new D("Request failed with status code "+Y.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function C1(B){let G=/^([-+\w]{1,25})(:?\/\/|:)/.exec(B);return G&&G[1]||""}function IB(B,G){B=B||10;let Y=new Array(B),X=new Array(B),$=0,z=0,Q;return G=G!==void 0?G:1000,function U(H){let P=Date.now(),W=X[z];if(!Q)Q=P;Y[$]=H,X[$]=P;let M=z,L=0;while(M!==$)L+=Y[M++],M=M%B;if($=($+1)%B,$===z)z=(z+1)%B;if(P-Q<G)return;let I=W&&P-W;return I?Math.round(L*1000/I):void 0}}var k4=IB;function EB(B,G){let Y=0,X=1000/G,$,z,Q=(P,W=Date.now())=>{if(Y=W,$=null,z)clearTimeout(z),z=null;B.apply(null,P)};return[(...P)=>{let W=Date.now(),M=W-Y;if(M>=X)Q(P,W);else if($=P,!z)z=setTimeout(()=>{z=null,Q($)},X-M)},()=>$&&Q($)]}var v4=EB;var J0=(B,G,Y=3)=>{let X=0,$=k4(50,250);return v4((z)=>{let Q=z.loaded,U=z.lengthComputable?z.total:void 0,H=Q-X,P=$(H),W=Q<=U;X=Q;let M={loaded:Q,total:U,progress:U?Q/U:void 0,bytes:H,rate:P?P:void 0,estimated:P&&U&&W?(U-Q)/P:void 0,event:z,lengthComputable:U!=null,[G?"download":"upload"]:!0};B(M)},Y)},D1=(B,G)=>{let Y=B!=null;return[(X)=>G[0]({lengthComputable:Y,total:B,loaded:X}),G[1]]},A1=(B)=>(...G)=>J.asap(()=>B(...G));var b4=v.hasStandardBrowserEnv?((B,G)=>(Y)=>{return Y=new URL(Y,v.origin),B.protocol===Y.protocol&&B.host===Y.host&&(G||B.port===Y.port)})(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0;var y4=v.hasStandardBrowserEnv?{write(B,G,Y,X,$,z){let Q=[B+"="+encodeURIComponent(G)];J.isNumber(Y)&&Q.push("expires="+new Date(Y).toGMTString()),J.isString(X)&&Q.push("path="+X),J.isString($)&&Q.push("domain="+$),z===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read(B){let G=document.cookie.match(new RegExp("(^|;\\s*)("+B+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove(B){this.write(B,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}};function O1(B){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(B)}function x1(B,G){return G?B.replace(/\/?\/$/,"")+"/"+G.replace(/^\/+/,""):B}function C0(B,G,Y){let X=!O1(G);if(B&&(X||Y==!1))return x1(B,G);return G}var f4=(B)=>B instanceof m?{...B}:B;function c(B,G){G=G||{};let Y={};function X(P,W,M,L){if(J.isPlainObject(P)&&J.isPlainObject(W))return J.merge.call({caseless:L},P,W);else if(J.isPlainObject(W))return J.merge({},W);else if(J.isArray(W))return W.slice();return W}function $(P,W,M,L){if(!J.isUndefined(W))return X(P,W,M,L);else if(!J.isUndefined(P))return X(void 0,P,M,L)}function z(P,W){if(!J.isUndefined(W))return X(void 0,W)}function Q(P,W){if(!J.isUndefined(W))return X(void 0,W);else if(!J.isUndefined(P))return X(void 0,P)}function U(P,W,M){if(M in G)return X(P,W);else if(M in B)return X(void 0,P)}let H={url:z,method:z,data:z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,withXSRFToken:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:U,headers:(P,W,M)=>$(f4(P),f4(W),M,!0)};return J.forEach(Object.keys(Object.assign({},B,G)),function P(W){let M=H[W]||$,L=M(B[W],G[W],W);J.isUndefined(L)&&M!==U||(Y[W]=L)}),Y}var n0=(B)=>{let G=c({},B),{data:Y,withXSRFToken:X,xsrfHeaderName:$,xsrfCookieName:z,headers:Q,auth:U}=G;if(G.headers=Q=m.from(Q),G.url=V0(C0(G.baseURL,G.url,G.allowAbsoluteUrls),B.params,B.paramsSerializer),U)Q.set("Authorization","Basic "+btoa((U.username||"")+":"+(U.password?unescape(encodeURIComponent(U.password)):"")));let H;if(J.isFormData(Y)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)Q.setContentType(void 0);else if((H=Q.getContentType())!==!1){let[P,...W]=H?H.split(";").map((M)=>M.trim()).filter(Boolean):[];Q.setContentType([P||"multipart/form-data",...W].join("; "))}}if(v.hasStandardBrowserEnv){if(X&&J.isFunction(X)&&(X=X(G)),X||X!==!1&&b4(G.url)){let P=$&&z&&y4.read(z);if(P)Q.set($,P)}}return G};var qB=typeof XMLHttpRequest!=="undefined",m4=qB&&function(B){return new Promise(function G(Y,X){let $=n0(B),z=$.data,Q=m.from($.headers).normalize(),{responseType:U,onUploadProgress:H,onDownloadProgress:P}=$,W,M,L,I,q;function E(){I&&I(),q&&q(),$.cancelToken&&$.cancelToken.unsubscribe(W),$.signal&&$.signal.removeEventListener("abort",W)}let w=new XMLHttpRequest;w.open($.method.toUpperCase(),$.url,!0),w.timeout=$.timeout;function R(){if(!w)return;let A=m.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),y={data:!U||U==="text"||U==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:B,request:w};F0(function _(g){Y(g),E()},function _(g){X(g),E()},y),w=null}if("onloadend"in w)w.onloadend=R;else w.onreadystatechange=function A(){if(!w||w.readyState!==4)return;if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0))return;setTimeout(R)};if(w.onabort=function A(){if(!w)return;X(new D("Request aborted",D.ECONNABORTED,B,w)),w=null},w.onerror=function A(){X(new D("Network Error",D.ERR_NETWORK,B,w)),w=null},w.ontimeout=function A(){let b=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",y=$.transitional||l0;if($.timeoutErrorMessage)b=$.timeoutErrorMessage;X(new D(b,y.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,B,w)),w=null},z===void 0&&Q.setContentType(null),"setRequestHeader"in w)J.forEach(Q.toJSON(),function A(b,y){w.setRequestHeader(y,b)});if(!J.isUndefined($.withCredentials))w.withCredentials=!!$.withCredentials;if(U&&U!=="json")w.responseType=$.responseType;if(P)[L,q]=J0(P,!0),w.addEventListener("progress",L);if(H&&w.upload)[M,I]=J0(H),w.upload.addEventListener("progress",M),w.upload.addEventListener("loadend",I);if($.cancelToken||$.signal){if(W=(A)=>{if(!w)return;X(!A||A.type?new n(null,B,w):A),w.abort(),w=null},$.cancelToken&&$.cancelToken.subscribe(W),$.signal)$.signal.aborted?W():$.signal.addEventListener("abort",W)}let C=C1($.url);if(C&&v.protocols.indexOf(C)===-1){X(new D("Unsupported protocol "+C+":",D.ERR_BAD_REQUEST,B));return}w.send(z||null)})};var wB=(B,G)=>{let{length:Y}=B=B?B.filter(Boolean):[];if(G||Y){let X=new AbortController,$,z=function(P){if(!$){$=!0,U();let W=P instanceof Error?P:this.reason;X.abort(W instanceof D?W:new n(W instanceof Error?W.message:W))}},Q=G&&setTimeout(()=>{Q=null,z(new D(`timeout ${G} of ms exceeded`,D.ETIMEDOUT))},G),U=()=>{if(B)Q&&clearTimeout(Q),Q=null,B.forEach((P)=>{P.unsubscribe?P.unsubscribe(z):P.removeEventListener("abort",z)}),B=null};B.forEach((P)=>P.addEventListener("abort",z));let{signal:H}=X;return H.unsubscribe=()=>J.asap(U),H}},h4=wB;var FB=function*(B,G){let Y=B.byteLength;if(!G||Y<G){yield B;return}let X=0,$;while(X<Y)$=X+G,yield B.slice(X,$),X=$},CB=async function*(B,G){for await(let Y of DB(B))yield*FB(Y,G)},DB=async function*(B){if(B[Symbol.asyncIterator]){yield*B;return}let G=B.getReader();try{for(;;){let{done:Y,value:X}=await G.read();if(Y)break;yield X}}finally{await G.cancel()}},T1=(B,G,Y,X)=>{let $=CB(B,G),z=0,Q,U=(H)=>{if(!Q)Q=!0,X&&X(H)};return new ReadableStream({async pull(H){try{let{done:P,value:W}=await $.next();if(P){U(),H.close();return}let M=W.byteLength;if(Y){let L=z+=M;Y(L)}H.enqueue(new Uint8Array(W))}catch(P){throw U(P),P}},cancel(H){return U(H),$.return()}},{highWaterMark:2})};var i0=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",u4=i0&&typeof ReadableStream==="function",AB=i0&&(typeof TextEncoder==="function"?((B)=>(G)=>B.encode(G))(new TextEncoder):async(B)=>new Uint8Array(await new Response(B).arrayBuffer())),d4=(B,...G)=>{try{return!!B(...G)}catch(Y){return!1}},OB=u4&&d4(()=>{let B=!1,G=new Request(v.origin,{body:new ReadableStream,method:"POST",get duplex(){return B=!0,"half"}}).headers.has("Content-Type");return B&&!G}),g4=65536,S1=u4&&d4(()=>J.isReadableStream(new Response("").body)),r0={stream:S1&&((B)=>B.body)};i0&&((B)=>{["text","arrayBuffer","blob","formData","stream"].forEach((G)=>{!r0[G]&&(r0[G]=J.isFunction(B[G])?(Y)=>Y[G]():(Y,X)=>{throw new D(`Response type '${G}' is not supported`,D.ERR_NOT_SUPPORT,X)})})})(new Response);var xB=async(B)=>{if(B==null)return 0;if(J.isBlob(B))return B.size;if(J.isSpecCompliantForm(B))return(await new Request(v.origin,{method:"POST",body:B}).arrayBuffer()).byteLength;if(J.isArrayBufferView(B)||J.isArrayBuffer(B))return B.byteLength;if(J.isURLSearchParams(B))B=B+"";if(J.isString(B))return(await AB(B)).byteLength},TB=async(B,G)=>{let Y=J.toFiniteNumber(B.getContentLength());return Y==null?xB(G):Y},l4=i0&&(async(B)=>{let{url:G,method:Y,data:X,signal:$,cancelToken:z,timeout:Q,onDownloadProgress:U,onUploadProgress:H,responseType:P,headers:W,withCredentials:M="same-origin",fetchOptions:L}=n0(B);P=P?(P+"").toLowerCase():"text";let I=h4([$,z&&z.toAbortSignal()],Q),q,E=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),w;try{if(H&&OB&&Y!=="get"&&Y!=="head"&&(w=await TB(W,X))!==0){let y=new Request(G,{method:"POST",body:X,duplex:"half"}),_;if(J.isFormData(X)&&(_=y.headers.get("content-type")))W.setContentType(_);if(y.body){let[g,o]=D1(w,J0(A1(H)));X=T1(y.body,g4,g,o)}}if(!J.isString(M))M=M?"include":"omit";let R="credentials"in Request.prototype;q=new Request(G,{...L,signal:I,method:Y.toUpperCase(),headers:W.normalize().toJSON(),body:X,duplex:"half",credentials:R?M:void 0});let C=await fetch(q,L),A=S1&&(P==="stream"||P==="response");if(S1&&(U||A&&E)){let y={};["status","statusText","headers"].forEach((k)=>{y[k]=C[k]});let _=J.toFiniteNumber(C.headers.get("content-length")),[g,o]=U&&D1(_,J0(A1(U),!0))||[];C=new Response(T1(C.body,g4,g,()=>{o&&o(),E&&E()}),y)}P=P||"text";let b=await r0[J.findKey(r0,P)||"text"](C,B);return!A&&E&&E(),await new Promise((y,_)=>{F0(y,_,{data:b,headers:m.from(C.headers),status:C.status,statusText:C.statusText,config:B,request:q})})}catch(R){if(E&&E(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message))throw Object.assign(new D("Network Error",D.ERR_NETWORK,B,q),{cause:R.cause||R});throw D.from(R,R&&R.code,B,q)}});var R1={http:u0,xhr:m4,fetch:l4};J.forEach(R1,(B,G)=>{if(B){try{Object.defineProperty(B,"name",{value:G})}catch(Y){}Object.defineProperty(B,"adapterName",{value:G})}});var p4=(B)=>`- ${B}`,SB=(B)=>J.isFunction(B)||B===null||B===!1,s0={getAdapter:(B)=>{B=J.isArray(B)?B:[B];let{length:G}=B,Y,X,$={};for(let z=0;z<G;z++){Y=B[z];let Q;if(X=Y,!SB(Y)){if(X=R1[(Q=String(Y)).toLowerCase()],X===void 0)throw new D(`Unknown adapter '${Q}'`)}if(X)break;$[Q||"#"+z]=X}if(!X){let z=Object.entries($).map(([U,H])=>`adapter ${U} `+(H===!1?"is not supported by the environment":"is not available in the build")),Q=G?z.length>1?`since :
20
+ `+z.map(p4).join(`
21
+ `):" "+p4(z[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+Q,"ERR_NOT_SUPPORT")}return X},adapters:R1};function j1(B){if(B.cancelToken)B.cancelToken.throwIfRequested();if(B.signal&&B.signal.aborted)throw new n(null,B)}function o0(B){if(j1(B),B.headers=m.from(B.headers),B.data=q0.call(B,B.transformRequest),["post","put","patch"].indexOf(B.method)!==-1)B.headers.setContentType("application/x-www-form-urlencoded",!1);return s0.getAdapter(B.adapter||W0.adapter)(B).then(function Y(X){return j1(B),X.data=q0.call(B,B.transformResponse,X),X.headers=m.from(X.headers),X},function Y(X){if(!w0(X)){if(j1(B),X&&X.response)X.response.data=q0.call(B,B.transformResponse,X.response),X.response.headers=m.from(X.response.headers)}return Promise.reject(X)})}var a0="1.10.0";var t0={};["object","boolean","number","function","string","symbol"].forEach((B,G)=>{t0[B]=function Y(X){return typeof X===B||"a"+(G<1?"n ":" ")+B}});var c4={};t0.transitional=function B(G,Y,X){function $(z,Q){return"[Axios v"+a0+"] Transitional option '"+z+"'"+Q+(X?". "+X:"")}return(z,Q,U)=>{if(G===!1)throw new D($(Q," has been removed"+(Y?" in "+Y:"")),D.ERR_DEPRECATED);if(Y&&!c4[Q])c4[Q]=!0,console.warn($(Q," has been deprecated since v"+Y+" and will be removed in the near future"));return G?G(z,Q,U):!0}};t0.spelling=function B(G){return(Y,X)=>{return console.warn(`${X} is likely a misspelling of ${G}`),!0}};function RB(B,G,Y){if(typeof B!=="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let X=Object.keys(B),$=X.length;while($-- >0){let z=X[$],Q=G[z];if(Q){let U=B[z],H=U===void 0||Q(U,z,B);if(H!==!0)throw new D("option "+z+" must be "+H,D.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new D("Unknown option "+z,D.ERR_BAD_OPTION)}}var D0={assertOptions:RB,validators:t0};var r=D0.validators;class A0{constructor(B){this.defaults=B||{},this.interceptors={request:new N1,response:new N1}}async request(B,G){try{return await this._request(B,G)}catch(Y){if(Y instanceof Error){let X={};Error.captureStackTrace?Error.captureStackTrace(X):X=new Error;let $=X.stack?X.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=$;else if($&&!String(Y.stack).endsWith($.replace(/^.+\n.+\n/,"")))Y.stack+=`
22
+ `+$}catch(z){}}throw Y}}_request(B,G){if(typeof B==="string")G=G||{},G.url=B;else G=B||{};G=c(this.defaults,G);let{transitional:Y,paramsSerializer:X,headers:$}=G;if(Y!==void 0)D0.assertOptions(Y,{silentJSONParsing:r.transitional(r.boolean),forcedJSONParsing:r.transitional(r.boolean),clarifyTimeoutError:r.transitional(r.boolean)},!1);if(X!=null)if(J.isFunction(X))G.paramsSerializer={serialize:X};else D0.assertOptions(X,{encode:r.function,serialize:r.function},!0);if(G.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)G.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else G.allowAbsoluteUrls=!0;D0.assertOptions(G,{baseUrl:r.spelling("baseURL"),withXsrfToken:r.spelling("withXSRFToken")},!0),G.method=(G.method||this.defaults.method||"get").toLowerCase();let z=$&&J.merge($.common,$[G.method]);$&&J.forEach(["delete","get","head","post","put","patch","common"],(I)=>{delete $[I]}),G.headers=m.concat(z,$);let Q=[],U=!0;this.interceptors.request.forEach(function I(q){if(typeof q.runWhen==="function"&&q.runWhen(G)===!1)return;U=U&&q.synchronous,Q.unshift(q.fulfilled,q.rejected)});let H=[];this.interceptors.response.forEach(function I(q){H.push(q.fulfilled,q.rejected)});let P,W=0,M;if(!U){let I=[o0.bind(this),void 0];I.unshift.apply(I,Q),I.push.apply(I,H),M=I.length,P=Promise.resolve(G);while(W<M)P=P.then(I[W++],I[W++]);return P}M=Q.length;let L=G;W=0;while(W<M){let I=Q[W++],q=Q[W++];try{L=I(L)}catch(E){q.call(this,E);break}}try{P=o0.call(this,L)}catch(I){return Promise.reject(I)}W=0,M=H.length;while(W<M)P=P.then(H[W++],H[W++]);return P}getUri(B){B=c(this.defaults,B);let G=C0(B.baseURL,B.url,B.allowAbsoluteUrls);return V0(G,B.params,B.paramsSerializer)}}J.forEach(["delete","get","head","options"],function B(G){A0.prototype[G]=function(Y,X){return this.request(c(X||{},{method:G,url:Y,data:(X||{}).data}))}});J.forEach(["post","put","patch"],function B(G){function Y(X){return function $(z,Q,U){return this.request(c(U||{},{method:G,headers:X?{"Content-Type":"multipart/form-data"}:{},url:z,data:Q}))}}A0.prototype[G]=Y(),A0.prototype[G+"Form"]=Y(!0)});var O0=A0;class _1{constructor(B){if(typeof B!=="function")throw new TypeError("executor must be a function.");let G;this.promise=new Promise(function X($){G=$});let Y=this;this.promise.then((X)=>{if(!Y._listeners)return;let $=Y._listeners.length;while($-- >0)Y._listeners[$](X);Y._listeners=null}),this.promise.then=(X)=>{let $,z=new Promise((Q)=>{Y.subscribe(Q),$=Q}).then(X);return z.cancel=function Q(){Y.unsubscribe($)},z},B(function X($,z,Q){if(Y.reason)return;Y.reason=new n($,z,Q),G(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(B){if(this.reason){B(this.reason);return}if(this._listeners)this._listeners.push(B);else this._listeners=[B]}unsubscribe(B){if(!this._listeners)return;let G=this._listeners.indexOf(B);if(G!==-1)this._listeners.splice(G,1)}toAbortSignal(){let B=new AbortController,G=(Y)=>{B.abort(Y)};return this.subscribe(G),B.signal.unsubscribe=()=>this.unsubscribe(G),B.signal}static source(){let B;return{token:new _1(function Y(X){B=X}),cancel:B}}}var n4=_1;function k1(B){return function G(Y){return B.apply(null,Y)}}function v1(B){return J.isObject(B)&&B.isAxiosError===!0}var b1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(b1).forEach(([B,G])=>{b1[G]=B});var r4=b1;function i4(B){let G=new O0(B),Y=H0(O0.prototype.request,G);return J.extend(Y,O0.prototype,G,{allOwnKeys:!0}),J.extend(Y,G,null,{allOwnKeys:!0}),Y.create=function X($){return i4(c(B,$))},Y}var f=i4(W0);f.Axios=O0;f.CanceledError=n;f.CancelToken=n4;f.isCancel=w0;f.VERSION=a0;f.toFormData=e;f.AxiosError=D;f.Cancel=f.CanceledError;f.all=function B(G){return Promise.all(G)};f.spread=k1;f.isAxiosError=v1;f.mergeConfig=c;f.AxiosHeaders=m;f.formToJSON=(B)=>p0(J.isHTMLForm(B)?new FormData(B):B);f.getAdapter=s0.getAdapter;f.HttpStatusCode=r4;f.default=f;var y1=f;var jB="https://headless.tebex.io";async function h(B,G,Y,X,$,z,Q,U){if(Q){for(let[W,M]of Object.entries(Q))if(typeof M==="boolean")Q[W]=M?1:0}let H={url:`${jB}/api/${$}/${X}${z??""}`,params:Q,method:Y,data:U,headers:{"Content-Type":"application/json"}};if(B&&G)H.auth={username:B,password:G};return(await y1.request(H)).data}var s4=class{constructor(B,G){this.webstoreIdentifier=B,this.privateKey=G}async getCategories(B,G,Y){let{data:X}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/categories",{includePackages:B,basketIdent:G,ipAddress:Y});return X}async getCategory(B,G,Y,X){let{data:$}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/categories/${B}`,{includePackages:G,basketIdent:Y,ipAddress:X});return $}async apply(B,G,Y){return await h(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}`,{},Y)}async remove(B,G,Y){return await h(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts",`/baskets/${B}/${G}/remove`,{},Y)}async getPackage(B,G,Y){let{data:X}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/packages/${B}`,{basketIdent:G,ipAddress:Y});return X}async getPackages(B,G){let{data:Y}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/packages",{basketIdent:B,ipAddress:G});return Y}async getBasket(B){let{data:G}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}`);return G}async createBasket(B,G,Y,X,$){let{data:z}=await h(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:$},{complete_url:B,cancel_url:G,custom:Y,complete_auto_redirect:X});return z}async createMinecraftBasket(B,G,Y,X,$,z){let{data:Q}=await h(this.webstoreIdentifier,this.privateKey,"post",this.webstoreIdentifier,"accounts","/baskets",{ip_address:z},{username:B,complete_url:G,cancel_url:Y,custom:X,complete_auto_redirect:$});return Q}async getBasketAuthUrl(B,G){return await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts",`/baskets/${B}/auth`,{returnUrl:G})}async addPackageToBasket(B,G,Y,X,$){let{data:z}=await h(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,quantity:Y,type:X,variable_data:$});return z}async giftPackage(B,G,Y){let{data:X}=await h(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages",{},{package_id:G,target_username_id:Y});return X}async removePackage(B,G){let{data:Y}=await h(this.webstoreIdentifier,this.privateKey,"post",B,"baskets","/packages/remove",{},{package_id:G});return Y}async updateQuantity(B,G,Y){let{data:X}=await h(this.webstoreIdentifier,this.privateKey,"put",B,"baskets",`/packages/${G}`,{},{quantity:Y});return X}async getWebstore(){let{data:B}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts");return B}async getPages(){let{data:B}=await h(this.webstoreIdentifier,this.privateKey,"get",this.webstoreIdentifier,"accounts","/pages");return B}async updateTier(B,G){return await h(this.webstoreIdentifier,this.privateKey,"patch",this.webstoreIdentifier,"accounts",`/tiers/${B}`,{},{package_id:G})}};var f1=null,_B=async()=>{if(!f1){let B=process.env.NEXT_PUBLIC_TEBEX_PUBLIC_KEY;if(!B)throw new Error("Missing NEXT_PUBLIC_TEBEX_PUBLIC_KEY env variable");f1=new s4(B)}return f1},B0=_B;var $0=t(X0(),1);var i=t(X0(),1),fB=t(t4(),1);function yB(B){if(!B||typeof document=="undefined")return;let G=document.head||document.getElementsByTagName("head")[0],Y=document.createElement("style");Y.type="text/css",G.appendChild(Y),Y.styleSheet?Y.styleSheet.cssText=B:Y.appendChild(document.createTextNode(B))}var A7=Array(12).fill(0);var h1=1;class e4{constructor(){this.subscribe=(B)=>{return this.subscribers.push(B),()=>{let G=this.subscribers.indexOf(B);this.subscribers.splice(G,1)}},this.publish=(B)=>{this.subscribers.forEach((G)=>G(B))},this.addToast=(B)=>{this.publish(B),this.toasts=[...this.toasts,B]},this.create=(B)=>{var G;let{message:Y,...X}=B,$=typeof(B==null?void 0:B.id)==="number"||((G=B.id)==null?void 0:G.length)>0?B.id:h1++,z=this.toasts.find((U)=>{return U.id===$}),Q=B.dismissible===void 0?!0:B.dismissible;if(this.dismissedToasts.has($))this.dismissedToasts.delete($);if(z)this.toasts=this.toasts.map((U)=>{if(U.id===$)return this.publish({...U,...B,id:$,title:Y}),{...U,...B,id:$,dismissible:Q,title:Y};return U});else this.addToast({title:Y,...X,dismissible:Q,id:$});return $},this.dismiss=(B)=>{if(B)this.dismissedToasts.add(B),requestAnimationFrame(()=>this.subscribers.forEach((G)=>G({id:B,dismiss:!0})));else this.toasts.forEach((G)=>{this.subscribers.forEach((Y)=>Y({id:G.id,dismiss:!0}))});return B},this.message=(B,G)=>{return this.create({...G,message:B})},this.error=(B,G)=>{return this.create({...G,message:B,type:"error"})},this.success=(B,G)=>{return this.create({...G,type:"success",message:B})},this.info=(B,G)=>{return this.create({...G,type:"info",message:B})},this.warning=(B,G)=>{return this.create({...G,type:"warning",message:B})},this.loading=(B,G)=>{return this.create({...G,type:"loading",message:B})},this.promise=(B,G)=>{if(!G)return;let Y=void 0;if(G.loading!==void 0)Y=this.create({...G,promise:B,type:"loading",message:G.loading,description:typeof G.description!=="function"?G.description:void 0});let X=Promise.resolve(B instanceof Function?B():B),$=Y!==void 0,z,Q=X.then(async(H)=>{if(z=["resolve",H],i.default.isValidElement(H))$=!1,this.create({id:Y,type:"default",message:H});else if(hB(H)&&!H.ok){$=!1;let W=typeof G.error==="function"?await G.error(`HTTP error! status: ${H.status}`):G.error,M=typeof G.description==="function"?await G.description(`HTTP error! status: ${H.status}`):G.description,I=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"error",description:M,...I})}else if(H instanceof Error){$=!1;let W=typeof G.error==="function"?await G.error(H):G.error,M=typeof G.description==="function"?await G.description(H):G.description,I=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"error",description:M,...I})}else if(G.success!==void 0){$=!1;let W=typeof G.success==="function"?await G.success(H):G.success,M=typeof G.description==="function"?await G.description(H):G.description,I=typeof W==="object"&&!i.default.isValidElement(W)?W:{message:W};this.create({id:Y,type:"success",description:M,...I})}}).catch(async(H)=>{if(z=["reject",H],G.error!==void 0){$=!1;let P=typeof G.error==="function"?await G.error(H):G.error,W=typeof G.description==="function"?await G.description(H):G.description,L=typeof P==="object"&&!i.default.isValidElement(P)?P:{message:P};this.create({id:Y,type:"error",description:W,...L})}}).finally(()=>{if($)this.dismiss(Y),Y=void 0;G.finally==null||G.finally.call(G)}),U=()=>new Promise((H,P)=>Q.then(()=>z[0]==="reject"?P(z[1]):H(z[1])).catch(P));if(typeof Y!=="string"&&typeof Y!=="number")return{unwrap:U};else return Object.assign(Y,{unwrap:U})},this.custom=(B,G)=>{let Y=(G==null?void 0:G.id)||h1++;return this.create({jsx:B(Y),id:Y,...G}),Y},this.getActiveToasts=()=>{return this.toasts.filter((B)=>!this.dismissedToasts.has(B.id))},this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}var l=new e4,mB=(B,G)=>{let Y=(G==null?void 0:G.id)||h1++;return l.addToast({title:B,...G,id:Y}),Y},hB=(B)=>{return B&&typeof B==="object"&&"ok"in B&&typeof B.ok==="boolean"&&"status"in B&&typeof B.status==="number"},gB=mB,uB=()=>l.toasts,dB=()=>l.getActiveToasts(),s=Object.assign(gB,{success:l.success,info:l.info,warning:l.warning,error:l.error,custom:l.custom,message:l.message,promise:l.promise,dismiss:l.dismiss,loading:l.loading},{getHistory:uB,getToasts:dB});yB("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var lB=async({username:B,completeUrl:G,cancelUrl:Y,custom:X,completeAutoRedirect:$,ipAddress:z})=>{return(await B0()).createMinecraftBasket(B,G,Y,X,$,z)},pB=async(B)=>{return(await B0()).getBasket(B)},cB=async(B,G,Y,X,$)=>{return(await B0()).addPackageToBasket(B,G,Y??1,X,$)},nB=async(B,G,Y)=>{return(await B0()).updateQuantity(B,G,Y-1>=0?Y-1:0)},rB={createBasket:lB,getBasket:pB,addPackageToBasket:cB,removePackageFromBasket:nB},Z0=rB;var B5=(B)=>{let G,Y=new Set,X=(P,W)=>{let M=typeof P==="function"?P(G):P;if(!Object.is(M,G)){let L=G;G=(W!=null?W:typeof M!=="object"||M===null)?M:Object.assign({},G,M),Y.forEach((I)=>I(G,L))}},$=()=>G,U={setState:X,getState:$,getInitialState:()=>H,subscribe:(P)=>{return Y.add(P),()=>Y.delete(P)}},H=G=B(X,$,U);return U},G5=(B)=>B?B5(B):B5;var g1=t(X0(),1);var iB=(B)=>B;function sB(B,G=iB){let Y=g1.default.useSyncExternalStore(B.subscribe,()=>G(B.getState()),()=>G(B.getInitialState()));return g1.default.useDebugValue(Y),Y}var Y5=(B)=>{let G=G5(B),Y=(X)=>sB(G,X);return Object.assign(Y,G),Y},K0=(B)=>B?Y5(B):Y5;var oB=(B)=>(G,Y,X)=>{let $=X.subscribe;return X.subscribe=(Q,U,H)=>{let P=Q;if(U){let W=(H==null?void 0:H.equalityFn)||Object.is,M=Q(X.getState());if(P=(L)=>{let I=Q(L);if(!W(M,I)){let q=M;U(M=I,q)}},H==null?void 0:H.fireImmediately)U(M,M)}return $(P)},B(G,Y,X)},B1=oB;function aB(B,G){let Y;try{Y=B()}catch($){return}return{getItem:($)=>{var z;let Q=(H)=>{if(H===null)return null;return JSON.parse(H,G==null?void 0:G.reviver)},U=(z=Y.getItem($))!=null?z:null;if(U instanceof Promise)return U.then(Q);return Q(U)},setItem:($,z)=>Y.setItem($,JSON.stringify(z,G==null?void 0:G.replacer)),removeItem:($)=>Y.removeItem($)}}var u1=(B)=>(G)=>{try{let Y=B(G);if(Y instanceof Promise)return Y;return{then(X){return u1(X)(Y)},catch(X){return this}}}catch(Y){return{then(X){return this},catch(X){return u1(X)(Y)}}}},tB=(B,G)=>(Y,X,$)=>{let z={storage:aB(()=>localStorage),partialize:(E)=>E,version:0,merge:(E,w)=>({...w,...E}),...G},Q=!1,U=new Set,H=new Set,P=z.storage;if(!P)return B((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${z.name}', the given storage is currently unavailable.`),Y(...E)},X,$);let W=()=>{let E=z.partialize({...X()});return P.setItem(z.name,{state:E,version:z.version})},M=$.setState;$.setState=(E,w)=>{M(E,w),W()};let L=B((...E)=>{Y(...E),W()},X,$);$.getInitialState=()=>L;let I,q=()=>{var E,w;if(!P)return;Q=!1,U.forEach((C)=>{var A;return C((A=X())!=null?A:L)});let R=((w=z.onRehydrateStorage)==null?void 0:w.call(z,(E=X())!=null?E:L))||void 0;return u1(P.getItem.bind(P))(z.name).then((C)=>{if(C)if(typeof C.version==="number"&&C.version!==z.version){if(z.migrate){let A=z.migrate(C.state,C.version);if(A instanceof Promise)return A.then((b)=>[!0,b]);return[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then((C)=>{var A;let[b,y]=C;if(I=z.merge(y,(A=X())!=null?A:L),Y(I,!0),b)return W()}).then(()=>{R==null||R(I,void 0),I=X(),Q=!0,H.forEach((C)=>C(I))}).catch((C)=>{R==null||R(void 0,C)})};if($.persist={setOptions:(E)=>{if(z={...z,...E},E.storage)P=E.storage},clearStorage:()=>{P==null||P.removeItem(z.name)},getOptions:()=>z,rehydrate:()=>q(),hasHydrated:()=>Q,onHydrate:(E)=>{return U.add(E),()=>{U.delete(E)}},onFinishHydration:(E)=>{return H.add(E),()=>{H.delete(E)}}},!z.skipHydration)q();return I||L},G1=tB;var eB=K0()(B1(G1((B)=>({basketIdent:null,setBasketIdent:(G)=>B({basketIdent:G}),clearBasketIdent:()=>B({basketIdent:null})}),{name:"shop-basket-store"}))),U0=eB;var BG=K0()(B1((B)=>({isGlobalLoading:!1,setIsGlobalLoading:(G)=>B({isGlobalLoading:G}),isCreatingBasket:!1,setIsCreatingBasket:(G)=>B({isCreatingBasket:G})}))),Y1=BG;var GG=K0()(G1((B)=>({username:"",setUsername:(G)=>B({username:G}),clearUsername:()=>B({username:""})}),{name:"shop-user-store"})),x0=GG;var X5=t(X0(),1);var YG=async({includePackages:B,basketIdent:G,ipAddress:Y})=>{return(await B0()).getCategories(B,G,Y)},XG={getCategories:YG},d1=XG;var ZG=async(B)=>{let{isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:$,username:z}=B;if(G)return null;let{completeUrl:Q,cancelUrl:U}=QG();try{Y(!0);let H=await $({username:z,completeUrl:Q,cancelUrl:U,completeAutoRedirect:!1,ipAddress:""});if(!H?.ident)return s.error("Une erreur est survenue lors de la création du panier"),null;return X(H.ident),H}catch{return s.error("Erreur lors de la création du panier. Contactez le support si le problème persiste."),null}finally{Y(!1)}},$G=(B)=>{let G=Y1((Q)=>Q.isCreatingBasket),Y=Y1((Q)=>Q.setIsCreatingBasket),X=U0((Q)=>Q.setBasketIdent),$=x0((Q)=>Q.username);return X5.useCallback(()=>ZG({isCreatingBasket:G,setIsCreatingBasket:Y,setBasketIdent:X,createBasket:Z0.createBasket,username:B??$}),[G,Y,X,B,$])},QG=()=>{if(!process.env.NEXT_PUBLIC_APP_URL)throw new Error("NEXT_PUBLIC_APP_URL is not set");return{completeUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/complete-purchase`,cancelUrl:`${process.env.NEXT_PUBLIC_APP_URL}/shop/cancel-purchase`}},l1=$G;var zG=(B)=>{let G=U0((C)=>C.basketIdent),Y=U0((C)=>C.setBasketIdent),X=x0((C)=>C.username),[$,z]=$0.useState(null),[Q,U]=$0.useState(!1),[H,P]=$0.useState(null),[W,M]=$0.useState(!1),L=l1(B??X),I=async(C)=>{U(!0);try{let A=await Z0.getBasket(C);if(A.complete){z(null),Y("");return}z(A),Y(A.ident),P(null)}catch(A){P(A),z(null),Y("")}finally{U(!1)}},q=async(C,A,b,y)=>{if(W)return;try{if(M(!0),!B&&!X){s.error("Vous devez vous connecter pour ajouter des articles à votre panier");return}let _=null;if(!G){if(_=(await L())?.ident??null,!_){s.error("Une erreur est survenue lors de la création du panier");return}Y(_),await I(_)}else await I(G),_=G;if(!_){s.error("Vous n'avez pas de panier. Si le problème persiste, veuillez vous rapprocher du support.");return}let g=Z0.addPackageToBasket(_,C,A,b,y)?.then((o)=>{z(o),w()});s.promise(g,{loading:"Ajout de l'article dans votre panier...",success:"Article ajouté avec succès !",error:"Une erreur est survenue lors de l'ajout de l'article dans votre panier"})}finally{M(!1)}},E=async(C)=>{if(W)return;try{if(M(!0),!G){s.error("Vous n'avez pas de panier. Si le problème persiste, veuillez vous rapprocher du support.");return}let A=Z0.removePackageFromBasket(G,C,$?.packages.find((b)=>b.id===C)?.in_basket.quantity??0)?.then((b)=>{z(b),w()});s.promise(A,{loading:"Suppression de l'article de votre panier...",success:"Article supprimé avec succès !",error:"Une erreur est survenue lors de la suppression de l'article de votre panier"})}finally{M(!1)}},w=()=>{if(G)I(G)},R=(C)=>{z(C)};return $0.useEffect(()=>{if(!G)return;I(G)},[G]),{basket:$,loading:Q,error:H,updateManualBasket:R,addPackageToBasket:q,removePackageFromBasket:E,refetch:w}},MG=zG;var G0=t(X0(),1);var WG=(B)=>{let[G,Y]=G0.useState(null),[X,$]=G0.useState(!0),[z,Q]=G0.useState(null),U=async()=>{$(!0),Q(null);try{let P=await d1.getCategories(B);Y(P)}catch(P){Q(P),Y(null)}finally{$(!1)}};G0.useEffect(()=>{U()},[]);let H=G0.useCallback((P)=>G?.find((W)=>W.name.toLowerCase()===P.toLowerCase()),[G]);return{categories:G,loading:X,error:z,getByName:H,refetch:U}},JG=WG;export{x0 as useShopUserStore,Y1 as useShopUiStore,U0 as useShopBasketStore,l1 as useCreateBasket,JG as useCategories,MG as useBasket,B0 as getTebex,d1 as categoriesService,Z0 as basketService};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neosianexus/super-tebex",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",