@suportepos/split-checkout 0.1.0
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.es.js +5308 -0
- package/dist/index.umd.js +94 -0
- package/dist/types/App.d.ts +1 -0
- package/dist/types/lib/CheckoutFlow.d.ts +32 -0
- package/dist/types/lib/OrderSummary.d.ts +14 -0
- package/dist/types/lib/SplitCardForm.d.ts +13 -0
- package/dist/types/lib/SplitPixForm.d.ts +12 -0
- package/dist/types/lib/index.d.ts +5 -0
- package/dist/types/lib/theme.d.ts +12 -0
- package/dist/types/lib/validators.d.ts +3 -0
- package/dist/types/main.d.ts +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
(function(Pe,er){typeof exports=="object"&&typeof module<"u"?er(exports,require("react"),require("@mui/material"),require("@emotion/styled"),require("@emotion/react")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/styled","@emotion/react"],er):(Pe=typeof globalThis<"u"?globalThis:Pe||self,er(Pe.SplitCheckout={},Pe.React,Pe.material,Pe.emStyled,Pe.react))})(this,function(Pe,er,d,Ro,vr){"use strict";function jo(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const W=jo(er);function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function He(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t}var yt={exports:{}},br={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var en;function Ao(){if(en)return br;en=1;var e=er,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,p,f){var h,y={},m=null,T=null;f!==void 0&&(m=""+f),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(T=p.ref);for(h in p)n.call(p,h)&&!i.hasOwnProperty(h)&&(y[h]=p[h]);if(l&&l.defaultProps)for(h in p=l.defaultProps,p)y[h]===void 0&&(y[h]=p[h]);return{$$typeof:r,type:l,key:m,ref:T,props:y,_owner:o.current}}return br.Fragment=t,br.jsx=c,br.jsxs=c,br}var xr={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var rn;function Io(){return rn||(rn=1,process.env.NODE_ENV!=="production"&&function(){var e=er,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),v=Symbol.iterator,s="@@iterator";function S(a){if(a===null||typeof a!="object")return null;var b=v&&a[v]||a[s];return typeof b=="function"?b:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(a){{for(var b=arguments.length,O=new Array(b>1?b-1:0),A=1;A<b;A++)O[A-1]=arguments[A];k("error",a,O)}}function k(a,b,O){{var A=C.ReactDebugCurrentFrame,ee=A.getStackAddendum();ee!==""&&(b+="%s",O=O.concat([ee]));var oe=O.map(function(K){return String(K)});oe.unshift("Warning: "+b),Function.prototype.apply.call(console[a],console,oe)}}var I=!1,E=!1,G=!1,R=!1,Ce=!1,ye;ye=Symbol.for("react.module.reference");function ke(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===i||Ce||a===o||a===f||a===h||R||a===T||I||E||G||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===y||a.$$typeof===c||a.$$typeof===l||a.$$typeof===p||a.$$typeof===ye||a.getModuleId!==void 0))}function be(a,b,O){var A=a.displayName;if(A)return A;var ee=b.displayName||b.name||"";return ee!==""?O+"("+ee+")":O}function j(a){return a.displayName||"Context"}function V(a){if(a==null)return null;if(typeof a.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case l:var b=a;return j(b)+".Consumer";case c:var O=a;return j(O._context)+".Provider";case p:return be(a,a.render,"ForwardRef");case y:var A=a.displayName||null;return A!==null?A:V(a.type)||"Memo";case m:{var ee=a,oe=ee._payload,K=ee._init;try{return V(K(oe))}catch{return null}}}return null}var se=Object.assign,me=0,ge,xe,Ye,Le,x,P,B;function M(){}M.__reactDisabledLog=!0;function N(){{if(me===0){ge=console.log,xe=console.info,Ye=console.warn,Le=console.error,x=console.group,P=console.groupCollapsed,B=console.groupEnd;var a={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}me++}}function Y(){{if(me--,me===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:se({},a,{value:ge}),info:se({},a,{value:xe}),warn:se({},a,{value:Ye}),error:se({},a,{value:Le}),group:se({},a,{value:x}),groupCollapsed:se({},a,{value:P}),groupEnd:se({},a,{value:B})})}me<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=C.ReactCurrentDispatcher,$;function U(a,b,O){{if($===void 0)try{throw Error()}catch(ee){var A=ee.stack.trim().match(/\n( *(at )?)/);$=A&&A[1]||""}return`
|
|
18
|
+
`+$+a}}var z=!1,q;{var Se=typeof WeakMap=="function"?WeakMap:Map;q=new Se}function _(a,b){if(!a||z)return"";{var O=q.get(a);if(O!==void 0)return O}var A;z=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=F.current,F.current=null,N();try{if(b){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch($e){A=$e}Reflect.construct(a,[],K)}else{try{K.call()}catch($e){A=$e}a.call(K.prototype)}}else{try{throw Error()}catch($e){A=$e}a()}}catch($e){if($e&&A&&typeof $e.stack=="string"){for(var H=$e.stack.split(`
|
|
19
|
+
`),_e=A.stack.split(`
|
|
20
|
+
`),de=H.length-1,he=_e.length-1;de>=1&&he>=0&&H[de]!==_e[he];)he--;for(;de>=1&&he>=0;de--,he--)if(H[de]!==_e[he]){if(de!==1||he!==1)do if(de--,he--,he<0||H[de]!==_e[he]){var We=`
|
|
21
|
+
`+H[de].replace(" at new "," at ");return a.displayName&&We.includes("<anonymous>")&&(We=We.replace("<anonymous>",a.displayName)),typeof a=="function"&&q.set(a,We),We}while(de>=1&&he>=0);break}}}finally{z=!1,F.current=oe,Y(),Error.prepareStackTrace=ee}var gr=a?a.displayName||a.name:"",tr=gr?U(gr):"";return typeof a=="function"&&q.set(a,tr),tr}function D(a,b,O){return _(a,!1)}function Ue(a){var b=a.prototype;return!!(b&&b.isReactComponent)}function Ae(a,b,O){if(a==null)return"";if(typeof a=="function")return _(a,Ue(a));if(typeof a=="string")return U(a);switch(a){case f:return U("Suspense");case h:return U("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case p:return D(a.render);case y:return Ae(a.type,b,O);case m:{var A=a,ee=A._payload,oe=A._init;try{return Ae(oe(ee),b,O)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,ct={},ut=C.ReactDebugCurrentFrame;function yr(a){if(a){var b=a._owner,O=Ae(a.type,a._source,b?b.type:null);ut.setExtraStackFrame(O)}else ut.setExtraStackFrame(null)}function Ut(a,b,O,A,ee){{var oe=Function.call.bind(qe);for(var K in a)if(oe(a,K)){var H=void 0;try{if(typeof a[K]!="function"){var _e=Error((A||"React class")+": "+O+" type `"+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[K]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _e.name="Invariant Violation",_e}H=a[K](b,K,A,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){H=de}H&&!(H instanceof Error)&&(yr(ee),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",A||"React class",O,K,typeof H),yr(null)),H instanceof Error&&!(H.message in ct)&&(ct[H.message]=!0,yr(ee),w("Failed %s type: %s",O,H.message),yr(null))}}}var qt=Array.isArray;function Ar(a){return qt(a)}function Gt(a){{var b=typeof Symbol=="function"&&Symbol.toStringTag,O=b&&a[Symbol.toStringTag]||a.constructor.name||"Object";return O}}function Ht(a){try{return lt(a),!1}catch{return!0}}function lt(a){return""+a}function ft(a){if(Ht(a))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gt(a)),lt(a)}var dt=C.ReactCurrentOwner,Kt={key:!0,ref:!0,__self:!0,__source:!0},pt,ht;function g(a){if(qe.call(a,"ref")){var b=Object.getOwnPropertyDescriptor(a,"ref").get;if(b&&b.isReactWarning)return!1}return a.ref!==void 0}function ae(a){if(qe.call(a,"key")){var b=Object.getOwnPropertyDescriptor(a,"key").get;if(b&&b.isReactWarning)return!1}return a.key!==void 0}function Ee(a,b){typeof a.ref=="string"&&dt.current}function Fe(a,b){{var O=function(){pt||(pt=!0,w("%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://reactjs.org/link/special-props)",b))};O.isReactWarning=!0,Object.defineProperty(a,"key",{get:O,configurable:!0})}}function Ze(a,b){{var O=function(){ht||(ht=!0,w("%s: `ref` 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://reactjs.org/link/special-props)",b))};O.isReactWarning=!0,Object.defineProperty(a,"ref",{get:O,configurable:!0})}}var hc=function(a,b,O,A,ee,oe,K){var H={$$typeof:r,type:a,key:b,ref:O,props:K,_owner:oe};return H._store={},Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H};function yc(a,b,O,A,ee){{var oe,K={},H=null,_e=null;O!==void 0&&(ft(O),H=""+O),ae(b)&&(ft(b.key),H=""+b.key),g(b)&&(_e=b.ref,Ee(b,ee));for(oe in b)qe.call(b,oe)&&!Kt.hasOwnProperty(oe)&&(K[oe]=b[oe]);if(a&&a.defaultProps){var de=a.defaultProps;for(oe in de)K[oe]===void 0&&(K[oe]=de[oe])}if(H||_e){var he=typeof a=="function"?a.displayName||a.name||"Unknown":a;H&&Fe(K,he),_e&&Ze(K,he)}return hc(a,H,_e,ee,A,dt.current,K)}}var Jt=C.ReactCurrentOwner,To=C.ReactDebugCurrentFrame;function mr(a){if(a){var b=a._owner,O=Ae(a.type,a._source,b?b.type:null);To.setExtraStackFrame(O)}else To.setExtraStackFrame(null)}var Xt;Xt=!1;function Qt(a){return typeof a=="object"&&a!==null&&a.$$typeof===r}function Co(){{if(Jt.current){var a=V(Jt.current.type);if(a)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+a+"`."}return""}}function mc(a){return""}var _o={};function gc(a){{var b=Co();if(!b){var O=typeof a=="string"?a:a.displayName||a.name;O&&(b=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+O+">.")}return b}}function Po(a,b){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var O=gc(b);if(_o[O])return;_o[O]=!0;var A="";a&&a._owner&&a._owner!==Jt.current&&(A=" It was passed a child from "+V(a._owner.type)+"."),mr(a),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,A),mr(null)}}function Oo(a,b){{if(typeof a!="object")return;if(Ar(a))for(var O=0;O<a.length;O++){var A=a[O];Qt(A)&&Po(A,b)}else if(Qt(a))a._store&&(a._store.validated=!0);else if(a){var ee=S(a);if(typeof ee=="function"&&ee!==a.entries)for(var oe=ee.call(a),K;!(K=oe.next()).done;)Qt(K.value)&&Po(K.value,b)}}}function vc(a){{var b=a.type;if(b==null||typeof b=="string")return;var O;if(typeof b=="function")O=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===p||b.$$typeof===y))O=b.propTypes;else return;if(O){var A=V(b);Ut(O,a.props,"prop",A,a)}else if(b.PropTypes!==void 0&&!Xt){Xt=!0;var ee=V(b);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function bc(a){{for(var b=Object.keys(a.props),O=0;O<b.length;O++){var A=b[O];if(A!=="children"&&A!=="key"){mr(a),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),mr(null);break}}a.ref!==null&&(mr(a),w("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}var wo={};function $o(a,b,O,A,ee,oe){{var K=ke(a);if(!K){var H="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _e=mc();_e?H+=_e:H+=Co();var de;a===null?de="null":Ar(a)?de="array":a!==void 0&&a.$$typeof===r?(de="<"+(V(a.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):de=typeof a,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,H)}var he=yc(a,b,O,ee,oe);if(he==null)return he;if(K){var We=b.children;if(We!==void 0)if(A)if(Ar(We)){for(var gr=0;gr<We.length;gr++)Oo(We[gr],a);Object.freeze&&Object.freeze(We)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oo(We,a)}if(qe.call(b,"key")){var tr=V(a),$e=Object.keys(b).filter(function(_c){return _c!=="key"}),Zt=$e.length>0?"{key: someKey, "+$e.join(": ..., ")+": ...}":"{key: someKey}";if(!wo[tr+Zt]){var Cc=$e.length>0?"{"+$e.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,Zt,tr,Cc,tr),wo[tr+Zt]=!0}}return a===n?bc(he):vc(he),he}}function xc(a,b,O){return $o(a,b,O,!0)}function Sc(a,b,O){return $o(a,b,O,!1)}var Ec=Sc,Tc=xc;xr.Fragment=n,xr.jsx=Ec,xr.jsxs=Tc}()),xr}process.env.NODE_ENV==="production"?yt.exports=Ao():yt.exports=Io();var u=yt.exports;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},re.apply(null,arguments)}function Ke(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tn(e){if(W.isValidElement(e)||!Ke(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=tn(e[t])}),r}function Be(e,r,t={clone:!0}){const n=t.clone?re({},e):e;return Ke(e)&&Ke(r)&&Object.keys(r).forEach(o=>{W.isValidElement(r[o])?n[o]=r[o]:Ke(r[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ke(e[o])?n[o]=Be(e[o],r[o],t):t.clone?n[o]=Ke(r[o])?tn(r[o]):r[o]:n[o]=r[o]}),n}const Mo=Object.freeze(Object.defineProperty({__proto__:null,default:Be,isPlainObject:Ke},Symbol.toStringTag,{value:"Module"}));var mt={exports:{}},Ir={exports:{}},Q={};/** @license React v16.13.1
|
|
31
|
+
* react-is.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var nn;function No(){if(nn)return Q;nn=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(E){if(typeof E=="object"&&E!==null){var G=E.$$typeof;switch(G){case r:switch(E=E.type,E){case p:case f:case n:case i:case o:case y:return E;default:switch(E=E&&E.$$typeof,E){case l:case h:case v:case T:case c:return E;default:return G}}case t:return G}}}function I(E){return k(E)===f}return Q.AsyncMode=p,Q.ConcurrentMode=f,Q.ContextConsumer=l,Q.ContextProvider=c,Q.Element=r,Q.ForwardRef=h,Q.Fragment=n,Q.Lazy=v,Q.Memo=T,Q.Portal=t,Q.Profiler=i,Q.StrictMode=o,Q.Suspense=y,Q.isAsyncMode=function(E){return I(E)||k(E)===p},Q.isConcurrentMode=I,Q.isContextConsumer=function(E){return k(E)===l},Q.isContextProvider=function(E){return k(E)===c},Q.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},Q.isForwardRef=function(E){return k(E)===h},Q.isFragment=function(E){return k(E)===n},Q.isLazy=function(E){return k(E)===v},Q.isMemo=function(E){return k(E)===T},Q.isPortal=function(E){return k(E)===t},Q.isProfiler=function(E){return k(E)===i},Q.isStrictMode=function(E){return k(E)===o},Q.isSuspense=function(E){return k(E)===y},Q.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===f||E===i||E===o||E===y||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===T||E.$$typeof===c||E.$$typeof===l||E.$$typeof===h||E.$$typeof===S||E.$$typeof===C||E.$$typeof===w||E.$$typeof===s)},Q.typeOf=k,Q}var Z={};/** @license React v16.13.1
|
|
38
|
+
* react-is.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/var on;function Do(){return on||(on=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function k(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===i||_===o||_===y||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===T||_.$$typeof===c||_.$$typeof===l||_.$$typeof===h||_.$$typeof===S||_.$$typeof===C||_.$$typeof===w||_.$$typeof===s)}function I(_){if(typeof _=="object"&&_!==null){var D=_.$$typeof;switch(D){case r:var Ue=_.type;switch(Ue){case p:case f:case n:case i:case o:case y:return Ue;default:var Ae=Ue&&Ue.$$typeof;switch(Ae){case l:case h:case v:case T:case c:return Ae;default:return D}}case t:return D}}}var E=p,G=f,R=l,Ce=c,ye=r,ke=h,be=n,j=v,V=T,se=t,me=i,ge=o,xe=y,Ye=!1;function Le(_){return Ye||(Ye=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),x(_)||I(_)===p}function x(_){return I(_)===f}function P(_){return I(_)===l}function B(_){return I(_)===c}function M(_){return typeof _=="object"&&_!==null&&_.$$typeof===r}function N(_){return I(_)===h}function Y(_){return I(_)===n}function F(_){return I(_)===v}function $(_){return I(_)===T}function U(_){return I(_)===t}function z(_){return I(_)===i}function q(_){return I(_)===o}function Se(_){return I(_)===y}Z.AsyncMode=E,Z.ConcurrentMode=G,Z.ContextConsumer=R,Z.ContextProvider=Ce,Z.Element=ye,Z.ForwardRef=ke,Z.Fragment=be,Z.Lazy=j,Z.Memo=V,Z.Portal=se,Z.Profiler=me,Z.StrictMode=ge,Z.Suspense=xe,Z.isAsyncMode=Le,Z.isConcurrentMode=x,Z.isContextConsumer=P,Z.isContextProvider=B,Z.isElement=M,Z.isForwardRef=N,Z.isFragment=Y,Z.isLazy=F,Z.isMemo=$,Z.isPortal=U,Z.isProfiler=z,Z.isStrictMode=q,Z.isSuspense=Se,Z.isValidElementType=k,Z.typeOf=I}()),Z}var sn;function an(){return sn||(sn=1,process.env.NODE_ENV==="production"?Ir.exports=No():Ir.exports=Do()),Ir.exports}/*
|
|
45
|
+
object-assign
|
|
46
|
+
(c) Sindre Sorhus
|
|
47
|
+
@license MIT
|
|
48
|
+
*/var gt,cn;function Fo(){if(cn)return gt;cn=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var p=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(p.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gt=o()?Object.assign:function(i,c){for(var l,p=n(i),f,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var y in l)r.call(l,y)&&(p[y]=l[y]);if(e){f=e(l);for(var m=0;m<f.length;m++)t.call(l,f[m])&&(p[f[m]]=l[f[m]])}}return p},gt}var vt,un;function bt(){if(un)return vt;un=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vt=e,vt}var xt,ln;function fn(){return ln||(ln=1,xt=Function.call.bind(Object.prototype.hasOwnProperty)),xt}var St,dn;function Wo(){if(dn)return St;dn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=bt(),t={},n=fn();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,l,p,f){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var y;try{if(typeof i[h]!="function"){var m=Error((p||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}y=i[h](c,h,p,l,null,r)}catch(v){y=v}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in t)){t[y.message]=!0;var T=f?f():"";e("Failed "+l+" type: "+y.message+(T??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},St=o,St}var Et,pn;function Lo(){if(pn)return Et;pn=1;var e=an(),r=Fo(),t=bt(),n=fn(),o=Wo(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var p="Warning: "+l;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function c(){return null}return Et=function(l,p){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function y(x){var P=x&&(f&&x[f]||x[h]);if(typeof P=="function")return P}var m="<<anonymous>>",T={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:w(),arrayOf:k,element:I(),elementType:E(),instanceOf:G,node:ke(),objectOf:Ce,oneOf:R,oneOfType:ye,shape:j,exact:V};function v(x,P){return x===P?x!==0||1/x===1/P:x!==x&&P!==P}function s(x,P){this.message=x,this.data=P&&typeof P=="object"?P:{},this.stack=""}s.prototype=Error.prototype;function S(x){if(process.env.NODE_ENV!=="production")var P={},B=0;function M(Y,F,$,U,z,q,Se){if(U=U||m,q=q||$,Se!==t){if(p){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var D=U+":"+$;!P[D]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[D]=!0,B++)}}return F[$]==null?Y?F[$]===null?new s("The "+z+" `"+q+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new s("The "+z+" `"+q+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:x(F,$,U,z,q)}var N=M.bind(null,!1);return N.isRequired=M.bind(null,!0),N}function C(x){function P(B,M,N,Y,F,$){var U=B[M],z=ge(U);if(z!==x){var q=xe(U);return new s("Invalid "+Y+" `"+F+"` of type "+("`"+q+"` supplied to `"+N+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return S(P)}function w(){return S(c)}function k(x){function P(B,M,N,Y,F){if(typeof x!="function")return new s("Property `"+F+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var $=B[M];if(!Array.isArray($)){var U=ge($);return new s("Invalid "+Y+" `"+F+"` of type "+("`"+U+"` supplied to `"+N+"`, expected an array."))}for(var z=0;z<$.length;z++){var q=x($,z,N,Y,F+"["+z+"]",t);if(q instanceof Error)return q}return null}return S(P)}function I(){function x(P,B,M,N,Y){var F=P[B];if(!l(F)){var $=ge(F);return new s("Invalid "+N+" `"+Y+"` of type "+("`"+$+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return S(x)}function E(){function x(P,B,M,N,Y){var F=P[B];if(!e.isValidElementType(F)){var $=ge(F);return new s("Invalid "+N+" `"+Y+"` of type "+("`"+$+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return S(x)}function G(x){function P(B,M,N,Y,F){if(!(B[M]instanceof x)){var $=x.name||m,U=Le(B[M]);return new s("Invalid "+Y+" `"+F+"` of type "+("`"+U+"` supplied to `"+N+"`, expected ")+("instance of `"+$+"`."))}return null}return S(P)}function R(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function P(B,M,N,Y,F){for(var $=B[M],U=0;U<x.length;U++)if(v($,x[U]))return null;var z=JSON.stringify(x,function(Se,_){var D=xe(_);return D==="symbol"?String(_):_});return new s("Invalid "+Y+" `"+F+"` of value `"+String($)+"` "+("supplied to `"+N+"`, expected one of "+z+"."))}return S(P)}function Ce(x){function P(B,M,N,Y,F){if(typeof x!="function")return new s("Property `"+F+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var $=B[M],U=ge($);if(U!=="object")return new s("Invalid "+Y+" `"+F+"` of type "+("`"+U+"` supplied to `"+N+"`, expected an object."));for(var z in $)if(n($,z)){var q=x($,z,N,Y,F+"."+z,t);if(q instanceof Error)return q}return null}return S(P)}function ye(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var P=0;P<x.length;P++){var B=x[P];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ye(B)+" at index "+P+"."),c}function M(N,Y,F,$,U){for(var z=[],q=0;q<x.length;q++){var Se=x[q],_=Se(N,Y,F,$,U,t);if(_==null)return null;_.data&&n(_.data,"expectedType")&&z.push(_.data.expectedType)}var D=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new s("Invalid "+$+" `"+U+"` supplied to "+("`"+F+"`"+D+"."))}return S(M)}function ke(){function x(P,B,M,N,Y){return se(P[B])?null:new s("Invalid "+N+" `"+Y+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return S(x)}function be(x,P,B,M,N){return new s((x||"React class")+": "+P+" type `"+B+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function j(x){function P(B,M,N,Y,F){var $=B[M],U=ge($);if(U!=="object")return new s("Invalid "+Y+" `"+F+"` of type `"+U+"` "+("supplied to `"+N+"`, expected `object`."));for(var z in x){var q=x[z];if(typeof q!="function")return be(N,Y,F,z,xe(q));var Se=q($,z,N,Y,F+"."+z,t);if(Se)return Se}return null}return S(P)}function V(x){function P(B,M,N,Y,F){var $=B[M],U=ge($);if(U!=="object")return new s("Invalid "+Y+" `"+F+"` of type `"+U+"` "+("supplied to `"+N+"`, expected `object`."));var z=r({},B[M],x);for(var q in z){var Se=x[q];if(n(x,q)&&typeof Se!="function")return be(N,Y,F,q,xe(Se));if(!Se)return new s("Invalid "+Y+" `"+F+"` key `"+q+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(B[M],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var _=Se($,q,N,Y,F+"."+q,t);if(_)return _}return null}return S(P)}function se(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(se);if(x===null||l(x))return!0;var P=y(x);if(P){var B=P.call(x),M;if(P!==x.entries){for(;!(M=B.next()).done;)if(!se(M.value))return!1}else for(;!(M=B.next()).done;){var N=M.value;if(N&&!se(N[1]))return!1}}else return!1;return!0;default:return!1}}function me(x,P){return x==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function ge(x){var P=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":me(P,x)?"symbol":P}function xe(x){if(typeof x>"u"||x===null)return""+x;var P=ge(x);if(P==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return P}function Ye(x){var P=xe(x);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function Le(x){return!x.constructor||!x.constructor.name?m:x.constructor.name}return T.checkPropTypes=o,T.resetWarningCache=o.resetWarningCache,T.PropTypes=T,T},Et}var Tt,hn;function Bo(){if(hn)return Tt;hn=1;var e=bt();function r(){}function t(){}return t.resetWarningCache=r,Tt=function(){function n(c,l,p,f,h,y){if(y!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Tt}if(process.env.NODE_ENV!=="production"){var zo=an(),Vo=!0;mt.exports=Lo()(zo.isElement,Vo)}else mt.exports=Bo()();var Yo=mt.exports;const L=ko(Yo);function Sr(e){let r="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+r+" for the full message."}const Uo=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"}));var Ct={exports:{}},te={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-is.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var yn;function qo(){if(yn)return te;yn=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");function v(s){if(typeof s=="object"&&s!==null){var S=s.$$typeof;switch(S){case e:switch(s=s.type,s){case t:case o:case n:case p:case f:case m:return s;default:switch(s=s&&s.$$typeof,s){case c:case l:case y:case h:return s;case i:return s;default:return S}}case r:return S}}}return te.ContextConsumer=i,te.ContextProvider=c,te.Element=e,te.ForwardRef=l,te.Fragment=t,te.Lazy=y,te.Memo=h,te.Portal=r,te.Profiler=o,te.StrictMode=n,te.Suspense=p,te.SuspenseList=f,te.isContextConsumer=function(s){return v(s)===i},te.isContextProvider=function(s){return v(s)===c},te.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===e},te.isForwardRef=function(s){return v(s)===l},te.isFragment=function(s){return v(s)===t},te.isLazy=function(s){return v(s)===y},te.isMemo=function(s){return v(s)===h},te.isPortal=function(s){return v(s)===r},te.isProfiler=function(s){return v(s)===o},te.isStrictMode=function(s){return v(s)===n},te.isSuspense=function(s){return v(s)===p},te.isSuspenseList=function(s){return v(s)===f},te.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===t||s===o||s===n||s===p||s===f||typeof s=="object"&&s!==null&&(s.$$typeof===y||s.$$typeof===h||s.$$typeof===c||s.$$typeof===i||s.$$typeof===l||s.$$typeof===T||s.getModuleId!==void 0)},te.typeOf=v,te}var ne={};/**
|
|
58
|
+
* @license React
|
|
59
|
+
* react-is.development.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var mn;function Go(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&function(){function e(s){if(typeof s=="object"&&s!==null){var S=s.$$typeof;switch(S){case r:switch(s=s.type,s){case n:case i:case o:case f:case h:case T:return s;default:switch(s=s&&s.$$typeof,s){case l:case p:case m:case y:return s;case c:return s;default:return S}}case t:return S}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");ne.ContextConsumer=c,ne.ContextProvider=l,ne.Element=r,ne.ForwardRef=p,ne.Fragment=n,ne.Lazy=m,ne.Memo=y,ne.Portal=t,ne.Profiler=i,ne.StrictMode=o,ne.Suspense=f,ne.SuspenseList=h,ne.isContextConsumer=function(s){return e(s)===c},ne.isContextProvider=function(s){return e(s)===l},ne.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===r},ne.isForwardRef=function(s){return e(s)===p},ne.isFragment=function(s){return e(s)===n},ne.isLazy=function(s){return e(s)===m},ne.isMemo=function(s){return e(s)===y},ne.isPortal=function(s){return e(s)===t},ne.isProfiler=function(s){return e(s)===i},ne.isStrictMode=function(s){return e(s)===o},ne.isSuspense=function(s){return e(s)===f},ne.isSuspenseList=function(s){return e(s)===h},ne.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===i||s===o||s===f||s===h||typeof s=="object"&&s!==null&&(s.$$typeof===m||s.$$typeof===y||s.$$typeof===l||s.$$typeof===c||s.$$typeof===p||s.$$typeof===v||s.getModuleId!==void 0)},ne.typeOf=e}()),ne}process.env.NODE_ENV==="production"?Ct.exports=qo():Ct.exports=Go();var gn=Ct.exports;const Ho=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vn(e){const r=`${e}`.match(Ho);return r&&r[1]||""}function bn(e,r=""){return e.displayName||e.name||vn(e)||r}function xn(e,r,t){const n=bn(r);return e.displayName||(n!==""?`${t}(${n})`:t)}function Ko(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case gn.ForwardRef:return xn(e,e.render,"ForwardRef");case gn.Memo:return xn(e,e.type,"memo");default:return}}}const Jo=Object.freeze(Object.defineProperty({__proto__:null,default:Ko,getFunctionName:vn},Symbol.toStringTag,{value:"Module"}));function rr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Xo=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"}));function _t(e,r){const t=re({},r);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=re({},e[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=r[n];t[n]={},!i||!Object.keys(i)?t[n]=o:!o||!Object.keys(o)?t[n]=i:(t[n]=re({},i),Object.keys(o).forEach(c=>{t[n][c]=_t(o[c],i[c])}))}else t[n]===void 0&&(t[n]=e[n])}),t}function Qo(e,r,t=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,c)=>{if(c){const l=r(c);l!==""&&i.push(l),t&&t[c]&&i.push(t[c])}return i},[]).join(" ")}),n}const Sn=e=>e,Zo=(()=>{let e=Sn;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Sn}}})(),ei={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pt(e,r,t="Mui"){const n=ei[r];return n?`${t}-${n}`:`${Zo.generate(e)}-${r}`}function ri(e,r,t="Mui"){const n={};return r.forEach(o=>{n[o]=Pt(e,o,t)}),n}function ti(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}const ni=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));function Je(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function En(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=En(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function oi(){for(var e,r,t=0,n="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=En(e))&&(n&&(n+=" "),n+=r);return n}const ii=W.createContext(void 0);process.env.NODE_ENV!=="production"&&(L.node,L.object);function si(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?_t(o.defaultProps,n):!o.styleOverrides&&!o.variants?_t(o,n):n}function ai({props:e,name:r}){const t=W.useContext(ii);return si({props:e,name:r,theme:{components:t}})}process.env.NODE_ENV!=="production"&&(L.node,L.object.isRequired);function ci(e){return ai(e)}var Er={},Tn={exports:{}};(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Tn);var Cn=Tn.exports,Ot={exports:{}},_n;function ui(){return _n||(_n=1,function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Ot)),Ot.exports}var wt={exports:{}},Pn;function li(){return Pn||(Pn=1,function(e){function r(t,n){if(t==null)return{};var o={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(n.indexOf(i)!==-1)continue;o[i]=t[i]}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(wt)),wt.exports}function fi(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var di={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pi(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var hi=/[A-Z]|^ms/g,yi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,On=function(r){return r.charCodeAt(1)===45},wn=function(r){return r!=null&&typeof r!="boolean"},$t=pi(function(e){return On(e)?e:e.replace(hi,"-$&").toLowerCase()}),$n=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(yi,function(n,o,i){return Xe={name:o,styles:i,next:Xe},o})}return di[r]!==1&&!On(r)&&typeof t=="number"&&t!==0?t+"px":t};function Mr(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return Xe={name:o.name,styles:o.styles,next:Xe},o.name;var i=t;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)Xe={name:c.name,styles:c.styles,next:Xe},c=c.next;var l=i.styles+";";return l}return mi(e,r,t)}}var p=t;return p}function mi(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Mr(e,r,t[o])+";";else for(var i in t){var c=t[i];if(typeof c!="object"){var l=c;wn(l)&&(n+=$t(i)+":"+$n(i,l)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&r==null)for(var p=0;p<c.length;p++)wn(c[p])&&(n+=$t(i)+":"+$n(i,c[p])+";");else{var f=Mr(e,r,c);switch(i){case"animation":case"animationName":{n+=$t(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var Rn=/label:\s*([^\s;{]+)\s*(;|$)/g,Xe;function gi(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Xe=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Mr(t,r,i);else{var c=i;o+=c[0]}for(var l=1;l<e.length;l++)if(o+=Mr(t,r,e[l]),n){var p=i;o+=p[l]}Rn.lastIndex=0;for(var f="",h;(h=Rn.exec(o))!==null;)f+="-"+h[1];var y=fi(o)+f;return{name:y,styles:o,next:Xe}}function vi(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function bi(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var xi=function(){function e(t){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bi(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=vi(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Nr="-moz-",J="-webkit-",jn="comm",Rt="rule",jt="decl",Si="@import",kn="@keyframes",Ei="@layer",Ti=Math.abs,Dr=String.fromCharCode,Ci=Object.assign;function _i(e,r){return ve(e,0)^45?(((r<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}function An(e){return e.trim()}function Pi(e,r){return(e=r.exec(e))?e[0]:e}function X(e,r,t){return e.replace(r,t)}function kt(e,r){return e.indexOf(r)}function ve(e,r){return e.charCodeAt(r)|0}function Tr(e,r,t){return e.slice(r,t)}function ze(e){return e.length}function At(e){return e.length}function Fr(e,r){return r.push(e),e}function Oi(e,r){return e.map(r).join("")}var Wr=1,nr=1,In=0,Oe=0,pe=0,or="";function Lr(e,r,t,n,o,i,c){return{value:e,root:r,parent:t,type:n,props:o,children:i,line:Wr,column:nr,length:c,return:""}}function Cr(e,r){return Ci(Lr("",null,null,"",null,null,0),e,{length:-e.length},r)}function wi(){return pe}function $i(){return pe=Oe>0?ve(or,--Oe):0,nr--,pe===10&&(nr=1,Wr--),pe}function Re(){return pe=Oe<In?ve(or,Oe++):0,nr++,pe===10&&(nr=1,Wr++),pe}function Ve(){return ve(or,Oe)}function Br(){return Oe}function _r(e,r){return Tr(or,e,r)}function Pr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Mn(e){return Wr=nr=1,In=ze(or=e),Oe=0,[]}function Nn(e){return or="",e}function zr(e){return An(_r(Oe-1,It(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(pe=Ve())&&pe<33;)Re();return Pr(e)>2||Pr(pe)>3?"":" "}function ji(e,r){for(;--r&&Re()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return _r(e,Br()+(r<6&&Ve()==32&&Re()==32))}function It(e){for(;Re();)switch(pe){case e:return Oe;case 34:case 39:e!==34&&e!==39&&It(pe);break;case 40:e===41&&It(e);break;case 92:Re();break}return Oe}function ki(e,r){for(;Re()&&e+pe!==57;)if(e+pe===84&&Ve()===47)break;return"/*"+_r(r,Oe-1)+"*"+Dr(e===47?e:Re())}function Ai(e){for(;!Pr(Ve());)Re();return _r(e,Oe)}function Ii(e){return Nn(Vr("",null,null,null,[""],e=Mn(e),0,[0],e))}function Vr(e,r,t,n,o,i,c,l,p){for(var f=0,h=0,y=c,m=0,T=0,v=0,s=1,S=1,C=1,w=0,k="",I=o,E=i,G=n,R=k;S;)switch(v=w,w=Re()){case 40:if(v!=108&&ve(R,y-1)==58){kt(R+=X(zr(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:R+=zr(w);break;case 9:case 10:case 13:case 32:R+=Ri(v);break;case 92:R+=ji(Br()-1,7);continue;case 47:switch(Ve()){case 42:case 47:Fr(Mi(ki(Re(),Br()),r,t),p);break;default:R+="/"}break;case 123*s:l[f++]=ze(R)*C;case 125*s:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+h:C==-1&&(R=X(R,/\f/g,"")),T>0&&ze(R)-y&&Fr(T>32?Fn(R+";",n,t,y-1):Fn(X(R," ","")+";",n,t,y-2),p);break;case 59:R+=";";default:if(Fr(G=Dn(R,r,t,f,h,o,l,k,I=[],E=[],y),i),w===123)if(h===0)Vr(R,r,G,G,I,i,y,l,E);else switch(m===99&&ve(R,3)===110?100:m){case 100:case 108:case 109:case 115:Vr(e,G,G,n&&Fr(Dn(e,G,G,0,0,o,l,k,o,I=[],y),E),o,E,y,l,n?I:E);break;default:Vr(R,G,G,G,[""],E,0,l,E)}}f=h=T=0,s=C=1,k=R="",y=c;break;case 58:y=1+ze(R),T=v;default:if(s<1){if(w==123)--s;else if(w==125&&s++==0&&$i()==125)continue}switch(R+=Dr(w),w*s){case 38:C=h>0?1:(R+="\f",-1);break;case 44:l[f++]=(ze(R)-1)*C,C=1;break;case 64:Ve()===45&&(R+=zr(Re())),m=Ve(),h=y=ze(k=R+=Ai(Br())),w++;break;case 45:v===45&&ze(R)==2&&(s=0)}}return i}function Dn(e,r,t,n,o,i,c,l,p,f,h){for(var y=o-1,m=o===0?i:[""],T=At(m),v=0,s=0,S=0;v<n;++v)for(var C=0,w=Tr(e,y+1,y=Ti(s=c[v])),k=e;C<T;++C)(k=An(s>0?m[C]+" "+w:X(w,/&\f/g,m[C])))&&(p[S++]=k);return Lr(e,r,t,o===0?Rt:l,p,f,h)}function Mi(e,r,t){return Lr(e,r,t,jn,Dr(wi()),Tr(e,2,-2),0)}function Fn(e,r,t,n){return Lr(e,r,t,jt,Tr(e,0,n),Tr(e,n+1,-1),n)}function ir(e,r){for(var t="",n=At(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function Ni(e,r,t,n){switch(e.type){case Ei:if(e.children.length)break;case Si:case jt:return e.return=e.return||e.value;case jn:return"";case kn:return e.return=e.value+"{"+ir(e.children,n)+"}";case Rt:e.value=e.props.join(",")}return ze(t=ir(e.children,n))?e.return=e.value+"{"+t+"}":""}function Di(e){var r=At(e);return function(t,n,o,i){for(var c="",l=0;l<r;l++)c+=e[l](t,n,o,i)||"";return c}}function Fi(e){return function(r){r.root||(r=r.return)&&e(r)}}var Wi=function(r,t,n){for(var o=0,i=0;o=i,i=Ve(),o===38&&i===12&&(t[n]=1),!Pr(i);)Re();return _r(r,Oe)},Li=function(r,t){var n=-1,o=44;do switch(Pr(o)){case 0:o===38&&Ve()===12&&(t[n]=1),r[n]+=Wi(Oe-1,t,n);break;case 2:r[n]+=zr(o);break;case 4:if(o===44){r[++n]=Ve()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=Dr(o)}while(o=Re());return r},Bi=function(r,t){return Nn(Li(Mn(r),t))},Wn=new WeakMap,zi=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!Wn.get(n))&&!o){Wn.set(r,!0);for(var i=[],c=Bi(t,i),l=n.props,p=0,f=0;p<c.length;p++)for(var h=0;h<l.length;h++,f++)r.props[f]=i[p]?c[p].replace(/&\f/g,l[h]):l[h]+" "+c[p]}}},Vi=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ln(e,r){switch(_i(e,r)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Nr+e+Te+e+e;case 6828:case 4268:return J+e+Te+e+e;case 6165:return J+e+Te+"flex-"+e+e;case 5187:return J+e+X(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return J+e+Te+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return J+e+Te+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+Te+X(e,"shrink","negative")+e;case 5292:return J+e+Te+X(e,"basis","preferred-size")+e;case 6060:return J+"box-"+X(e,"-grow","")+J+e+Te+X(e,"grow","positive")+e;case 4554:return J+X(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ze(e)-1-r>6)switch(ve(e,r+1)){case 109:if(ve(e,r+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Nr+(ve(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~kt(e,"stretch")?Ln(X(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ve(e,r+1)!==115)break;case 6444:switch(ve(e,ze(e)-3-(~kt(e,"!important")&&10))){case 107:return X(e,":",":"+J)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(ve(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(ve(e,r+11)){case 114:return J+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+Te+e+e}return e}var Yi=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case jt:r.return=Ln(r.value,r.length);break;case kn:return ir([Cr(r,{value:X(r.value,"@","@"+J)})],o);case Rt:if(r.length)return Oi(r.props,function(i){switch(Pi(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ir([Cr(r,{props:[X(i,/:(read-\w+)/,":"+Nr+"$1")]})],o);case"::placeholder":return ir([Cr(r,{props:[X(i,/:(plac\w+)/,":"+J+"input-$1")]}),Cr(r,{props:[X(i,/:(plac\w+)/,":"+Nr+"$1")]}),Cr(r,{props:[X(i,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},Ui=[Yi],qi=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(s){var S=s.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(s),s.setAttribute("data-s",""))})}var o=r.stylisPlugins||Ui,i={},c,l=[];c=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(s){for(var S=s.getAttribute("data-emotion").split(" "),C=1;C<S.length;C++)i[S[C]]=!0;l.push(s)});var p,f=[zi,Vi];{var h,y=[Ni,Fi(function(s){h.insert(s)})],m=Di(f.concat(o,y)),T=function(S){return ir(Ii(S),m)};p=function(S,C,w,k){h=w,T(S?S+"{"+C.styles+"}":C.styles),k&&(v.inserted[C.name]=!0)}}var v={key:t,sheet:new xi({key:t,container:c,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:p};return v.sheet.hydrate(l),v};function Gi(e,r){const t=qi({key:"css",prepend:e});if(r){const n=t.insert;t.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return t}const Mt=new Map;function Bn(e){const{injectFirst:r,enableCssLayer:t,children:n}=e,o=W.useMemo(()=>{const i=`${r}-${t}`;if(typeof document=="object"&&Mt.has(i))return Mt.get(i);const c=Gi(r,t);return Mt.set(i,c),c},[r,t]);return r||t?u.jsx(vr.CacheProvider,{value:o,children:n}):n}process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:L.node,enableCssLayer:L.bool,injectFirst:L.bool});function Hi(e){return e==null||Object.keys(e).length===0}function zn(e){const{styles:r,defaultTheme:t={}}=e,n=typeof r=="function"?o=>r(Hi(o)?t:o):r;return u.jsx(vr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(zn.propTypes={defaultTheme:L.object,styles:L.oneOfType([L.array,L.string,L.object,L.func])});/**
|
|
66
|
+
* @mui/styled-engine v5.18.0
|
|
67
|
+
*
|
|
68
|
+
* @license MIT
|
|
69
|
+
* This source code is licensed under the MIT license found in the
|
|
70
|
+
* LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/function Ki(e,r){const t=Ro(e,r);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
72
|
+
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}const Ji=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))},Vn=[];function Xi(e){return Vn[0]=e,gi(Vn)}const Qi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:zn,StyledEngineProvider:Bn,ThemeContext:vr.ThemeContext,css:vr.css,default:Ki,internal_processStyles:Ji,internal_serializeStyles:Xi,keyframes:vr.keyframes},Symbol.toStringTag,{value:"Module"})),Zi=He(Qi),es=He(Mo),rs=He(Xo),ts=He(Jo),ns=["values","unit","step"],os=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>re({},t,{[n.key]:n.val}),{})};function Yn(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=e,o=Je(e,ns),i=os(r),c=Object.keys(i);function l(m){return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${t})`}function p(m){return`@media (max-width:${(typeof r[m]=="number"?r[m]:m)-n/100}${t})`}function f(m,T){const v=c.indexOf(T);return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${t}) and (max-width:${(v!==-1&&typeof r[c[v]]=="number"?r[c[v]]:T)-n/100}${t})`}function h(m){return c.indexOf(m)+1<c.length?f(m,c[c.indexOf(m)+1]):l(m)}function y(m){const T=c.indexOf(m);return T===0?l(c[1]):T===c.length-1?p(c[T]):f(m,c[c.indexOf(m)+1]).replace("@media","@media not all and")}return re({keys:c,values:i,up:l,down:p,between:f,only:h,not:y,unit:t},o)}const is={borderRadius:4},Qe=process.env.NODE_ENV!=="production"?L.oneOfType([L.number,L.string,L.object,L.array]):{};function Or(e,r){return r?Be(e,r,{clone:!1}):e}const Nt={xs:0,sm:600,md:900,lg:1200,xl:1536},Un={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nt[e]}px)`};function Ge(e,r,t){const n=e.theme||{};if(Array.isArray(r)){const i=n.breakpoints||Un;return r.reduce((c,l,p)=>(c[i.up(i.keys[p])]=t(r[p]),c),{})}if(typeof r=="object"){const i=n.breakpoints||Un;return Object.keys(r).reduce((c,l)=>{if(Object.keys(i.values||Nt).indexOf(l)!==-1){const p=i.up(l);c[p]=t(r[l],l)}else{const p=l;c[p]=r[p]}return c},{})}return t(r)}function ss(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function qn(e,r){return e.reduce((t,n)=>{const o=t[n];return(!o||Object.keys(o).length===0)&&delete t[n],t},r)}function Yr(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const n=`vars.${r}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return r.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ur(e,r,t,n=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||n:o=Yr(e,t)||n,r&&(o=r(o,n,e)),o}function le(e){const{prop:r,cssProperty:t=e.prop,themeKey:n,transform:o}=e,i=c=>{if(c[r]==null)return null;const l=c[r],p=c.theme,f=Yr(p,n)||{};return Ge(c,l,y=>{let m=Ur(f,o,y);return y===m&&typeof y=="string"&&(m=Ur(f,o,`${r}${y==="default"?"":rr(y)}`,y)),t===!1?m:{[t]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Qe}:{},i.filterProps=[r],i}function as(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const cs={m:"margin",p:"padding"},us={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ls=as(e=>{if(e.length>2)if(Gn[e])e=Gn[e];else return[e];const[r,t]=e.split(""),n=cs[r],o=us[t]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),qr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fs=[...qr,...Gr];function wr(e,r,t,n){var o;const i=(o=Yr(e,r,!1))!=null?o:t;return typeof i=="number"?c=>typeof c=="string"?c:(process.env.NODE_ENV!=="production"&&typeof c!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${c}.`),i*c):Array.isArray(i)?c=>typeof c=="string"?c:(process.env.NODE_ENV!=="production"&&(Number.isInteger(c)?c>i.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${c} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
73
|
+
`)):console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
|
|
74
|
+
`))),i[c]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
75
|
+
`)),()=>{})}function Hn(e){return wr(e,"spacing",8,"spacing")}function $r(e,r){if(typeof r=="string"||r==null)return r;const t=Math.abs(r),n=e(t);return r>=0?n:typeof n=="number"?-n:`-${n}`}function ds(e,r){return t=>e.reduce((n,o)=>(n[o]=$r(r,t),n),{})}function ps(e,r,t,n){if(r.indexOf(t)===-1)return null;const o=ls(t),i=ds(o,n),c=e[t];return Ge(e,c,i)}function Kn(e,r){const t=Hn(e.theme);return Object.keys(e).map(n=>ps(e,r,n,t)).reduce(Or,{})}function ce(e){return Kn(e,qr)}ce.propTypes=process.env.NODE_ENV!=="production"?qr.reduce((e,r)=>(e[r]=Qe,e),{}):{},ce.filterProps=qr;function ue(e){return Kn(e,Gr)}ue.propTypes=process.env.NODE_ENV!=="production"?Gr.reduce((e,r)=>(e[r]=Qe,e),{}):{},ue.filterProps=Gr,process.env.NODE_ENV!=="production"&&fs.reduce((e,r)=>(e[r]=Qe,e),{});function hs(e=8){if(e.mui)return e;const r=Hn({spacing:e}),t=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const c=r(i);return typeof c=="number"?`${c}px`:c}).join(" "));return t.mui=!0,t}function Hr(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),t=n=>Object.keys(n).reduce((o,i)=>r[i]?Or(o,r[i](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function Ie(e){return typeof e!="number"?e:`${e}px solid`}function Me(e,r){return le({prop:e,themeKey:"borders",transform:r})}const ys=Me("border",Ie),ms=Me("borderTop",Ie),gs=Me("borderRight",Ie),vs=Me("borderBottom",Ie),bs=Me("borderLeft",Ie),xs=Me("borderColor"),Ss=Me("borderTopColor"),Es=Me("borderRightColor"),Ts=Me("borderBottomColor"),Cs=Me("borderLeftColor"),_s=Me("outline",Ie),Ps=Me("outlineColor"),Kr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=wr(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:$r(r,n)});return Ge(e,e.borderRadius,t)}return null};Kr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qe}:{},Kr.filterProps=["borderRadius"],Hr(ys,ms,gs,vs,bs,xs,Ss,Es,Ts,Cs,Kr,_s,Ps);const Jr=e=>{if(e.gap!==void 0&&e.gap!==null){const r=wr(e.theme,"spacing",8,"gap"),t=n=>({gap:$r(r,n)});return Ge(e,e.gap,t)}return null};Jr.propTypes=process.env.NODE_ENV!=="production"?{gap:Qe}:{},Jr.filterProps=["gap"];const Xr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=wr(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:$r(r,n)});return Ge(e,e.columnGap,t)}return null};Xr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qe}:{},Xr.filterProps=["columnGap"];const Qr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=wr(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:$r(r,n)});return Ge(e,e.rowGap,t)}return null};Qr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qe}:{},Qr.filterProps=["rowGap"];const Os=le({prop:"gridColumn"}),ws=le({prop:"gridRow"}),$s=le({prop:"gridAutoFlow"}),Rs=le({prop:"gridAutoColumns"}),js=le({prop:"gridAutoRows"}),ks=le({prop:"gridTemplateColumns"}),As=le({prop:"gridTemplateRows"}),Is=le({prop:"gridTemplateAreas"}),Ms=le({prop:"gridArea"});Hr(Jr,Xr,Qr,Os,ws,$s,Rs,js,ks,As,Is,Ms);function sr(e,r){return r==="grey"?r:e}const Ns=le({prop:"color",themeKey:"palette",transform:sr}),Ds=le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sr}),Fs=le({prop:"backgroundColor",themeKey:"palette",transform:sr});Hr(Ns,Ds,Fs);function je(e){return e<=1&&e!==0?`${e*100}%`:e}const Ws=le({prop:"width",transform:je}),Dt=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||Nt[t];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:je(t)}};return Ge(e,e.maxWidth,r)}return null};Dt.filterProps=["maxWidth"];const Ls=le({prop:"minWidth",transform:je}),Bs=le({prop:"height",transform:je}),zs=le({prop:"maxHeight",transform:je}),Vs=le({prop:"minHeight",transform:je});le({prop:"size",cssProperty:"width",transform:je}),le({prop:"size",cssProperty:"height",transform:je});const Ys=le({prop:"boxSizing"});Hr(Ws,Dt,Ls,Bs,zs,Vs,Ys);const Rr={border:{themeKey:"borders",transform:Ie},borderTop:{themeKey:"borders",transform:Ie},borderRight:{themeKey:"borders",transform:Ie},borderBottom:{themeKey:"borders",transform:Ie},borderLeft:{themeKey:"borders",transform:Ie},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ie},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kr},color:{themeKey:"palette",transform:sr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sr},backgroundColor:{themeKey:"palette",transform:sr},p:{style:ue},pt:{style:ue},pr:{style:ue},pb:{style:ue},pl:{style:ue},px:{style:ue},py:{style:ue},padding:{style:ue},paddingTop:{style:ue},paddingRight:{style:ue},paddingBottom:{style:ue},paddingLeft:{style:ue},paddingX:{style:ue},paddingY:{style:ue},paddingInline:{style:ue},paddingInlineStart:{style:ue},paddingInlineEnd:{style:ue},paddingBlock:{style:ue},paddingBlockStart:{style:ue},paddingBlockEnd:{style:ue},m:{style:ce},mt:{style:ce},mr:{style:ce},mb:{style:ce},ml:{style:ce},mx:{style:ce},my:{style:ce},margin:{style:ce},marginTop:{style:ce},marginRight:{style:ce},marginBottom:{style:ce},marginLeft:{style:ce},marginX:{style:ce},marginY:{style:ce},marginInline:{style:ce},marginInlineStart:{style:ce},marginInlineEnd:{style:ce},marginBlock:{style:ce},marginBlockStart:{style:ce},marginBlockEnd:{style:ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Jr},rowGap:{style:Qr},columnGap:{style:Xr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:je},maxWidth:{style:Dt},minWidth:{transform:je},height:{transform:je},maxHeight:{transform:je},minHeight:{transform:je},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Us(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function qs(e,r){return typeof e=="function"?e(r):e}function Jn(){function e(t,n,o,i){const c={[t]:n,theme:o},l=i[t];if(!l)return{[t]:n};const{cssProperty:p=t,themeKey:f,transform:h,style:y}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const m=Yr(o,f)||{};return y?y(c):Ge(c,n,v=>{let s=Ur(m,h,v);return v===s&&typeof v=="string"&&(s=Ur(m,h,`${t}${v==="default"?"":rr(v)}`,v)),p===!1?s:{[p]:s}})}function r(t){var n;const{sx:o,theme:i={},nested:c}=t||{};if(!o)return null;const l=(n=i.unstable_sxConfig)!=null?n:Rr;function p(f){let h=f;if(typeof f=="function")h=f(i);else if(typeof f!="object")return f;if(!h)return null;const y=ss(i.breakpoints),m=Object.keys(y);let T=y;return Object.keys(h).forEach(v=>{const s=qs(h[v],i);if(s!=null)if(typeof s=="object")if(l[v])T=Or(T,e(v,s,i,l));else{const S=Ge({theme:i},s,C=>({[v]:C}));Us(S,s)?T[v]=r({sx:s,theme:i,nested:!0}):T=Or(T,S)}else T=Or(T,e(v,s,i,l))}),!c&&i.modularCssLayers?{"@layer sx":qn(m,T)}:qn(m,T)}return Array.isArray(o)?o.map(p):p(o)}return r}const Zr=Jn();Zr.filterProps=["sx"];function Xn(e,r){const t=this;return t.vars&&typeof t.getColorSchemeSelector=="function"?{[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:r}:t.palette.mode===e?r:{}}const Gs=["breakpoints","palette","spacing","shape"];function Qn(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:i={}}=e,c=Je(e,Gs),l=Yn(t),p=hs(o);let f=Be({breakpoints:l,direction:"ltr",components:{},palette:re({mode:"light"},n),spacing:p,shape:re({},is,i)},c);return f.applyStyles=Xn,f=r.reduce((h,y)=>Be(h,y),f),f.unstable_sxConfig=re({},Rr,c==null?void 0:c.unstable_sxConfig),f.unstable_sx=function(y){return Zr({sx:y,theme:this})},f}const Hs=He(Object.freeze(Object.defineProperty({__proto__:null,default:Qn,private_createBreakpoints:Yn,unstable_applyStyles:Xn},Symbol.toStringTag,{value:"Module"}))),Ks=["sx"],Js=e=>{var r,t;const n={systemProps:{},otherProps:{}},o=(r=e==null||(t=e.theme)==null?void 0:t.unstable_sxConfig)!=null?r:Rr;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Xs(e){const{sx:r}=e,t=Je(e,Ks),{systemProps:n,otherProps:o}=Js(t);let i;return Array.isArray(r)?i=[n,...r]:typeof r=="function"?i=(...c)=>{const l=r(...c);return Ke(l)?re({},n,l):n}:i=re({},n,r),re({},o,{sx:i})}const Qs=He(Object.freeze(Object.defineProperty({__proto__:null,default:Zr,extendSxProp:Xs,unstable_createStyleFunctionSx:Jn,unstable_defaultSxConfig:Rr},Symbol.toStringTag,{value:"Module"})));var ar=Cn;Object.defineProperty(Er,"__esModule",{value:!0});var Zs=Er.default=pa;Er.shouldForwardProp=rt,Er.systemDefaultTheme=void 0;var Ne=ar(ui()),Ft=ar(li()),et=ca(Zi),ea=es,ra=ar(rs),ta=ar(ts),na=ar(Hs),oa=ar(Qs);const ia=["ownerState"],sa=["variants"],aa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zn(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(Zn=function(n){return n?t:r})(e)}function ca(e,r){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Zn(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ua(e){return Object.keys(e).length===0}function la(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eo(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}const fa=Er.systemDefaultTheme=(0,na.default)(),ro=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function tt({defaultTheme:e,theme:r,themeId:t}){return ua(r)?e:r[t]||r}function da(e){return e?(r,t)=>t[e]:null}function nt(e,r,t){let{ownerState:n}=r,o=(0,Ft.default)(r,ia);const i=typeof e=="function"?e((0,Ne.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(c=>nt(c,(0,Ne.default)({ownerState:n},o),t));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:c=[]}=i;let p=(0,Ft.default)(i,sa);return c.forEach(f=>{let h=!0;if(typeof f.props=="function"?h=f.props((0,Ne.default)({ownerState:n},o,n)):Object.keys(f.props).forEach(y=>{(n==null?void 0:n[y])!==f.props[y]&&o[y]!==f.props[y]&&(h=!1)}),h){Array.isArray(p)||(p=[p]);const y=typeof f.style=="function"?f.style((0,Ne.default)({ownerState:n},o,n)):f.style;p.push(t?eo((0,et.internal_serializeStyles)(y),t):y)}}),p}return t?eo((0,et.internal_serializeStyles)(i),t):i}function pa(e={}){const{themeId:r,defaultTheme:t=fa,rootShouldForwardProp:n=rt,slotShouldForwardProp:o=rt}=e,i=c=>(0,oa.default)((0,Ne.default)({},c,{theme:tt((0,Ne.default)({},c,{defaultTheme:t,themeId:r}))}));return i.__mui_systemSx=!0,(c,l={})=>{(0,et.internal_processStyles)(c,G=>G.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:p,slot:f,skipVariantsResolver:h,skipSx:y,overridesResolver:m=da(ro(f))}=l,T=(0,Ft.default)(l,aa),v=p&&p.startsWith("Mui")||f?"components":"custom",s=h!==void 0?h:f&&f!=="Root"&&f!=="root"||!1,S=y||!1;let C;process.env.NODE_ENV!=="production"&&p&&(C=`${p}-${ro(f||"Root")}`);let w=rt;f==="Root"||f==="root"?w=n:f?w=o:la(c)&&(w=void 0);const k=(0,et.default)(c,(0,Ne.default)({shouldForwardProp:w,label:C},T)),I=G=>typeof G=="function"&&G.__emotion_real!==G||(0,ea.isPlainObject)(G)?R=>{const Ce=tt({theme:R.theme,defaultTheme:t,themeId:r});return nt(G,(0,Ne.default)({},R,{theme:Ce}),Ce.modularCssLayers?v:void 0)}:G,E=(G,...R)=>{let Ce=I(G);const ye=R?R.map(I):[];p&&m&&ye.push(j=>{const V=tt((0,Ne.default)({},j,{defaultTheme:t,themeId:r}));if(!V.components||!V.components[p]||!V.components[p].styleOverrides)return null;const se=V.components[p].styleOverrides,me={};return Object.entries(se).forEach(([ge,xe])=>{me[ge]=nt(xe,(0,Ne.default)({},j,{theme:V}),V.modularCssLayers?"theme":void 0)}),m(j,me)}),p&&!s&&ye.push(j=>{var V;const se=tt((0,Ne.default)({},j,{defaultTheme:t,themeId:r})),me=se==null||(V=se.components)==null||(V=V[p])==null?void 0:V.variants;return nt({variants:me},(0,Ne.default)({},j,{theme:se}),se.modularCssLayers?"theme":void 0)}),S||ye.push(i);const ke=ye.length-R.length;if(Array.isArray(G)&&ke>0){const j=new Array(ke).fill("");Ce=[...G,...j],Ce.raw=[...G.raw,...j]}const be=k(Ce,...ye);if(process.env.NODE_ENV!=="production"){let j;p&&(j=`${p}${(0,ra.default)(f||"")}`),j===void 0&&(j=`Styled(${(0,ta.default)(c)})`),be.displayName=j}return c.muiName&&(be.muiName=c.muiName),be};return k.withConfig&&(E.withConfig=k.withConfig),E}}function ha(e,r){return re({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},r)}var fe={};const ya=He(Uo),ma=He(ni);var to=Cn;Object.defineProperty(fe,"__esModule",{value:!0}),fe.alpha=co,fe.blend=wa,fe.colorChannel=void 0;var ga=fe.darken=Lt;fe.decomposeColor=De,fe.emphasize=uo;var no=fe.getContrastRatio=Ta;fe.getLuminance=ot,fe.hexToRgb=io,fe.hslToRgb=ao;var va=fe.lighten=Bt;fe.private_safeAlpha=Ca,fe.private_safeColorChannel=void 0,fe.private_safeDarken=_a,fe.private_safeEmphasize=Oa,fe.private_safeLighten=Pa,fe.recomposeColor=cr,fe.rgbToHex=Ea;var oo=to(ya),ba=to(ma);function Wt(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),(0,ba.default)(e,r,t)}function io(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xa(e){const r=e.toString(16);return r.length===1?`0${r}`:r}function De(e){if(e.type)return e;if(e.charAt(0)==="#")return De(io(e));const r=e.indexOf("("),t=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
76
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,oo.default)(9,e));let n=e.substring(r+1,e.length-1),o;if(t==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
77
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,oo.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:o}}const so=e=>{const r=De(e);return r.values.slice(0,3).map((t,n)=>r.type.indexOf("hsl")!==-1&&n!==0?`${t}%`:t).join(" ")};fe.colorChannel=so;const Sa=(e,r)=>{try{return so(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};fe.private_safeColorChannel=Sa;function cr(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):r.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function Ea(e){if(e.indexOf("#")===0)return e;const{values:r}=De(e);return`#${r.map((t,n)=>xa(n===3?Math.round(255*t):t)).join("")}`}function ao(e){e=De(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,i=n*Math.min(o,1-o),c=(f,h=(f+t/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(l+="a",p.push(r[3])),cr({type:l,values:p})}function ot(e){e=De(e);let r=e.type==="hsl"||e.type==="hsla"?De(ao(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function Ta(e,r){const t=ot(e),n=ot(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function co(e,r){return e=De(e),r=Wt(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,cr(e)}function Ca(e,r,t){try{return co(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Lt(e,r){if(e=De(e),r=Wt(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]*=1-r;return cr(e)}function _a(e,r,t){try{return Lt(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Bt(e,r){if(e=De(e),r=Wt(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return cr(e)}function Pa(e,r,t){try{return Bt(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function uo(e,r=.15){return ot(e)>.5?Lt(e,r):Bt(e,r)}function Oa(e,r,t){try{return uo(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function wa(e,r,t,n=1){const o=(p,f)=>Math.round((p**(1/n)*(1-t)+f**(1/n)*t)**n),i=De(e),c=De(r),l=[o(i.values[0],c.values[0]),o(i.values[1],c.values[1]),o(i.values[2],c.values[2])];return cr({type:"rgb",values:l})}const jr={black:"#000",white:"#fff"},$a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ur={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},kr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},dr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},pr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ra=["mode","contrastThreshold","tonalOffset"],lo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:jr.white,default:jr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},zt={text:{primary:jr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:jr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function fo(e,r,t,n){const o=n.light||n,i=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=va(e.main,o):r==="dark"&&(e.dark=ga(e.main,i)))}function ja(e="light"){return e==="dark"?{main:fr[200],light:fr[50],dark:fr[400]}:{main:fr[700],light:fr[400],dark:fr[800]}}function ka(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[500],light:ur[300],dark:ur[700]}}function Aa(e="light"){return e==="dark"?{main:lr[500],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[400],dark:lr[800]}}function Ia(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function Ma(e="light"){return e==="dark"?{main:pr[400],light:pr[300],dark:pr[700]}:{main:pr[800],light:pr[500],dark:pr[900]}}function Na(e="light"){return e==="dark"?{main:kr[400],light:kr[300],dark:kr[700]}:{main:"#ed6c02",light:kr[500],dark:kr[900]}}function Da(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2}=e,o=Je(e,Ra),i=e.primary||ja(r),c=e.secondary||ka(r),l=e.error||Aa(r),p=e.info||Ia(r),f=e.success||Ma(r),h=e.warning||Na(r);function y(s){const S=no(s,zt.text.primary)>=t?zt.text.primary:lo.text.primary;if(process.env.NODE_ENV!=="production"){const C=no(s,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${s}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
78
|
+
`))}return S}const m=({color:s,name:S,mainShade:C=500,lightShade:w=300,darkShade:k=700})=>{if(s=re({},s),!s.main&&s[C]&&(s.main=s[C]),!s.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
79
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:Sr(11,S?` (${S})`:"",C));if(typeof s.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
80
|
+
\`color.main\` should be a string, but \`${JSON.stringify(s.main)}\` was provided instead.
|
|
81
|
+
|
|
82
|
+
Did you intend to use one of the following approaches?
|
|
83
|
+
|
|
84
|
+
import { green } from "@mui/material/colors";
|
|
85
|
+
|
|
86
|
+
const theme1 = createTheme({ palette: {
|
|
87
|
+
primary: green,
|
|
88
|
+
} });
|
|
89
|
+
|
|
90
|
+
const theme2 = createTheme({ palette: {
|
|
91
|
+
primary: { main: green[500] },
|
|
92
|
+
} });`:Sr(12,S?` (${S})`:"",JSON.stringify(s.main)));return fo(s,"light",w,n),fo(s,"dark",k,n),s.contrastText||(s.contrastText=y(s.main)),s},T={dark:zt,light:lo};return process.env.NODE_ENV!=="production"&&(T[r]||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),Be(re({common:re({},jr),mode:r,primary:m({color:i,name:"primary"}),secondary:m({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:p,name:"info"}),success:m({color:f,name:"success"}),grey:$a,contrastThreshold:t,getContrastText:y,augmentColor:m,tonalOffset:n},T[r]),o)}const Fa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Wa(e){return Math.round(e*1e5)/1e5}const po={textTransform:"uppercase"},ho='"Roboto", "Helvetica", "Arial", sans-serif';function La(e,r){const t=typeof r=="function"?r(e):r,{fontFamily:n=ho,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:c=400,fontWeightMedium:l=500,fontWeightBold:p=700,htmlFontSize:f=16,allVariants:h,pxToRem:y}=t,m=Je(t,Fa);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const T=o/14,v=y||(C=>`${C/f*T}rem`),s=(C,w,k,I,E)=>re({fontFamily:n,fontWeight:C,fontSize:v(w),lineHeight:k},n===ho?{letterSpacing:`${Wa(I/w)}em`}:{},E,h),S={h1:s(i,96,1.167,-1.5),h2:s(i,60,1.2,-.5),h3:s(c,48,1.167,0),h4:s(c,34,1.235,.25),h5:s(c,24,1.334,0),h6:s(l,20,1.6,.15),subtitle1:s(c,16,1.75,.15),subtitle2:s(l,14,1.57,.1),body1:s(c,16,1.5,.15),body2:s(c,14,1.43,.15),button:s(l,14,1.75,.4,po),caption:s(c,12,1.66,.4),overline:s(c,12,2.66,1,po),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Be(re({htmlFontSize:f,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:c,fontWeightMedium:l,fontWeightBold:p},S),m,{clone:!1})}const Ba=.2,za=.14,Va=.12;function ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ba})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${za})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Va})`].join(",")}const Ya=["none",ie(0,2,1,-1,0,1,1,0,0,1,3,0),ie(0,3,1,-2,0,2,2,0,0,1,5,0),ie(0,3,3,-2,0,3,4,0,0,1,8,0),ie(0,2,4,-1,0,4,5,0,0,1,10,0),ie(0,3,5,-1,0,5,8,0,0,1,14,0),ie(0,3,5,-1,0,6,10,0,0,1,18,0),ie(0,4,5,-2,0,7,10,1,0,2,16,1),ie(0,5,5,-3,0,8,10,1,0,3,14,2),ie(0,5,6,-3,0,9,12,1,0,3,16,2),ie(0,6,6,-3,0,10,14,1,0,4,18,3),ie(0,6,7,-4,0,11,15,1,0,4,20,3),ie(0,7,8,-4,0,12,17,2,0,5,22,4),ie(0,7,8,-4,0,13,19,2,0,5,24,4),ie(0,7,9,-4,0,14,21,2,0,5,26,4),ie(0,8,9,-5,0,15,22,2,0,6,28,5),ie(0,8,10,-5,0,16,24,2,0,6,30,5),ie(0,8,11,-5,0,17,26,2,0,6,32,5),ie(0,9,11,-5,0,18,28,2,0,7,34,6),ie(0,9,12,-6,0,19,29,2,0,7,36,6),ie(0,10,13,-6,0,20,31,3,0,8,38,7),ie(0,10,13,-6,0,21,33,3,0,8,40,7),ie(0,10,14,-6,0,22,35,3,0,8,42,7),ie(0,11,14,-7,0,23,36,3,0,9,44,8),ie(0,11,15,-7,0,24,38,3,0,9,46,8)],Ua=["duration","easing","delay"],qa={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ga={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yo(e){return`${Math.round(e)}ms`}function Ha(e){if(!e)return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function Ka(e){const r=re({},qa,e.easing),t=re({},Ga,e.duration);return re({getAutoHeightDuration:Ha,create:(o=["all"],i={})=>{const{duration:c=t.standard,easing:l=r.easeInOut,delay:p=0}=i,f=Je(i,Ua);if(process.env.NODE_ENV!=="production"){const h=m=>typeof m=="string",y=m=>!isNaN(parseFloat(m));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!y(c)&&!h(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),h(l)||console.error('MUI: Argument "easing" must be a string.'),!y(p)&&!h(p)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
93
|
+
`)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof c=="string"?c:yo(c)} ${l} ${typeof p=="string"?p:yo(p)}`).join(",")}},e,{easing:r,duration:t})}const Ja={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xa=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mo(e={},...r){const{mixins:t={},palette:n={},transitions:o={},typography:i={}}=e,c=Je(e,Xa);if(e.vars&&e.generateCssVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Sr(18));const l=Da(n),p=Qn(e);let f=Be(p,{mixins:ha(p.breakpoints,t),palette:l,shadows:Ya.slice(),typography:La(l,i),transitions:Ka(o),zIndex:re({},Ja)});if(f=Be(f,c),f=r.reduce((h,y)=>Be(h,y),f),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(m,T)=>{let v;for(v in m){const s=m[v];if(h.indexOf(v)!==-1&&Object.keys(s).length>0){if(process.env.NODE_ENV!=="production"){const S=Pt("",v);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:s}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}m[v]={}}}};Object.keys(f.components).forEach(m=>{const T=f.components[m].styleOverrides;T&&m.indexOf("Mui")===0&&y(T,m)})}return f.unstable_sxConfig=re({},Rr,c==null?void 0:c.unstable_sxConfig),f.unstable_sx=function(y){return Zr({sx:y,theme:this})},f}const Qa=mo(),Za="$$material";function ec(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rc=Zs({themeId:Za,defaultTheme:Qa,rootShouldForwardProp:e=>ec(e)&&e!=="classes"});function tc(e){return Pt("MuiSvgIcon",e)}ri("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${rr(r)}`,`fontSize${rr(t)}`]};return Qo(o,tc,n)},ic=rc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${rr(t.color)}`],r[`fontSize${rr(t.fontSize)}`]]}})(({theme:e,ownerState:r})=>{var t,n,o,i,c,l,p,f,h,y,m,T,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=e.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(c=i.pxToRem)==null?void 0:c.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(p=l.pxToRem)==null?void 0:p.call(l,24))||"1.5rem",large:((f=e.typography)==null||(h=f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}[r.fontSize],color:(y=(m=(e.vars||e).palette)==null||(m=m[r.color])==null?void 0:m.main)!=null?y:{action:(T=(e.vars||e).palette)==null||(T=T.action)==null?void 0:T.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[r.color]}}),it=W.forwardRef(function(r,t){const n=ci({props:r,name:"MuiSvgIcon"}),{children:o,className:i,color:c="inherit",component:l="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:y,viewBox:m="0 0 24 24"}=n,T=Je(n,nc),v=W.isValidElement(o)&&o.type==="svg",s=re({},n,{color:c,component:l,fontSize:p,instanceFontSize:r.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v}),S={};h||(S.viewBox=m);const C=oc(s);return u.jsxs(ic,re({as:l,className:oi(C.root,i),focusable:"false",color:f,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:t},S,T,v&&o.props,{ownerState:s,children:[v?o.props.children:o,y?u.jsx("title",{children:y}):null]}))});process.env.NODE_ENV!=="production"&&(it.propTypes={children:L.node,classes:L.object,className:L.string,color:L.oneOfType([L.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),L.string]),component:L.elementType,fontSize:L.oneOfType([L.oneOf(["inherit","large","medium","small"]),L.string]),htmlColor:L.string,inheritViewBox:L.bool,shapeRendering:L.string,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),titleAccess:L.string,viewBox:L.string}),it.muiName="SvgIcon";function hr(e,r){function t(n,o){return u.jsx(it,re({"data-testid":`${r}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=it.muiName,W.memo(W.forwardRef(t))}const sc=hr(u.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"CreditCard"),go=hr(u.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"}),"QrCode2"),ac=hr(u.jsx("path",{d:"M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2zm-9-2h10V8H12zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"AccountBalanceWallet"),cc=hr(u.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple"),uc=hr(u.jsx("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google"),we={primary:"#6C4CE7",primaryHover:"#5a3ed4",ink:"#111827",muted:"#6b7280",bg:"#f6f7fb",surface:"#ffffff",border:"#e5e7eb",ring:"rgba(108,76,231,.25)"},Vt=mo({palette:{mode:"light",primary:{main:we.primary},text:{primary:we.ink,secondary:we.muted},background:{default:we.bg,paper:we.surface}},shape:{borderRadius:10},typography:{fontFamily:'"Inter","Segoe UI",Roboto,Ubuntu,Helvetica,Arial,sans-serif',h6:{fontWeight:700},button:{textTransform:"none",fontWeight:700}},components:{MuiCard:{styleOverrides:{root:{border:`1px solid ${we.border}`,boxShadow:"0 10px 30px rgba(2,6,23,.06)"}}},MuiTextField:{defaultProps:{size:"medium"}},MuiOutlinedInput:{styleOverrides:{root:{background:"#fff","& fieldset":{borderColor:we.border},"&:hover fieldset":{borderColor:we.primary},"&.Mui-focused fieldset":{borderColor:we.primary,boxShadow:`0 0 0 3px ${we.ring}`}},input:{paddingTop:14,paddingBottom:14}}},MuiButton:{styleOverrides:{root:{borderRadius:12,paddingBlock:14},containedPrimary:{boxShadow:"0 10px 24px rgba(108,76,231,.22)"}}},MuiDivider:{styleOverrides:{root:{borderColor:we.border}}}}}),Yt=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function st({amount:e,merchantName:r,sticky:t,items:n=[]}){return u.jsx(d.Card,{elevation:0,sx:{background:"#f9fafb",border:`1px solid ${we.border}`,position:t?"sticky":"static",top:24},children:u.jsxs(d.CardContent,{children:[u.jsx(d.Typography,{variant:"subtitle2",color:"text.secondary",sx:{mb:1},children:r}),u.jsx(d.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Enviou uma solicitação de pagamento"}),u.jsx(d.Divider,{sx:{mb:2}}),u.jsx(d.Typography,{variant:"body2",color:"text.primary",sx:{mb:.5},children:"Descrição do produto ou serviço"}),n.length>0?u.jsx(d.Stack,{spacing:1.2,sx:{mb:1},children:n.map((o,i)=>{const c=o.quantity??1,l=o.unitPrice*c;return u.jsxs(d.Stack,{direction:"row",justifyContent:"space-between",children:[u.jsxs(d.Typography,{variant:"body2",color:"text.secondary",children:[c>1?`${c}× `:"",o.name]}),u.jsx(d.Typography,{variant:"body2",children:Yt.format(l)})]},o.id??`${o.name}-${i}`)})}):u.jsxs(d.Stack,{direction:"row",justifyContent:"space-between",sx:{mb:1},children:[u.jsx(d.Typography,{variant:"body2",color:"text.secondary",children:"(1) Pagamento"}),u.jsx(d.Typography,{variant:"body2",children:Yt.format(e)})]}),u.jsx(d.Divider,{sx:{my:2}}),u.jsxs(d.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[u.jsx(d.Typography,{variant:"h5",sx:{fontWeight:800},children:"Valor total"}),u.jsx(d.Typography,{variant:"h5",sx:{fontWeight:800},children:Yt.format(e)})]}),u.jsx(d.Typography,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:2,textAlign:"center"},children:"Desenvolvido por SuportePOS | Pagamento Seguro"})]})})}function vo(e){if(e=e.replace(/\D/g,""),!e||e.length!==11||/^(\d)\1{10}$/.test(e))return!1;let r=0;for(let n=0;n<9;n++)r+=parseInt(e[n])*(10-n);let t=r*10%11;if((t===10||t===11)&&(t=0),t!==parseInt(e[9]))return!1;r=0;for(let n=0;n<10;n++)r+=parseInt(e[n])*(11-n);return t=r*10%11,(t===10||t===11)&&(t=0),t===parseInt(e[10])}function bo(e){if(e=e.replace(/\D/g,""),!e||e.length!==14||/^(\d)\1{13}$/.test(e))return!1;let r=e.length-2,t=e.substring(0,r),n=e.substring(r),o=0,i=r-7;for(let l=r;l>=1;l--)o+=parseInt(t[r-l])*i--,i<2&&(i=9);let c=o%11<2?0:11-o%11;if(c!==parseInt(n[0]))return!1;r=r+1,t=e.substring(0,r),o=0,i=r-7;for(let l=r;l>=1;l--)o+=parseInt(t[r-l])*i--,i<2&&(i=9);return c=o%11<2?0:11-o%11,c===parseInt(n[1])}function xo(e){return/^[A-Z0-9]{6,9}$/i.test(e.trim())}const lc=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}),fc=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"];function So({merchantId:e,amount:r,splits:t,summaryItems:n,merchantName:o,installmentsOptions:i=[1,2,3,6,10,12],onBack:c,onResponse:l}){const p=d.useMediaQuery("(max-width:900px)"),[f,h]=W.useState("card"),[y,m]=W.useState(""),[T,v]=W.useState(""),[s,S]=W.useState(""),[C,w]=W.useState(""),[k,I]=W.useState(1),[E,G]=W.useState(""),[R,Ce]=W.useState(""),[ye,ke]=W.useState(""),[be,j]=W.useState(""),[V,se]=W.useState(""),[me,ge]=W.useState(""),[xe,Ye]=W.useState(""),[Le,x]=W.useState(""),[P,B]=W.useState(""),[M,N]=W.useState(""),[Y,F]=W.useState(""),[$,U]=W.useState(""),[z,q]=W.useState(""),[Se,_]=W.useState(!1),[D,Ue]=W.useState({}),[Ae,qe]=W.useState(!1),ct=g=>g.replace(/\D/g,"").trim(),ut=g=>g.replace(/\D/g,"").slice(0,6).replace(/(\d{2})(\d{0,4})/,(ae,Ee,Fe)=>Fe?`${Ee}/${Fe}`:Ee),yr=g=>g.replace(/\D/g,"").slice(0,8).replace(/(\d{5})(\d{1,3})?/,(ae,Ee,Fe)=>Fe?`${Ee}-${Fe}`:Ee),Ut=g=>g.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4}).*/,"($1) $2-$3").replace(/-$/,""),qt=g=>g.replace(/\D/g,"").slice(0,11).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"),Ar=g=>g.replace(/\D/g,"").slice(0,14).replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2"),Gt=g=>g.replace(/[^a-zA-Z0-9]/g,"").slice(0,9).toUpperCase();W.useEffect(()=>{const g=document.createElement("script");return g.src="https://www.pagador.com.br/post/scripts/silentorderpost-1.0.min.js",g.async=!0,document.body.appendChild(g),g.onload=async()=>{try{const Ee=await(await fetch(`http://127.0.0.1:8003/api/token-cartao?uuid=${e}`)).json();G(Ee==null?void 0:Ee.AccessToken)}catch(ae){console.error("Erro ao buscar accessToken:",ae)}},()=>{document.body.removeChild(g)}},[]);function Ht(){const g={};return y.replace(/\D/g,"").length<15&&(g.cardNumber="Número inválido"),T.trim()||(g.holderName="Informe o nome"),/^\d{2}\/\d{4}$/.test(s)||(g.expiry="Use MM/AAAA"),/^\d{3,4}$/.test(C)||(g.cvv="CVV inválido"),Ue(g),Object.keys(g).length===0}function lt(){const g={};return(!R||!/^\d{5}-?\d{3}$/.test(R))&&(g.cep="CEP inválido"),ye.trim()||(g.address="Informe o endereço"),be.trim()||(g.number="O campo Número é obrigatório"),me.trim()||(g.neighborhood="O campo Bairro é obrigatório"),xe.trim()||(g.city="Informe a cidade"),Le||(g.uf="Selecione o estado (UF)"),Ue(g),Object.keys(g).length===0}function ft(){const g={};return P.trim()||(g.buyerName="Informe o nome"),/^\S+@\S+\.\S+$/.test(M)||(g.buyerEmail="E-mail inválido"),Y.replace(/\D/g,"").length<10&&(g.buyerPhone="Telefone inválido"),$||(g.docType="Selecione o tipo de documento"),P.trim()||(g.buyerName="Informe o nome"),/^\S+@\S+\.\S+$/.test(M)||(g.buyerEmail="E-mail inválido"),Y.replace(/\D/g,"").length<10&&(g.buyerPhone="Telefone inválido"),$||(g.docType="Selecione o tipo de documento"),z.trim()?($==="CPF"&&!vo(z)&&(g.docNumber="CPF inválido"),$==="CNPJ"&&!bo(z)&&(g.docNumber="CNPJ inválido"),$==="PASSAPORTE"&&!xo(z)&&(g.docNumber="Passaporte inválido")):g.docNumber="Informe o número do documento",Ue(g),Object.keys(g).length===0}const dt=()=>Ht()&&h("billing"),Kt=()=>lt()&&h("buyer"),pt=async g=>{const ae=yr(g);Ce(ae);const Ee=ae.replace(/\D/g,"");if(Ee.length===8)try{const Ze=await(await fetch(`http://127.0.0.1:8003/api/cep/${Ee}?uuid=${e}`)).json();Ze.error||(ke(Ze.street||""),ge(Ze.neighborhood||""),Ye(Ze.city||""),x(Ze.state||""),se(Ze.complement||""))}catch(Fe){console.error("Erro ao buscar CEP:",Fe)}},ht=async()=>{if(!ft())return;qe(!0);const g={accessToken:E,environment:"sandbox",language:"PT",enableBinQuery:!1,enableVerifyCard:!1,enableTokenize:!1,cvvrequired:!0,onSuccess:async ae=>{try{const Fe=await(await fetch("http://127.0.0.1:8003/api/pagar",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:e,paymentToken:ae.CardToken??ae.PaymentToken,amount:r,installments:k,buyerName:P,buyerEmail:M,buyerPhone:Y,docType:$,docNumber:z,splits:t,cep:R,address:ye,number:be,complement:V,neighborhood:me,city:xe,state:Le})})).json();l==null||l(Fe)}catch(Ee){console.error("Erro chamando backend:",Ee),l==null||l({success:!1,message:"Erro ao comunicar backend"})}finally{qe(!1)}},onError:ae=>{console.error("Erro SOP:",ae),l==null||l({success:!1,message:"Erro SOP"}),qe(!1)},onInvalid:ae=>{console.warn("Campos inválidos:",ae),l==null||l({success:!1,message:"Campos inválidos"}),qe(!1)}};window.bpSop_silentOrderPost(g)};return u.jsx(d.ThemeProvider,{theme:Vt,children:u.jsx(d.Box,{sx:{bgcolor:"background.default",minHeight:"100vh"},children:u.jsx(d.Container,{maxWidth:"lg",children:u.jsxs(d.Grid,{container:!0,spacing:3,children:[u.jsx(d.Grid,{item:!0,xs:12,md:7,children:u.jsx(d.Card,{elevation:0,sx:{border:"1px solid #e2e8f0"},children:u.jsxs(d.CardContent,{children:[u.jsx(d.Box,{sx:{display:f==="card"?"block":"none"},children:u.jsxs(u.Fragment,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Pagamento com cartão de crédito"}),u.jsxs(d.Stack,{spacing:2,children:[u.jsx(d.TextField,{label:"Número do cartão",value:y,onChange:g=>m(ct(g.target.value)),error:!!D.cardNumber,inputProps:{className:"bp-sop-cardnumber",maxLength:19,inputMode:"numeric"},helperText:D.cardNumber,fullWidth:!0}),u.jsx(d.TextField,{label:"Nome como está no cartão",value:T,onChange:g=>v(g.target.value),error:!!D.holderName,helperText:D.holderName,inputProps:{className:"bp-sop-cardholdername"},fullWidth:!0}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsx(d.TextField,{label:"Vencimento",placeholder:"MM/AAAA",value:s,onChange:g=>S(ut(g.target.value)),error:!!D.expiry,helperText:D.expiry,inputProps:{className:"bp-sop-cardexpirationdate",maxLength:7},fullWidth:!0}),u.jsx(d.TextField,{label:"CVV",value:C,onChange:g=>w(g.target.value.replace(/\D/g,"").slice(0,4)),error:!!D.cvv,helperText:D.cvv,inputProps:{className:"bp-sop-cardcvv",maxLength:4,inputMode:"numeric"},fullWidth:!0})]}),u.jsxs(d.FormControl,{fullWidth:!0,children:[u.jsx(d.InputLabel,{children:"Quantidade de Parcelas"}),u.jsx(d.Select,{label:"Quantidade de Parcelas",value:k,onChange:g=>I(Number(g.target.value)),children:i.map(g=>u.jsxs(d.MenuItem,{value:g,children:[g,"x de R$ ",lc.format(r/g)]},g))}),u.jsx(d.FormHelperText,{children:"Informe o número do cartão para verificar o valor das parcelas"})]}),u.jsx("input",{type:"hidden",className:"bp-sop-cardtype",value:"CreditCard"}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[u.jsx(d.Button,{variant:"outlined",onClick:c,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),u.jsx(d.Button,{variant:"contained",onClick:dt,disabled:Ae,fullWidth:!0,sx:{py:1.4},children:"Continuar"})]})]})]})}),u.jsx(d.Box,{sx:{display:f==="billing"?"block":"none"},children:u.jsxs(u.Fragment,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Endereço de cobrança"}),u.jsxs(d.Stack,{spacing:2,children:[u.jsx(d.Stack,{direction:"row",spacing:2,alignItems:"flex-start",children:u.jsx(d.TextField,{label:"CEP",placeholder:"00000-000",value:R,onChange:g=>pt(g.target.value),error:!!D.cep,helperText:D.cep,fullWidth:!0})}),u.jsx(d.TextField,{label:"Endereço",value:ye,onChange:g=>ke(g.target.value),error:!!D.address,helperText:D.address,fullWidth:!0}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsx(d.TextField,{label:"Número",value:be,onChange:g=>j(g.target.value),error:!!D.number,helperText:D.number,fullWidth:!0}),u.jsx(d.TextField,{label:"Complemento",value:V,onChange:g=>se(g.target.value),fullWidth:!0})]}),u.jsx(d.TextField,{label:"Bairro",value:me,onChange:g=>ge(g.target.value),error:!!D.neighborhood,helperText:D.neighborhood,fullWidth:!0}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsx(d.TextField,{label:"Cidade",value:xe,onChange:g=>Ye(g.target.value),error:!!D.city,helperText:D.city,fullWidth:!0}),u.jsxs(d.FormControl,{fullWidth:!0,error:!!D.uf,children:[u.jsx(d.InputLabel,{children:"Estado"}),u.jsx(d.Select,{label:"Estado",value:Le,onChange:g=>x(String(g.target.value)),children:fc.map(g=>u.jsx(d.MenuItem,{value:g,children:g},g))}),u.jsx(d.FormHelperText,{children:D.uf})]})]}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[u.jsx(d.Button,{variant:"outlined",onClick:()=>h("card"),fullWidth:!0,sx:{py:1.4},children:"Voltar"}),u.jsx(d.Button,{variant:"contained",onClick:Kt,fullWidth:!0,sx:{py:1.4},disabled:Ae||!R||!!D.cep||!ye||!be||!me||!xe||!Le,children:"Continuar"})]})]})]})}),u.jsx(d.Box,{sx:{display:f==="buyer"?"block":"none"},children:u.jsxs(u.Fragment,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Falta pouco! Insira seus dados antes de concluir"}),u.jsxs(d.Stack,{spacing:2,children:[u.jsx(d.TextField,{label:"Nome Completo",value:P,onChange:g=>B(g.target.value),error:!!D.buyerName,helperText:D.buyerName,fullWidth:!0}),u.jsx(d.TextField,{label:"E-mail",value:M,onChange:g=>N(g.target.value),error:!!D.buyerEmail,helperText:D.buyerEmail,fullWidth:!0}),u.jsx(d.TextField,{label:"Celular",value:Y,onChange:g=>F(Ut(g.target.value)),error:!!D.buyerPhone,helperText:D.buyerPhone,fullWidth:!0}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsxs(d.FormControl,{fullWidth:!0,error:!!D.docType,children:[u.jsx(d.InputLabel,{children:"Escolha o tipo de documento"}),u.jsxs(d.Select,{label:"Escolha o tipo de documento",value:$,onChange:g=>U(g.target.value),children:[u.jsx(d.MenuItem,{value:"CPF",children:"CPF"}),u.jsx(d.MenuItem,{value:"CNPJ",children:"CNPJ"}),u.jsx(d.MenuItem,{value:"PASSAPORTE",children:"Passaporte"})]}),u.jsx(d.FormHelperText,{children:D.docType})]}),u.jsx(d.TextField,{label:"Número do documento",value:z,onChange:g=>{let ae=g.target.value;$==="CPF"&&(ae=qt(ae)),$==="CNPJ"&&(ae=Ar(ae)),$==="PASSAPORTE"&&(ae=Gt(ae)),q(ae)},error:!!D.docNumber,helperText:D.docNumber,fullWidth:!0})]}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[u.jsx(d.Button,{variant:"outlined",disabled:Ae,onClick:()=>h("billing"),fullWidth:!0,sx:{py:1.4},children:"Voltar"}),u.jsx(d.Button,{variant:"contained",onClick:ht,disabled:Ae,fullWidth:!0,sx:{py:1.4},children:Ae?"Processando...":"Concluir compra"})]})]})]})})]})})}),u.jsx(d.Grid,{item:!0,xs:12,md:5,children:u.jsx(st,{amount:r,merchantName:o,sticky:!p,items:n})})]})})})})}const dc=hr(u.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");function Eo({merchantId:e,amount:r,merchantName:t="SUPORTEPOS",summaryItems:n,splits:o,onBack:i,onResponse:c}){const l=d.useMediaQuery("(max-width:900px)"),[p,f]=W.useState(!1),[h,y]=W.useState(""),[m,T]=W.useState(""),[v,s]=W.useState(""),[S,C]=W.useState({}),[w,k]=W.useState(!1),[I,E]=W.useState(null),G=j=>j.replace(/\D/g,"").slice(0,11).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"),R=j=>j.replace(/\D/g,"").slice(0,14).replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2"),Ce=j=>j.replace(/[^a-zA-Z0-9]/g,"").slice(0,9).toUpperCase(),ye=()=>{const j={};return h.trim()||(j.buyerName="Informe o nome"),m||(j.docType="Selecione o tipo de documento"),v.trim()?(m==="CPF"&&!vo(v)&&(j.docNumber="CPF inválido"),m==="CNPJ"&&!bo(v)&&(j.docNumber="CNPJ inválido"),m==="PASSAPORTE"&&!xo(v)&&(j.docNumber="Passaporte inválido")):j.docNumber="Informe o número do documento",C(j),Object.keys(j).length===0},ke=async()=>{if(ye()){k(!0);try{const V=await(await fetch("http://127.0.0.1:8003/api/pix",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:e,amount:r,buyerName:h,docType:m,docNumber:v,splits:o})})).json();V.copyPasteCode&&V.qrCodeSrc&&E(V)}catch(j){console.error("Erro ao gerar PIX:",j)}finally{k(!1)}}},be=async()=>{if(I!=null&&I.copyPasteCode)try{await navigator.clipboard.writeText(I.copyPasteCode),f(!0),setTimeout(()=>f(!1),1500)}catch{}};return u.jsx(d.ThemeProvider,{theme:Vt,children:u.jsx(d.Box,{sx:{bgcolor:"background.default",minHeight:"100%",py:0},children:u.jsx(d.Container,{maxWidth:"lg",children:u.jsxs(d.Grid,{container:!0,spacing:3,children:[u.jsx(d.Grid,{item:!0,xs:12,md:7,children:u.jsx(d.Card,{elevation:0,sx:{border:"1px solid #e2e8f0"},children:u.jsxs(d.CardContent,{children:[!I&&u.jsxs(u.Fragment,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Preencha seus dados para gerar o PIX"}),u.jsxs(d.Stack,{spacing:2,children:[u.jsx(d.TextField,{label:"Nome Completo",value:h,onChange:j=>y(j.target.value),error:!!S.buyerName,helperText:S.buyerName,fullWidth:!0}),u.jsxs(d.FormControl,{fullWidth:!0,error:!!S.docType,children:[u.jsx(d.InputLabel,{children:"Tipo de Documento"}),u.jsxs(d.Select,{value:m,onChange:j=>T(j.target.value),children:[u.jsx(d.MenuItem,{value:"CPF",children:"CPF"}),u.jsx(d.MenuItem,{value:"CNPJ",children:"CNPJ"}),u.jsx(d.MenuItem,{value:"PASSAPORTE",children:"Passaporte"})]}),u.jsx(d.FormHelperText,{children:S.docType})]}),u.jsx(d.TextField,{label:"Número do Documento",value:v,onChange:j=>{let V=j.target.value;m==="CPF"&&(V=G(V)),m==="CNPJ"&&(V=R(V)),m==="PASSAPORTE"&&(V=Ce(V)),s(V)},error:!!S.docNumber,helperText:S.docNumber,fullWidth:!0}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsx(d.Button,{variant:"outlined",onClick:i,disabled:w,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),u.jsx(d.Button,{variant:"contained",onClick:ke,disabled:w,fullWidth:!0,sx:{py:1.4},children:w?"Gerando PIX...":"Gerar PIX"})]})]})]}),I&&u.jsxs(u.Fragment,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Para concluir seu pagamento escaneie o QR Code abaixo"}),u.jsx(d.Box,{sx:{border:"1px solid #e5e7eb",borderRadius:2,bgcolor:"#f8fafc",p:{xs:2,md:3},mb:3},children:u.jsx(d.Box,{sx:{width:{xs:"100%",sm:360},height:{xs:"auto",sm:360},mx:"auto",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#fff",borderRadius:2,overflow:"hidden"},children:u.jsx("img",{alt:"QR Code PIX",src:I.qrCodeSrc,style:{width:"100%",height:"100%",objectFit:"contain"}})})}),u.jsx(d.Typography,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Código copia-e-cola"}),u.jsx(d.Box,{sx:{fontFamily:"monospace",fontSize:14,lineHeight:1.5,bgcolor:"#f8fafc",border:"1px solid #e5e7eb",borderRadius:1,p:1.5,wordBreak:"break-all",mb:1.5,userSelect:"text"},children:I.copyPasteCode}),u.jsx(d.Button,{variant:"outlined",startIcon:u.jsx(dc,{}),onClick:be,sx:{mb:2},children:p?"Copiado!":"Copiar código"}),u.jsx(d.Divider,{sx:{my:2}}),u.jsxs(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[u.jsx(d.Button,{variant:"outlined",onClick:i,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),u.jsx(d.Button,{variant:"contained",onClick:()=>{},fullWidth:!0,sx:{py:1.4},children:"Já paguei"})]})]})]})})}),u.jsx(d.Grid,{item:!0,xs:12,md:5,children:u.jsx(st,{amount:r,merchantName:t,items:n,sticky:!l})})]})})})})}function pc({merchantId:e,products:r,merchantName:t="SUPORTEPOS",amountOverride:n,splits:o,onResponse:i}){const[c,l]=W.useState("select"),p=d.useMediaQuery("(max-width:900px)"),[f]=W.useState({gpay:!1,applepay:!1,clickToPay:!1,creditCard:!0,qrCredit:!1,pix:!0}),h=W.useMemo(()=>r.reduce((k,I)=>k+I.unitPrice*(I.quantity??1),0),[r]),y=n??h,m=()=>alert("Google Pay"),T=()=>alert("Apple Pay"),v=()=>alert("Click to Pay"),s=()=>alert("QR Crédito"),S=[];f.gpay&&S.push(u.jsx(d.Button,{fullWidth:!0,variant:"contained",onClick:m,startIcon:u.jsx(uc,{}),color:"primary",sx:{py:1.4},children:"Finalizar compra com o GPay"},"gpay")),f.applepay&&S.push(u.jsx(d.Button,{fullWidth:!0,variant:"contained",onClick:T,startIcon:u.jsx(cc,{}),color:"primary",sx:{py:1.4},children:"Pay"},"applepay"));const C=[];f.clickToPay&&C.push(u.jsxs(d.ListItemButton,{onClick:v,sx:at,children:[u.jsx(d.ListItemIcon,{children:u.jsx(ac,{})}),u.jsx(d.ListItemText,{primary:"Click to Pay",secondary:"Pague com cartão salvo",primaryTypographyProps:{fontWeight:600}})]},"ctp")),f.creditCard&&C.push(u.jsxs(d.ListItemButton,{onClick:()=>l("card"),sx:at,children:[u.jsx(d.ListItemIcon,{children:u.jsx(sc,{})}),u.jsx(d.ListItemText,{primary:"Cartão de crédito",secondary:"Insira os dados do cartão",primaryTypographyProps:{fontWeight:600}})]},"card")),f.qrCredit&&C.push(u.jsxs(d.ListItemButton,{onClick:s,sx:at,children:[u.jsx(d.ListItemIcon,{children:u.jsx(go,{})}),u.jsx(d.ListItemText,{primary:"Qr Code Crédito",secondary:"Escaneie o QR Code",primaryTypographyProps:{fontWeight:600}})]},"qrcredit")),f.pix&&C.push(u.jsxs(d.ListItemButton,{onClick:()=>l("pix"),sx:at,children:[u.jsx(d.ListItemIcon,{children:u.jsx(go,{})}),u.jsx(d.ListItemText,{primary:"PIX",secondary:"Escaneie o QR Code",primaryTypographyProps:{fontWeight:600}})]},"pix"));const w=S.length===0&&C.length===0;return u.jsx(d.ThemeProvider,{theme:Vt,children:u.jsx(d.Box,{sx:{bgcolor:"background.default",minHeight:"100vh",py:4},children:u.jsx(d.Container,{maxWidth:"lg",children:c==="select"?u.jsxs(d.Grid,{container:!0,spacing:3,children:[u.jsx(d.Grid,{item:!0,xs:12,md:7,children:u.jsx(d.Card,{elevation:0,sx:{p:{xs:1,md:2},border:"1px solid #e2e8f0"},children:u.jsxs(d.CardContent,{children:[u.jsx(d.Typography,{variant:"h6",sx:{mb:2},children:"Como você quer pagar?"}),w&&u.jsx(d.Alert,{severity:"warning",sx:{mb:2},children:"Nenhum meio de pagamento está disponível no momento."}),S.length>0&&u.jsx(d.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mb:2},children:S}),S.length>0&&C.length>0&&u.jsx(d.Divider,{sx:{my:1},children:u.jsx(d.Typography,{variant:"body2",color:"text.secondary",children:"ou"})}),C.length>0&&u.jsx(d.List,{sx:{mt:S.length?1:0},children:C})]})})}),u.jsx(d.Grid,{item:!0,xs:12,md:5,children:u.jsx(st,{amount:y,merchantName:t,sticky:!p,items:r})})]}):c==="card"?u.jsx(So,{merchantId:e,amount:y,splits:o,merchantName:t,summaryItems:r,onBack:()=>l("select"),onResponse:i}):u.jsx(Eo,{merchantId:e,amount:y,splits:o,merchantName:t,summaryItems:r,onBack:()=>l("select"),onResponse:i})})})})}const at={border:`1px solid ${we.border}`,borderRadius:14,mb:1.5,paddingBlock:1.2,boxShadow:"0 6px 18px rgba(2,6,23,.04)","& .MuiListItemIcon-root":{minWidth:44,"& svg":{opacity:.9}},"&:hover":{backgroundColor:"#f8fafc",boxShadow:"0 12px 24px rgba(2,6,23,.06)"}};Pe.CheckoutFlow=pc,Pe.OrderSummary=st,Pe.SplitCardForm=So,Pe.SplitPixForm=Eo,Pe.brand=we,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type Product = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
unitPrice: number;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
};
|
|
7
|
+
export type Split = {
|
|
8
|
+
subordinateMerchantId?: string;
|
|
9
|
+
valor: number;
|
|
10
|
+
};
|
|
11
|
+
export type PaymentResult = {
|
|
12
|
+
success: boolean;
|
|
13
|
+
status?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
paymentId?: string;
|
|
16
|
+
amount?: number;
|
|
17
|
+
buyerName?: string;
|
|
18
|
+
buyerEmail?: string;
|
|
19
|
+
buyerPhone?: string;
|
|
20
|
+
message: string;
|
|
21
|
+
raw?: any;
|
|
22
|
+
};
|
|
23
|
+
export type CheckoutFlowProps = {
|
|
24
|
+
merchantId: string;
|
|
25
|
+
products: Product[];
|
|
26
|
+
splits: Split[];
|
|
27
|
+
merchantName?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
amountOverride?: number;
|
|
30
|
+
onResponse?: (payload: PaymentResult) => void;
|
|
31
|
+
};
|
|
32
|
+
export default function CheckoutFlow({ merchantId, products, merchantName, amountOverride, splits, onResponse, }: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Product = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
unitPrice: number;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
amount: number;
|
|
9
|
+
merchantName?: string;
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
items?: Product[];
|
|
12
|
+
};
|
|
13
|
+
export default function OrderSummary({ amount, merchantName, sticky, items }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Product } from "./OrderSummary";
|
|
2
|
+
import { PaymentResult, Split } from "./CheckoutFlow";
|
|
3
|
+
export type SplitCardFormProps = {
|
|
4
|
+
merchantId: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
merchantName?: string;
|
|
7
|
+
summaryItems?: Product[];
|
|
8
|
+
splits: Split[];
|
|
9
|
+
installmentsOptions?: number[];
|
|
10
|
+
onBack?: () => void;
|
|
11
|
+
onResponse?: (payload: PaymentResult) => void;
|
|
12
|
+
};
|
|
13
|
+
export default function SplitCheckoutForm({ merchantId, amount, splits, summaryItems, merchantName, installmentsOptions, onBack, onResponse, }: SplitCardFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Product } from "./OrderSummary";
|
|
2
|
+
import { PaymentResult, Split } from "./CheckoutFlow";
|
|
3
|
+
export type SplitPixFormProps = {
|
|
4
|
+
merchantId: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
merchantName?: string;
|
|
7
|
+
summaryItems?: Product[];
|
|
8
|
+
splits: Split[];
|
|
9
|
+
onBack?: () => void;
|
|
10
|
+
onResponse?: (payload: PaymentResult) => void;
|
|
11
|
+
};
|
|
12
|
+
export default function SplitPixForm({ merchantId, amount, merchantName, summaryItems, splits, onBack, onResponse, }: SplitPixFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const brand: {
|
|
2
|
+
primary: string;
|
|
3
|
+
primaryHover: string;
|
|
4
|
+
ink: string;
|
|
5
|
+
muted: string;
|
|
6
|
+
bg: string;
|
|
7
|
+
surface: string;
|
|
8
|
+
border: string;
|
|
9
|
+
ring: string;
|
|
10
|
+
};
|
|
11
|
+
declare const theme: import("@mui/material").Theme;
|
|
12
|
+
export default theme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@suportepos/split-checkout",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.umd.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": ["dist"],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "vite build && npm run build:types",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"react": "^18.3.1",
|
|
18
|
+
"react-dom": "^18.3.1",
|
|
19
|
+
"@mui/material": "^5.18.0",
|
|
20
|
+
"@mui/icons-material": "^7.3.1",
|
|
21
|
+
"@emotion/react": "^11.14.0",
|
|
22
|
+
"@emotion/styled": "^11.14.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.5.4",
|
|
26
|
+
"vite": "^5.4.2",
|
|
27
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
28
|
+
"@types/react": "^18.2.66",
|
|
29
|
+
"@types/react-dom": "^18.2.22"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
}
|
|
34
|
+
}
|