UNPKG

40 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("jss")):"function"==typeof define&&define.amd?define(["exports","react","jss"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reactJss={},e.React,e.jss)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function l(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}function s(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var u=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case i:case l:case a:return e;default:switch(e=e&&e.$$typeof){case u:case f:case s:return e;default:return t}}case o:return t}}}function g(e){return y(e)===c}t.typeOf=y,t.AsyncMode=c,t.ConcurrentMode=c,t.ContextConsumer=u,t.ContextProvider=s,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Profiler=l,t.Portal=o,t.StrictMode=a,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===l||e===a||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return g(e)},t.isConcurrentMode=g,t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===l},t.isPortal=function(e){return y(e)===o},t.isStrictMode=function(e){return y(e)===a}})),c=(l((function(e,t){})),l((function(e){e.exports=u}))),f={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={};p[c.ForwardRef]={$$typeof:!0,render:!0};var m=Object.defineProperty,y=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,v=Object.prototype;var x=function e(t,r,n){if("string"!=typeof r){if(v){var o=b(r);o&&o!==v&&e(t,o,n)}var i=y(r);g&&(i=i.concat(g(r)));for(var a=p[t.$$typeof]||f,l=p[r.$$typeof]||f,s=0;s<i.length;++s){var u=i[s];if(!(d[u]||n&&n[u]||l&&l[u]||a&&a[u])){var c=h(r,u);try{m(t,u,c)}catch(e){}}}return t}return t},w=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;
2/*
3 object-assign
4 (c) Sindre Sorhus
5 @license MIT
6 */function P(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}module.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=P(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))k.call(r,a)&&(o[a]=r[a]);if(w){n=w(r);for(var l=0;l<n.length;l++)S.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o};function O(){}l((function(e){e.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=O,r.PropTypes=r,r}()}));module.exports=require("./cjs/react-is.production.min.js");var j=s(Object.freeze({__proto__:null})),T={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},R={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A={};function E(e){return j.isMemo(e)?R:A[e.$$typeof]||T}A[j.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var M=Object.defineProperty,N=Object.getOwnPropertyNames,I=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,$=Object.prototype;var F=function e(t,r,n){if("string"!=typeof r){if($){var o=z(r);o&&o!==$&&e(t,o,n)}var i=N(r);I&&(i=i.concat(I(r)));for(var a=E(t),l=E(r),s=0;s<i.length;++s){var u=i[s];if(!(C[u]||n&&n[u]||l&&l[u]||a&&a[u])){var c=_(r,u);try{M(t,u,c)}catch(e){}}}return t}return t};l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}}));function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e){return function(t){var r,n;function i(){for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return D(U(U(r=t.call.apply(t,[this].concat(i))||this)),"cachedTheme",void 0),D(U(U(r)),"lastOuterTheme",void 0),D(U(U(r)),"lastTheme",void 0),D(U(U(r)),"renderProvider",(function(t){var n=r.props.children;return o.default.createElement(e.Provider,{value:r.getTheme(t)},n)})),r}n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var a=i.prototype;return a.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?L({},e,r):r}return this.cachedTheme},a.render=function(){return this.props.children?o.default.createElement(e.Consumer,null,this.renderProvider):null},i}(o.default.Component)}function V(e){return function(t){var r=o.default.forwardRef((function(r,n){return o.default.createElement(e.Consumer,null,(function(e){return o.default.createElement(t,L({theme:e,ref:n},r))}))}));return F(r,t),r}}function q(e){return function(){return o.default.useContext(e)}}function H(e){return{context:e,withTheme:V(e),useTheme:q(e),ThemeProvider:W(e)}}var G=t.createContext(),B=H(G),X=B.withTheme,Y=B.ThemeProvider,J=B.useTheme,Z=Number.MIN_SAFE_INTEGER||-1e9,K=function(){return Z++},Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee="object"===("undefined"==typeof window?"undefined":Q(window))&&"object"===("undefined"==typeof document?"undefined":Q(document))&&9===document.nodeType,te=t.createContext({classNamePrefix:"",disableStylesGeneration:!1}),re=new Map,ne=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new r.SheetsManager),n[t];var o=re.get(t);return o||(o=new r.SheetsManager,re.set(t,o)),o},oe=Date.now(),ie="fnValues"+oe,ae="fnStyle"+ ++oe;var le=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),se=function(e){return e&&e[le]&&e===e[le]()},ue=/;\n/,ce=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(ue),n=0;n<r.length;n++){var o=(r[n]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var a=o.substr(0,i).trim(),l=o.substr(i+1).trim();t[a]=l}}}return t}(e.style))};var fe="@global",de="@global ",pe=function(){function e(e,t,n){for(var o in this.type="global",this.at=fe,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RuleList(i({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),me=function(){function e(e,t,r){this.type="global",this.at=fe,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(de.length);this.rule=r.jss.createRule(n,t,i({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ye=/\s*,\s*/g;function ge(e,t){for(var r=e.split(ye),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function he(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===fe)return new pe(e,t,r);if("@"===e[0]&&e.substr(0,de.length)===de)return new me(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[fe]:null;if(o){for(var a in o)t.addRule(a,o[a],i({},r,{selector:ge(a,e.selector)}));delete n[fe]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,fe.length)===fe){var a=ge(o.substr(fe.length),e.selector);t.addRule(a,n[o],i({},r,{selector:a})),delete n[o]}}(e,t))}}}var be=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},ve="extendCurrValue"+Date.now();function xe(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var a=e.extend[o];xe("string"==typeof a?i({},e,{extend:a}):e.extend[o],t,r,n)}else for(var l in e.extend)"extend"!==l?be(e.extend[l])?(l in n||(n[l]={}),xe(e.extend[l],t,r,n[l])):n[l]=e.extend[l]:xe(e.extend.extend,t,r,n);else{if(!r)return;var s=r.getRule(e.extend);if(!s)return;if(s===t)return;var u=s.options.parent;u&&xe(u.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var o in e)"extend"!==o&&(be(n[o])&&be(e[o])?xe(e[o],t,r,n[o]):be(e[o])?n[o]=xe(e[o],t,r):n[o]=e[o])}(e,t,r,n),n}var we=/\s*,\s*/g,ke=/&/g,Se=/\$([\w-]+)/g;function Pe(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(we),n=e.split(we),o="",i=0;i<r.length;i++)for(var a=r[i],l=0;l<n.length;l++){var s=n[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(ke,a):a+" "+s}return o}function r(e,t,r){if(r)return i({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=i({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,a){if("style"!==o.type)return n;var l,s,u=o,c=u.options.parent;for(var f in n){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(l=r(u,c,l),d){var m=t(f,u.selector);s||(s=e(c,a)),m=m.replace(Se,s);var y=u.key+"-"+f;"replaceRule"in c?c.replaceRule(y,n[f],i({},l,{selector:m})):c.addRule(y,n[f],i({},l,{selector:m}))}else p&&c.addRule(f,{},l).addRule(u.key,n[f],{selector:u.selector});delete n[f]}}return n}}}function Oe(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++){if(!Oe(e,t[r]))return!1}return!0}if(t.indexOf(" ")>-1)return Oe(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var o=n.getRule(t.substr(1));return!!o&&(o!==e&&(n.classes[e.key]+=" "+n.classes[o.key],!0))}return n.classes[e.key]+=" "+t,!0}function je(){return{onProcessStyle:function(e,t){return"composes"in e?(Oe(t,e.composes),delete e.composes,e):e}}}var Te=/[A-Z]/g,Ce=/^ms-/,Re={};function Ae(e){return"-"+e.toLowerCase()}function Ee(e){if(Re.hasOwnProperty(e))return Re[e];var t=e.replace(Te,Ae);return Re[e]=Ce.test(t)?"-"+t:t}function Me(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Ee(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Me):t.fallbacks=Me(e.fallbacks)),t}var Ne=r.hasCSSTOMSupport&&CSS?CSS.px:"px",Ie=r.hasCSSTOMSupport&&CSS?CSS.ms:"ms",_e=r.hasCSSTOMSupport&&CSS?CSS.percent:"%";function ze(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var $e=ze({"animation-delay":Ie,"animation-duration":Ie,"background-position":Ne,"background-position-x":Ne,"background-position-y":Ne,"background-size":Ne,border:Ne,"border-bottom":Ne,"border-bottom-left-radius":Ne,"border-bottom-right-radius":Ne,"border-bottom-width":Ne,"border-left":Ne,"border-left-width":Ne,"border-radius":Ne,"border-right":Ne,"border-right-width":Ne,"border-top":Ne,"border-top-left-radius":Ne,"border-top-right-radius":Ne,"border-top-width":Ne,"border-width":Ne,"border-block":Ne,"border-block-end":Ne,"border-block-end-width":Ne,"border-block-start":Ne,"border-block-start-width":Ne,"border-block-width":Ne,"border-inline":Ne,"border-inline-end":Ne,"border-inline-end-width":Ne,"border-inline-start":Ne,"border-inline-start-width":Ne,"border-inline-width":Ne,"border-start-start-radius":Ne,"border-start-end-radius":Ne,"border-end-start-radius":Ne,"border-end-end-radius":Ne,margin:Ne,"margin-bottom":Ne,"margin-left":Ne,"margin-right":Ne,"margin-top":Ne,"margin-block":Ne,"margin-block-end":Ne,"margin-block-start":Ne,"margin-inline":Ne,"margin-inline-end":Ne,"margin-inline-start":Ne,padding:Ne,"padding-bottom":Ne,"padding-left":Ne,"padding-right":Ne,"padding-top":Ne,"padding-block":Ne,"padding-block-end":Ne,"padding-block-start":Ne,"padding-inline":Ne,"padding-inline-end":Ne,"padding-inline-start":Ne,"mask-position-x":Ne,"mask-position-y":Ne,"mask-size":Ne,height:Ne,width:Ne,"min-height":Ne,"max-height":Ne,"min-width":Ne,"max-width":Ne,bottom:Ne,left:Ne,top:Ne,right:Ne,inset:Ne,"inset-block":Ne,"inset-block-end":Ne,"inset-block-start":Ne,"inset-inline":Ne,"inset-inline-end":Ne,"inset-inline-start":Ne,"box-shadow":Ne,"text-shadow":Ne,"column-gap":Ne,"column-rule":Ne,"column-rule-width":Ne,"column-width":Ne,"font-size":Ne,"font-size-delta":Ne,"letter-spacing":Ne,"text-decoration-thickness":Ne,"text-indent":Ne,"text-stroke":Ne,"text-stroke-width":Ne,"word-spacing":Ne,motion:Ne,"motion-offset":Ne,outline:Ne,"outline-offset":Ne,"outline-width":Ne,perspective:Ne,"perspective-origin-x":_e,"perspective-origin-y":_e,"transform-origin":_e,"transform-origin-x":_e,"transform-origin-y":_e,"transform-origin-z":_e,"transition-delay":Ie,"transition-duration":Ie,"vertical-align":Ne,"flex-basis":Ne,"shape-margin":Ne,size:Ne,gap:Ne,grid:Ne,"grid-gap":Ne,"row-gap":Ne,"grid-row-gap":Ne,"grid-column-gap":Ne,"grid-template-rows":Ne,"grid-template-columns":Ne,"grid-auto-rows":Ne,"grid-auto-columns":Ne,"box-shadow-x":Ne,"box-shadow-y":Ne,"box-shadow-blur":Ne,"box-shadow-spread":Ne,"font-line-height":Ne,"text-shadow-x":Ne,"text-shadow-y":Ne,"text-shadow-blur":Ne});function Fe(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Fe(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Fe(o,t[o],r);else for(var i in t)t[i]=Fe(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||$e[e];return!a||0===t&&a===Ne?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function De(e){void 0===e&&(e={});var t=ze(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Fe(n,e[n],t);return e},onChangeValue:function(e,r){return Fe(r,e,t)}}}var Le={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},Ue={position:!0,size:!0},We={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},Ve={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function qe(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?qe(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return He(e,t,r,!1,!0)}))}(e,t,n):[e]}function He(e,t,r,n,o){if(!We[t]&&!Ve[t])return[];var i=[];if(Ve[t]&&(e=function(e,t,r,n){for(var o in r){var i=r[o];if(void 0!==e[o]&&(n||!t.prop(i))){var a,l=Ge((a={},a[i]=e[o],a),t)[i];n?t.style.fallbacks[i]=l:t.style[i]=l}delete e[o]}return e}(e,r,Ve[t],n)),Object.keys(e).length)for(var a in We[t])e[a]?Array.isArray(e[a])?i.push(null===Ue[a]?e[a]:e[a].join(" ")):i.push(e[a]):null!=We[t][a]&&i.push(We[t][a]);return!i.length||o?i:[i]}function Ge(e,t,r){for(var n in e){var o=e[n];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===n){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=Ge(e.fallbacks[i],t,!0);continue}e[n]=qe(o,n,Le,t),e[n].length||delete e[n]}}else if("object"==typeof o){if("fallbacks"===n){e.fallbacks=Ge(e.fallbacks,t,!0);continue}e[n]=He(o,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ye="",Je="",Ze="",Ke="",Qe=ee&&"ontouchstart"in document.documentElement;if(ee){var et={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},tt=document.createElement("p").style;for(var rt in et)if(rt+"Transform"in tt){Ye=rt,Je=et[rt];break}"Webkit"===Ye&&"msHyphens"in tt&&(Ye="ms",Je=et.ms,Ke="edge"),"Webkit"===Ye&&"-apple-trailing-word"in tt&&(Ze="apple")}var nt=Ye,ot=Je,it=Ze,at=Ke,lt=Qe;var st={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===nt?"-webkit-"+e:ot+e)}},ut={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===nt?ot+"print-"+e:e)}},ct=/[-\s]+(.)?/g;function ft(e,t){return t?t.toUpperCase():""}function dt(e){return e.replace(ct,ft)}function pt(e){return dt("-"+e)}var mt,yt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===nt){var r="mask-image";if(dt(r)in t)return e;if(nt+pt(r)in t)return ot+e}return e}},gt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==it||lt?e:ot+e)}},ht={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:ot+e)}},bt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:ot+e)}},vt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===nt||"ms"===nt&&"edge"!==at?ot+e:e)}},xt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===nt||"ms"===nt||"apple"===it?ot+e:e)}},wt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===nt?"WebkitColumn"+pt(e)in t&&ot+"column-"+e:"Moz"===nt&&("page"+pt(e)in t&&"page-"+e))}},kt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===nt)return e;var r=e.replace("-inline","");return nt+pt(r)in t&&ot+r}},St={supportedProperty:function(e,t){return dt(e)in t&&e}},Pt={supportedProperty:function(e,t){var r=pt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:nt+r in t?ot+e:"Webkit"!==nt&&"Webkit"+r in t&&"-webkit-"+e}},Ot={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===nt?""+ot+e:e)}},jt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===nt?ot+"scroll-chaining":e)}},Tt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Ct={supportedProperty:function(e,t){var r=Tt[e];return!!r&&(nt+pt(r)in t&&ot+r)}},Rt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},At=Object.keys(Rt),Et=function(e){return ot+e},Mt=[st,ut,yt,gt,ht,bt,vt,xt,wt,kt,St,Pt,Ot,jt,Ct,{supportedProperty:function(e,t,r){var n=r.multiple;if(At.indexOf(e)>-1){var o=Rt[e];if(!Array.isArray(o))return nt+pt(o)in t&&ot+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(nt+pt(o[0])in t))return!1;return o.map(Et)}return!1}}],Nt=Mt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),It=Mt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Xe(t.noPrefill)),e}),[]),_t={};if(ee){mt=document.createElement("p");var zt=window.getComputedStyle(document.documentElement,"");for(var $t in zt)isNaN($t)||(_t[zt[$t]]=zt[$t]);It.forEach((function(e){return delete _t[e]}))}function Ft(e,t){if(void 0===t&&(t={}),!mt)return e;if(null!=_t[e])return _t[e];"transition"!==e&&"transform"!==e||(t[e]=e in mt.style);for(var r=0;r<Nt.length&&(_t[e]=Nt[r](e,mt.style,t),!_t[e]);r++);try{mt.style[e]=""}catch(e){return!1}return _t[e]}var Dt,Lt={},Ut={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Wt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Vt(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ft(t):", "+Ft(r);return n||(t||r)}function qt(e,t){var r=t;if(!Dt||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Lt[n])return Lt[n];try{Dt.style[e]=r}catch(e){return Lt[n]=!1,!1}if(Ut[e])r=r.replace(Wt,Vt);else if(""===Dt.style[e]&&("-ms-flex"===(r=ot+r)&&(Dt.style[e]="-ms-flexbox"),Dt.style[e]=r,""===Dt.style[e]))return Lt[n]=!1,!1;return Dt.style[e]="",Lt[n]=r,Lt[n]}function Ht(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Ft(n);a&&a!==n&&(i=!0);var l=!1,s=qt(a,r.toCssValue(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===nt?e:"@"+ot+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return qt(t,r.toCssValue(e))||e}}}ee&&(Dt=document.createElement("p"));var Gt=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=r.createRule(e,{},n);return o[ae]=t,o},onProcessStyle:function(e,t){if(ie in t||ae in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[ie]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[ae];i&&(o.style=i(e)||{});var a=o[ie];if(a)for(var l in a)o.prop(l,a[l](e),n)}},(n=e.observable,{onCreateRule:function(e,t,o){if(!se(t))return null;var i=t,a=r.createRule(e,{},o);return i.subscribe((function(e){for(var t in e)a.prop(t,e[t],n)})),a},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!se(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:ce},he(),{onProcessStyle:function(e,t,r){return"extend"in e?xe(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[ve])r.prop(n,null);return r[ve]=null,null}if("object"==typeof e){for(var o in e)r.prop(o,e[o]);r[ve]=e}return null}},Pe(),je(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Me(e[t]);return e}return Me(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Ee(t);return t===n?e:(r.prop(n,e),null)}},De(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=Ge(e[r],t);return e}return Ge(e,t)}},Ht(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)n[o[i]]=e[o[i]];return n}})]};var t,n},Bt=r.create(Gt()),Xt=new WeakMap,Yt=function(e){return Xt.get(e)};var Jt=function(e){if(!e.context.disableStylesGeneration){var t=ne(e.context,e.index),n=t.get(e.theme);if(n)return n;var o=e.context.jss||Bt,a=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),l=r.getDynamicStyles(a),s=o.createStyleSheet(a,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",i({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==l));return function(e,t){Xt.set(e,t)}(s,{dynamicStyles:l,styles:a}),t.add(e.theme,s),s}},Zt=ee?t.useLayoutEffect:t.useEffect,Kt={},Qt=function(e,r){void 0===r&&(r={});var n=r,o=n.index,i=void 0===o?K():o,l=n.theming,s=n.name,u=a(n,["index","theming","name"]),c=l&&l.context||G,f={};return function(r){var n=t.useRef(!0),o=t.useContext(te),a=function(r){return"function"==typeof e&&(r||t.useContext(c))||Kt}(r&&r.theme),l=t.useMemo((function(){var t=Jt({context:o,styles:e,name:s,theme:a,index:i,sheetOptions:u}),n=t?function(e,t){var r=Yt(e);if(r){var n={};for(var o in r.dynamicStyles)for(var i=e.rules.index.length,a=e.addRule(o,r.dynamicStyles[o]),l=i;l<e.rules.index.length;l++){var s=e.rules.index[l];e.updateOne(s,t),n[a===s?o:s.key]=s}return n}}(t,r):null;return t&&function(e){var t=e.sheet,r=e.context,n=e.index,o=e.theme;t&&(ne(r,n).manage(o),r.registry&&r.registry.add(t))}({index:i,context:o,sheet:t,theme:a}),[t,n]}),[o,a]),d=l[0],p=l[1];Zt((function(){d&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,d,p)}),[r]),Zt((function(){return function(){d&&function(e){e.sheet&&ne(e.context,e.index).unmanage(e.theme)}({index:i,context:o,sheet:d,theme:a}),d&&p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(d,p)}}),[d]);var m=t.useMemo((function(){return d&&p?function(e,t){if(!t)return e.classes;var r=Yt(e);if(!r)return e.classes;var n={};for(var o in r.styles)n[o]=e.classes[o],o in t&&(n[o]+=" "+e.classes[t[o].key]);return n}(d,p):f}),[d,p]);return t.useDebugValue(m),t.useDebugValue(a===Kt?"No theme":a),t.useEffect((function(){n.current=!1})),m}},er=function(e){return e.children||null},tr=function(e,r){void 0===r&&(r={});var n=r,o=n.index,l=void 0===o?K():o,s=n.theming,u=n.injectTheme,c=a(n,["index","theming","injectTheme"]),f=s?s.context:G;return function(r){void 0===r&&(r=er);var n,o,a,d,p=(n=r).displayName||n.name||"Component",m=(o=function(e,t){return t?function(e,t){var r=i({},e);for(var n in t)r[n]=n in r?r[n]+" "+t[n]:t[n];return r}(e,t):e},function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(Array.isArray(a)&&t.length===a.length){for(var n=!0,i=0;i<t.length;i++)t[i]!==a[i]&&(n=!1);if(n)return d}return a=t,d=o.apply(void 0,t)}),y=Object.assign(c,{theming:s,index:l,name:p}),g=Qt(e,y),h=t.forwardRef((function(e,n){var o=t.useContext(f),a=i({},e);u&&null==a.theme&&(a.theme=o);var l=g(a),s=m(l,e.classes);return t.createElement(r,i({},a,{classes:s,ref:n}))}));return h.displayName="WithStyles("+p+")",h.defaultProps=i({},r.defaultProps),h.InnerComponent=r,x(h,r)}};var rr={};var nr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,or=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return nr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ir=function(e){var t,r=[],n=[];for(var o in e){var i=e[o];if(i)if("function"==typeof i)r.push(i);else{t||(t={}),Object.assign(t,i);var a=t.label;a&&-1===n.indexOf(a)&&n.push(a)}}var l={},s=0===n.length?"sc":n.join("-");return t&&("label"in t&&delete t.label,l[s]=t),1===r.length&&(l.scd=r[0]),r.length>1&&(l.scd=function(e){for(var t={},n=0;n<r.length;n++){var o=r[n](e);o&&Object.assign(t,o)}return t}),{styles:l,label:s}},ar=Symbol("react-jss-styled"),lr=function(e,t,r){var n={};for(var o in e)t?!0===t(o)&&(n[o]=e[o]):r?or(o)&&(n[o]=e[o]):n[o]=e[o];return n},sr=r.create(Gt()),ur=function(e){void 0===e&&(e=sr);var t,r=new Map,n=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=r.get(t);if(i)return i.className;var a=[];for(var l in e){var s=e[l];if(Array.isArray(s))for(var u=0;u<s.length;u++)a.push(s[u]);else a.push(s)}for(var c={},f=[],d=0;d<a.length;d++){var p=a[d];if(p){var m=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&f.push.apply(f,y.labels),m=y.style)}m.label&&-1===f.indexOf(m.label)&&f.push(m.label),Object.assign(c,m)}}delete c.label;var g=0===f.length?"css":f.join("-"),h=g+"-"+n++;o().addRule(h,c);var b=o().classes[h],v={style:c,labels:f,className:b};return r.set(t,v),r.set(b,v),b}return i.getSheet=o,i}(),cr=function(e){return void 0===e&&(e=ur),function(r,n){var o=arguments;if(n&&n.css){var i=e(n.css),a=Object.assign({},n);a.className=n.className?n.className+" "+i:i,delete a.css,o[1]=a}return t.createElement.apply(void 0,o)}},fr=cr();Object.defineProperty(e,"SheetsRegistry",{enumerable:!0,get:function(){return r.SheetsRegistry}}),Object.defineProperty(e,"createGenerateId",{enumerable:!0,get:function(){return r.createGenerateId}}),e.JssContext=te,e.JssProvider=function(e){var n=t.useRef({}),o=t.useRef(),a=t.useRef(null),l=function(t,o){void 0===o&&(o=rr);var l=e.registry,s=e.classNamePrefix,u=e.jss,c=e.generateId,f=e.disableStylesGeneration,d=e.media,p=e.id,m=i({},t);return l&&(m.registry=l,l!==a.current&&(n.current={},a.current=l)),m.managers=n.current,void 0!==p&&(m.id=p),void 0!==c?m.generateId=c:m.generateId&&o&&m.id===o.id||(m.generateId=r.createGenerateId(m.id)),s&&(m.classNamePrefix=(m.classNamePrefix||"")+s),void 0!==d&&(m.media=d),u&&(m.jss=u),void 0!==f&&(m.disableStylesGeneration=f),o&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a])return!1}return!0}(o,m)?o:m};return t.createElement(te.Consumer,null,(function(r){var n=e.children,i=l(r,o.current);return o.current=i,t.createElement(te.Provider,{value:i},n)}))},e.ThemeProvider=Y,e.createJsx=cr,e.createTheming=H,e.createUseStyles=Qt,e.default=tr,e.jss=Bt,e.jsx=fr,e.styled=function(e,r){void 0===r&&(r={});var n=r.theming,o="string"==typeof e,i=n?n.context:G,l=function(e,t){var r=t.shouldForwardProp,n=e[ar],o=r||n;return r&&n&&(o=function(e){return n(e)&&r(e)}),o}(e,r),s=r,u=(s.shouldForwardProp,a(s,["shouldForwardProp"]));return function(){var r=ir(arguments),n=r.styles,a=r.label,s=Qt(n,u),c=function(r){var n=r.as,u=r.className,c=t.useContext(i),f=Object.assign({theme:c},r),d=s(f),p=lr(r,l,o),m=((d[a]||d.sc||"")+" "+(d.scd||"")).trim();return p.className=u?u+" "+m:m,!o&&l&&(e[ar]=l),o&&n?t.createElement(n,p):t.createElement(e,p)};return c}},e.useTheme=J,e.withStyles=tr,e.withTheme=X,Object.defineProperty(e,"__esModule",{value:!0})}));