ftn-stl-viewer
Version:
A component for viewing an STL object from a given URL by utilizing Three.js
7 lines • 605 kB
JavaScript
!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var i=r(1),o=n(i),a=r(6),s=n(a),l=r(7),u=n(l);s.default.render(o.default.createElement(u.default,null),document.getElementById("react-app"))},function(e,t,r){"use strict";e.exports=r(35)},function(e,t,r){e.exports=r(32)()},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){for(var r=Object(e),i=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var a=arguments[o];if(null!=a){var s=Object(a);for(var l in s)i.call(s,l)&&(r[l]=s[l])}}var u={};for(var l in r)u[n(l)]=r[l];return u}},function(e,t,r){"use strict";var n=r(14),i=r(12)(),o=0;e.exports=function(e){var t="anim_"+ ++o+ +new Date,r="@"+i+"keyframes "+t+" {";for(var a in e){r+=a+" {";for(var s in e[a]){var l=":"+e[a][s]+";";r+=i+s+l,r+=s+l}r+="}"}return r+="}",n(r),t}},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function n(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)o.call(n,c)&&(l[c]=n[c]);if(i){s=i(n);for(var h=0;h<s.length;h++)a.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},function(e,t,r){"use strict";function n(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),e.exports=r(34)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(9),h=n(c),p=function(e){function t(e){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.onChange=function(e){var t=e.target,n=t.files,i=new FileReader;i.readAsArrayBuffer(n[0]),i.onload=function(){r.setState({model:i.result})}},r.state={color:"#FF0000",model:void 0},r.clickBlue=r.clickBlue.bind(r),r.clickRed=r.clickRed.bind(r),r}return a(t,e),s(t,[{key:"clickBlue",value:function(e){e.preventDefault(),this.setState({color:"#0000FF"})}},{key:"clickRed",value:function(e){e.preventDefault(),this.setState({color:"#FF0000"})}},{key:"render",value:function(){return u.default.createElement("div",null,u.default.createElement("input",{id:"image-file",type:"file",onChange:this.onChange}),u.default.createElement(h.default,{modelColor:this.state.color,lights:[[.5,1,-1],[1,1,1]],rotate:!0,model:this.state.model}),u.default.createElement("button",{onClick:this.clickRed},"red"),u.default.createElement("button",{onClick:this.clickBlue},"blue"))}}]),t}(l.Component);t.default=p,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(10),l=n(s),u=r(6),c=n(u),h=r(38)(l.default),p="directionalLight",f=function(){function e(){o(this,e),this.loader=new l.default.STLLoader,this.scene=new l.default.Scene,this.renderer=new l.default.WebGLRenderer({antialias:!0}),this.reqNumber=0}return a(e,[{key:"init",value:function(e){this.component=e,this.width=e.props.width,this.height=e.props.height,this.modelColor=e.props.modelColor,this.backgroundColor=e.props.backgroundColor,this.orbitControls=e.props.orbitControls,this.rotate=e.props.rotate,this.cameraX=e.props.cameraX,this.cameraY=e.props.cameraY,this.cameraZ=e.props.cameraZ,this.rotationSpeeds=e.props.rotationSpeeds,this.lights=e.props.lights,this.lightColor=e.props.lightColor,this.model=e.props.model,void 0!==this.mesh&&(this.scene.remove(this.mesh),this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.scene.remove(this.grid));var t=this.scene.getObjectByName(p);t&&this.scene.remove(t),this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.distance=1e4;var r=this.lights.reduce(function(e,t){return e&&Array.isArray(t)},!0);r?this.lights.forEach(this.addLight.bind(this)):this.addLight(this.lights),this.reqNumber+=1,this.addSTLToScene(this.reqNumber)}},{key:"addLight",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new l.default.DirectionalLight(this.lightColor);(t=n.position).set.apply(t,i(e)),n.name=p+r,n.position.normalize(),this.scene.add(n)}},{key:"loadSTLFromUrl",value:function(e,t){var r=this;return new Promise(function(n){r.loader.crossOrigin="",r.loader.loadFromUrl(e,function(e){r.reqNumber===t&&n(e)})})}},{key:"loadFromFile",value:function(e){var t=this;return new Promise(function(r){t.loader.loadFromFile(e,function(e){r(e)})})}},{key:"addSTLToScene",value:function(e){var t=this,r=void 0;if("string"==typeof this.model)r=this.loadSTLFromUrl(this.model,e);else{if(!(this.model instanceof ArrayBuffer))return Promise.resolve(null);r=this.loadFromFile(this.model)}return r.then(function(e){e.computeFaceNormals(),e.computeVertexNormals(),e.center();var r=new l.default.MeshLambertMaterial({overdraw:!0,color:t.modelColor});e.hasColors&&(r=new l.default.MeshPhongMaterial({opacity:e.alpha,vertexColors:l.default.VertexColors})),t.mesh=new l.default.Mesh(e,r),e.computeBoundingBox(),t.xDims=e.boundingBox.max.x-e.boundingBox.min.x,t.yDims=e.boundingBox.max.y-e.boundingBox.min.y,t.zDims=e.boundingBox.max.z-e.boundingBox.min.z,t.rotate&&(t.mesh.rotation.x=t.rotationSpeeds[0],t.mesh.rotation.y=t.rotationSpeeds[1],t.mesh.rotation.z=t.rotationSpeeds[2]),t.scene.add(t.mesh),t.addCamera(),t.addInteractionControls(),t.addToReactComponent(),t.animate()})}},{key:"addCamera",value:function(){this.camera=new l.default.PerspectiveCamera(30,this.width/this.height,1,this.distance),null===this.cameraZ&&(this.cameraZ=Math.max(3*this.xDims,3*this.yDims,3*this.zDims)),this.camera.position.set(this.cameraX,this.cameraY,this.cameraZ),this.scene.add(this.camera),this.camera.lookAt(this.mesh),this.renderer.set,this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.backgroundColor,1)}},{key:"addInteractionControls",value:function(){this.orbitControls&&(this.controls=new h(this.camera,c.default.findDOMNode(this.component)),this.controls.enableKeys=!1,this.controls.addEventListener("change",this.orbitRender.bind(this)))}},{key:"addToReactComponent",value:function(){c.default.findDOMNode(this.component).replaceChild(this.renderer.domElement,c.default.findDOMNode(this.component).firstChild)}},{key:"animate",value:function(){this.rotate&&(this.animationRequestId=requestAnimationFrame(this.animate.bind(this))),this.orbitControls&&this.controls.update(),this.render()}},{key:"orbitRender",value:function(){this.rotate&&(this.rotate=!1),this.render()}},{key:"clean",value:function(){void 0!==this.mesh&&(this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.scene.remove(this.mesh),delete this.mesh);var e=this.scene.getObjectByName(p);e&&this.scene.remove(e),this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.renderer.dispose(),this.renderer.forceContextLoss()}},{key:"render",value:function(){this.mesh&&this.rotate&&(this.mesh.rotation.x+=this.rotationSpeeds[0],this.mesh.rotation.y+=this.rotationSpeeds[1],this.mesh.rotation.z+=this.rotationSpeeds[2]),this.renderer.render(this.scene,this.camera)}}]),e}();t.default=f,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(2),h=n(c),p=r(21),f=r(8),d=n(f),m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.paint=new d.default,this.paint.init(this)}},{key:"shouldComponentUpdate",value:function(e,t){return JSON.stringify(e)!==JSON.stringify(this.props)}},{key:"componentWillUpdate",value:function(e,t){this.props=e,this.paint.init(this)}},{key:"componentWillUnmount",value:function(){this.paint.clean(),delete this.paint}},{key:"render",value:function(){var e=this.props,t=e.width,r=e.height,n=e.modelColor;return u.default.createElement("div",{className:this.props.className,style:{width:t,height:r,overflow:"hidden"}},u.default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},u.default.createElement(p.ScaleLoader,{color:n,size:"16px"})))}}]),t}(l.Component);m.propTypes={className:h.default.string,url:h.default.string,width:h.default.number,height:h.default.number,backgroundColor:h.default.string,modelColor:h.default.string,rotate:h.default.bool,orbitControls:h.default.bool,cameraX:h.default.number,cameraY:h.default.number,cameraZ:h.default.number,lights:h.default.array,lightColor:h.default.string,rotationSpeeds:h.default.arrayOf(h.default.number),model:h.default.oneOfType([h.default.string,h.default.instanceOf(ArrayBuffer)]).isRequired},m.defaultProps={backgroundColor:"#EAEAEA",modelColor:"#B92C2C",height:400,width:400,rotate:!0,orbitControls:!0,cameraX:0,cameraY:0,cameraZ:null,lights:[0,0,1],lightColor:"#ffffff",rotationSpeeds:[0,0,.02],model:void 0},e.exports=m},function(e,t,r){"use strict";var n=r(39);n.STLLoader=function(e){this.manager=void 0!==e?e:n.DefaultLoadingManager},n.STLLoader.prototype={constructor:n.STLLoader,loadFromUrl:function(e,t,r,i){var o=this,a=new n.XHRLoader(o.manager);a.setCrossOrigin(this.crossOrigin),a.setResponseType("arraybuffer"),a.load(e,function(e){t(o.parse(e))},r,i)},loadFromFile:function(e,t){var r=this;t(r.parse(e))},parse:function(e){var t=function(){var e,t,n,i;if(i=new DataView(r),t=50,n=i.getUint32(80,!0),e=84+n*t,e===i.byteLength)return!0;for(var o=i.byteLength,a=0;a<o;a++)if(i.getUint8(a,!1)>127)return!0;return!1},r=this.ensureBinary(e);return t()?this.parseBinary(r):this.parseASCII(this.ensureString(e))},parseBinary:function(e){for(var t,r,i,o,a,s,l,u,c=new DataView(e),h=c.getUint32(80,!0),p=!1,f=0;f<70;f++)1129270351==c.getUint32(f,!1)&&82==c.getUint8(f+4)&&61==c.getUint8(f+5)&&(p=!0,o=new Float32Array(3*h*3),a=c.getUint8(f+6)/255,s=c.getUint8(f+7)/255,l=c.getUint8(f+8)/255,u=c.getUint8(f+9)/255);for(var d=84,m=50,g=0,v=new n.BufferGeometry,y=new Float32Array(3*h*3),b=new Float32Array(3*h*3),x=0;x<h;x++){var w=d+x*m,_=c.getFloat32(w,!0),S=c.getFloat32(w+4,!0),M=c.getFloat32(w+8,!0);if(p){var T=c.getUint16(w+48,!0);0===(32768&T)?(t=(31&T)/31,r=(T>>5&31)/31,i=(T>>10&31)/31):(t=a,r=s,i=l)}for(var E=1;E<=3;E++){var C=w+12*E;y[g]=c.getFloat32(C,!0),y[g+1]=c.getFloat32(C+4,!0),y[g+2]=c.getFloat32(C+8,!0),b[g]=_,b[g+1]=S,b[g+2]=M,p&&(o[g]=t,o[g+1]=r,o[g+2]=i),g+=3}}return v.addAttribute("position",new n.BufferAttribute(y,3)),v.addAttribute("normal",new n.BufferAttribute(b,3)),p&&(v.addAttribute("color",new n.BufferAttribute(o,3)),v.hasColors=!0,v.alpha=u),v},parseASCII:function(e){var t,r,i,o,a,s,l,u;for(t=new n.Geometry,o=/facet([\s\S]*?)endfacet/g;null!==(l=o.exec(e));){for(u=l[0],a=/normal[\s]+([\-+]?[0-9]+\.?[0-9]*([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+/g;null!==(l=a.exec(u));)i=new n.Vector3(parseFloat(l[1]),parseFloat(l[3]),parseFloat(l[5]));for(s=/vertex[\s]+([\-+]?[0-9]+\.?[0-9]*([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+/g;null!==(l=s.exec(u));)t.vertices.push(new n.Vector3(parseFloat(l[1]),parseFloat(l[3]),parseFloat(l[5])));r=t.vertices.length,t.faces.push(new n.Face3(r-3,r-2,r-1,i))}return t.computeBoundingBox(),t.computeBoundingSphere(),t},ensureString:function(e){if("string"!=typeof e){for(var t=new Uint8Array(e),r="",n=0;n<e.byteLength;n++)r+=String.fromCharCode(t[n]);return r}return e},ensureBinary:function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=255&e.charCodeAt(r);return t.buffer||t}return e}},"undefined"==typeof DataView&&(DataView=function(e,t,r){this.buffer=e,this.byteOffset=t||0,this.byteLength=r||e.byteLength||e.length,this._isString="string"==typeof e},DataView.prototype={_getCharCodes:function(e,t,r){t=t||0,r=r||e.length;for(var n=t+r,i=[],o=t;o<n;o++)i.push(255&e.charCodeAt(o));return i},_getBytes:function(e,t,r){var n;if(void 0===r&&(r=this._littleEndian),t=void 0===t?this.byteOffset:this.byteOffset+t,void 0===e&&(e=this.byteLength-t),"number"!=typeof t)throw new TypeError("DataView byteOffset is not a number");if(e<0||t+e>this.byteLength)throw new Error("DataView length or (byteOffset+length) value is out of bounds");return n=this.isString?this._getCharCodes(this.buffer,t,t+e):this.buffer.slice(t,t+e),!r&&e>1&&(n instanceof Array||(n=Array.prototype.slice.call(n)),n.reverse()),n},getFloat64:function(e,t){var r=this._getBytes(8,e,t),n=1-2*(r[7]>>7),i=((r[7]<<1&255)<<3|r[6]>>4)-1023,o=(15&r[6])*Math.pow(2,48)+r[5]*Math.pow(2,40)+r[4]*Math.pow(2,32)+r[3]*Math.pow(2,24)+r[2]*Math.pow(2,16)+r[1]*Math.pow(2,8)+r[0];return 1024===i?0!==o?NaN:n*(1/0):i===-1023?n*o*Math.pow(2,-1074):n*(1+o*Math.pow(2,-52))*Math.pow(2,i)},getFloat32:function(e,t){var r=this._getBytes(4,e,t),n=1-2*(r[3]>>7),i=(r[3]<<1&255|r[2]>>7)-127,o=(127&r[2])<<16|r[1]<<8|r[0];return 128===i?0!==o?NaN:n*(1/0):i===-127?n*o*Math.pow(2,-149):n*(1+o*Math.pow(2,-23))*Math.pow(2,i)},getInt32:function(e,t){var r=this._getBytes(4,e,t);return r[3]<<24|r[2]<<16|r[1]<<8|r[0]},getUint32:function(e,t){return this.getInt32(e,t)>>>0},getInt16:function(e,t){return this.getUint16(e,t)<<16>>16},getUint16:function(e,t){var r=this._getBytes(2,e,t);return r[1]<<8|r[0]},getInt8:function(e){return this.getUint8(e)<<24>>24},getUint8:function(e){return this._getBytes(1,e)[0]}}),e.exports=n},function(e,t){"use strict";e.exports=document.createElement("div").style},function(e,t){"use strict";var r;e.exports=function(){if(r)return r;var e=window.getComputedStyle(document.documentElement,""),t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return r="-"+t+"-"}},function(e,t,r){"use strict";var n,i=r(11),o=["Moz","Webkit","O","ms"];e.exports=function(e,t){var r;if(e in i)return e;var a=e.charAt(0).toUpperCase()+e.substr(1);if(n){if(r=n+a,r in i)return r}else for(var s=0;s<o.length;++s)if(r=o[s]+a,r in i)return n=o[s],r;return t?void 0:e}},function(e,t){"use strict";var r;e.exports=function(e){r||(r=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(r),r=r.sheet||r.styleSheet);var t=(r.cssRules||r.rules).length;return r.insertRule(e,t),r}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"50%":{transform:"scale(0.75)",opacity:.2},"100%":{transform:"scale(1)",opacity:1}},y=(0,g.default)(v),b={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),margin:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},x=Object.keys(b),w=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,margin:n.props.margin,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[y,"0.7s",(e%2?0:.35)+"s","infinite","linear"].join(" "),r="both";return{animation:t,animationFillMode:r}},n.getStyle=function(e){return(0,d.default)(n.getBallStyle(e),n.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=s({},this.props);if(b&&x)for(var r=x.length,n=0;n<r;n++)delete t[x[n]];return c.default.createElement("div",t,c.default.createElement("div",{style:this.getStyle(1)}),c.default.createElement("div",{style:this.getStyle(2)}),c.default.createElement("div",{style:this.getStyle(3)}))}return null}}]),t}(u.Component);w.propTypes=b,w.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=w,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},y=(0,g.default)(v),b={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},x=Object.keys(b),w=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,borderRadius:"100%",opacity:.6,position:"absolute",top:0,left:0,verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[y,"2s",1===e?"1s":"0s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},n.getStyle=function(e){return e?(0,d.default)(n.getBallStyle(e),n.getAnimationStyle(e),{border:"0px solid transparent"}):(0,d.default)({width:n.props.size,height:n.props.size,position:"relative",border:"0px solid transparent"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=s({},this.props);if(b&&x)for(var r=x.length,n=0;n<r;n++)delete t[x[n]];return c.default.createElement("div",t,c.default.createElement("div",{style:this.getStyle()},c.default.createElement("div",{style:this.getStyle(1)}),c.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(u.Component);w.propTypes=b,w.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=w,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"0%":{transform:"rotate(0deg) scale(1)"},"50%":{transform:"rotate(180deg) scale(0.8)"},"100%":{transform:"rotate(360deg) scale(1)"}},y=(0,g.default)(v),b={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},x=Object.keys(b),w=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{width:n.props.size,height:n.props.size,border:"2px solid",borderColor:n.props.color,borderBottomColor:"transparent",borderRadius:"100%",background:"transparent !important",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(){var e=[y,"0.75s","0s","infinite","linear"].join(" "),t="both";return{animation:e,animationFillMode:t}},n.getStyle=function(e){return(0,d.default)({border:"0px solid transparent"},n.getBallStyle(e),n.getAnimationStyle(),{display:"inline-block"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=s({},this.props);if(b&&x)for(var r=x.length,n=0;n<r;n++)delete t[x[n]];return c.default.createElement("div",t,c.default.createElement("div",{style:this.getStyle()}))}return null}}]),t}(u.Component);w.propTypes=b,w.defaultProps={loading:!0,color:"#ffffff",size:"35px"},t.default=w,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"100%":{transform:"rotate(360deg)"}},y={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},b=(0,g.default)(v),x=(0,g.default)(y),w={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),margin:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},_=Object.keys(w),S=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(e){return{backgroundColor:n.props.color,width:e,height:e,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[0===e?b:x,"2s",2===e?"-1s":"0s","infinite","linear"].join(" "),r="forwards";return{animation:t,animationFillMode:r}},n.getStyle=function(e){var t=0|n.props.size,r=t/2;return e?(0,d.default)(n.getBallStyle(r),n.getAnimationStyle(e),{position:"absolute",top:e%2?0:"auto",bottom:e%2?"auto":0,border:"0px solid transparent"}):(0,d.default)(n.getAnimationStyle(e),{width:t,height:t,position:"relative",border:"0px solid transparent"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=s({},this.props);if(w&&_)for(var r=_.length,n=0;n<r;n++)delete t[_[n]];return c.default.createElement("div",t,c.default.createElement("div",{style:this.getStyle(0)},c.default.createElement("div",{style:this.getStyle(1)}),c.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(u.Component);S.propTypes=w,S.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=S,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"50%":{opacity:.3},"100%":{opacity:1}},y=(0,g.default)(v),b={loading:p.default.bool,color:p.default.string,height:p.default.oneOfType([p.default.number,p.default.string]),width:p.default.oneOfType([p.default.number,p.default.string]),margin:p.default.oneOfType([p.default.number,p.default.string]),radius:p.default.string,verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},x=Object.keys(b),w=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getLineStyle=function(){return{backgroundColor:n.props.color,height:n.props.height,width:n.props.width,margin:n.props.margin,borderRadius:n.props.radius,verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[y,"1.2s",.12*e+"s","infinite","ease-in-out"].join(" "),r="both";return{animation:t,animationFillMode:r}},n.getPosStyle=function(e){var t=20,r=t/2+t/5.5,n={l1:{top:t,left:0},l2:{top:r,left:r,transform:"rotate(-45deg)"},l3:{top:0,left:t,transform:"rotate(90deg)"},l4:{top:-r,left:r,transform:"rotate(45deg)"},l5:{top:-t,left:0},l6:{top:-r,left:-r,transform:"rotate(-45deg)"},l7:{top:0,left:-t,transform:"rotate(90deg)"},l8:{top:r,left:-r,transform:"rotate(45deg)"}};return n["l"+e]},n.getStyle=function(e){return(0,d.default)(n.getLineStyle(e),n.getPosStyle(e),n.getAnimationStyle(e),{position:"absolute",border:"0px solid transparent"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t={position:"relative",fontSize:0},r=s({},this.props);if(b&&x)for(var n=x.length,i=0;i<n;i++)delete r[x[i]];return c.default.createElement("div",r,c.default.createElement("div",{style:t},c.default.createElement("div",{style:this.getStyle(1)}),c.default.createElement("div",{style:this.getStyle(2)}),c.default.createElement("div",{style:this.getStyle(3)}),c.default.createElement("div",{style:this.getStyle(4)}),c.default.createElement("div",{style:this.getStyle(5)}),c.default.createElement("div",{style:this.getStyle(6)}),c.default.createElement("div",{style:this.getStyle(7)}),c.default.createElement("div",{style:this.getStyle(8)})))}return null}}]),t}(u.Component);w.propTypes=b,w.defaultProps={loading:!0,color:"#ffffff",height:"15px",width:"5px",margin:"2px",radius:"2px"},t.default=w,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return Math.random()*e}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(1),h=n(c),p=r(2),f=n(p),d=r(3),m=n(d),g=r(4),v=n(g),y={"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.5)",
opacity:.7},"100%":{transform:"scale(1)",opacity:1}},b=(0,v.default)(y),x={loading:f.default.bool,color:f.default.string,size:f.default.oneOfType([f.default.number,f.default.string]),margin:f.default.oneOfType([f.default.number,f.default.string]),verticalAlign:f.default.oneOfType([f.default.number,f.default.string])},w=Object.keys(x),_=function(e){function t(){var e,r,n,a;i(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,margin:n.props.margin,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(){var e=s(100)/100+.6+"s",t=s(100)/100-.2+"s",r=[b,e,t,"infinite","ease"].join(" "),n="both";return{animation:r,animationFillMode:n}},n.getStyle=function(e){return(0,m.default)(n.getBallStyle(e),n.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},a=r,o(n,a)}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t={width:3*parseFloat(this.props.size)+6*parseFloat(this.props.margin),fontSize:0},r=l({},this.props);if(x&&w)for(var n=w.length,i=0;i<n;i++)delete r[w[i]];return h.default.createElement("div",r,h.default.createElement("div",{style:t},h.default.createElement("div",{style:this.getStyle(1)}),h.default.createElement("div",{style:this.getStyle(2)}),h.default.createElement("div",{style:this.getStyle(3)}),h.default.createElement("div",{style:this.getStyle(4)}),h.default.createElement("div",{style:this.getStyle(5)}),h.default.createElement("div",{style:this.getStyle(6)}),h.default.createElement("div",{style:this.getStyle(7)}),h.default.createElement("div",{style:this.getStyle(8)}),h.default.createElement("div",{style:this.getStyle(9)})))}return null}}]),t}(c.Component);_.propTypes=x,_.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=_,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SyncLoader=t.SquareLoader=t.SkewLoader=t.ScaleLoader=t.RotateLoader=t.RiseLoader=t.RingLoader=t.PulseLoader=t.PacmanLoader=t.MoonLoader=t.GridLoader=t.FadeLoader=t.DotLoader=t.ClipLoader=t.BounceLoader=t.BeatLoader=void 0;var i=r(15),o=n(i),a=r(16),s=n(a),l=r(17),u=n(l),c=r(18),h=n(c),p=r(19),f=n(p),d=r(20),m=n(d),g=r(22),v=n(g),y=r(23),b=n(y),x=r(24),w=n(x),_=r(25),S=n(_),M=r(26),T=n(M),E=r(27),C=n(E),A=r(28),P=n(A),L=r(29),k=n(L),O=r(30),R=n(O),D=r(31),F=n(D);t.BeatLoader=o.default,t.BounceLoader=s.default,t.ClipLoader=u.default,t.DotLoader=h.default,t.FadeLoader=f.default,t.GridLoader=m.default,t.MoonLoader=v.default,t.PacmanLoader=b.default,t.PulseLoader=w.default,t.RingLoader=S.default,t.RiseLoader=T.default,t.RotateLoader=C.default,t.ScaleLoader=P.default,t.SkewLoader=k.default,t.SquareLoader=R.default,t.SyncLoader=F.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),c=n(u),h=r(2),p=n(h),f=r(3),d=n(f),m=r(4),g=n(m),v={"100%":{transform:"rotate(360deg)"}},y=(0,g.default)(v),b={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),margin:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},x=Object.keys(b),w=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(e){return{width:e,height:e,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(){var e=[y,"0.6s","0s","infinite","linear"].join(" "),t="forwards";return{animation:e,animationFillMode:t}},n.getStyle=function(e){var t=0|n.props.size,r=t/7;return 1===e?(0,d.default)({border:"0px solid transparent"},n.getBallStyle(r),n.getAnimationStyle(e),{backgroundColor:n.props.color,opacity:"0.8",position:"absolute",top:t/2-r/2}):2===e?(0,d.default)({border:"0px solid transparent"},n.getBallStyle(t),{border:r+"px solid "+n.props.color,opacity:.1}):(0,d.default)({border:"0px solid transparent"},n.getAnimationStyle(e),{position:"relative"})},a=r,o(n,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=s({},this.props);if(b&&x)for(var r=x.length,n=0;n<r;n++)delete t[x[n]];return c.default.createElement("div",t,c.default.createElement("div",{style:this.getStyle(0)},c.default.createElement("div",{style:this.getStyle(1)}),c.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(u.Component);w.propTypes=b,w.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=w,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(2),h=n(c),p=r(3),f=n(p),d=r(4),m=n(d),g={},v={loading:h.default.bool,color:h.default.string,size:h.default.oneOfType([h.default.number,h.default.string]),margin:h.default.oneOfType([h.default.number,h.default.string]),verticalAlign:h.default.oneOfType([h.default.number,h.default.string])},y=Object.keys(v),b=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,margin:n.props.margin,borderRadius:"100%",verticalAlign:n.props.verticalAlign,border:"0px solid transparent"}},n.getAnimationStyle=function(e){var t=n.props.size,r=g[t];if(!r){var i={"75%":{opacity:.7},"100%":{transform:"translate("+-4*t+"px, "+-t/4+"px)"}};r=g[t]=(0,m.default)(i)}var o=[r,"1s",.25*e+"s","infinite","linear"].join(" "),a="both";return{animation:o,animationFillMode:a}},n.getStyle=function(e){if(e|!1){var t=n.props.size+"px solid transparent",r=n.props.size+"px solid "+n.props.color;return{width:0,height:0,borderRight:t,borderTop:r,borderLeft:r,borderBottom:r,borderRadius:n.props.size}}return(0,f.default)(n.getBallStyle(e),n.getAnimationStyle(e),{width:10,height:10,transform:"translate(0, "+-n.props.size/4+"px)",position:"absolute",top:25,left:100})},n.renderLoader=function(e){if(e){var t={position:"relative",fontSize:0},r=Object.assign({},n.props);if(v&&y)for(var i=y.length,o=0;o<i;o++)delete r[y[o]];return u.default.createElement("div",r,u.default.createElement("div",{style:t},u.default.createElement("div",{style:n.getStyle(1)}),u.default.createElement("div",{style:n.getStyle(2)}),u.default.createElement("div",{style:n.getStyle(3)}),u.default.createElement("div",{style:n.getStyle(4)}),u.default.createElement("div",{style:n.getStyle(5)})))}return null},a=r,o(n,a)}return a(t,e),s(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);b.propTypes=v,b.defaultProps={loading:!0,color:"#fff",size:25,margin:2},t.default=b,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(2),h=n(c),p=r(3),f=n(p),d=r(4),m=n(d),g={"0%":{transform:"scale(1)",opacity:1},"45%":{transform:"scale(0.1)",opacity:.7},"80%":{transform:"scale(1)",opacity:1}},v=(0,m.default)(g),y={loading:h.default.bool,color:h.default.string,size:h.default.oneOfType([h.default.number,h.default.string]),margin:h.default.oneOfType([h.default.number,h.default.string]),verticalAlign:h.default.oneOfType([h.default.number,h.default.string])},b=Object.keys(y),x=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,margin:n.props.margin,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[v,"0.75s",.12*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),r="both";return{animation:t,animationFillMode:r}},n.getStyle=function(e){return(0,f.default)(n.getBallStyle(e),n.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},n.renderLoader=function(e){if(e){var t=Object.assign({},n.props);if(y&&b)for(var r=b.length,i=0;i<r;i++)delete t[b[i]];return u.default.createElement("div",t,u.default.createElement("div",{style:n.getStyle(1)}),u.default.createElement("div",{style:n.getStyle(2)}),u.default.createElement("div",{style:n.getStyle(3)}))}return null},a=r,o(n,a)}return a(t,e),s(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);x.propTypes=y,x.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=x,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(2),h=n(c),p=r(3),f=n(p),d=r(4),m=n(d),g={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(180deg) rotateY(360deg) rotateZ(360deg)"}},v={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(360deg) rotateY(180deg) rotateZ(360deg)"}},y=(0,m.default)(g),b=(0,m.default)(v),x={loading:h.default.bool,color:h.default.string,size:h.default.oneOfType([h.default.number,h.default.string]),margin:h.default.oneOfType([h.default.number,h.default.string]),verticalAlign:h.default.oneOfType([h.default.number,h.default.string])},w=Object.keys(x),_=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getCircleStyle=function(e){return{width:e,height:e,border:e/10+"px solid "+n.props.color,opacity:.4,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[e|!1?y:b,"2s","0s","infinite","linear"].join(" "),r="forwards",n="800px";return{perspective:n,animation:t,animationFillMode:r}},n.getStyle=function(e){var t=parseInt(n.props.size,10);return e?(0,f.default)({border:"0px solid transparent"},n.getCircleStyle(t),n.getAnimationStyle(e),{position:"absolute",top:0,left:0}):{width:t,height:t,position:"relative",border:"0px solid transparent"}},n.renderLoader=function(e){if(e){var t=Object.assign({},n.props);if(x&&w)for(var r=w.length,i=0;i<r;i++)delete t[w[i]];return u.default.createElement("div",t,u.default.createElement("div",{style:n.getStyle(0)},u.default.createElement("div",{style:n.getStyle(1)}),u.default.createElement("div",{style:n.getStyle(2)})))}return null},a=r,o(n,a)}return a(t,e),s(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);_.propTypes=x,_.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=_,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),u=n(l),c=r(2),h=n(c),p=r(3),f=n(p),d=r(4),m=n(d),g=30,v={"0%":{transform:"scale(1.1)"},"25%":{transform:"translateY(-"+g+"px)"},"50%":{transform:"scale(0.4)"},"75%":{transform:"translateY("+g+"px)"},"100%":{transform:"translateY(0) scale(1.0)"}},y={"0%":{transform:"scale(0.4)"},25:{transform:"translateY("+g+"px)"},"50%":{transform:"scale(1.1)"},"75%":{transform:"translateY(-"+g+"px)"},"100%":{transform:"translateY(0) scale(0.75)"}},b=(0,m.default)(v),x=(0,m.default)(y),w={loading:h.default.bool,color:h.default.string,size:h.default.oneOfType([h.default.number,h.default.string]),margin:h.default.oneOfType([h.default.number,h.default.string]),verticalAlign:h.default.oneOfType([h.default.number,h.default.string])},_=Object.keys(w),S=function(e){function t(){var e,r,n,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.getBallStyle=function(){return{backgroundColor:n.props.color,width:n.props.size,height:n.props.size,margin:n.props.margin,borderRadius:"100%",verticalAlign:n.props.verticalAlign}},n.getAnimationStyle=function(e){var t=[e%2===0?b:x,"1s","0s","infinite","cubic-bezier(.15,.46,.9,.6)"].join(" "),r="both";return{animation:t,animationFillMode:r}},n.getStyle=function(e){re