UNPKG

@patricksurry/g3

Version:

A flexible Javascript framework for building steam gauge instrument panels that display live external metrics from flight (or other) simulators like XPlane or MS FS2020

1 lines 156 kB
var g3=function(e){"use strict";!function(){const e={};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var t=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),n="-ms-",r="-moz-",i="-webkit-",a="comm",o="rule",s="decl",l=Math.abs,u=String.fromCharCode;function c(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function f(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function g(e,t,n){return e.slice(t,n)}function d(e){return e.length}function m(e){return e.length}function y(e,t){return t.push(e),e}var v=1,w=1,_=0,b=0,k=0,x="";function M(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:v,column:w,length:o,return:""}}function z(e,t,n){return M(e,t.root,t.parent,n,t.props,t.children,0)}function C(){return k=b>0?p(x,--b):0,w--,10===k&&(w=1,v--),k}function A(){return k=b<_?p(x,b++):0,w++,10===k&&(w=1,v++),k}function S(){return p(x,b)}function E(){return b}function D(e,t){return g(x,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return v=w=1,_=d(x=e),b=0,[]}function O(e){return x="",e}function U(e){return c(D(b-1,$(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(k=S())&&k<33;)A();return N(e)>2||N(k)>3?"":" "}function L(e,t){for(;--t&&A()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return D(e,E()+(t<6&&32==S()&&32==A()))}function $(e){for(;A();)switch(k){case e:return b;case 34:case 39:return $(34===e||39===e?e:k);case 40:41===e&&$(e);break;case 92:A()}return b}function j(e,t){for(;A()&&e+k!==57&&(e+k!==84||47!==S()););return"/*"+D(t,b-1)+"*"+u(47===e?e:A())}function P(e){for(;!N(S());)A();return D(e,b)}function F(e){return O(H("",null,null,null,[""],e=T(e),0,[0],e))}function H(e,t,n,r,i,a,o,s,l){for(var c=0,f=0,p=o,g=0,m=0,v=0,w=1,_=1,b=1,k=0,x="",M=i,z=a,D=r,N=x;_;)switch(v=k,k=A()){case 34:case 39:case 91:case 40:N+=U(k);break;case 9:case 10:case 13:case 32:N+=R(v);break;case 92:N+=L(E()-1,7);continue;case 47:switch(S()){case 42:case 47:y(I(j(A(),E()),t,n),l);break;default:N+="/"}break;case 123*w:s[c++]=d(N)*b;case 125*w:case 59:case 0:switch(k){case 0:case 125:_=0;case 59+f:m>0&&d(N)-p&&y(m>32?V(N+";",r,n,p-1):V(h(N," ","")+";",r,n,p-2),l);break;case 59:N+=";";default:if(y(D=G(N,t,n,c,f,i,s,x,M=[],z=[],p),a),123===k)if(0===f)H(N,t,D,D,M,a,p,s,z);else switch(g){case 100:case 109:case 115:H(e,D,D,r&&y(G(e,D,D,0,0,i,s,x,i,M=[],p),z),i,z,p,s,r?M:z);break;default:H(N,D,D,D,[""],z,p,s,z)}}c=f=m=0,w=b=1,x=N="",p=o;break;case 58:p=1+d(N),m=v;default:if(w<1)if(123==k)--w;else if(125==k&&0==w++&&125==C())continue;switch(N+=u(k),k*w){case 38:b=f>0?1:(N+="\f",-1);break;case 44:s[c++]=(d(N)-1)*b,b=1;break;case 64:45===S()&&(N+=U(A())),g=S(),f=d(x=N+=P(E())),k++;break;case 45:45===v&&2==d(N)&&(w=0)}}return a}function G(e,t,n,r,i,a,s,u,f,p,d){for(var y=i-1,v=0===i?a:[""],w=m(v),_=0,b=0,k=0;_<r;++_)for(var x=0,z=g(e,y+1,y=l(b=s[_])),C=e;x<w;++x)(C=c(b>0?v[x]+" "+z:h(z,/&\f/g,v[x])))&&(f[k++]=C);return M(e,t,n,0===i?o:u,f,p,d)}function I(e,t,n){return M(e,t,n,a,u(k),g(e,2,-2),0)}function V(e,t,n,r){return M(e,t,n,s,g(e,0,r),g(e,r+1,-1),r)}function q(e,t){switch(function(e,t){return(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3)}(e,t)){case 5103:return i+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return i+e+r+e+n+e+e;case 6828:case 4268:return i+e+n+e+e;case 6165:return i+e+n+"flex-"+e+e;case 5187:return i+e+h(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return i+e+n+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return i+e+n+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return i+e+n+h(e,"shrink","negative")+e;case 5292:return i+e+n+h(e,"basis","preferred-size")+e;case 6060:return i+"box-"+h(e,"-grow","")+i+e+n+h(e,"grow","positive")+e;case 4554:return i+h(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,i+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(p(e,t+1)){case 109:if(45!==p(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+r+(108==p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?q(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==p(e,t+1))break;case 6444:switch(p(e,d(e)-3-(~f(e,"!important")&&10))){case 107:return h(e,":",":"+i)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i+(45===p(e,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+n+"$2box$3")+e}break;case 5936:switch(p(e,t+11)){case 114:return i+e+n+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return i+e+n+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return i+e+n+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return i+e+n+e+e}return e}function Y(e,t){for(var n="",r=m(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case"@import":case s:return e.return=e.return||e.value;case a:return"";case o:e.value=e.props.join(",")}return d(n=Y(e.children,r))?e.return=e.value+"{"+n+"}":""}function B(e){var t=m(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function W(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var X,Z,Q=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(N(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=P(b-1);break;case 2:e[n]+=U(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=A());return e}(T(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],a=Q(t,i),o=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<o.length;u++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[u]):o[u]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},re=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ie=function(e,t,n){ne(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),re(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!ne(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),re(e)))},ae="undefined"!=typeof document,oe=ae?void 0:(X=function(){return W((function(){var e={};return function(t){return e[t]}}))},Z=new WeakMap,function(e){if(Z.has(e))return Z.get(e);var t=X(e);return Z.set(e,t),t}),se=[function(e,t,r,a){if(!e.return)switch(e.type){case s:e.return=q(e.value,e.length);break;case"@keyframes":return Y([z(h(e.value,"@","@"+i),e,"")],a);case o:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y([z(h(t,/:(read-\w+)/,":-moz-$1"),e,"")],a);case"::placeholder":return Y([z(h(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),z(h(t,/:(plac\w+)/,":-moz-$1"),e,""),z(h(t,/:(plac\w+)/,n+"input-$1"),e,"")],a)}return""}))}}],le=function(e){var n=e.key;if("production"!==process.env.NODE_ENV&&!n)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(ae&&"css"===n){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||se;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,s,l={},u=[];ae&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)})));var c,h=[ee,te];if("production"!==process.env.NODE_ENV&&h.push(function(e){return function(t,n,r){if("rule"===t.type){var i,a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a&&!0!==e.compat){var o=n>0?r[n-1]:null;if(o&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((i=o.children).length?i[i.length-1]:null))return;a.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return w.compat}}),ie),ae){var f,p=[K,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?f.insert(e.return):e.value&&e.type!==a&&f.insert(e.value+"{}"))}:(c=function(e){f.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],g=B(h.concat(i,p));s=function(e,t,n,r){f=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(f={insert:function(e){n.insert(e+t.map)}}),Y(F(e?e+"{"+t.styles+"}":t.styles),g),r&&(w.inserted[t.name]=!0)}}else{var d=[K],m=B(h.concat(i,d)),y=oe(i)(n),v=function(e,t){var n=t.name;return void 0===y[n]&&(y[n]=Y(F(e?e+"{"+t.styles+"}":t.styles),m)),y[n]};s=function(e,t,n,r){var i=t.name,a=v(e,t);return void 0===w.compat?(r&&(w.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(w.inserted[i]=a):a}}var w={key:n,sheet:new t({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:l,registered:{},insert:s};return w.sheet.hydrate(u),w};var ue={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ce="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",he="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",fe=/[A-Z]|^ms/g,pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ge=function(e){return 45===e.charCodeAt(1)},de=function(e){return null!=e&&"boolean"!=typeof e},me=W((function(e){return ge(e)?e:e.replace(fe,"-$&").toLowerCase()})),ye=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pe,(function(e,t,n){return Ce={name:t,styles:n,next:Ce},t}))}return 1===ue[e]||ge(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ve=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,we=["normal","none","initial","inherit","unset"],_e=ye,be=/^-ms-/,ke=/-(.)/g,xe={};ye=function(e,t){if("content"===e&&("string"!=typeof t||-1===we.indexOf(t)&&!ve.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=_e(e,t);return""===n||ge(e)||-1===e.indexOf("-")||void 0!==xe[e]||(xe[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(be,"ms-").replace(ke,(function(e,t){return t.toUpperCase()}))+"?")),n}}function Me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ce={name:n.name,styles:n.styles,next:Ce},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ce={name:r.name,styles:r.styles,next:Ce},r=r.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Me(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":de(o)&&(r+=me(a)+":"+ye(a,o)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=Me(e,t,o);switch(a){case"animation":case"animationName":r+=me(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(he),r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)de(o[l])&&(r+=me(a)+":"+ye(a,o[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Ce,o=n(e);return Ce=a,Me(e,t,o)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(pe,(function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var ze,Ce,Ae=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(ze=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Se=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ce=void 0;var a,o=e[0];null==o||void 0===o.raw?(r=!1,i+=Me(n,t,o)):("production"!==process.env.NODE_ENV&&void 0===o[0]&&console.error(ce),i+=o[0]);for(var s=1;s<e.length;s++)i+=Me(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===o[s]&&console.error(ce),i+=o[s]);"production"!==process.env.NODE_ENV&&(i=i.replace(ze,(function(e){return a=e,""}))),Ae.lastIndex=0;for(var l,u="";null!==(l=Ae.exec(i));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:i,map:a,next:Ce,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:i,next:Ce}},Ee="undefined"!=typeof document;function De(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ne=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===Ee&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i="",a=t;do{var o=e.insert(t===a?"."+r:"",a,e.sheet,!0);Ee||void 0===o||(i+=o),a=a.next}while(void 0!==a);if(!Ee&&0!==i.length)return i}};function Te(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Oe(e,t,n){var r=[],i=De(e,r,n);return r.length<2?n:i+t(r)}var Ue=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var o in a="",i)i[o]&&o&&(a&&(a+=" "),a+=o);break;default:a=i}a&&(n&&(n+=" "),n+=a)}}return n},Re=function(e){var t=le(e);t.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Se(n,t.registered,void 0);return Ne(t,i,!1),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return Oe(t.registered,n,Ue(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Se(n,t.registered);Te(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Se(n,t.registered),a="animation-"+i.name;return Te(t,{name:i.name,styles:"@keyframes "+a+"{"+i.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:De.bind(null,t.registered),merge:Oe.bind(null,t.registered,n)}}({key:"css"}),Le=Re.injectGlobal,$e=Re.css;function je(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(i);++r<i;)a[r]=e+r*n;return a}var Pe={value:()=>{}};function Fe(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new He(r)}function He(e){this._=e}function Ge(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Ie(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Pe,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}He.prototype=Fe.prototype={constructor:He,on:function(e,t){var n,r=this._,i=Ge(e+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=Ve(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Ve(r[n],e.name,null);return this}for(;++a<o;)if((n=(e=i[a]).type)&&(n=Ie(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new He(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var qe="http://www.w3.org/1999/xhtml",Ye={svg:"http://www.w3.org/2000/svg",xhtml:qe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ke(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ye.hasOwnProperty(t)?{space:Ye[t],local:e}:e}function Be(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qe&&t.documentElement.namespaceURI===qe?t.createElement(e):t.createElementNS(n,e)}}function We(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xe(e){var t=Ke(e);return(t.local?We:Be)(t)}function Ze(){}function Qe(e){return null==e?Ze:function(){return this.querySelector(e)}}function Je(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function et(){return[]}function tt(e){return null==e?et:function(){return this.querySelectorAll(e)}}function nt(e){return function(){return this.matches(e)}}function rt(e){return function(t){return t.matches(e)}}var it=Array.prototype.find;function at(){return this.firstElementChild}var ot=Array.prototype.filter;function st(){return Array.from(this.children)}function lt(e){return new Array(e.length)}function ut(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function ct(e){return function(){return e}}function ht(e,t,n,r,i,a){for(var o,s=0,l=t.length,u=a.length;s<u;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new ut(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function ft(e,t,n,r,i,a,o){var s,l,u,c=new Map,h=t.length,f=a.length,p=new Array(h);for(s=0;s<h;++s)(l=t[s])&&(p[s]=u=o.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<f;++s)u=o.call(e,a[s],s,a)+"",(l=c.get(u))?(r[s]=l,l.__data__=a[s],c.delete(u)):n[s]=new ut(e,a[s]);for(s=0;s<h;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function pt(e){return e.__data__}function gt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function dt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function mt(e){return function(){this.removeAttribute(e)}}function yt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vt(e,t){return function(){this.setAttribute(e,t)}}function wt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _t(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function bt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function kt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xt(e){return function(){this.style.removeProperty(e)}}function Mt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function zt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ct(e,t){return e.style.getPropertyValue(t)||kt(e).getComputedStyle(e,null).getPropertyValue(t)}function At(e){return function(){delete this[e]}}function St(e,t){return function(){this[e]=t}}function Et(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Dt(e){return e.trim().split(/^|\s+/)}function Nt(e){return e.classList||new Tt(e)}function Tt(e){this._node=e,this._names=Dt(e.getAttribute("class")||"")}function Ot(e,t){for(var n=Nt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Ut(e,t){for(var n=Nt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Rt(e){return function(){Ot(this,e)}}function Lt(e){return function(){Ut(this,e)}}function $t(e,t){return function(){(t.apply(this,arguments)?Ot:Ut)(this,e)}}function jt(){this.textContent=""}function Pt(e){return function(){this.textContent=e}}function Ft(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Ht(){this.innerHTML=""}function Gt(e){return function(){this.innerHTML=e}}function It(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Vt(){this.nextSibling&&this.parentNode.appendChild(this)}function qt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yt(){return null}function Kt(){var e=this.parentNode;e&&e.removeChild(this)}function Bt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xt(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Zt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Qt(e,t,n){return function(){var r,i=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Jt(e,t,n){var r=kt(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function en(e,t){return function(){return Jt(this,e,t)}}function tn(e,t){return function(){return Jt(this,e,t.apply(this,arguments))}}ut.prototype={constructor:ut,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},Tt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var nn=[null];function rn(e,t){this._groups=e,this._parents=t}function an(){return new rn([[document.documentElement]],nn)}function on(e){return"string"==typeof e?new rn([[document.querySelector(e)]],[document.documentElement]):new rn([[e]],nn)}function sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ln(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function un(){}rn.prototype=an.prototype={constructor:rn,select:function(e){"function"!=typeof e&&(e=Qe(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(a=s[c])&&(o=e.call(a,a.__data__,c,s))&&("__data__"in a&&(o.__data__=a.__data__),u[c]=o);return new rn(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Je(e.apply(this,arguments))}}(e):tt(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o,s=t[a],l=s.length,u=0;u<l;++u)(o=s[u])&&(r.push(e.call(o,o.__data__,u,s)),i.push(o));return new rn(r,i)},selectChild:function(e){return this.select(null==e?at:function(e){return function(){return it.call(this.children,e)}}("function"==typeof e?e:rt(e)))},selectChildren:function(e){return this.selectAll(null==e?st:function(e){return function(){return ot.call(this.children,e)}}("function"==typeof e?e:rt(e)))},filter:function(e){"function"!=typeof e&&(e=nt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],u=0;u<s;++u)(a=o[u])&&e.call(a,a.__data__,u,o)&&l.push(a);return new rn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,pt);var n=t?ft:ht,r=this._parents,i=this._groups;"function"!=typeof e&&(e=ct(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=r[u],h=i[u],f=h.length,p=gt(e.call(c,c&&c.__data__,u,r)),g=p.length,d=s[u]=new Array(g),m=o[u]=new Array(g),y=l[u]=new Array(f);n(c,h,d,m,y,p,t);for(var v,w,_=0,b=0;_<g;++_)if(v=d[_]){for(_>=b&&(b=_+1);!(w=m[b])&&++b<g;);v._next=w||null}}return(o=new rn(o,r))._enter=s,o._exit=l,o},enter:function(){return new rn(this._enter||this._groups.map(lt),this._parents)},exit:function(){return new rn(this._exit||this._groups.map(lt),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u,c=n[l],h=r[l],f=c.length,p=s[l]=new Array(f),g=0;g<f;++g)(u=c[g]||h[g])&&(p[g]=u);for(;l<i;++l)s[l]=n[l];return new rn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=dt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,u=i[a]=new Array(l),c=0;c<l;++c)(o=s[c])&&(u[c]=o);u.sort(t)}return new rn(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,s=a.length;o<s;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this},attr:function(e,t){var n=Ke(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?yt:mt:"function"==typeof t?n.local?bt:_t:n.local?wt:vt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?xt:"function"==typeof t?zt:Mt)(e,t,null==n?"":n)):Ct(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?At:"function"==typeof t?Et:St)(e,t)):this.node()[e]},classed:function(e,t){var n=Dt(e+"");if(arguments.length<2){for(var r=Nt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?$t:t?Rt:Lt)(n,t))},text:function(e){return arguments.length?this.each(null==e?jt:("function"==typeof e?Ft:Pt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ht:("function"==typeof e?It:Gt)(e)):this.node().innerHTML},raise:function(){return this.each(Vt)},lower:function(){return this.each(qt)},append:function(e){var t="function"==typeof e?e:Xe(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Xe(e),r=null==t?Yt:"function"==typeof t?t:Qe(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Kt)},clone:function(e){return this.select(e?Wt:Bt)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=Xt(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?Qt:Zt,r=0;r<o;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?tn:en)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};var cn=.7,hn=1/cn,fn="\\s*([+-]?\\d+)\\s*",pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dn=/^#([0-9a-f]{3,8})$/,mn=new RegExp("^rgb\\("+[fn,fn,fn]+"\\)$"),yn=new RegExp("^rgb\\("+[gn,gn,gn]+"\\)$"),vn=new RegExp("^rgba\\("+[fn,fn,fn,pn]+"\\)$"),wn=new RegExp("^rgba\\("+[gn,gn,gn,pn]+"\\)$"),_n=new RegExp("^hsl\\("+[pn,gn,gn]+"\\)$"),bn=new RegExp("^hsla\\("+[pn,gn,gn,pn]+"\\)$"),kn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xn(){return this.rgb().formatHex()}function Mn(){return this.rgb().formatRgb()}function zn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=dn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Cn(t):3===n?new Dn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?An(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?An(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=mn.exec(e))?new Dn(t[1],t[2],t[3],1):(t=yn.exec(e))?new Dn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vn.exec(e))?An(t[1],t[2],t[3],t[4]):(t=wn.exec(e))?An(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=_n.exec(e))?Un(t[1],t[2]/100,t[3]/100,1):(t=bn.exec(e))?Un(t[1],t[2]/100,t[3]/100,t[4]):kn.hasOwnProperty(e)?Cn(kn[e]):"transparent"===e?new Dn(NaN,NaN,NaN,0):null}function Cn(e){return new Dn(e>>16&255,e>>8&255,255&e,1)}function An(e,t,n,r){return r<=0&&(e=t=n=NaN),new Dn(e,t,n,r)}function Sn(e){return e instanceof un||(e=zn(e)),e?new Dn((e=e.rgb()).r,e.g,e.b,e.opacity):new Dn}function En(e,t,n,r){return 1===arguments.length?Sn(e):new Dn(e,t,n,null==r?1:r)}function Dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Nn(){return"#"+On(this.r)+On(this.g)+On(this.b)}function Tn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function On(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Un(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,n,r)}function Rn(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=zn(e)),!e)return new Ln;if(e instanceof Ln)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Ln(o,s,l,e.opacity)}function Ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $n(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}sn(un,zn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:xn,formatHex:xn,formatHsl:function(){return Rn(this).formatHsl()},formatRgb:Mn,toString:Mn}),sn(Dn,En,ln(un,{brighter:function(e){return e=null==e?hn:Math.pow(hn,e),new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?cn:Math.pow(cn,e),new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Nn,formatHex:Nn,formatRgb:Tn,toString:Tn})),sn(Ln,(function(e,t,n,r){return 1===arguments.length?Rn(e):new Ln(e,t,n,null==r?1:r)}),ln(un,{brighter:function(e){return e=null==e?hn:Math.pow(hn,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?cn:Math.pow(cn,e),new Ln(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Dn($n(e>=240?e-240:e+120,i,r),$n(e,i,r),$n(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var jn=e=>()=>e;function Pn(e){return 1==(e=+e)?Fn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jn(isNaN(t)?n:t)}}function Fn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):jn(isNaN(e)?t:e)}var Hn=function e(t){var n=Pn(t);function r(e,t){var r=n((e=En(e)).r,(t=En(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Fn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function Gn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}function In(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Xn(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<i;++n)o[n]=a[n](e);return o}}function Vn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function qn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Yn(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Xn(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Kn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bn=new RegExp(Kn.source,"g");function Wn(e,t){var n,r,i,a=Kn.lastIndex=Bn.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(n=Kn.exec(e))&&(r=Bn.exec(t));)(i=r.index)>a&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:qn(n,r)})),a=Bn.lastIndex;return a<t.length&&(i=t.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Xn(e,t){var n,r=typeof t;return null==t||"boolean"===r?jn(t):("number"===r?qn:"string"===r?(n=zn(t))?(t=n,Hn):Wn:t instanceof zn?Hn:t instanceof Date?Vn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Gn:Array.isArray(t)?In:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Yn:qn)(e,t)}function Zn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Qn,Jn=180/Math.PI,er={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tr(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Jn,skewX:Math.atan(l)*Jn,scaleX:o,scaleY:s}}function nr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,o){var s=[],l=[];return a=e(a),o=e(o),function(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:qn(e,i)},{i:l-2,x:qn(r,a)})}else(i||a)&&o.push("translate("+i+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:qn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:qn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,s,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:qn(e,n)},{i:s-2,x:qn(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var rr,ir,ar=nr((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?er:tr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),or=nr((function(e){return null==e?er:(Qn||(Qn=document.createElementNS("http://www.w3.org/2000/svg","g")),Qn.setAttribute("transform",e),(e=Qn.transform.baseVal.consolidate())?tr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):er)}),", ",")",")"),sr=0,lr=0,ur=0,cr=0,hr=0,fr=0,pr="object"==typeof performance&&performance.now?performance:Date,gr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dr(){return hr||(gr(mr),hr=pr.now()+fr)}function mr(){hr=0}function yr(){this._call=this._time=this._next=null}function vr(e,t,n){var r=new yr;return r.restart(e,t,n),r}function wr(){hr=(cr=pr.now())+fr,sr=lr=0;try{!function(){dr(),++sr;for(var e,t=rr;t;)(e=hr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--sr}()}finally{sr=0,function(){var e,t,n=rr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:rr=t);ir=e,br(r)}(),hr=0}}function _r(){var e=pr.now(),t=e-cr;t>1e3&&(fr-=t,cr=e)}function br(e){sr||(lr&&(lr=clearTimeout(lr)),e-hr>24?(e<1/0&&(lr=setTimeout(wr,e-pr.now()-fr)),ur&&(ur=clearInterval(ur))):(ur||(cr=pr.now(),ur=setInterval(_r,1e3)),sr=1,gr(wr)))}function kr(e,t,n){var r=new yr;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}yr.prototype=vr.prototype={constructor:yr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?dr():+n)+(null==t?0:+t),this._next||ir===this||(ir?ir._next=this:rr=this,ir=this),this._call=e,this._time=n,br()},stop:function(){this._call&&(this._call=null,this._time=1/0,br())}};var xr=Fe("start","end","cancel","interrupt"),Mr=[];function zr(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,c,h,f;if(1!==n.state)return l();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return kr(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(kr((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),u=0,c=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=vr(a,0,n.time)}(e,n,{name:t,index:r,group:i,on:xr,tween:Mr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Cr(e,t){var n=Sr(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ar(e,t){var n=Sr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Sr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Er(e,t){var n,r;return function(){var i=Ar(this,e),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===t){(r=r.slice()).splice(o,1);break}i.tween=r}}function Dr(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=Ar(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function Nr(e,t,n){var r=e._id;return e.each((function(){var e=Ar(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Sr(e,r).value[t]}}function Tr(e,t){var n;return("number"==typeof t?qn:t instanceof zn?Hn:(n=zn(t))?(t=n,Hn):Wn)(e,t)}function Or(e){return function(){this.removeAttribute(e)}}function Ur(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rr(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function Lr(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function $r(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(e))===(s=l+"")?null:o===r&&s