UNPKG

license-kit

Version:

Aggregate license notes of OSS libraries used in your Node.js project, analyze & visualize OSS licenses with AI-turbocharged tooling

4 lines 43.4 kB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[665],{3904:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7620);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},15263:(e,t,n)=>{n.d(t,{D:()=>$});var r,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var u=Object.getPrototypeOf;function l(e){return!!e&&!!e[a]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var f=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;let t=u(e);if(null===t)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===f}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function h(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:y(e)?2:3*!!b(e)}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t,n){let r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function g(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=d(e);if(!0!==t&&("class_only"!==t||n)){let t=u(e);return null!==t&&n?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(u(e),t)}}function E(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=k),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>E(t,!0))),e}function k(){s(2)}function S(e){return Object.isFrozen(e)}var w={};function _(e){let t=w[e];return t||s(0,e),t}function C(e,t){t&&(_("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function O(e){j(e),e.drafts_.forEach(D),e.drafts_=null}function j(e){e===r&&(r=e.parent_)}function P(e){return r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function N(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[a].modified_&&(O(t),s(4)),c(e)&&(e=M(t,e),t.parent_||T(t,e)),t.patches_&&_("Patches").generateReplacementPatches_(n[a].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),O(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function M(e,t,n){if(S(t))return t;let r=t[a];if(!r)return p(t,(i,o)=>L(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return T(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,(i,a)=>L(e,r,t,i,a,n,o)),T(e,t,!1),n&&e.patches_&&_("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,i,o,a){if(l(i)){let a=M(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&Object.prototype.propertyIsEnumerable.call(n,r)&&T(e,i)}}function T(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&E(t,n)}var A={get(e,t){if(t===a)return e;let n=g(e);if(!m(n,t)){var r=e,i=n,o=t;let a=I(i,o);return a?"value"in a?a.value:a.get?.call(r.draft_):void 0}let s=n[t];return e.finalized_||!c(s)?s:s===z(e.base_,t)?(W(e),e.copy_[t]=q(s,e)):s},has:(e,t)=>t in g(e),ownKeys:e=>Reflect.ownKeys(g(e)),set(e,t,n){let r=I(g(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=z(g(e),t),i=r?.[a];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||m(e.base_,t)))return!0;W(e),F(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,W(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=g(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){s(11)},getPrototypeOf:e=>u(e.base_),setPrototypeOf(){s(12)}},R={};function z(e,t){let n=e[a];return(n?g(n):e)[t]}function I(e,t){if(!(t in e))return;let n=u(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=u(n)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function W(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function q(e,t){let n=y(e)?_("MapSet").proxyMap_(e,t):b(e)?_("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),i={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=A;n&&(o=[i],a=R);let{revoke:s,proxy:u}=Proxy.revocable(o,a);return i.draft_=u,i.revoke_=s,u}(e,t);return(t?t.scope_:r).drafts_.push(n),n}p(A,(e,t)=>{R[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),R.deleteProperty=function(e,t){return R.set.call(this,e,t,void 0)},R.set=function(e,t,n){return A.set.call(this,e[0],t,n,e[0])};var H=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{let r;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==n&&"function"!=typeof n&&s(7),c(e)){let i=P(this),o=q(e,void 0),a=!0;try{r=t(o),a=!1}finally{a?O(i):j(i)}return C(i,n),N(r,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(r=t(e))&&(r=e),r===i&&(r=void 0),this.autoFreeze_&&E(r,!0),n){let t=[],i=[];_("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return"function"==typeof e?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;c(e)||s(8),l(e)&&(l(t=e)||s(10,t),e=function e(t){let n;if(!c(t)||S(t))return t;let r=t[a];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=x(t,r.scope_.immer_.useStrictShallowCopy_)}else n=x(t,!0);return p(n,(t,r)=>{v(n,t,e(r))}),r&&(r.finalized_=!1),n}(t));let n=P(this),r=q(e,void 0);return r[a].isManual_=!0,j(n),r}finishDraft(e,t){let n=e&&e[a];n&&n.isManual_||s(9);let{scope_:r}=n;return C(r,t),N(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=_("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,e=>r(e,t))}},V=H.produce;H.produceWithPatches.bind(H),H.setAutoFreeze.bind(H),H.setUseStrictShallowCopy.bind(H),H.applyPatches.bind(H),H.createDraft.bind(H),H.finishDraft.bind(H);let $=e=>(t,n,r)=>(r.setState=(e,n,...r)=>t("function"==typeof e?V(e):e,n,...r),e(r.setState,n,r))},31141:(e,t,n)=>{n.d(t,{Df:()=>A});var r=n(71774),i=n(7620);let o=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw Error("Object.fromEntries() requires a single iterable argument");let t={};return Object.keys(e).forEach(n=>{let[r,i]=e[n];t[r]=i}),t};function a(e){return Object.keys(e)}function s(e,t){if(!e)throw Error(t)}let u=e=>{let t=e.length,n=0,r="";for(;n<t;n++){let t,i=e[n];if(null!=i){switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))t=u(i);else{for(let e in s(!0),t="",i)i[e]&&e&&(t&&(t+=" "),t+=e)}break;default:t=i}t&&(r&&(r+=" "),r+=t)}}return r};var l=n(84404),c=n(69918);let{createCssAndCx:f}={createCssAndCx:function(e){let{cache:t}=e,n=(...e)=>{let n=(0,l.J)(e,t.registered);(0,c.sk)(t,n,!1);let r=`${t.key}-${n.name}`;e:{let n=e[0];if(!(n instanceof Object&&!("styles"in n)&&!("length"in n)&&!("__emotion_styles"in n)))break e;p.saveClassNameCSSObjectMapping(t,r,n)}return r};return{css:n,cx:(...e)=>{let r=u(e),i=p.fixClassName(t,r,n);var o=t.registered;let a=[],s=(0,c.Rk)(o,a,i);return a.length<2?i:s+n(a)}}}};function d(e){let{useCache:t}=e;return{useCssAndCx:function(){let e=t(),{css:n,cx:r}=function(e,t){var n;let r=(0,i.useRef)();return(!r.current||t.length!==(null==(n=r.current.prevDeps)?void 0:n.length)||r.current.prevDeps.map((e,n)=>e===t[n]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}(()=>f({cache:e}),[e]);return{css:n,cx:r}}}}let p=(()=>{let e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let i=e.get(t);void 0===i&&(i=new Map,e.set(t,i)),i.set(n,r)},fixClassName:(t,n,r)=>{let i=e.get(t);return u((function(e){let t=!1;return e.map(([e,n])=>{let r;if(void 0===n)return e;if(t)r={"&&":n};else for(let i in r=e,n)if(i.startsWith("@media")){t=!0;break}return r})})(n.split(" ").map(e=>[e,null==i?void 0:i.get(e)])).map(e=>"string"==typeof e?e:r(e)))}}})();function h(e){if(!(e instanceof Object)||"function"==typeof e)return e;let t=[];for(let n in e){let r=e[n],i=typeof r;if(!("string"===i||"number"===i&&!isNaN(r)||"boolean"===i||null==r))return e;t.push(`${n}:${i}_${r}`)}return"xSqLiJdLMd9s"+t.join("|")}function m(e,t,n){if(!(t instanceof Object))return e;let r={};return a(e).forEach(i=>r[i]=n(e[i],t[i])),a(t).forEach(n=>{if(n in e)return;let i=t[n];"string"==typeof i&&(r[n]=i)}),r}let v=({classes:e,theme:t,muiStyleOverridesParams:n,css:r,cx:o,name:a})=>{var s,u;let l;t:{if("makeStyle no name"===a){a=void 0;break t}if(void 0!==n&&void 0===a)throw Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}try{l=void 0===a?void 0:(null==(u=null==(s=t.components)?void 0:s[a])?void 0:u.styleOverrides)||void 0}catch(e){}let c=(0,i.useMemo)(()=>{if(void 0===l)return;let e={};for(let i in l){let o=l[i];o instanceof Object&&(e[i]=r("function"==typeof o?o({theme:t,ownerState:null==n?void 0:n.ownerState,...null==n?void 0:n.props}):o))}return e},[l,h(null==n?void 0:n.props),h(null==n?void 0:n.ownerState),r]);return{classes:e=(0,i.useMemo)(()=>m(e,c,o),[e,c,o])}},y=n(13459)._,b=0;function g(e){let{useTheme:t,cache:n}=e,{useCache:r}=E({cacheProvidedAtInception:n}),{useCssAndCx:u}=d({useCache:r});return{makeStyles:function(e){let{name:n,uniqId:l="".concat(b++)}=null!=e?e:{},c="object"!=typeof n?n:Object.keys(n)[0];return function(e){let n="function"==typeof e?e:()=>e;return function(e,f){let d=t(),{css:p,cx:y}=u(),b=r(),g=(0,i.useMemo)(()=>{let t={},r=n(d,e,"undefined"!=typeof Proxy&&new Proxy({},{get:(e,n)=>("symbol"==typeof n&&s(!1),t[n]="".concat(b.key,"-").concat(l).concat(void 0!==c?"-".concat(c):"","-").concat(n,"-ref"))})||{}),i=o(a(r).map(e=>{let n=r[e];return n.label||(n.label="".concat(void 0!==c?"".concat(c,"-"):"").concat(e)),[e,"".concat(p(n)).concat(e in t?" ".concat(t[e]):"")]}));return a(t).forEach(e=>{e in i||(i[e]=t[e])}),i},[b,p,y,d,h(e)]);{let e=null==f?void 0:f.props.classes;g=(0,i.useMemo)(()=>m(g,e,y),[g,h(e),y])}{let e=v({classes:g,css:p,cx:y,name:null!=c?c:"makeStyle no name",idOfUseStyles:l,muiStyleOverridesParams:f,theme:d});void 0!==e.classes&&(g=e.classes),void 0!==e.css&&(p=e.css),void 0!==e.cx&&(y=e.cx)}return{classes:g,theme:d,css:p,cx:y}}}},useStyles:function(){let e=t(),{css:n,cx:r}=u();return{theme:e,css:n,cx:r}}}}let x=(0,i.createContext)(void 0),{createUseCache:E}={createUseCache:function(e){let{cacheProvidedAtInception:t}=e;return{useCache:function(){var e;let n=y(),r=(0,i.useContext)(x),o=null!=(e=null!=t?t:r)?e:n;if(null===o)throw Error("In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.\nMUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,\nMUI needs an Emotion cache to be provided for SSR to work.\nHere is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/\nTSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr");return o}}}};function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}let S=new WeakMap,w="getClasses should only be used in conjunction with withStyles";function _(e){let t=e.classes;if(void 0===t)throw Error(w);let n=S.get(t);if(void 0===n)throw Error(w);return n}function C(e){let t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(e=>{let r=n[e];Object.keys(r).forEach(n=>{var i;return t[n]={...null!=(i=t[n])?i:{},[e]:r[n]}})}),t}let O=(()=>{let e="object"==typeof document&&"function"==typeof(null==document?void 0:document.getElementById),t="undefined"!=typeof jest,n="undefined"!=typeof mocha,r="undefined"!=typeof __vitest_worker__;return!e&&!t&&!n&&!r})();function j(e){P=0,D.splice(0,D.length);let{useContext:t,usePlugin:n,cache:r}=e,{useCache:i}=E({cacheProvidedAtInception:r}),{useCssAndCx:u}=d({useCache:i});return{tss:function e(t){let{useContext:n,useCache:r,useCssAndCx:i,usePlugin:u,name:l,doesUseNestedSelectors:c}=t;return{withParams:()=>e({...t}),withName:n=>e({...t,name:"object"!=typeof n?n:Object.keys(n)[0]}),withNestedSelectors:()=>e({...t,doesUseNestedSelectors:!0}),create:e=>{let t=`x${P++}`;if(void 0!==l)for(;;){let e=D.find(e=>e.name===l);if(void 0===e)break;D.splice(D.indexOf(e),1)}let f="function"==typeof e?e:()=>e;return function(d){var p,v,y;let{classesOverrides:b,...g}=null!=d?d:{},x=n(),{css:E,cx:k}=i(),S=r(),w=function(e){let{cache:t,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:i,idOfUseStyles:o,context:u,getClasses:l}=e;n:{let e=N.get(t);if(void 0===e)break n;let s=e.get(n);if(void 0===s)break n;let l=s.get(r);if(void 0===l)break n;let c=l.get(i);if(void 0===c)break n;let f=c.find(({context:e})=>{if(e===u)return!0;if(a(e).length!==a(u).length)return!1;for(let t in e)if(h(e[t])!==h(u[t]))return!1;return!0});if(void 0===f)break n;if((null==f?void 0:f.idOfUseStyles)!==o){c.splice(c.indexOf(f),1);break n}return f.result}let c=l();{N.has(t)||N.set(t,new WeakMap);let e=N.get(t);s(void 0!==e),e.has(n)||e.set(n,new Map);let a=e.get(n);s(void 0!==a),a.has(r)||(a.size>200&&a.clear(),a.set(r,new Map));let l=a.get(r);if(s(void 0!==l),!l.has(i)){r:{let e="string"==typeof i?257:5;if(l.size<e)break r;l.clear()}l.set(i,[])}let f=l.get(i);s(void 0!==f),f.length>5&&(f=[]),f.push({idOfUseStyles:o,context:u,result:c})}return c}({cache:S,cssObjectByRuleNameOrGetCssObjectByRuleName:e,classesOverridesRef:h(b),paramsAndPluginParamsRef:h(g),idOfUseStyles:t,context:x,getClasses:()=>{let e={},n=f({...d,...x,...!c?{}:{classes:"undefined"==typeof Proxy?{}:new Proxy({},{get:(n,r)=>{if("symbol"==typeof r&&s(!1),O&&void 0===l)throw Error('tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.\nSolution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.');if(void 0!==l){let e=D.find(e=>e.name===l&&e.idOfUseStyles===t);void 0===e&&D.push(e={name:l,idOfUseStyles:t,nestedSelectorRuleNames:new Set}),e.nestedSelectorRuleNames.add(r)}i:if(void 0!==l){if(void 0===D.find(e=>e.name===l&&e.idOfUseStyles!==t&&e.nestedSelectorRuleNames.has(r)))break i;throw Error(`tss-react: There are in your codebase two different useStyles named "${l}" that both use use the nested selector ${r}. This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope. Solution: Ensure each useStyles using nested selectors has a unique name. Use: tss.withName("UniqueName").withNestedSelectors<...>()...`)}return e[r]=`${S.key}-${void 0!==l?l:t}-${r}-ref`}})}}),r=o(a(n).map(t=>{let r=n[t];return r.label||(r.label=`${void 0!==l?`${l}-`:""}${t}`),[t,`${E(r)}${t in e?` ${e[t]}`:""}`]}));return a(e).forEach(t=>{t in r||(r[t]=e[t])}),r=m(r,b,k)}}),_=u({classes:w,css:E,cx:k,idOfUseStyles:t,name:l,...x,...g});return{classes:null!=(p=_.classes)?p:w,css:null!=(v=_.css)?v:E,cx:null!=(y=_.cx)?y:k,...x}}}}}({useContext:t,useCache:i,useCssAndCx:u,usePlugin:null!=n?n:({classes:e,cx:t,css:n})=>({classes:e,cx:t,css:n}),name:void 0,doesUseNestedSelectors:!1})}}let P=0,D=[],N=new WeakMap,{tss:M}=j({useContext:()=>({})});M.create({});let{makeStyles:L,withStyles:T}=function(e){return{...g(e),...function(e){let{useTheme:t,cache:n}=e,{makeStyles:r}=g({useTheme:t,cache:n});function o(e,t,n){let o="string"==typeof e?(()=>{let t=function({children:t,...n}){return(0,i.createElement)(e,n,t)};return Object.defineProperty(t,"name",{value:k(e)}),t})():e,a=(()=>{let e;{let{name:e}=null!=n?n:{};if(void 0!==e)return"object"!=typeof e?e:Object.keys(e)[0]}o:{let t=o.displayName;if("string"!=typeof t||""===t)break o;e=t}a:if(void 0===e){let t=o.name;if("string"!=typeof t||""===t)break a;e=t}if(void 0!==e)return(e=(e=e.replace(/\$/g,"usd")).replace(/\(/g,"_").replace(/\)/g,"_")).replace(/[^a-zA-Z0-9-_]/g,"_")})(),s=r({...n,name:a})("function"==typeof t?(e,n,r)=>C(t(e,n,r)):C(t)),u=(0,i.forwardRef)(function(t,n){let{className:r,classes:a,...u}=t,{classes:l,cx:c}=s(t,{props:t}),f=c(l.root,r);return S.set(l,{...l,root:f}),i.createElement(o,{ref:n,className:!function(e){for(let t in e)if("root"!==t)return!0;return!1}(l)?f:r,..."string"==typeof e?{}:{classes:l},...u})});return void 0!==a&&(u.displayName=`${k(a)}WithStyles`,Object.defineProperty(u,"name",{value:u.displayName})),u}return o.getClasses=_,{withStyles:o}}(e)}}({useTheme:r.A}),{tss:A}=j({useContext:function(){return{theme:(0,r.A)()}},usePlugin:v});A.create({})},35845:(e,t,n)=>{n.d(t,{A:()=>s,I:()=>a});var r=n(7620),i=n(54568);let o=r.createContext(),a=()=>{let e=r.useContext(o);return null!=e&&e},s=function(e){let{value:t,...n}=e;return(0,i.jsx)(o.Provider,{value:null==t||t,...n})}},71620:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(7620);let i=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},o=e=>{let t=(e=>e?i(e):i)(e),n=e=>(function(e,t=e=>e){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},a=e=>e?o(e):o},82156:(e,t,n)=>{n.d(t,{A:()=>s});var r,i=n(7620);let o=0,a={...r||(r=n.t(i,2))}.useId;function s(e){if(void 0!==a){let t=a();return null!=e?e:t}let[t,n]=i.useState(e),r=e||t;return i.useEffect(()=>{null==t&&(o+=1,n("mui-".concat(o)))},[t]),r}},93035:(e,t,n)=>{n.d(t,{A:()=>r});let r={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"}},96238:(e,t,n)=>{n.d(t,{n:()=>eS,dh:()=>ew});var r,i,o,a,s,u,l=n(7620),c=n(97509);let f=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r},d={data:""},p=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,h=/\/\*[^]*?\*\/| +/g,m=/\n+/g,v=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?v(a,o):o+"{"+v(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=v(a,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=v.p?v.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},y={},b=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+b(e[n]);return t}return e};function g(e){let t,n,r,i=this||{},o=e.call?e(i.p):e;return((e,t,n,r,i)=>{var o,a,s,u;let l=b(e),c=y[l]||(y[l]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(l));if(!y[c]){let t=l!==e?e:(e=>{let t,n,r=[{}];for(;t=p.exec(e.replace(h,""));)t[4]?r.shift():t[3]?(n=t[3].replace(m," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(m," ").trim();return r[0]})(e);y[c]=v(i?{["@keyframes "+c]:t}:t,n?"":"."+c)}let f=n&&y.g?y.g:null;return n&&(y.g=y[c]),o=y[c],a=t,s=r,(u=f)?a.data=a.data.replace(u,o):-1===a.data.indexOf(o)&&(a.data=s?o+a.data:a.data+o),c})(o.unshift?o.raw?(t=[].slice.call(arguments,1),n=i.p,o.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":v(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"")):o.reduce((e,t)=>Object.assign(e,t&&t.call?t(i.p):t),{}):o,(r=i.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||d),i.g,i.o,i.k)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function w(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}g.bind({g:1}),g.bind({k:1});var C=function(){return""},O=l.createContext({enqueueSnackbar:C,closeSnackbar:C}),j={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},P=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},D=function(e){return""+P(e.vertical)+P(e.horizontal)},N=function(e){return!!e||0===e},M="unmounted",L="exited",T="entering",A="entered",R="exiting",z=function(e){function t(t){var n,r=e.call(this,t)||this,i=t.appear;return r.appearStatus=null,t.in?i?(n=L,r.appearStatus=T):n=A:n=t.unmountOnExit||t.mountOnEnter?M:L,r.state={status:n},r.nextCallback=null,r}S(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===M?{status:L}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==T&&n!==A&&(t=T):(n===T||n===A)&&(t=R)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===T?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===L&&this.setState({status:M})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.getTimeouts();if(!e&&!n)return void this.safeSetState({status:A},function(){t.props.onEntered&&t.props.onEntered(t.node,e)});this.props.onEnter&&this.props.onEnter(this.node,e),this.safeSetState({status:T},function(){t.props.onEntering&&t.props.onEntering(t.node,e),t.onTransitionEnd(r.enter,function(){t.safeSetState({status:A},function(){t.props.onEntered&&t.props.onEntered(t.node,e)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();if(!t)return void this.safeSetState({status:L},function(){e.props.onExited&&e.props.onExited(e.node)});this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:R},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:L},function(){e.props.onExited&&e.props.onExited(e.node)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;if(!this.node||n)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===M)return null;var t=this.props;return(0,t.children)(e,w(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},E(t,[{key:"node",get:function(){var e,t=null==(e=this.props.nodeRef)?void 0:e.current;if(!t)throw Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(l.Component);function I(){}function F(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function W(e,t){return(0,l.useMemo)(function(){return null==e&&null==t?null:function(n){F(e,n),F(t,n)}},[e,t])}function q(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,i=e.mode;return{duration:"object"==typeof t?t[i]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}z.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:I,onEntering:I,onEntered:I,onExit:I,onExiting:I,onExited:I};var H={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},V=function(e){e.scrollTop=e.scrollTop},$=function(e){return Math.round(e)+"ms"};function U(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,i=void 0===r?300:r,o=n.easing,a=void 0===o?H.easeInOut:o,s=n.delay,u=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map(function(e){return e+" "+("string"==typeof i?i:$(i))+" "+a+" "+("string"==typeof u?u:$(u))}).join(",")}function B(e){return(e&&e.ownerDocument||document).defaultView||window}function X(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),i=B(t);if(t.fakeTransform)n=t.fakeTransform;else{var o=i.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var u=n.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(i.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(i.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Z=(0,l.forwardRef)(function(e,t){var n=e.children,r=e.direction,i=void 0===r?"down":r,o=e.in,a=e.style,s=e.timeout,u=void 0===s?0:s,c=e.onEnter,f=e.onEntered,d=e.onExit,p=e.onExited,h=w(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,l.useRef)(null),v=W(n.ref,m),y=W(v,t),b=(0,l.useCallback)(function(){m.current&&X(i,m.current)},[i]);return(0,l.useEffect)(function(){if(!o&&"down"!==i&&"right"!==i){var e=function(e,t){var n;function r(){for(var r=this,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){e.apply(r,o)},t)}return void 0===t&&(t=166),r.clear=function(){clearTimeout(n)},r}(function(){m.current&&X(i,m.current)}),t=B(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[i,o]),(0,l.useEffect)(function(){o||b()},[o,b]),(0,l.createElement)(z,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){X(i,e),V(e),c&&c(e,t)},onEntered:f,onEntering:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||H.easeOut,n=q({timeout:u,mode:"enter",style:k({},a,{transitionTimingFunction:t})});e.style.webkitTransition=U("-webkit-transform",n),e.style.transition=U("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||H.sharp,n=q({timeout:u,mode:"exit",style:k({},a,{transitionTimingFunction:t})});e.style.webkitTransition=U("-webkit-transform",n),e.style.transition=U("transform",n),X(i,e),d&&d(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)},in:o,timeout:u},h),function(e,t){return(0,l.cloneElement)(n,k({ref:y,style:k({visibility:"exited"!==e||o?void 0:"hidden"},a,{},n.props.style)},t))})});Z.displayName="Slide";var K=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},Q={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(K,null,l.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},null),warning:l.createElement(function(){return l.createElement(K,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(K,null,l.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},null),info:l.createElement(function(){return l.createElement(K,null,l.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Z,transitionDuration:{enter:225,exit:195}},G=function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:Q.autoHideDuration},J=function(e,t){var n=function(e,t){return t.some(function(t){return typeof e===t})};return n(e,["string","number"])?e:n(e,["object"])?k({},Q.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?k({},Q.transitionDuration,{},t):Q.transitionDuration};function Y(e){return Object.entries(e).reduce(function(e,t){var n,r=t[0],i=t[1];return k({},e,((n={})[r]=g(i),n))},{})}var ee={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(e){return"notistack-MuiContent-"+e}},et=Y({root:{height:0},entered:{height:"auto"}}),en=(0,l.forwardRef)(function(e,t){var n=e.children,r=e.in,i=e.onExited,o=(0,l.useRef)(null),a=(0,l.useRef)(null),s=W(t,a),u=function(){return o.current?o.current.clientHeight:0};return(0,l.createElement)(z,{in:r,unmountOnExit:!0,onEnter:function(e){e.style.height="0px"},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=u(),n=q({timeout:175,mode:"enter"}),r=n.duration,i=n.easing;e.style.transitionDuration="string"==typeof r?r:r+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=i||""},onExit:function(e){e.style.height=u()+"px"},onExited:i,onExiting:function(e){V(e);var t=q({timeout:175,mode:"exit"}),n=t.duration,r=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height="0px",e.style.transitionTimingFunction=r||""},nodeRef:a,timeout:175},function(e,t){return(0,l.createElement)("div",Object.assign({ref:s,className:f(et.root,"entered"===e&&et.entered),style:k({pointerEvents:"all",overflow:"hidden",minHeight:"0px",transition:U("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!r&&{visibility:"hidden"})},t),(0,l.createElement)("div",{ref:o,className:ee.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});en.displayName="Collapse";var er={right:"left",left:"right",bottom:"up",top:"down"},ei=function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,n){var r;return k({},t,((r={})[n]=e[n],r))},{})},eo=function(){};function ea(e,t){return e.reduce(function(e,n){return null==n?e:function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=[].concat(i);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}},eo)}var es="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function eu(e){var t=(0,l.useRef)(e);return es(function(){t.current=e}),(0,l.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var el=(0,l.forwardRef)(function(e,t){var n=e.children,r=e.className,i=e.autoHideDuration,o=e.disableWindowBlurListener,a=void 0!==o&&o,s=e.onClose,u=e.id,c=e.open,d=e.SnackbarProps,p=void 0===d?{}:d,h=(0,l.useRef)(),m=eu(function(){s&&s.apply(void 0,arguments)}),v=eu(function(e){s&&null!=e&&(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){m(null,"timeout",u)},e))});(0,l.useEffect)(function(){return c&&v(i),function(){h.current&&clearTimeout(h.current)}},[c,i,v]);var y=function(){h.current&&clearTimeout(h.current)},b=(0,l.useCallback)(function(){null!=i&&v(.5*i)},[i,v]);return(0,l.useEffect)(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),(0,l.createElement)("div",Object.assign({ref:t},p,{className:f(ee.Snackbar,r),onMouseEnter:function(e){p.onMouseEnter&&p.onMouseEnter(e),y()},onMouseLeave:function(e){p.onMouseLeave&&p.onMouseLeave(e),b()}}),n)});el.displayName="Snackbar";var ec=Y({root:((r={display:"flex",flexWrap:"wrap",flexGrow:1})[j.upSm]={flexGrow:"initial",minWidth:"288px"},r)}),ef=(0,l.forwardRef)(function(e,t){var n=e.className,r=w(e,["className"]);return l.createElement("div",Object.assign({ref:t,className:f(ec.root,n)},r))});ef.displayName="SnackbarContent";var ed=Y({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),ep="notistack-snackbar",eh=(0,l.forwardRef)(function(e,t){var n=e.id,r=e.message,i=e.action,o=e.iconVariant,a=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=o[a],p=i;return"function"==typeof p&&(p=p(n)),l.createElement(ef,{ref:t,role:"alert","aria-describedby":ep,style:u,className:f(ee.MuiContent,ee.MuiContentVariant(a),ed.root,ed[a],c,!s&&d&&ed.lessPadding)},l.createElement("div",{id:ep,className:ed.message},s?null:d,r),p&&l.createElement("div",{className:ed.action},p))});eh.displayName="MaterialDesignContent";var em=(0,l.memo)(eh),ev=Y({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ey=function(e){var t,n=(0,l.useRef)(),r=(0,l.useState)(!0),i=r[0],o=r[1],a=ea([e.snack.onClose,e.onClose]),s=(0,l.useCallback)(function(){n.current=setTimeout(function(){o(function(e){return!e})},125)},[]);(0,l.useEffect)(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=e.snack,c=e.classes,d=e.Component,p=(0,l.useMemo)(function(){return ei(c)},[c]),h=u.open,m=u.SnackbarProps,v=u.TransitionComponent,y=u.TransitionProps,b=u.transitionDuration,g=u.disableWindowBlurListener,x=u.content,E=w(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),S=k({direction:"center"!==(t=E.anchorOrigin).horizontal?er[t.horizontal]:er[t.vertical],timeout:b},y),_=x;"function"==typeof _&&(_=_(E.id,E.message));var C=["onEnter","onEntered","onExit","onExited"].reduce(function(t,n){var r;return k({},t,((r={})[n]=ea([e.snack[n],e[n]],E.id),r))},{});return l.createElement(en,{in:i,onExited:C.onExited},l.createElement(el,{open:h,id:E.id,disableWindowBlurListener:g,autoHideDuration:E.autoHideDuration,className:f(ev.wrappedRoot,p.root,p["anchorOrigin"+D(E.anchorOrigin)]),SnackbarProps:m,onClose:a},l.createElement(v,Object.assign({},S,{appear:!0,in:h,onExit:C.onExit,onExited:s,onEnter:C.onEnter,onEntered:ea([C.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),_||l.createElement(void 0===d?em:d,Object.assign({},E)))))},eb={view:{default:20,dense:4},snackbar:{default:6,dense:2}},eg="."+ee.CollapseWrapper,ex=Y({root:((i={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:U(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"})[eg]={padding:eb.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},i.maxWidth="calc(100% - "+2*eb.view.default+"px)",i[j.downXs]={width:"100%",maxWidth:"calc(100% - 32px)"},i),rootDense:((o={})[eg]={padding:eb.snackbar.dense+"px 0px"},o),top:{top:eb.view.default-eb.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:eb.view.default-eb.snackbar.default+"px",flexDirection:"column-reverse"},left:((a={left:eb.view.default+"px"})[j.upSm]={alignItems:"flex-start"},a[j.downXs]={left:"16px"},a),right:((s={right:eb.view.default+"px"})[j.upSm]={alignItems:"flex-end"},s[j.downXs]={right:"16px"},s),center:((u={left:"50%",transform:"translateX(-50%)"})[j.upSm]={alignItems:"center"},u)}),eE=(0,l.memo)(function(e){var t=e.classes,n=void 0===t?{}:t,r=e.anchorOrigin,i=e.dense,o=e.children,a=f(ee.SnackbarContainer,ex[r.vertical],ex[r.horizontal],ex.root,n.containerRoot,n["containerAnchorOrigin"+D(r)],i&&ex.rootDense);return l.createElement("div",{className:a},o)}),ek=function(e){return!("string"==typeof e||(0,l.isValidElement)(e))},eS=function(e){function t(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw Error("enqueueSnackbar called with invalid argument");var r,i=ek(e)?e:t,o=ek(e)?e.message:e,a=i.key,s=i.preventDuplicate,u=w(i,["key","preventDuplicate"]),l=N(a),c=l?a:new Date().getTime()+Math.random(),d=(r=n.props,function(e,t){return(void 0===t&&(t=!1),t)?k({},Q[e],{},r[e],{},u[e]):"autoHideDuration"===e?G(u.autoHideDuration,r.autoHideDuration):"transitionDuration"===e?J(u.transitionDuration,r.transitionDuration):u[e]||r[e]||Q[e]}),p=k({id:c},u,{message:o,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:f(n.props.className,u.className)});return p.persist&&(p.autoHideDuration=void 0),n.setState(function(e){if(void 0===s&&n.props.preventDuplicate||s){var t=function(e){return l?e.id===c:e.message===o},r=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(r||i)return e}return n.handleDisplaySnack(k({},e,{queue:[].concat(e.queue,[p])}))}),c},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?k({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,r=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===n.maxSnack&&(r=!0);var i=e.snacks.map(function(e){return t||e.persist&&!r?k({},e):(t=!0,e.entered)?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),k({},e,{open:!1})):k({},e,{requestClose:!0})});return k({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!N(r))throw Error("handleEnteredSnack Cannot be called with undefined key");n.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===r?k({},e,{entered:!0}):k({},e)})}})},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var i=void 0===r;n.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return i||e.id===r?e.entered?k({},e,{open:!1}):k({},e,{requestClose:!0}):k({},e)}),queue:n.filter(function(e){return e.id!==r})}})},n.closeSnackbar=function(e){var t=n.state.snacks.find(function(t){return t.id===e});N(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!N(t))throw Error("handleExitedSnack Cannot be called with undefined key");n.setState(function(e){var r=n.processQueue(k({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===r.queue.length?r:n.handleDismissOldest(r)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(_(n)),closeSnackbar:n.closeSnackbar.bind(_(n))}},n}return S(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,i=n.children,o=n.dense,a=void 0!==o&&o,s=n.Components,u=void 0===s?{}:s,f=n.classes,d=this.state.snacks.reduce(function(e,t){var n,r=D(t.anchorOrigin),i=e[r]||[];return k({},e,((n={})[r]=[].concat(i,[t]),n))},{}),p=Object.keys(d).map(function(t){var n=d[t],r=n[0];return l.createElement(eE,{key:t,dense:a,anchorOrigin:r.anchorOrigin,classes:f},n.map(function(t){return l.createElement(ey,{key:t.id,snack:t,classes:f,Component:u[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:ea([e.handleExitedSnack,e.props.onExited],t.id),onEntered:ea([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return l.createElement(O.Provider,{value:t},i,r?(0,c.createPortal)(p,r):p)},E(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Q.maxSnack}}]),t}(l.Component),ew=function(){return(0,l.useContext)(O)}}}]);