vendor: 2,928 bytes, line 1
1var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++)for(var i in e=arguments[s])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},__assign.apply(this,arguments)},defaults={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},Spinner=function(){function t(t){void 0===t&&(t={}),this.opts=__assign(__assign({},defaults),t)}return t.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),this.el.style.position=this.opts.position,this.el.style.width="0",this.el.style.zIndex=this.opts.zIndex.toString(),this.el.style.left=this.opts.left,this.el.style.top=this.opts.top,this.el.style.transform="scale(".concat(this.opts.scale,")"),t&&t.insertBefore(this.el,t.firstChild||null),drawLines(this.el,this.opts),this},t.prototype.stop=function(){return this.el&&(this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();export{Spinner};function getColor(t,e){return"string"==typeof t?t:t[e%t.length]}function drawLines(t,e){var s=Math.round(e.corners*e.width*500)/1e3+"px",n="none";!0===e.shadow?n="0 2px 4px #000":"string"==typeof e.shadow&&(n=e.shadow);for(var i=parseBoxShadow(n),o=0;o<e.lines;o++){var r=~~(360/e.lines*o+e.rotate),a=document.createElement("div");a.style.position="absolute",a.style.top="".concat(-e.width/2,"px"),a.style.width=e.length+e.width+"px",a.style.height=e.width+"px",a.style.background=getColor(e.fadeColor,o),a.style.borderRadius=s,a.style.transformOrigin="left",a.style.transform="rotate(".concat(r,"deg) translateX(").concat(e.radius,"px)");var l=o*e.direction/e.lines/e.speed;l-=1/e.speed;var h=document.createElement("div");h.style.width="100%",h.style.height="100%",h.style.background=getColor(e.color,o),h.style.borderRadius=s,h.style.boxShadow=normalizeShadow(i,r),h.style.animation="".concat(1/e.speed,"s linear ").concat(l,"s infinite ").concat(e.animation),a.appendChild(h),t.appendChild(a)}}function parseBoxShadow(t){for(var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,s=[],n=0,i=t.split(",");n<i.length;n++){var o=i[n].match(e);if(null!==o){var r=+o[2],a=+o[5],l=o[4],h=o[7];0!==r||l||(l=h),0!==a||h||(h=l),l===h&&s.push({prefix:o[1]||"",x:r,y:a,xUnits:l,yUnits:h,end:o[8]})}}return s}function normalizeShadow(t,e){for(var s=[],n=0,i=t;n<i.length;n++){var o=i[n],r=convertOffset(o.x,o.y,e);s.push(o.prefix+r[0]+o.xUnits+" "+r[1]+o.yUnits+o.end)}return s.join(", ")}function convertOffset(t,e,s){var n=s*Math.PI/180,i=Math.sin(n),o=Math.cos(n);return[Math.round(1e3*(t*o+e*i))/1e3,Math.round(1e3*(-t*i+e*o))/1e3]}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.