mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-26 18:35:14 +00:00
3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).emotionReact={},e.React)}(this,(function(e,t){"use strict";var r=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?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||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(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(e){0}}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},e}(),n="-ms-",a="-moz-",o="-webkit-",s="comm",c="rule",i="decl",u=Math.abs,f=String.fromCharCode;function l(e){return e.trim()}function p(e,t,r){return e.replace(t,r)}function d(e,t){return 0|e.charCodeAt(t)}function y(e,t,r){return e.slice(t,r)}function h(e){return e.length}function m(e){return e.length}function v(e,t){return t.push(e),e}var g=1,b=1,x=0,w=0,$=0,C="";function S(e,t,r,n,a,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:g,column:b,length:s,return:""}}function k(e,t,r){return S(e,t.root,t.parent,r,t.props,t.children,0)}function _(){return $=w<x?d(C,w++):0,b++,10===$&&(b=1,g++),$}function O(){return d(C,w)}function A(){return w}function E(e,t){return y(C,e,t)}function P(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 j(e){return g=b=1,x=h(C=e),w=0,[]}function M(e){return C="",e}function T(e){return l(E(w-1,R(91===e?e+2:40===e?e+1:e)))}function N(e){for(;($=O())&&$<33;)_();return P(e)>2||P($)>3?"":" "}function R(e){for(;_();)switch($){case e:return w;case 34:case 39:return R(34===e||39===e?e:$);case 40:41===e&&R(e);break;case 92:_()}return w}function z(e,t){for(;_()&&e+$!==57&&(e+$!==84||47!==O()););return"/*"+E(t,w-1)+"*"+f(47===e?e:_())}function F(e){for(;!P(O());)_();return E(e,w)}function D(e){return M(G("",null,null,null,[""],e=j(e),0,[0],e))}function G(e,t,r,n,a,o,s,c,i){for(var u=0,l=0,d=s,y=0,m=0,g=0,b=1,x=1,w=1,$=0,C="",S=a,k=o,E=n,P=C;x;)switch(g=$,$=_()){case 34:case 39:case 91:case 40:P+=T($);break;case 9:case 10:case 13:case 32:P+=N(g);break;case 47:switch(O()){case 42:case 47:v(I(z(_(),A()),t,r),i);break;default:P+="/"}break;case 123*b:c[u++]=h(P)*w;case 125*b:case 59:case 0:switch($){case 0:case 125:x=0;case 59+l:m>0&&v(m>32?W(P+";",n,r,d-1):W(p(P," ","")+";",n,r,d-2),i);break;case 59:P+=";";default:if(v(E=L(P,t,r,u,l,a,c,C,S=[],k=[],d),o),123===$)if(0===l)G(P,t,E,E,S,o,d,c,k);else switch(y){case 100:case 109:case 115:G(e,E,E,n&&v(L(e,E,E,0,0,a,c,C,a,S=[],d),k),a,k,d,c,n?S:k);break;default:G(P,E,E,E,[""],k,d,c,k)}}u=l=m=0,b=w=1,C=P="",d=s;break;case 58:d=1+h(P),m=g;default:switch(P+=f($),$*b){case 38:w=l>0?1:(P+="\f",-1);break;case 44:c[u++]=(h(P)-1)*w,w=1;break;case 64:45===O()&&(P+=T(_())),y=O(),l=h(C=P+=F(A())),$++;break;case 45:45===g&&2==h(P)&&(b=0)}}return o}function L(e,t,r,n,a,o,s,i,f,d,h){for(var v=a-1,g=0===a?o:[""],b=m(g),x=0,w=0,$=0;x<n;++x)for(var C=0,k=y(e,v+1,v=u(w=s[x])),_=e;C<b;++C)(_=l(w>0?g[C]+" "+k:p(k
|
||
|
//# sourceMappingURL=emotion-react.umd.min.js.map
|