react-jss
Advanced tools
Comparing version 10.0.0-alpha.15 to 10.0.0-alpha.16
@@ -1,1 +0,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=e||self).reactJss={},e.React,e.jss)}(this,function(e,t,r){"use strict";var n="default"in t?t.default:t,o="default"in r?r.default:r;function i(e,t){return e(t={exports:{}},t.exports),t.exports}function s(e){return e&&e.default||e}var a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;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=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in r=Object(arguments[i]))l.call(r,s)&&(o[s]=r[s]);if(a){n=a(r);for(var f=0;f<n.length;f++)u.call(r,n[f])&&(o[n[f]]=r[n[f]])}}return o};var f="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function c(){}s(Object.freeze({}));var p=i(function(e){e.exports=function(){function e(e,t,r,n,o,i){if(i!==f){var s=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 s.name="Invariant Violation",s}}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=c,r.PropTypes=r,r}()});module.exports=require("./cjs/react-is.production.min.js");var d=s(Object.freeze({})),y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},m={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={};g[d.ForwardRef]={$$typeof:!0,render:!0};var h=Object.defineProperty,v=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,j=Object.prototype;var P,O=function e(t,r,n){if("string"!=typeof r){if(j){var o=x(r);o&&o!==j&&e(t,o,n)}var i=v(r);b&&(i=i.concat(b(r)));for(var s=g[t.$$typeof]||y,a=g[r.$$typeof]||y,l=0;l<i.length;++l){var u=i[l];if(!(m[u]||n&&n[u]||a&&a[u]||s&&s[u])){var f=w(r,u);try{h(t,u,f)}catch(e){}}}return t}return t},k=i(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")}}),S=(P=k)&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P;function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(){return(R=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 T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){var t,r;return r=t=function(t){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return C(T(T(r=t.call.apply(t,[this].concat(i))||this)),"cachedTheme",void 0),C(T(T(r)),"lastOuterTheme",void 0),C(T(T(r)),"lastTheme",void 0),C(T(T(r)),"renderProvider",function(t){var o=r.props.children;return n.createElement(e.Provider,{value:r.getTheme(t)},o)}),r}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){var t=this.props.theme;return t===this.lastTheme&&e===this.lastOuterTheme&&this.cachedTheme||(this.lastOuterTheme=e,this.lastTheme=t,this.cachedTheme="function"==typeof t?t(e):e?R({},e,t):t),this.cachedTheme},s.render=function(){return this.props.children?n.createElement(e.Consumer,null,this.renderProvider):null},i}(n.Component),C(t,"propTypes",{children:p.node,theme:p.oneOfType([p.shape({}),p.func]).isRequired}),C(t,"defaultProps",{children:null}),r}function E(e){return function(t){var r=n.forwardRef(function(r,o){return n.createElement(e.Consumer,null,function(e){return n.createElement(t,R({theme:e,ref:o},r))})});return r.displayName="WithTheme("+S(t)+")",O(r,t),r}}var N=t.createContext();function _(e){return{context:e,withTheme:E(e),ThemeProvider:A(e)}}var z=_(N),I=z.withTheme,W=z.ThemeProvider;function M(){return(M=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 $(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var D=n.createContext({sheetOptions:{},disableStylesGeneration:!1}),F=function(e){var t,r;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(Array.isArray(t)&&o.length===t.length){for(var s=!0,a=0;a<o.length;a++)o[a]!==t[a]&&(s=!1);if(s)return r}return t=o,r=e.apply(void 0,o)}},G=function(e){function t(){for(var t,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).managers={},t.createContext=F(function(e,n){var o=n.registry,i=n.classNamePrefix,s=n.jss,a=n.generateId,l=n.disableStylesGeneration,u=n.media,f=M({},e);return o&&(f.registry=o,o!==t.registry&&(t.managers={},t.registry=o)),f.managers=t.managers,a?f.sheetOptions.generateId=a:f.sheetOptions.generateId||(t.generateId||(t.generateId=r.createGenerateId()),f.sheetOptions.generateId=t.generateId),i&&(f.sheetOptions.classNamePrefix=(f.sheetOptions.classNamePrefix||"")+i),void 0!==u&&(f.sheetOptions.media=u),s&&(f.jss=s),void 0!==l&&(f.disableStylesGeneration=l),f}),t.generateId=void 0,t.registry=void 0,t.renderProvider=function(e){var r=t.props.children,o=t.createContext(e,t.props);return n.createElement(D.Provider,{value:o},r)},t}return $(t,e),t.prototype.render=function(){return n.createElement(D.Consumer,null,this.renderProvider)},t}(t.Component);G.propTypes={registry:p.instanceOf(r.SheetsRegistry),jss:p.instanceOf(o.constructor),generateId:p.func,classNamePrefix:p.string,disableStylesGeneration:p.bool,children:p.node.isRequired,media:p.string};var U=Date.now(),V="fnValues"+U,q="fnStyle"+ ++U;var L="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var J=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:void 0!==L?L:"undefined"!=typeof module?module:Function("return this")()),H=function(e){return e&&e[J]&&e===e[J]()};var B=/;\n/,X=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(B),n=0;n<r.length;n++){var o=(r[n]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))};var Y="@global",Z="@global ",K=function(){function e(e,t,n){for(var o in this.type="global",this.at=Y,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RuleList(M({},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 this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Q=function(){function e(e,t,r){this.type="global",this.at=Y,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=r;var n=e.substr(Z.length);this.rule=r.jss.createRule(n,t,M({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ee=/\s*,\s*/g;function te(e,t){for(var r=e.split(ee),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function re(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Y)return new K(e,t,r);if("@"===e[0]&&e.substr(0,Z.length)===Z)return new Q(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),!1===r.scoped&&(r.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,r=e.style,n=r?r[Y]:null;if(n){for(var o in n)t.sheet.addRule(o,n[o],M({},t,{selector:te(o,e.selector)}));delete r[Y]}}(e),function(e){var t=e.options,r=e.style;for(var n in r)if("@"===n[0]&&n.substr(0,Y.length)===Y){var o=te(n.substr(Y.length),e.selector);t.sheet.addRule(o,r[n],M({},t,{selector:o})),delete r[n]}}(e))}}}var ne=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},oe="extendCurrValue"+Date.now();function ie(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++)ie(e.extend[o],t,r,n);else for(var i in e.extend)"extend"!==i?ne(e.extend[i])?(i in n||(n[i]={}),ie(e.extend[i],t,r,n[i])):n[i]=e.extend[i]:ie(e.extend.extend,t,r,n);else{if(!r)return;var s=r.getRule(e.extend);if(!s)return;if(s===t)return;var a=s.options.parent;a&&ie(a.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var o in e)"extend"!==o&&(ne(n[o])&&ne(e[o])?ie(e[o],t,r,n[o]):ne(e[o])?n[o]=ie(e[o],t,r):n[o]=e[o])}(e,t,r,n),n}function se(){return{onProcessStyle:function(e,t,r){return"extend"in e?ie(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[oe])r.prop(n,null);return r[oe]=null,null}if("object"==typeof e){for(var o in e)r.prop(o,e[o]);r[oe]=e}return null}}}var ae=/\s*,\s*/g,le=/&/g,ue=/\$([\w-]+)/g;function fe(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?(o=o).selector:n}}function t(e,t){for(var r=t.split(ae),n=e.split(ae),o="",i=0;i<r.length;i++)for(var s=r[i],a=0;a<n.length;a++){var l=n[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(le,s):s+" "+l}return o}function r(e,t,r){if(r)return M({},r,{index:r.index+1});var n=e.options.nestingLevel;return n=void 0===n?1:n+1,M({},e.options,{nestingLevel:n,index:t.indexOf(e)+1})}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var s,a,l=o,u=l.options.parent;for(var f in n){var c=-1!==f.indexOf("&"),p="@"===f[0];if(c||p){if(s=r(l,u,s),c){var d=t(f,l.selector);a||(a=e(u,i)),d=d.replace(ue,a),u.addRule(d,n[f],M({},s,{selector:d}))}else p&&u.addRule(f,{},s).addRule(l.key,n[f],{selector:l.selector});delete n[f]}}return n}}}function ce(){return{onProcessStyle:function(e,t){return"composes"in e?(function e(t,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++)if(!e(t,r[n]))return!1;return!0}if(r.indexOf(" ")>-1)return e(t,r.split(" "));var o=t.options.parent;if("$"===r[0]){var i=o.getRule(r.substr(1));return!!i&&i!==t&&(o.classes[t.key]+=" "+o.classes[i.key],!0)}return o.classes[t.key]+=" "+r,!0}(t,e.composes),delete e.composes,e):e}}}var pe=/[A-Z]/g,de=/^ms-/,ye={};function me(e){return"-"+e.toLowerCase()}function ge(e){if(ye.hasOwnProperty(e))return ye[e];var t=e.replace(pe,me);return ye[e]=de.test(t)?"-"+t:t}function he(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:ge(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(he):t.fallbacks=he(e.fallbacks)),t}function ve(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=he(e[t]);return e}return he(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ge(t);return t===n?e:(r.prop(n,e),null)}}}var be=r.hasCSSTOMSupport?window.CSS.px:"px",we=r.hasCSSTOMSupport?window.CSS.ms:"ms",xe=r.hasCSSTOMSupport?window.CSS.percent:"%";function je(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 Pe=je({"animation-delay":we,"animation-duration":we,"background-position":be,"background-position-x":be,"background-position-y":be,"background-size":be,border:be,"border-bottom":be,"border-bottom-left-radius":be,"border-bottom-right-radius":be,"border-bottom-width":be,"border-left":be,"border-left-width":be,"border-radius":be,"border-right":be,"border-right-width":be,"border-top":be,"border-top-left-radius":be,"border-top-right-radius":be,"border-top-width":be,"border-width":be,margin:be,"margin-bottom":be,"margin-left":be,"margin-right":be,"margin-top":be,padding:be,"padding-bottom":be,"padding-left":be,"padding-right":be,"padding-top":be,"mask-position-x":be,"mask-position-y":be,"mask-size":be,height:be,width:be,"min-height":be,"max-height":be,"min-width":be,"max-width":be,bottom:be,left:be,top:be,right:be,"box-shadow":be,"text-shadow":be,"column-gap":be,"column-rule":be,"column-rule-width":be,"column-width":be,"font-size":be,"font-size-delta":be,"letter-spacing":be,"text-indent":be,"text-stroke":be,"text-stroke-width":be,"word-spacing":be,motion:be,"motion-offset":be,outline:be,"outline-offset":be,"outline-width":be,perspective:be,"perspective-origin-x":xe,"perspective-origin-y":xe,"transform-origin":xe,"transform-origin-x":xe,"transform-origin-y":xe,"transform-origin-z":xe,"transition-delay":we,"transition-duration":we,"vertical-align":be,"flex-basis":be,"shape-margin":be,size:be,grid:be,"grid-gap":be,"grid-row-gap":be,"grid-column-gap":be,"grid-template-rows":be,"grid-template-columns":be,"grid-auto-rows":be,"grid-auto-columns":be,"box-shadow-x":be,"box-shadow-y":be,"box-shadow-blur":be,"box-shadow-spread":be,"font-line-height":be,"text-shadow-x":be,"text-shadow-y":be,"text-shadow-blur":be});function Oe(e,t,r){if(!t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Oe(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Oe(o,t[o],r);else for(var i in t)t[i]=Oe(e+"-"+i,t[i],r);else if("number"==typeof t)return r[e]?""+t+r[e]:Pe[e]?"function"==typeof Pe[e]?Pe[e](t).toString():""+t+Pe[e]:t.toString();return t}function ke(e){void 0===e&&(e={});var t=je(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Oe(n,e[n],t);return e},onChangeValue:function(e,r){return Oe(r,e,t)}}}var Se={"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},Ce={position:!0,size:!0},Re={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}},Te={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-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 Ae(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?Ae(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map(function(e){return Ee(e,t,r,!1,!0)})}(e,t,n):[e]}function Ee(e,t,r,n,o){if(!Re[t]&&!Te[t])return[];var i=[];if(Te[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 s,a=Ne((s={},s[i]=e[o],s),t)[i];n?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,r,Te[t],n)),Object.keys(e).length)for(var s in Re[t])e[s]?Array.isArray(e[s])?i.push(null===Ce[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=Re[t][s]&&i.push(Re[t][s]);return!i.length||o?i:[i]}function Ne(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]=Ne(e.fallbacks[i],t,!0);continue}e[n]=Ae(o,n,Se,t),e[n].length||delete e[n]}}else if("object"==typeof o){if("fallbacks"===n){e.fallbacks=Ne(e.fallbacks,t,!0);continue}e[n]=Ee(o,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function _e(){return{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]=Ne(e[r],t);return e}return Ne(e,t)}}}var ze="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},Ie="object"===("undefined"==typeof window?"undefined":ze(window))&&"object"===("undefined"==typeof document?"undefined":ze(document))&&9===document.nodeType;function We(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Me="",$e="",De="";if(Ie){var Fe={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ge=document.createElement("p").style;for(var Ue in Fe)if(Ue+"Transform"in Ge){Me=Ue,$e=Fe[Ue];break}"Webkit"===Me&&"msHyphens"in Ge&&(Me="ms",$e=Fe.ms),"Webkit"===Me&&"-apple-trailing-word"in Ge&&(De="apple")}var Ve={js:Me,css:$e,vendor:De};var qe={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Ve.js?"-webkit-"+e:Ve.css+e)}},Le=/[-\s]+(.)?/g;function Je(e,t){return t?t.toUpperCase():""}function He(e){return e.replace(Le,Je)}function Be(e){return He("-"+e)}var Xe,Ye={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Ve.js?"WebkitColumn"+Be(e)in t&&Ve.css+"column-"+e:"Moz"===Ve.js&&("page"+Be(e)in t&&"page-"+e))}},Ze={noPrefill:["text-decoration-skip-ink"],supportedProperty:function(e){return"text-decoration-skip-ink"===e&&("apple"===Ve.vendor?""+Ve.css+e:"Webkit"===Ve.js||"Moz"===Ve.js?e:Ve.css+e)}},Ke={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Ve.js?Ve.css+"print-"+e:e)}},Qe={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"},et=Object.keys(Qe),tt=function(e){return Ve.css+e},rt={"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"},nt=[qe,{noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Ve.css+e)}},{noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Ve.css+e)}},{noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Ve.js){if(He("mask-image")in t)return e;if(Ve.js+Be("mask-image")in t)return Ve.css+e}return e}},{noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Ve.js||"ms"===Ve.js?Ve.css+e:e)}},Ke,Ze,Ye,{supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Ve.js)return e;var r=e.replace("-inline","");return Ve.js+Be(r)in t&&Ve.css+r}},{supportedProperty:function(e,t){return He(e)in t&&e}},{supportedProperty:function(e,t){var r=Be(e);return Ve.js+r in t?Ve.css+e:"Webkit"!==Ve.js&&"Webkit"+r in t&&e}},{supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Ve.js?""+Ve.css+e:e)}},{supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Ve.js?Ve.css+"scroll-chaining":e)}},{supportedProperty:function(e,t){var r=rt[e];return!!r&&(Ve.js+Be(r)in t&&Ve.css+r)}},{supportedProperty:function(e,t,r){var n=r.multiple;if(et.indexOf(e)>-1){var o=Qe[e];if(!Array.isArray(o))return Ve.js+Be(o)in t&&Ve.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(Ve.js+Be(o[0])in t))return!1;return o.map(tt)}return!1}}],ot=nt.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),it=nt.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,We(t.noPrefill)),e},[]),st={};if(Ie){Xe=document.createElement("p");var at=window.getComputedStyle(document.documentElement,"");for(var lt in at)isNaN(lt)||(st[at[lt]]=at[lt]);it.forEach(function(e){return delete st[e]})}function ut(e,t){if(void 0===t&&(t={}),!Xe)return e;if(null!=st[e])return st[e];"transition"!==e&&"transform"!==e||(t[e]=e in Xe.style);for(var r=0;r<ot.length&&(st[e]=ot[r](e,Xe.style,t),!st[e]);r++);try{Xe.style[e]=""}catch(e){return!1}return st[e]}var ft,ct={},pt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},dt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function yt(e,t,r){return"all"===t?"all":"all"===r?", all":t?ut(t):", "+ut(r)}function mt(e,t){var r="";if(!ft)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=ct[n])return ct[n];try{ft.style[e]=t}catch(e){return ct[n]=!1,!1}if(pt[e])r=t.replace(dt,yt);else if(""===ft.style[e]&&("-ms-flex"===(r=Ve.css+t)&&(ft.style[e]="-ms-flexbox"),ft.style[e]=r,""===ft.style[e]))return ct[n]=!1,!1;return ft.style[e]="",ct[n]=t,ct[n]}function gt(){return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(r=t.at)[1]?r:"ms"===Ve.js?r:"@"+Ve.css+"keyframes"+r.substr(10)}var r},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n in e){var o=e[n],i=!1,s=ut(n);s&&s!==n&&(i=!0);var a=!1,l=mt(s,r.toCssValue(o));l&&l!==o&&(a=!0),(i||a)&&(i&&delete e[n],e[s||n]=l||o)}return e},onChangeValue:function(e,t){return mt(t,r.toCssValue(e))||e}}}function ht(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}Ie&&(ft=document.createElement("p"));var vt,bt,wt=r.create((void 0===vt&&(vt={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=r.createRule(e,{},n);return o[q]=t,o},onProcessStyle:function(e,t){if(V in t||q 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[V]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[q];i&&(o.style=i(e));var s=o[V];if(s)for(var a in s)o.prop(a,s[a](e),n)}},(bt=vt.observable,{onCreateRule:function(e,t,n){if(!H(t))return null;var o=t,i=r.createRule(e,{},n);return o.subscribe(function(e){for(var t in e)i.prop(t,e[t],bt)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,n=function(e){var n=r[e];if(!H(n))return"continue";delete r[e],n.subscribe({next:function(r){t.prop(e,r,bt)}})};for(var o in r)n(o)}}}),{onProcessRule:X},re(),se(),fe(),ce(),ve(),ke(vt.defaultUnit),_e(),gt(),ht()]}));function xt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jt(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}var Pt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ot={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kt={};kt[d.ForwardRef]={$$typeof:!0,render:!0};var St=Object.defineProperty,Ct=Object.getOwnPropertyNames,Rt=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,At=Object.getPrototypeOf,Et=Object.prototype;var Nt=function e(t,r,n){if("string"!=typeof r){if(Et){var o=At(r);o&&o!==Et&&e(t,o,n)}var i=Ct(r);Rt&&(i=i.concat(Rt(r)));for(var s=kt[t.$$typeof]||Pt,a=kt[r.$$typeof]||Pt,l=0;l<i.length;++l){var u=i[l];if(!(Ot[u]||n&&n[u]||a&&a[u]||s&&s[u])){var f=Tt(r,u);try{St(t,u,f)}catch(e){}}}return t}return t},_t=function(e){return e.displayName||e.name||"Component"};var zt=-Number.MAX_SAFE_INTEGER,It=0,Wt=function(e){return e.children||null},Mt=new WeakMap,$t=function(e,t,r){return"function"!=typeof e?e:e(t)},Dt=function(e,t){if(!t)return e.classes;var r={},n=Mt.get(e);if(!n)return e.classes;for(var o in n.themedStyles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r},Ft=function(e,t){var r=t.dynamicRules,n=t.sheet;if(n)for(var o in r)n.update(r[o].key,e)},Gt=function(e){var t=e.dynamicRules,r=e.sheet;if(r)for(var n in t)r.deleteRule(t[n].key)},Ut=function(e){var t=Mt.get(e);if(t){var r={};for(var n in t.dynamicStyles){var o=n+"-"+t.dynamicRuleCounter++,i=e.addRule(o,t.dynamicStyles[n]);i&&(r[n]=i)}return r}};e.SheetsRegistry=r.SheetsRegistry,e.createGenerateId=r.createGenerateId,e.ThemeProvider=W,e.withTheme=I,e.createTheming=_,e.JssProvider=G,e.jss=wt,e.JssContext=D,e.default=function(e,o){var i=o||{},s=i.index,a=void 0===s?zt++:s,l=i.theming,u=i.injectTheme,f=i.jss,c=jt(i,["index","theming","injectTheme","jss"]),p="function"==typeof e,d=l&&l.context.Consumer||N.Consumer;return function(o){void 0===o&&(o=Wt);var i=_t(o),s="",l=It++,y=new r.SheetsManager,m={},g=function(e){return p&&e.theme?e.theme:m},h=function(t){function d(e){var r;(r=t.call(this,e)||this).mergeClassesProp=F(function(e,t){return t?function(e,t){var r=M({},e);for(var n in t)r[n]=n in r?r[n]+" "+t[n]:t[n];return r}(e,t):e}),r.classNamePrefix=void 0;var n=e.jssContext.sheetOptions;return r.classNamePrefix=(n.classNamePrefix||"")+s,r.state=r.createState(),r.manage(e,r.state),r}$(d,t);var m,h,v,b=d.prototype;return b.componentDidUpdate=function(e,t){if(Ft(this.props,this.state),p&&this.props.theme!==e.theme){var r=this.createState();this.manage(this.props,r),this.unmanage(e,t),this.setState(r)}},b.componentWillUnmount=function(){this.unmanage(this.props,this.state)},b.getSheet=function(){var t=g(this.props),n=this.manager.get(t);if(n)return n;var o=$t(e,t,i),s=r.getDynamicStyles(o),l=this.props.jssContext.sheetOptions;return n=this.jss.createStyleSheet(o,M({},c,l,{index:a,meta:i+", "+(p?"Themed":"Unthemed"),classNamePrefix:this.classNamePrefix,link:null!==s})),Mt.set(n,{dynamicStyles:s,themedStyles:o,dynamicRuleCounter:0}),this.manager.add(t,n),n},b.manage=function(e,t){var r=t.sheet,n=e.jssContext.registry;r&&(Ft(e,t),this.manager.manage(g(e)),n&&n.add(r))},b.unmanage=function(e,t){Gt(t),this.manager.unmanage(g(e))},b.createState=function(){if(this.props.jssContext.disableStylesGeneration)return{classes:{}};var e=this.getSheet(),t=Ut(e),r={sheet:e,classes:Dt(e,t)};return t&&(r.dynamicRules=t),r},b.render=function(){var e=this.props,t=e.innerRef,r=(e.jssContext,e.theme),i=e.classes,s=jt(e,["innerRef","jssContext","theme","classes"]),a=this.state.classes,l=M({},s,{classes:this.mergeClassesProp(a,i)});return t&&(l.ref=t),u&&(l.theme=r),n.createElement(o,l)},m=d,(h=[{key:"jss",get:function(){return this.props.jssContext.jss||f||wt}},{key:"manager",get:function(){var e=this.props.jssContext.managers;return e?(e[l]||(e[l]=new r.SheetsManager),e[l]):y}}])&&xt(m.prototype,h),v&&xt(m,v),d}(t.Component);h.displayName="WithStyles("+i+")",h.defaultProps=M({},o.defaultProps);var v=n.forwardRef(function(e,t){return n.createElement(D.Consumer,null,function(r){return p||u?n.createElement(d,null,function(o){return n.createElement(h,M({innerRef:t,theme:o},e,{jssContext:r}))}):n.createElement(h,M({innerRef:t},e,{jssContext:r}))})});return v.displayName="JssContextSubscriber",v.InnerComponent=o,Nt(v,o)}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!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=e||self).reactJss={},e.React,e.jss)}(this,function(e,t,r){"use strict";var n="default"in t?t.default:t,o="default"in r?r.default:r;function i(e,t){return e(t={exports:{}},t.exports),t.exports}function s(e){return e&&e.default||e}var a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;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=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in r=Object(arguments[i]))l.call(r,s)&&(o[s]=r[s]);if(a){n=a(r);for(var f=0;f<n.length;f++)u.call(r,n[f])&&(o[n[f]]=r[n[f]])}}return o};var f="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function c(){}s(Object.freeze({}));var p=i(function(e){e.exports=function(){function e(e,t,r,n,o,i){if(i!==f){var s=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 s.name="Invariant Violation",s}}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=c,r.PropTypes=r,r}()});module.exports=require("./cjs/react-is.production.min.js");var d=s(Object.freeze({})),y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},m={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={};g[d.ForwardRef]={$$typeof:!0,render:!0};var h=Object.defineProperty,v=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,j=Object.prototype;var P,O=function e(t,r,n){if("string"!=typeof r){if(j){var o=x(r);o&&o!==j&&e(t,o,n)}var i=v(r);b&&(i=i.concat(b(r)));for(var s=g[t.$$typeof]||y,a=g[r.$$typeof]||y,l=0;l<i.length;++l){var u=i[l];if(!(m[u]||n&&n[u]||a&&a[u]||s&&s[u])){var f=w(r,u);try{h(t,u,f)}catch(e){}}}return t}return t},k=i(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")}}),S=(P=k)&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P;function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(){return(R=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 T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){var t,r;return r=t=function(t){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return C(T(T(r=t.call.apply(t,[this].concat(i))||this)),"cachedTheme",void 0),C(T(T(r)),"lastOuterTheme",void 0),C(T(T(r)),"lastTheme",void 0),C(T(T(r)),"renderProvider",function(t){var o=r.props.children;return n.createElement(e.Provider,{value:r.getTheme(t)},o)}),r}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){var t=this.props.theme;return t===this.lastTheme&&e===this.lastOuterTheme&&this.cachedTheme||(this.lastOuterTheme=e,this.lastTheme=t,this.cachedTheme="function"==typeof t?t(e):e?R({},e,t):t),this.cachedTheme},s.render=function(){return this.props.children?n.createElement(e.Consumer,null,this.renderProvider):null},i}(n.Component),C(t,"propTypes",{children:p.node,theme:p.oneOfType([p.shape({}),p.func]).isRequired}),C(t,"defaultProps",{children:null}),r}function E(e){return function(t){var r=n.forwardRef(function(r,o){return n.createElement(e.Consumer,null,function(e){return n.createElement(t,R({theme:e,ref:o},r))})});return r.displayName="WithTheme("+S(t)+")",O(r,t),r}}var N=t.createContext();function _(e){return{context:e,withTheme:E(e),ThemeProvider:A(e)}}var z=_(N),I=z.withTheme,W=z.ThemeProvider;function M(){return(M=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 $(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var D=n.createContext({sheetOptions:{},disableStylesGeneration:!1}),F=function(e){var t,r;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(Array.isArray(t)&&o.length===t.length){for(var s=!0,a=0;a<o.length;a++)o[a]!==t[a]&&(s=!1);if(s)return r}return t=o,r=e.apply(void 0,o)}},G=function(e){function t(){for(var t,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).managers={},t.createContext=F(function(e,n){var o=n.registry,i=n.classNamePrefix,s=n.jss,a=n.generateId,l=n.disableStylesGeneration,u=n.media,f=M({},e);return o&&(f.registry=o,o!==t.registry&&(t.managers={},t.registry=o)),f.managers=t.managers,a?f.sheetOptions.generateId=a:f.sheetOptions.generateId||(t.generateId||(t.generateId=r.createGenerateId()),f.sheetOptions.generateId=t.generateId),i&&(f.sheetOptions.classNamePrefix=(f.sheetOptions.classNamePrefix||"")+i),void 0!==u&&(f.sheetOptions.media=u),s&&(f.jss=s),void 0!==l&&(f.disableStylesGeneration=l),f}),t.generateId=void 0,t.registry=void 0,t.renderProvider=function(e){var r=t.props.children,o=t.createContext(e,t.props);return n.createElement(D.Provider,{value:o},r)},t}return $(t,e),t.prototype.render=function(){return n.createElement(D.Consumer,null,this.renderProvider)},t}(t.Component);G.propTypes={registry:p.instanceOf(r.SheetsRegistry),jss:p.instanceOf(o.constructor),generateId:p.func,classNamePrefix:p.string,disableStylesGeneration:p.bool,children:p.node.isRequired,media:p.string};var U=Date.now(),V="fnValues"+U,q="fnStyle"+ ++U;var L="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var J=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:void 0!==L?L:"undefined"!=typeof module?module:Function("return this")()),H=function(e){return e&&e[J]&&e===e[J]()};var B=/;\n/,X=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(B),n=0;n<r.length;n++){var o=(r[n]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))};var Y="@global",Z="@global ",K=function(){function e(e,t,n){for(var o in this.type="global",this.at=Y,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RuleList(M({},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 this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Q=function(){function e(e,t,r){this.type="global",this.at=Y,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=r;var n=e.substr(Z.length);this.rule=r.jss.createRule(n,t,M({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ee=/\s*,\s*/g;function te(e,t){for(var r=e.split(ee),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function re(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Y)return new K(e,t,r);if("@"===e[0]&&e.substr(0,Z.length)===Z)return new Q(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),!1===r.scoped&&(r.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,r=e.style,n=r?r[Y]:null;if(n){for(var o in n)t.sheet.addRule(o,n[o],M({},t,{selector:te(o,e.selector)}));delete r[Y]}}(e),function(e){var t=e.options,r=e.style;for(var n in r)if("@"===n[0]&&n.substr(0,Y.length)===Y){var o=te(n.substr(Y.length),e.selector);t.sheet.addRule(o,r[n],M({},t,{selector:o})),delete r[n]}}(e))}}}var ne=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},oe="extendCurrValue"+Date.now();function ie(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++)ie(e.extend[o],t,r,n);else for(var i in e.extend)"extend"!==i?ne(e.extend[i])?(i in n||(n[i]={}),ie(e.extend[i],t,r,n[i])):n[i]=e.extend[i]:ie(e.extend.extend,t,r,n);else{if(!r)return;var s=r.getRule(e.extend);if(!s)return;if(s===t)return;var a=s.options.parent;a&&ie(a.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var o in e)"extend"!==o&&(ne(n[o])&&ne(e[o])?ie(e[o],t,r,n[o]):ne(e[o])?n[o]=ie(e[o],t,r):n[o]=e[o])}(e,t,r,n),n}function se(){return{onProcessStyle:function(e,t,r){return"extend"in e?ie(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[oe])r.prop(n,null);return r[oe]=null,null}if("object"==typeof e){for(var o in e)r.prop(o,e[o]);r[oe]=e}return null}}}var ae=/\s*,\s*/g,le=/&/g,ue=/\$([\w-]+)/g;function fe(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?(o=o).selector:n}}function t(e,t){for(var r=t.split(ae),n=e.split(ae),o="",i=0;i<r.length;i++)for(var s=r[i],a=0;a<n.length;a++){var l=n[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(le,s):s+" "+l}return o}function r(e,t,r){if(r)return M({},r,{index:r.index+1});var n=e.options.nestingLevel;return n=void 0===n?1:n+1,M({},e.options,{nestingLevel:n,index:t.indexOf(e)+1})}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var s,a,l=o,u=l.options.parent;for(var f in n){var c=-1!==f.indexOf("&"),p="@"===f[0];if(c||p){if(s=r(l,u,s),c){var d=t(f,l.selector);a||(a=e(u,i)),d=d.replace(ue,a),u.addRule(d,n[f],M({},s,{selector:d}))}else p&&u.addRule(f,{},s).addRule(l.key,n[f],{selector:l.selector});delete n[f]}}return n}}}function ce(){return{onProcessStyle:function(e,t){return"composes"in e?(function e(t,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++)if(!e(t,r[n]))return!1;return!0}if(r.indexOf(" ")>-1)return e(t,r.split(" "));var o=t.options.parent;if("$"===r[0]){var i=o.getRule(r.substr(1));return!!i&&i!==t&&(o.classes[t.key]+=" "+o.classes[i.key],!0)}return o.classes[t.key]+=" "+r,!0}(t,e.composes),delete e.composes,e):e}}}var pe=/[A-Z]/g,de=/^ms-/,ye={};function me(e){return"-"+e.toLowerCase()}function ge(e){if(ye.hasOwnProperty(e))return ye[e];var t=e.replace(pe,me);return ye[e]=de.test(t)?"-"+t:t}function he(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:ge(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(he):t.fallbacks=he(e.fallbacks)),t}function ve(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=he(e[t]);return e}return he(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ge(t);return t===n?e:(r.prop(n,e),null)}}}var be=r.hasCSSTOMSupport?window.CSS.px:"px",we=r.hasCSSTOMSupport?window.CSS.ms:"ms",xe=r.hasCSSTOMSupport?window.CSS.percent:"%";function je(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 Pe=je({"animation-delay":we,"animation-duration":we,"background-position":be,"background-position-x":be,"background-position-y":be,"background-size":be,border:be,"border-bottom":be,"border-bottom-left-radius":be,"border-bottom-right-radius":be,"border-bottom-width":be,"border-left":be,"border-left-width":be,"border-radius":be,"border-right":be,"border-right-width":be,"border-top":be,"border-top-left-radius":be,"border-top-right-radius":be,"border-top-width":be,"border-width":be,margin:be,"margin-bottom":be,"margin-left":be,"margin-right":be,"margin-top":be,padding:be,"padding-bottom":be,"padding-left":be,"padding-right":be,"padding-top":be,"mask-position-x":be,"mask-position-y":be,"mask-size":be,height:be,width:be,"min-height":be,"max-height":be,"min-width":be,"max-width":be,bottom:be,left:be,top:be,right:be,"box-shadow":be,"text-shadow":be,"column-gap":be,"column-rule":be,"column-rule-width":be,"column-width":be,"font-size":be,"font-size-delta":be,"letter-spacing":be,"text-indent":be,"text-stroke":be,"text-stroke-width":be,"word-spacing":be,motion:be,"motion-offset":be,outline:be,"outline-offset":be,"outline-width":be,perspective:be,"perspective-origin-x":xe,"perspective-origin-y":xe,"transform-origin":xe,"transform-origin-x":xe,"transform-origin-y":xe,"transform-origin-z":xe,"transition-delay":we,"transition-duration":we,"vertical-align":be,"flex-basis":be,"shape-margin":be,size:be,grid:be,"grid-gap":be,"grid-row-gap":be,"grid-column-gap":be,"grid-template-rows":be,"grid-template-columns":be,"grid-auto-rows":be,"grid-auto-columns":be,"box-shadow-x":be,"box-shadow-y":be,"box-shadow-blur":be,"box-shadow-spread":be,"font-line-height":be,"text-shadow-x":be,"text-shadow-y":be,"text-shadow-blur":be});function Oe(e,t,r){if(!t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Oe(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Oe(o,t[o],r);else for(var i in t)t[i]=Oe(e+"-"+i,t[i],r);else if("number"==typeof t)return r[e]?""+t+r[e]:Pe[e]?"function"==typeof Pe[e]?Pe[e](t).toString():""+t+Pe[e]:t.toString();return t}function ke(e){void 0===e&&(e={});var t=je(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Oe(n,e[n],t);return e},onChangeValue:function(e,r){return Oe(r,e,t)}}}var Se={"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},Ce={position:!0,size:!0},Re={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}},Te={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-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 Ae(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?Ae(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map(function(e){return Ee(e,t,r,!1,!0)})}(e,t,n):[e]}function Ee(e,t,r,n,o){if(!Re[t]&&!Te[t])return[];var i=[];if(Te[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 s,a=Ne((s={},s[i]=e[o],s),t)[i];n?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,r,Te[t],n)),Object.keys(e).length)for(var s in Re[t])e[s]?Array.isArray(e[s])?i.push(null===Ce[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=Re[t][s]&&i.push(Re[t][s]);return!i.length||o?i:[i]}function Ne(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]=Ne(e.fallbacks[i],t,!0);continue}e[n]=Ae(o,n,Se,t),e[n].length||delete e[n]}}else if("object"==typeof o){if("fallbacks"===n){e.fallbacks=Ne(e.fallbacks,t,!0);continue}e[n]=Ee(o,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function _e(){return{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]=Ne(e[r],t);return e}return Ne(e,t)}}}var ze="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},Ie="object"===("undefined"==typeof window?"undefined":ze(window))&&"object"===("undefined"==typeof document?"undefined":ze(document))&&9===document.nodeType;function We(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Me="",$e="",De="",Fe="";if(Ie){var Ge={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ue=document.createElement("p").style;for(var Ve in Ge)if(Ve+"Transform"in Ue){Me=Ve,$e=Ge[Ve];break}"Webkit"===Me&&"msHyphens"in Ue&&(Me="ms",$e=Ge.ms,Fe="edge"),"Webkit"===Me&&"-apple-trailing-word"in Ue&&(De="apple")}var qe={js:Me,css:$e,vendor:De,browser:Fe};var Le={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===qe.js?"-webkit-"+e:qe.css+e)}},Je=/[-\s]+(.)?/g;function He(e,t){return t?t.toUpperCase():""}function Be(e){return e.replace(Je,He)}function Xe(e){return Be("-"+e)}var Ye,Ze={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===qe.js?"WebkitColumn"+Xe(e)in t&&qe.css+"column-"+e:"Moz"===qe.js&&("page"+Xe(e)in t&&"page-"+e))}},Ke={noPrefill:["text-decoration-skip-ink"],supportedProperty:function(e){return"text-decoration-skip-ink"===e&&("apple"===qe.vendor?""+qe.css+e:"Webkit"===qe.js||"Moz"===qe.js?e:qe.css+e)}},Qe={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===qe.js?qe.css+"print-"+e:e)}},et={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"},tt=Object.keys(et),rt=function(e){return qe.css+e},nt={"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"},ot=[Le,{noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:qe.css+e)}},{noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:qe.css+e)}},{noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===qe.js){if(Be("mask-image")in t)return e;if(qe.js+Xe("mask-image")in t)return qe.css+e}return e}},{noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===qe.js||"ms"===qe.js?qe.css+e:e)}},Qe,Ke,Ze,{supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===qe.js)return e;var r=e.replace("-inline","");return qe.js+Xe(r)in t&&qe.css+r}},{supportedProperty:function(e,t){return Be(e)in t&&e}},{supportedProperty:function(e,t){var r=Xe(e);return qe.js+r in t?qe.css+e:"Webkit"!==qe.js&&"Webkit"+r in t&&e}},{supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===qe.js?""+qe.css+e:e)}},{supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===qe.js?qe.css+"scroll-chaining":e)}},{supportedProperty:function(e,t){var r=nt[e];return!!r&&(qe.js+Xe(r)in t&&qe.css+r)}},{supportedProperty:function(e,t,r){var n=r.multiple;if(tt.indexOf(e)>-1){var o=et[e];if(!Array.isArray(o))return qe.js+Xe(o)in t&&qe.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(qe.js+Xe(o[0])in t))return!1;return o.map(rt)}return!1}}],it=ot.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),st=ot.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,We(t.noPrefill)),e},[]),at={};if(Ie){Ye=document.createElement("p");var lt=window.getComputedStyle(document.documentElement,"");for(var ut in lt)isNaN(ut)||(at[lt[ut]]=lt[ut]);st.forEach(function(e){return delete at[e]})}function ft(e,t){if(void 0===t&&(t={}),!Ye)return e;if(null!=at[e])return at[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ye.style);for(var r=0;r<it.length&&(at[e]=it[r](e,Ye.style,t),!at[e]);r++);try{Ye.style[e]=""}catch(e){return!1}return at[e]}var ct,pt={},dt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mt(e,t,r){return"all"===t?"all":"all"===r?", all":t?ft(t):", "+ft(r)}function gt(e,t){var r=t;if(!ct)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=pt[n])return pt[n];try{ct.style[e]=r}catch(e){return pt[n]=!1,!1}if(dt[e])r=r.replace(yt,mt);else if(""===ct.style[e]&&("-ms-flex"===(r=qe.css+r)&&(ct.style[e]="-ms-flexbox"),ct.style[e]=r,""===ct.style[e]))return pt[n]=!1,!1;return ct.style[e]="",pt[n]=r,pt[n]}function ht(){return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(r=t.at)[1]?r:"ms"===qe.js?r:"@"+qe.css+"keyframes"+r.substr(10)}var r},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n in e){var o=e[n],i=!1,s=ft(n);s&&s!==n&&(i=!0);var a=!1,l=gt(s,r.toCssValue(o));l&&l!==o&&(a=!0),(i||a)&&(i&&delete e[n],e[s||n]=l||o)}return e},onChangeValue:function(e,t){return gt(t,r.toCssValue(e))||e}}}function vt(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}Ie&&(ct=document.createElement("p"));var bt,wt,xt=r.create((void 0===bt&&(bt={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=r.createRule(e,{},n);return o[q]=t,o},onProcessStyle:function(e,t){if(V in t||q 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[V]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[q];i&&(o.style=i(e));var s=o[V];if(s)for(var a in s)o.prop(a,s[a](e),n)}},(wt=bt.observable,{onCreateRule:function(e,t,n){if(!H(t))return null;var o=t,i=r.createRule(e,{},n);return o.subscribe(function(e){for(var t in e)i.prop(t,e[t],wt)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,n=function(e){var n=r[e];if(!H(n))return"continue";delete r[e],n.subscribe({next:function(r){t.prop(e,r,wt)}})};for(var o in r)n(o)}}}),{onProcessRule:X},re(),se(),fe(),ce(),ve(),ke(bt.defaultUnit),_e(),ht(),vt()]}));function jt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pt(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}var Ot={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},St={};St[d.ForwardRef]={$$typeof:!0,render:!0};var Ct=Object.defineProperty,Rt=Object.getOwnPropertyNames,Tt=Object.getOwnPropertySymbols,At=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Nt=Object.prototype;var _t=function e(t,r,n){if("string"!=typeof r){if(Nt){var o=Et(r);o&&o!==Nt&&e(t,o,n)}var i=Rt(r);Tt&&(i=i.concat(Tt(r)));for(var s=St[t.$$typeof]||Ot,a=St[r.$$typeof]||Ot,l=0;l<i.length;++l){var u=i[l];if(!(kt[u]||n&&n[u]||a&&a[u]||s&&s[u])){var f=At(r,u);try{Ct(t,u,f)}catch(e){}}}return t}return t},zt=function(e){return e.displayName||e.name||"Component"};var It=-Number.MAX_SAFE_INTEGER,Wt=0,Mt=function(e){return e.children||null},$t=new WeakMap,Dt=function(e,t,r){return"function"!=typeof e?e:e(t)},Ft=function(e,t){if(!t)return e.classes;var r={},n=$t.get(e);if(!n)return e.classes;for(var o in n.themedStyles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r},Gt=function(e,t){var r=t.dynamicRules,n=t.sheet;if(n)for(var o in r)n.update(r[o].key,e)},Ut=function(e){var t=e.dynamicRules,r=e.sheet;if(r)for(var n in t)r.deleteRule(t[n].key)},Vt=function(e){var t=$t.get(e);if(t){var r={};for(var n in t.dynamicStyles){var o=n+"-"+t.dynamicRuleCounter++,i=e.addRule(o,t.dynamicStyles[n]);i&&(r[n]=i)}return r}};e.SheetsRegistry=r.SheetsRegistry,e.createGenerateId=r.createGenerateId,e.ThemeProvider=W,e.withTheme=I,e.createTheming=_,e.JssProvider=G,e.jss=xt,e.JssContext=D,e.default=function(e,o){var i=o||{},s=i.index,a=void 0===s?It++:s,l=i.theming,u=i.injectTheme,f=i.jss,c=Pt(i,["index","theming","injectTheme","jss"]),p="function"==typeof e,d=l&&l.context.Consumer||N.Consumer;return function(o){void 0===o&&(o=Mt);var i=zt(o),s="",l=Wt++,y=new r.SheetsManager,m={},g=function(e){return p&&e.theme?e.theme:m},h=function(t){function d(e){var r;(r=t.call(this,e)||this).mergeClassesProp=F(function(e,t){return t?function(e,t){var r=M({},e);for(var n in t)r[n]=n in r?r[n]+" "+t[n]:t[n];return r}(e,t):e}),r.classNamePrefix=void 0;var n=e.jssContext.sheetOptions;return r.classNamePrefix=(n.classNamePrefix||"")+s,r.state=r.createState(),r.manage(e,r.state),r}$(d,t);var m,h,v,b=d.prototype;return b.componentDidUpdate=function(e,t){if(Gt(this.props,this.state),p&&this.props.theme!==e.theme){var r=this.createState();this.manage(this.props,r),this.unmanage(e,t),this.setState(r)}},b.componentWillUnmount=function(){this.unmanage(this.props,this.state)},b.getSheet=function(){var t=g(this.props),n=this.manager.get(t);if(n)return n;var o=Dt(e,t,i),s=r.getDynamicStyles(o),l=this.props.jssContext.sheetOptions;return n=this.jss.createStyleSheet(o,M({},c,l,{index:a,meta:i+", "+(p?"Themed":"Unthemed"),classNamePrefix:this.classNamePrefix,link:null!==s})),$t.set(n,{dynamicStyles:s,themedStyles:o,dynamicRuleCounter:0}),this.manager.add(t,n),n},b.manage=function(e,t){var r=t.sheet,n=e.jssContext.registry;r&&(Gt(e,t),this.manager.manage(g(e)),n&&n.add(r))},b.unmanage=function(e,t){Ut(t),this.manager.unmanage(g(e))},b.createState=function(){if(this.props.jssContext.disableStylesGeneration)return{classes:{}};var e=this.getSheet(),t=Vt(e),r={sheet:e,classes:Ft(e,t)};return t&&(r.dynamicRules=t),r},b.render=function(){var e=this.props,t=e.innerRef,r=(e.jssContext,e.theme),i=e.classes,s=Pt(e,["innerRef","jssContext","theme","classes"]),a=this.state.classes,l=M({},s,{classes:this.mergeClassesProp(a,i)});return t&&(l.ref=t),u&&(l.theme=r),n.createElement(o,l)},m=d,(h=[{key:"jss",get:function(){return this.props.jssContext.jss||f||xt}},{key:"manager",get:function(){var e=this.props.jssContext.managers;return e?(e[l]||(e[l]=new r.SheetsManager),e[l]):y}}])&&jt(m.prototype,h),v&&jt(m,v),d}(t.Component);h.displayName="WithStyles("+i+")",h.defaultProps=M({},o.defaultProps);var v=n.forwardRef(function(e,t){return n.createElement(D.Consumer,null,function(r){return p||u?n.createElement(d,null,function(o){return n.createElement(h,M({innerRef:t,theme:o},e,{jssContext:r}))}):n.createElement(h,M({innerRef:t},e,{jssContext:r}))})});return v.displayName="JssContextSubscriber",v.InnerComponent=o,_t(v,o)}},Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "react-jss", | ||
"description": "JSS integration with React", | ||
"version": "10.0.0-alpha.15", | ||
"version": "10.0.0-alpha.16", | ||
"license": "MIT", | ||
@@ -46,4 +46,4 @@ "main": "dist/react-jss.cjs.js", | ||
"hoist-non-react-statics": "^3.2.0", | ||
"jss": "10.0.0-alpha.14", | ||
"jss-preset-default": "10.0.0-alpha.15", | ||
"jss": "10.0.0-alpha.16", | ||
"jss-preset-default": "10.0.0-alpha.16", | ||
"prop-types": "^15.6.0", | ||
@@ -56,3 +56,3 @@ "theming": "^3.0.3", | ||
}, | ||
"gitHead": "66d976859f0d2378ed929d721abb7e9ec1d4371f" | ||
"gitHead": "9984cccd0aad34010aa1c05ed35b2deed0353706" | ||
} |
@@ -12,3 +12,3 @@ # react-jss | ||
See our website [react-jss](https://cssinjs.org/react-jss?v=v10.0.0-alpha.15) for more information. | ||
See our website [react-jss](https://cssinjs.org/react-jss?v=v10.0.0-alpha.16) for more information. | ||
@@ -15,0 +15,0 @@ ## Install |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
624039
11194
+ Addedjss@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-camel-case@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-compose@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-default-unit@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-expand@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-extend@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-global@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-nested@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-props-sort@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-rule-value-function@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-rule-value-observable@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-template@10.0.0-alpha.16(transitive)
+ Addedjss-plugin-vendor-prefixer@10.0.0-alpha.16(transitive)
+ Addedjss-preset-default@10.0.0-alpha.16(transitive)
- Removedjss@10.0.0-alpha.14(transitive)
- Removedjss-plugin-camel-case@10.0.0-alpha.15(transitive)
- Removedjss-plugin-compose@10.0.0-alpha.14(transitive)
- Removedjss-plugin-default-unit@10.0.0-alpha.14(transitive)
- Removedjss-plugin-expand@10.0.0-alpha.14(transitive)
- Removedjss-plugin-extend@10.0.0-alpha.14(transitive)
- Removedjss-plugin-global@10.0.0-alpha.14(transitive)
- Removedjss-plugin-nested@10.0.0-alpha.14(transitive)
- Removedjss-plugin-props-sort@10.0.0-alpha.14(transitive)
- Removedjss-plugin-rule-value-function@10.0.0-alpha.14(transitive)
- Removedjss-plugin-rule-value-observable@10.0.0-alpha.14(transitive)
- Removedjss-plugin-template@10.0.0-alpha.14(transitive)
- Removedjss-plugin-vendor-prefixer@10.0.0-alpha.15(transitive)
- Removedjss-preset-default@10.0.0-alpha.15(transitive)
Updatedjss@10.0.0-alpha.16