Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

react-metamask-avatar

Package Overview
Dependencies
107
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.2 to 2.0.0

4

dist/esm/index.js

@@ -1,2 +0,2 @@

import e,{forwardRef as t,useContext as r,createElement as n,createContext as a,Fragment as i}from"react";var s=function(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};s.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},s.prototype.init_by_array=function(e,t){var r,n,a;for(this.init_seed(19650218),r=1,n=0,a=this.N>t?this.N:t;a;a--){var i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(1664525*((4294901760&i)>>>16)<<16)+1664525*(65535&i))+e[n]+n,this.mt[r]>>>=0,n++,++r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=t&&(n=0)}for(a=this.N-1;a;a--){i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(1566083941*((4294901760&i)>>>16)<<16)+1566083941*(65535&i))-r,this.mt[r]>>>=0,++r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1)}this.mt[0]=2147483648},s.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r<this.N-this.M;r++)e=this.mt[r]&this.UPPER_MASK|this.mt[r+1]&this.LOWER_MASK,this.mt[r]=this.mt[r+this.M]^e>>>1^t[1&e];for(;r<this.N-1;r++)e=this.mt[r]&this.UPPER_MASK|this.mt[r+1]&this.LOWER_MASK,this.mt[r]=this.mt[r+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},s.prototype.random_int31=function(){return this.random_int()>>>1},s.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},s.prototype.random=function(){return this.random_int()*(1/4294967296)},s.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},s.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)};var o=s;var l=function(e,t){var r=document.createElement("div");return r.style.borderRadius="50px",r.style.overflow="hidden",r.style.padding="0px",r.style.margin="0px",r.style.width=e+"px",r.style.height=e+"px",r.style.display="inline-block",r.style.background=t,{container:r}},u={};!function(e){var t=function(){function e(t,n,a,i){"object"==typeof n&&(a=n.depth,i=n.prototype,n.filter,n=n.circular);var s=[],o=[],l="undefined"!=typeof Buffer;return void 0===n&&(n=!0),void 0===a&&(a=1/0),function t(a,u){if(null===a)return null;if(0==u)return a;var c,h;if("object"!=typeof a)return a;if(e.__isArray(a))c=[];else if(e.__isRegExp(a))c=new RegExp(a.source,r(a)),a.lastIndex&&(c.lastIndex=a.lastIndex);else if(e.__isDate(a))c=new Date(a.getTime());else{if(l&&Buffer.isBuffer(a))return c=Buffer.allocUnsafe?Buffer.allocUnsafe(a.length):new Buffer(a.length),a.copy(c),c;void 0===i?(h=Object.getPrototypeOf(a),c=Object.create(h)):(c=Object.create(i),h=i)}if(n){var d=s.indexOf(a);if(-1!=d)return o[d];s.push(a),o.push(c)}for(var p in a){var f;h&&(f=Object.getOwnPropertyDescriptor(h,p)),f&&null==f.set||(c[p]=t(a[p],u-1))}return c}(t,a)}function t(e){return Object.prototype.toString.call(e)}function r(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=r,e}();e.exports&&(e.exports=t)}({get exports(){return u},set exports(e){u=e}});var c={},h={get exports(){return c},set exports(e){c=e}},d={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},p={};for(var f in d)d.hasOwnProperty(f)&&(p[d[f]]=f);var g=h.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var v in g)if(g.hasOwnProperty(v)){if(!("channels"in g[v]))throw new Error("missing channels property: "+v);if(!("labels"in g[v]))throw new Error("missing channel labels property: "+v);if(g[v].labels.length!==g[v].channels)throw new Error("channel and label counts mismatch: "+v);var m=g[v].channels,b=g[v].labels;delete g[v].channels,delete g[v].labels,Object.defineProperty(g[v],"channels",{value:m}),Object.defineProperty(g[v],"labels",{value:b})}g.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,s=Math.min(n,a,i),o=Math.max(n,a,i),l=o-s;return o===s?t=0:n===o?t=(a-i)/l:a===o?t=2+(i-n)/l:i===o&&(t=4+(n-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+o)/2,[t,100*(o===s?0:r<=.5?l/(o+s):l/(2-o-s)),100*r]},g.rgb.hsv=function(e){var t,r,n,a,i,s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),h=function(e){return(u-e)/6/c+.5};return 0===c?a=i=0:(i=c/u,t=h(s),r=h(o),n=h(l),s===u?a=n-r:o===u?a=1/3+t-n:l===u&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},g.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[g.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},g.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},g.rgb.keyword=function(e){var t=p[e];if(t)return t;var r,n,a,i=1/0;for(var s in d)if(d.hasOwnProperty(s)){var o=d[s],l=(n=e,a=o,Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2));l<i&&(i=l,r=s)}return r},g.keyword.rgb=function(e){return d[e]},g.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},g.rgb.lab=function(e){var t=g.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},g.hsl.rgb=function(e){var t,r,n,a,i,s=e[0]/360,o=e[1]/100,l=e[2]/100;if(0===o)return[i=255*l,i,i];t=2*l-(r=l<.5?l*(1+o):l+o-l*o),a=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[u]=255*i;return a},g.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[t,100*(0===n?2*a/(i+a):2*r/(n+r)),100*((n+r)/2)]},g.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),o=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}},g.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return n=(2-i)*s,r=i*o,[a,100*(r=(r/=(t=(2-i)*o)<=1?t:2-t)||0),100*(n/=2)]},g.hwb.rgb=function(e){var t,r,n,a,i,s,o,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,s=a,o=u;break;case 1:i=a,s=r,o=u;break;case 2:i=u,s=r,o=a;break;case 3:i=u,s=a,o=r;break;case 4:i=a,s=u,o=r;break;case 5:i=r,s=u,o=a}return[255*i,255*s,255*o]},g.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},g.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,s=e[2]/100;return r=-.9689*a+1.8758*i+.0415*s,n=.0557*a+-.204*i+1.057*s,t=(t=3.2406*a+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},g.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},g.lab.xyz=function(e){var t,r,n,a=e[0];t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),s=Math.pow(t,3),o=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},g.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},g.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},g.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:g.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},g.hsv.ansi16=function(e){return g.rgb.ansi16(g.hsv.rgb(e),e[2])},g.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},g.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},g.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},g.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},g.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},g.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,n),a),s=Math.min(Math.min(r,n),a),o=i-s;return t=o<=0?0:i===r?(n-a)/o%6:i===n?2+(a-r)/o:4+(r-n)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?s/(1-o):0)]},g.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},g.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},g.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var a,i=[0,0,0],s=t%1*6,o=s%1,l=1-o;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return a=(1-r)*n,[255*(r*i[0]+a),255*(r*i[1]+a),255*(r*i[2]+a)]},g.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},g.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},g.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},g.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},g.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},g.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},g.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},g.gray.hsl=g.gray.hsv=function(e){return[0,0,e[0]]},g.gray.hwb=function(e){return[0,100,e[0]]},g.gray.cmyk=function(e){return[0,0,0,e[0]]},g.gray.lab=function(e){return[e[0],0,0]},g.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},g.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var y=c;function w(e){var t=function(){for(var e={},t=Object.keys(y),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(y[n]),i=a.length,s=0;s<i;s++){var o=a[s],l=t[o];-1===l.distance&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(o))}return t}function k(e,t){return function(r){return t(e(r))}}function x(e,t){for(var r=[t[e].parent,e],n=y[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=k(y[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var _=c,E=function(e){for(var t=w(e),r={},n=Object.keys(t),a=n.length,i=0;i<a;i++){var s=n[i];null!==t[s].parent&&(r[s]=x(s,t))}return r},N={};Object.keys(_).forEach((function(e){N[e]={},Object.defineProperty(N[e],"channels",{value:_[e].channels}),Object.defineProperty(N[e],"labels",{value:_[e].labels});var t=E(e);Object.keys(t).forEach((function(r){var n=t[r];N[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),N[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var M=N,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},O={getRgba:A,getHsla:C,getRgb:function(e){var t=A(e);return t&&t.slice(0,3)},getHsl:function(e){var t=C(e);return t&&t.slice(0,3)},getHwb:P,getAlpha:function(e){var t=A(e);if(t)return t[3];if(t=C(e))return t[3];if(t=P(e))return t[3]},hexString:function(e){return"#"+j(e[0])+j(e[1])+j(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return V(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:V,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return R(e,t);var r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+r+"%, "+n+"%, "+a+"%)"},percentaString:R,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return D(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:D,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return I[e.slice(0,3)]}};function A(e){if(e){var t=[0,0,0],r=1,n=e.match(/^#([a-fA-F0-9]{3})$/);if(n){n=n[1];for(var a=0;a<t.length;a++)t[a]=parseInt(n[a]+n[a],16)}else if(n=e.match(/^#([a-fA-F0-9]{6})$/)){n=n[1];for(a=0;a<t.length;a++)t[a]=parseInt(n.slice(2*a,2*a+2),16)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(a=0;a<t.length;a++)t[a]=parseInt(n[a+1]);r=parseFloat(n[4])}else if(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(a=0;a<t.length;a++)t[a]=Math.round(2.55*parseFloat(n[a+1]));r=parseFloat(n[4])}else if(n=e.match(/(\D+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(t=S[n[1]]))return}for(a=0;a<t.length;a++)t[a]=T(t[a],0,255);return r=r||0==r?T(r,0,1):1,t[3]=r,t}}function C(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[T(parseInt(t[1]),0,360),T(parseFloat(t[2]),0,100),T(parseFloat(t[3]),0,100),T(isNaN(r)?1:r,0,1)]}}}function P(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[T(parseInt(t[1]),0,360),T(parseFloat(t[2]),0,100),T(parseFloat(t[3]),0,100),T(isNaN(r)?1:r,0,1)]}}}function V(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function R(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function D(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function T(e,t,r){return Math.min(Math.max(t,e),r)}function j(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var I={};for(var $ in S)I[S[$]]=$;var z=u,q=M,F=O,L=function(e){if(e instanceof L)return e;if(!(this instanceof L))return new L(e);var t;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof e)if(t=F.getRgba(e))this.setValues("rgb",t);else if(t=F.getHsla(e))this.setValues("hsl",t);else{if(!(t=F.getHwb(e)))throw new Error('Unable to parse color from string "'+e+'"');this.setValues("hwb",t)}else if("object"==typeof e)if(void 0!==(t=e).r||void 0!==t.red)this.setValues("rgb",t);else if(void 0!==t.l||void 0!==t.lightness)this.setValues("hsl",t);else if(void 0!==t.v||void 0!==t.value)this.setValues("hsv",t);else if(void 0!==t.w||void 0!==t.whiteness)this.setValues("hwb",t);else{if(void 0===t.c&&void 0===t.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(e));this.setValues("cmyk",t)}};L.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){return this.values.rgb.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,t=[],r=0;r<3;r++)t[r]=e[r]/255;return t.push(this.values.alpha),t},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return F.hexString(this.values.rgb)},rgbString:function(){return F.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return F.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return F.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return F.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return F.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return F.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return F.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var r=this,n=e,a=void 0===t?.5:t,i=2*a-1,s=r.alpha()-n.alpha(),o=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,l=1-o;return this.rgb(o*r.red()+l*n.red(),o*r.green()+l*n.green(),o*r.blue()+l*n.blue()).alpha(r.alpha()*a+n.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e=new L;return e.values=z(this.values),e}},L.prototype.getValues=function(e){for(var t={},r=0;r<e.length;r++)t[e.charAt(r)]=this.values[e][r];return 1!==this.values.alpha&&(t.a=this.values.alpha),t},L.prototype.setValues=function(e,t){var r,n,a={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},s=1;if("alpha"===e)s=t;else if(t.length)this.values[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(r=0;r<e.length;r++)this.values[e][r]=t[e.charAt(r)];s=t.a}else if(void 0!==t[a[e][0]]){var o=a[e];for(r=0;r<e.length;r++)this.values[e][r]=t[o[r]];s=t.alpha}if(this.values.alpha=Math.max(0,Math.min(1,void 0===s?this.values.alpha:s)),"alpha"===e)return!1;for(r=0;r<e.length;r++)n=Math.max(0,Math.min(i[e][r],this.values[e][r])),this.values[e][r]=Math.round(n);for(var l in a)for(l!==e&&(this.values[l]=q[e][l](this.values[e])),r=0;r<l.length;r++)n=Math.max(0,Math.min(i[l][r],this.values[l][r])),this.values[l][r]=Math.round(n);return!0},L.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},L.prototype.setChannel=function(e,t,r){return void 0===r?this.values[e][t]:(r===this.values[e][t]||(this.values[e][t]=r,this.setValues(e,this.values[e])),this)};var U,H=o,W=l,B=L,Y=["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"],G="http://www.w3.org/2000/svg",K=function(e,t){U=new H(t);var r=function(e,t){var r=30*t.random()-Z/2;return e.map((function(e){var t=B(e);return t.rotate(r),t.hexString()}))}(Y.slice(),U),n=W(e,J(r)).container,a=document.createElementNS(G,"svg");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",e),a.setAttributeNS(null,"height",e),n.appendChild(a);for(var i=0;i<3;i++)X(r,e,i,3,a);return n};function X(e,t,r,n,a){var i=t/2,s=document.createElementNS(G,"rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",t),s.setAttributeNS(null,"height",t);var o=U.random(),l=2*Math.PI*o,u=t/n*U.random()+r*t/n,c="translate("+Math.cos(l)*u+" "+Math.sin(l)*u+")"+" "+("rotate("+(360*o+180*U.random()).toFixed(1)+" "+i+" "+i+")");s.setAttributeNS(null,"transform",c);var h=J(e);s.setAttributeNS(null,"fill",h),a.appendChild(s)}function J(e){U.random();var t=Math.floor(e.length*U.random());return e.splice(t,1)[0]}var Z=30;const Q={},ee=e=>{const{address:t,size:r}=e;if(!t||42!==t.length)return"";const n=`${r}-${t}`;if(Q[n])return Q[n];const a=parseInt(t.slice(2,10),16),i=K(r,a).firstChild;if(!i)return;const s=(new XMLSerializer).serializeToString(i),o=`data:image/svg+xml,${l=s,l.replace("<svg",~l.indexOf("xmlns")?"<svg":'<svg xmlns="http://www.w3.org/2000/svg"').replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/{/g,"%7B").replace(/}/g,"%7D").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}`;var l;return Q[n]=o,o};function te(){return te=Object.assign?Object.assign.bind():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},te.apply(this,arguments)}function re(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var ne=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ae=re((function(e){return ne.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ie=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),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.insertionPoint=e.insertionPoint,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 r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&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||!r}if(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.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&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),se="-ms-",oe="-moz-",le="-webkit-",ue="comm",ce="rule",he="decl",de="@keyframes",pe=Math.abs,fe=String.fromCharCode,ge=Object.assign;function ve(e){return e.trim()}function me(e,t,r){return e.replace(t,r)}function be(e,t){return e.indexOf(t)}function ye(e,t){return 0|e.charCodeAt(t)}function we(e,t,r){return e.slice(t,r)}function ke(e){return e.length}function xe(e){return e.length}function _e(e,t){return t.push(e),e}var Ee=1,Ne=1,Me=0,Se=0,Oe=0,Ae="";function Ce(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Ee,column:Ne,length:s,return:""}}function Pe(e,t){return ge(Ce("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ve(){return Oe=Se>0?ye(Ae,--Se):0,Ne--,10===Oe&&(Ne=1,Ee--),Oe}function Re(){return Oe=Se<Me?ye(Ae,Se++):0,Ne++,10===Oe&&(Ne=1,Ee++),Oe}function De(){return ye(Ae,Se)}function Te(){return Se}function je(e,t){return we(Ae,e,t)}function Ie(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 $e(e){return Ee=Ne=1,Me=ke(Ae=e),Se=0,[]}function ze(e){return Ae="",e}function qe(e){return ve(je(Se-1,Ue(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(Oe=De())&&Oe<33;)Re();return Ie(e)>2||Ie(Oe)>3?"":" "}function Le(e,t){for(;--t&&Re()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return je(e,Te()+(t<6&&32==De()&&32==Re()))}function Ue(e){for(;Re();)switch(Oe){case e:return Se;case 34:case 39:34!==e&&39!==e&&Ue(Oe);break;case 40:41===e&&Ue(e);break;case 92:Re()}return Se}function He(e,t){for(;Re()&&e+Oe!==57&&(e+Oe!==84||47!==De()););return"/*"+je(t,Se-1)+"*"+fe(47===e?e:Re())}function We(e){for(;!Ie(De());)Re();return je(e,Se)}function Be(e){return ze(Ye("",null,null,null,[""],e=$e(e),0,[0],e))}function Ye(e,t,r,n,a,i,s,o,l){for(var u=0,c=0,h=s,d=0,p=0,f=0,g=1,v=1,m=1,b=0,y="",w=a,k=i,x=n,_=y;v;)switch(f=b,b=Re()){case 40:if(108!=f&&58==ye(_,h-1)){-1!=be(_+=me(qe(b),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:_+=qe(b);break;case 9:case 10:case 13:case 32:_+=Fe(f);break;case 92:_+=Le(Te()-1,7);continue;case 47:switch(De()){case 42:case 47:_e(Ke(He(Re(),Te()),t,r),l);break;default:_+="/"}break;case 123*g:o[u++]=ke(_)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:-1==m&&(_=me(_,/\f/g,"")),p>0&&ke(_)-h&&_e(p>32?Xe(_+";",n,r,h-1):Xe(me(_," ","")+";",n,r,h-2),l);break;case 59:_+=";";default:if(_e(x=Ge(_,t,r,u,c,a,o,y,w=[],k=[],h),i),123===b)if(0===c)Ye(_,t,x,x,w,i,h,o,k);else switch(99===d&&110===ye(_,3)?100:d){case 100:case 108:case 109:case 115:Ye(e,x,x,n&&_e(Ge(e,x,x,0,0,a,o,y,a,w=[],h),k),a,k,h,o,n?w:k);break;default:Ye(_,x,x,x,[""],k,0,o,k)}}u=c=p=0,g=m=1,y=_="",h=s;break;case 58:h=1+ke(_),p=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ve())continue;switch(_+=fe(b),b*g){case 38:m=c>0?1:(_+="\f",-1);break;case 44:o[u++]=(ke(_)-1)*m,m=1;break;case 64:45===De()&&(_+=qe(Re())),d=De(),c=h=ke(y=_+=We(Te())),b++;break;case 45:45===f&&2==ke(_)&&(g=0)}}return i}function Ge(e,t,r,n,a,i,s,o,l,u,c){for(var h=a-1,d=0===a?i:[""],p=xe(d),f=0,g=0,v=0;f<n;++f)for(var m=0,b=we(e,h+1,h=pe(g=s[f])),y=e;m<p;++m)(y=ve(g>0?d[m]+" "+b:me(b,/&\f/g,d[m])))&&(l[v++]=y);return Ce(e,t,r,0===a?ce:o,l,u,c)}function Ke(e,t,r){return Ce(e,t,r,ue,fe(Oe),we(e,2,-2),0)}function Xe(e,t,r,n){return Ce(e,t,r,he,we(e,0,n),we(e,n+1,-1),n)}function Je(e,t){for(var r="",n=xe(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ze(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case he:return e.return=e.return||e.value;case ue:return"";case de:return e.return=e.value+"{"+Je(e.children,n)+"}";case ce:e.value=e.props.join(",")}return ke(r=Je(e.children,n))?e.return=e.value+"{"+r+"}":""}function Qe(e){var t=xe(e);return function(r,n,a,i){for(var s="",o=0;o<t;o++)s+=e[o](r,n,a,i)||"";return s}}var et=function(e,t,r){for(var n=0,a=0;n=a,a=De(),38===n&&12===a&&(t[r]=1),!Ie(a);)Re();return je(e,Se)},tt=function(e,t){return ze(function(e,t){var r=-1,n=44;do{switch(Ie(n)){case 0:38===n&&12===De()&&(t[r]=1),e[r]+=et(Se-1,t,r);break;case 2:e[r]+=qe(n);break;case 4:if(44===n){e[++r]=58===De()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fe(n)}}while(n=Re());return e}($e(e),t))},rt=new WeakMap,nt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||rt.get(r))&&!n){rt.set(e,!0);for(var a=[],i=tt(t,a),s=r.props,o=0,l=0;o<i.length;o++)for(var u=0;u<s.length;u++,l++)e.props[l]=a[o]?i[o].replace(/&\f/g,s[u]):s[u]+" "+i[o]}}},at=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},it=function(e){return"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},st=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},ot=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},lt=function(e,t,r){st(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."),ot(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!st(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ot(e)))};function ut(e,t){switch(function(e,t){return 45^ye(e,0)?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}(e,t)){case 5103:return le+"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 le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+oe+e+se+e+e;case 6828:case 4268:return le+e+se+e+e;case 6165:return le+e+se+"flex-"+e+e;case 5187:return le+e+me(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return le+e+se+"flex-item-"+me(e,/flex-|-self/,"")+e;case 4675:return le+e+se+"flex-line-pack"+me(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+se+me(e,"shrink","negative")+e;case 5292:return le+e+se+me(e,"basis","preferred-size")+e;case 6060:return le+"box-"+me(e,"-grow","")+le+e+se+me(e,"grow","positive")+e;case 4554:return le+me(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return me(me(me(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return me(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return me(me(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return me(e,/(.+)-inline(.+)/,le+"$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(ke(e)-1-t>6)switch(ye(e,t+1)){case 109:if(45!==ye(e,t+4))break;case 102:return me(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+oe+(108==ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~be(e,"stretch")?ut(me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ye(e,t+1))break;case 6444:switch(ye(e,ke(e)-3-(~be(e,"!important")&&10))){case 107:return me(e,":",":"+le)+e;case 101:return me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(45===ye(e,14)?"inline-":"")+"box$3$1"+le+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return le+e+se+me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+se+me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+se+me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+se+e+e}return e}var ct,ht,dt="undefined"!=typeof document,pt=dt?void 0:(ct=function(){return re((function(){var e={};return function(t){return e[t]}}))},ht=new WeakMap,function(e){if(ht.has(e))return ht.get(e);var t=ct(e);return ht.set(e,t),t}),ft=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case he:e.return=ut(e.value,e.length);break;case de:return Je([Pe(e,{value:me(e.value,"@","@"+le)})],n);case ce: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 Je([Pe(e,{props:[me(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Je([Pe(e,{props:[me(t,/:(plac\w+)/,":"+le+"input-$1")]}),Pe(e,{props:[me(t,/:(plac\w+)/,":-moz-$1")]}),Pe(e,{props:[me(t,/:(plac\w+)/,se+"input-$1")]})],n)}return""}))}}],gt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)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(dt&&"css"===t){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 n=e.stylisPlugins||ft;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,i,s={},o=[];dt&&(a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;o.push(e)})));var l,u=[nt,at];if("production"!==process.env.NODE_ENV&&u.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=t.parent?t.parent.children:n,s=i.length-1;s>=0;s--){var o=i[s];if(o.line<t.line)break;if(o.column<t.column){if(it(o))return;break}}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 m.compat}}),lt),dt){var c,h=[Ze,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==ue&&c.insert(e.value+"{}"))}:(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=Qe(u.concat(n,h));i=function(e,t,r,n){c=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){r.insert(e+t.map)}}),Je(Be(e?e+"{"+t.styles+"}":t.styles),d),n&&(m.inserted[t.name]=!0)}}else{var p=[Ze],f=Qe(u.concat(n,p)),g=pt(n)(t),v=function(e,t){var r=t.name;return void 0===g[r]&&(g[r]=Je(Be(e?e+"{"+t.styles+"}":t.styles),f)),g[r]};i=function(e,t,r,n){var a=t.name,i=v(e,t);return void 0===m.compat?(n&&(m.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):n?void(m.inserted[a]=i):i}}var m={key:t,sheet:new ie({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return m.sheet.hydrate(o),m},vt="undefined"!=typeof document;function mt(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var bt=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;(!1===r||!1===vt&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a="",i=t;do{var s=e.insert(t===i?"."+n:"",i,e.sheet,!0);vt||void 0===s||(a+=s),i=i.next}while(void 0!==i);if(!vt&&0!==a.length)return a}};var yt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},wt="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",kt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xt=/[A-Z]|^ms/g,_t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Et=function(e){return 45===e.charCodeAt(1)},Nt=function(e){return null!=e&&"boolean"!=typeof e},Mt=re((function(e){return Et(e)?e:e.replace(xt,"-$&").toLowerCase()})),St=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_t,(function(e,t,r){return It={name:t,styles:r,next:It},t}))}return 1===yt[e]||Et(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Ot=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,At=["normal","none","initial","inherit","unset"],Ct=St,Pt=/^-ms-/,Vt=/-(.)/g,Rt={};St=function(e,t){if("content"===e&&("string"!=typeof t||-1===At.indexOf(t)&&!Ot.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 r=Ct(e,t);return""===r||Et(e)||-1===e.indexOf("-")||void 0!==Rt[e]||(Rt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Pt,"ms-").replace(Vt,(function(e,t){return t.toUpperCase()}))+"?")),r}}var Dt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Tt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Dt);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return It={name:r.name,styles:r.styles,next:It},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)It={name:n.name,styles:n.styles,next:It},n=n.next;var a=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(a+=r.map),a}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Tt(e,t,r[a])+";";else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":Nt(s)&&(n+=Mt(i)+":"+St(i,s)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Dt);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var o=Tt(e,t,s);switch(i){case"animation":case"animationName":n+=Mt(i)+":"+o+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(kt),n+=i+"{"+o+"}"}}else for(var l=0;l<s.length;l++)Nt(s[l])&&(n+=Mt(i)+":"+St(i,s[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var i=It,s=r(e);return It=i,Tt(e,t,s)}"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 o=[],l=r.replace(_t,(function(e,t,r){var n="animation"+o.length;return o.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));o.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(o,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return r;var u=t[r];return void 0!==u?u:r}var jt,It,$t=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(jt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var zt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";It=void 0;var i,s=e[0];null==s||void 0===s.raw?(n=!1,a+=Tt(r,t,s)):("production"!==process.env.NODE_ENV&&void 0===s[0]&&console.error(wt),a+=s[0]);for(var o=1;o<e.length;o++)a+=Tt(r,t,e[o]),n&&("production"!==process.env.NODE_ENV&&void 0===s[o]&&console.error(wt),a+=s[o]);"production"!==process.env.NODE_ENV&&(a=a.replace(jt,(function(e){return i=e,""}))),$t.lastIndex=0;for(var l,u="";null!==(l=$t.exec(a));)u+="-"+l[1];var c=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:a,map:i,next:It,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:a,next:It}},qt="undefined"!=typeof document,Ft={}.hasOwnProperty,Lt=a("undefined"!=typeof HTMLElement?gt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Lt.displayName="EmotionCacheContext"),Lt.Provider;var Ut=function(e){return t((function(t,n){var a=r(Lt);return e(t,a,n)}))};qt||(Ut=function(e){return function(t){var a=r(Lt);return null===a?(a=gt({key:"css"}),n(Lt.Provider,{value:a},e(t,a))):e(t,a)}});var Ht=a({});"production"!==process.env.NODE_ENV&&(Ht.displayName="EmotionThemeContext");var Wt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Yt=function(){return null},Gt=Ut((function(e,t,a){var s=e.css;"string"==typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var o=e[Wt],l=[s],u="";"string"==typeof e.className?u=mt(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var c=zt(l,void 0,r(Ht));if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var h=e[Bt];h&&(c=zt([c,"label:"+h+";"]))}var d=bt(t,c,"string"==typeof o);u+=t.key+"-"+c.name;var p={};for(var f in e)!Ft.call(e,f)||"css"===f||f===Wt||"production"!==process.env.NODE_ENV&&f===Bt||(p[f]=e[f]);p.ref=a,p.className=u;var g=n(o,p),v=n(Yt,null);if(!qt&&void 0!==d){for(var m,b=c.name,y=c.next;void 0!==y;)b+=" "+y.name,y=y.next;v=n("style",((m={})["data-emotion"]=t.key+" "+b,m.dangerouslySetInnerHTML={__html:d},m.nonce=t.sheet.nonce,m))}return n(i,null,v,g)}));"production"!==process.env.NODE_ENV&&(Gt.displayName="EmotionCssPropInternal");var Kt=ae,Xt=function(e){return"theme"!==e},Jt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Kt:Xt},Zt=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Qt="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",er="undefined"!=typeof document,tr=function(){return null},rr=function e(t,a){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var s,o,l=t.__emotion_real===t,u=l&&t.__emotion_base||t;void 0!==a&&(s=a.label,o=a.target);var c=Zt(t,a,l),h=c||Jt(u),d=!h("as");return function(){var p=arguments,f=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&f.push("label:"+s+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{"production"!==process.env.NODE_ENV&&void 0===p[0][0]&&console.error(Qt),f.push(p[0][0]);for(var g=p.length,v=1;v<g;v++)"production"!==process.env.NODE_ENV&&void 0===p[0][v]&&console.error(Qt),f.push(p[v],p[0][v])}var m=Ut((function(e,t,a){var s=d&&e.as||u,l="",p=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=r(Ht)}"string"==typeof e.className?l=mt(t.registered,p,e.className):null!=e.className&&(l=e.className+" ");var m=zt(f.concat(p),t.registered,g),b=bt(t,m,"string"==typeof s);l+=t.key+"-"+m.name,void 0!==o&&(l+=" "+o);var y=d&&void 0===c?Jt(s):h,w={};for(var k in e)d&&"as"===k||y(k)&&(w[k]=e[k]);w.className=l,w.ref=a;var x=n(s,w),_=n(tr,null);if(!er&&void 0!==b){for(var E,N=m.name,M=m.next;void 0!==M;)N+=" "+M.name,M=M.next;_=n("style",((E={})["data-emotion"]=t.key+" "+N,E.dangerouslySetInnerHTML={__html:b},E.nonce=t.sheet.nonce,E))}return n(i,null,_,x)}));return m.displayName=void 0!==s?s:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=u,m.__emotion_styles=f,m.__emotion_forwardProp=c,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,te({},a,r,{shouldForwardProp:Zt(m,r,!0)})).apply(void 0,f)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){rr[e]=rr(e)}));const nr=rr("div",{shouldForwardProp:e=>"size"!==e})`
import e from"react";import a from"@metamask/jazzicon";import r from"@emotion/styled";const s={},t=e=>{const{address:r,size:t}=e;if(!r||42!==r.length)return"";const i=`${t}-${r}`;if(s[i])return s[i];const l=parseInt(r.slice(2,10),16),n=a(t,l).firstChild;if(!n)return;const d=(new XMLSerializer).serializeToString(n),g=`data:image/svg+xml,${o=d,o.replace("<svg",~o.indexOf("xmlns")?"<svg":'<svg xmlns="http://www.w3.org/2000/svg"').replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/{/g,"%7B").replace(/}/g,"%7D").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}`;var o;return s[i]=g,g},i=r("div",{shouldForwardProp:e=>"size"!==e})`
border-radius: 50%;

@@ -10,3 +10,3 @@ padding: 0;

height: ${({size:e})=>e}px;
`,ar=({size:t=24,address:r,className:n})=>r&&42===r.length?e.createElement(nr,{className:n,"data-testid":"MetaMaskAvatar-AvatarWrapper",size:t},e.createElement("img",{alt:"avatar","data-testid":`MetaMaskAvatar-Image-${t}x${t}`,src:ee({address:r,size:t})})):null;export{ar as MetaMaskAvatar};
`,l=({size:a=24,address:r,className:s})=>r&&42===r.length?e.createElement(i,{className:s,"data-testid":"MetaMaskAvatar-AvatarWrapper",size:a},e.createElement("img",{alt:"avatar","data-testid":`MetaMaskAvatar-Image-${a}x${a}`,src:t({address:r,size:a})})):null;export{l as MetaMaskAvatar};
//# sourceMappingURL=index.js.map
{
"name": "react-metamask-avatar",
"version": "1.6.2",
"version": "2.0.0",
"description": "A React component for rendering MetaMask avatars based on account address",

@@ -13,5 +13,5 @@ "keywords": [

],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/types",
"type": "module",
"files": [

@@ -120,2 +120,5 @@ "src/**/*.*",

"peerDependencies": {
"@emotion/react": "11.7.1",
"@emotion/styled": "11.6.0",
"@metamask/jazzicon": "2.0.0",
"react": ">=17.0.2",

@@ -122,0 +125,0 @@ "react-dom": ">=17.0.2"

@@ -19,9 +19,11 @@ | Statements | Branches | Functions | Lines |

Install the package and required peer dependencies...
### npm
```npm install react-metamask-avatar```
```npm install react-metamask-avatar @emotion/react @emotion/styled @metamask/jazzicon```
### yarn
```yarn add react-metamask-avatar```
```yarn add react-metamask-avatar @emotion/react @emotion/styled @metamask/jazzicon```

@@ -28,0 +30,0 @@ ## Demo

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc