react-chess
Version:
Renders a chess board using React
6 lines • 44.9 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.reactChess=t(require("react"),require("react-dom")):e.reactChess=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){return function(t){var n=t.onMouseDown,o=t.onMouseUp,a=t.onTouchEnd,i=t.onTouchStart,s=t.style,l=t.isMoving,u=7-t.y,c=Object.assign({},s,{position:"absolute",left:12.5*t.x+"%",top:12.5*u+"%",width:"12.5%",height:"12.5%",textAlign:"center",zIndex:l?1e3:void 0});return r.createElement("div",{onMouseDown:n,onMouseUp:o,onTouchEnd:a,onTouchStart:i,style:c},r.createElement(e,{size:"85%"}))}}},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";function r(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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=n(4),u=n(6),c=n(7),f=n(8),p=n(21),d=u.default||u,h=function(){return c.slice()},g=function(){},m={width:"12.5%",paddingBottom:"12.5%",float:"left",position:"relative",pointerEvents:"none"},v={fontSize:"calc(7px + .5vw)",position:"absolute",userSelect:"none"},y=Object.assign({top:"5%",left:"5%"},v),b=Object.assign({bottom:"5%",right:"5%"},v),w=function(e){function t(){var e;r(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];var s=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a)));return s.els={},s.state={},s.setBoardRef=function(e){return s.els.board=e},s.handleDragStart=s.handleDragStart.bind(s),s.handleDragStop=s.handleDragStop.bind(s),s.handleDrag=s.handleDrag.bind(s),s.handleResize=s.handleResize.bind(s),s}return a(t,e),i(t,[{key:"getSquareColor",value:function(e,t){var n=this.props,r=n.lightSquareColor,o=n.darkSquareColor,a=e%2;return t%2?a?r:o:a?o:r}},{key:"componentDidMount",value:function(){var e=this.els.board.clientWidth,t=e/8;this.setState({boardSize:e,tileSize:t})}},{key:"handleResize",value:function(e){var t=e.width/8;this.setState({boardSize:e.width,tileSize:t})}},{key:"coordsToPosition",value:function(e){var t=Math.round(e.x/this.state.tileSize),n=Math.round(e.y/this.state.tileSize);return{x:t,y:n,pos:""+String.fromCharCode(p.charCodeOffset+t)+(8-n)}}},{key:"handleDrag",value:function(e,t){if(this.props.highlightTarget){var n=this.state.targetTile,r=this.coordsToPosition({x:t.node.offsetLeft+t.x,y:t.node.offsetTop+t.y}),o=r.x,a=r.y;n&&n.x===o&&n.y===a||this.setState({targetTile:{x:o,y:a}})}}},{key:"handleDragStart",value:function(e,t){if(e.preventDefault(),!this.props.allowMoves)return!1;var n=t.node,r=this.coordsToPosition({x:n.offsetLeft,y:n.offsetTop}),o=this.findPieceAtPosition(r.pos);return!1!==this.props.onDragStart(o,r.pos)&&(this.setState({dragFrom:r,draggingPiece:o}),e)}},{key:"handleDragStop",value:function(e,t){var n=t.node,r=this.state,o=r.dragFrom,a=r.draggingPiece,i=this.coordsToPosition({x:n.offsetLeft+t.x,y:n.offsetTop+t.y});return this.setState({dragFrom:null,targetTile:null,draggingPiece:null}),o.pos===i.pos||(this.props.onMovePiece(a,o.pos,i.pos),!1)}},{key:"findPieceAtPosition",value:function(e){for(var t=0;t<this.props.pieces.length;t++){var n=this.props.pieces[t];if(2===n.indexOf(e))return{notation:n,name:n.slice(0,1),index:t,position:e}}return null}},{key:"renderLabelText",value:function(e,t){var n=0===e,r=7===t;if(!this.props.drawLabels||!n&&!r)return null;if(n&&r)return[s.createElement("span",{key:"blx",style:b},"a"),s.createElement("span",{key:"bly",style:y},"1")];var o=n?8-t:String.fromCharCode(p.charCodeOffset+e);return s.createElement("span",{style:n?y:b},o)}},{key:"render",value:function(){for(var e=this,t=this.state,n=t.targetTile,r=t.draggingPiece,o=t.boardSize,a=[],i=0;i<8;i++)for(var u=0;u<8;u++){var c=n&&n.x===u&&n.y===i,h=this.getSquareColor(u,i),g=c?"inset 0px 0px 0px 0.4vmin yellow":void 0,v=Object.assign({background:h,boxShadow:g},m);a.push(s.createElement("div",{key:"rect-"+u+"-"+i,style:v},this.renderLabelText(u,i)))}var y=this.props.pieces.map(function(t,n){var o=r&&n===r.index,a=p.fromPieceDecl(t),i=a.x,u=a.y,c=a.piece,d=f[c];return s.createElement(l,{bounds:"parent",position:{x:0,y:0},onStart:e.handleDragStart,onDrag:e.handleDrag,onStop:e.handleDragStop,key:c+"-"+i+"-"+u},s.createElement(d,{isMoving:o,x:i,y:u}))}),b=a.concat(y),w={position:"relative",overflow:"hidden",width:"100%",height:o};return s.createElement(d,{ref:this.setBoardRef,onlyEvent:!0,onResize:this.handleResize,style:w},b)}}]),t}(s.Component);w.defaultProps={allowMoves:!0,highlightTarget:!0,drawLabels:!0,onMovePiece:g,onDragStart:g,lightSquareColor:"#f0d9b5",darkSquareColor:"#b58863",pieces:h()},w.getDefaultLineup=h,e.exports=w},function(e,t,n){!function(t,r){e.exports=function(e,t){"use strict";function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e){return function(){return e}}function o(e,t,n,r,o,a,i,s){if(X(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e,t,n,r,o){for(var a in e)if(e.hasOwnProperty(a)){var i;try{ee("function"==typeof e[a],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",r||"React class",n,a,typeof e[a]),i=e[a](t,a,r,n,null,ne)}catch(e){i=e}if(te(!i||i instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof i),i instanceof Error&&!(i.message in re)){re[i.message]=!0;var s=o?o():"";te(!1,"Failed %s type: %s%s",n,i.message,null!=s?s:"")}}}function s(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function l(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function u(e){return"number"==typeof e&&!isNaN(e)}function c(e){return parseInt(e,10)}function f(e,t,n){if(e[t])return new Error("Invalid prop "+t+" passed to "+n+" - do not set this, set it on the child.")}function p(e,t){return t?""+t+d(e):e}function d(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}function h(e,t){return ve||(ve=s(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return l(e[t])})),!!l(e[ve])&&e[ve](t)}function g(e,t,n){var r=e;do{if(h(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function m(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function v(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function y(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=c(n.borderTopWidth),t+=c(n.borderBottomWidth)}function b(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=c(n.borderLeftWidth),t+=c(n.borderRightWidth)}function w(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=c(n.paddingTop),t-=c(n.paddingBottom)}function x(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=c(n.paddingLeft),t-=c(n.paddingRight)}function k(e,t){var n=t===t.ownerDocument.body,r=n?{left:0,top:0}:t.getBoundingClientRect();return{x:e.clientX+t.scrollLeft-r.left,y:e.clientY+t.scrollTop-r.top}}function E(e){var t=e.x,n=e.y;return pe({},p("transform",ue),"translate("+t+"px,"+n+"px)")}function S(e){return"translate("+e.x+","+e.y+")"}function M(e,t){return e.targetTouches&&s(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&s(e.changedTouches,function(e){return t===e.identifier})}function O(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}function j(e){if(e){var t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {background: transparent;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {background: transparent;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&L(e.body,"react-draggable-transparent-selection")}}function D(e){try{e&&e.body&&T(e.body,"react-draggable-transparent-selection"),e.selection?e.selection.empty():window.getSelection().removeAllRanges()}catch(e){}}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return de({touchAction:"none"},e)}function L(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)"+t+"(?!\\S)"))||(e.className+=" "+t)}function T(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)"+t+"(?!\\S)","g"),"")}function z(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"==typeof r?r:I(r);var o=B(e);if("string"==typeof r){var a=o.ownerDocument,i=a.defaultView,s=void 0;if(!((s="parent"===r?o.parentNode:a.querySelector(r))instanceof i.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var l=i.getComputedStyle(o),f=i.getComputedStyle(s);r={left:-o.offsetLeft+c(f.paddingLeft)+c(l.marginLeft),top:-o.offsetTop+c(f.paddingTop)+c(l.marginTop),right:x(s)-b(o)-o.offsetLeft+c(f.paddingRight)-c(l.marginRight),bottom:w(s)-y(o)-o.offsetTop+c(f.paddingBottom)-c(l.marginBottom)}}return u(r.right)&&(t=Math.min(t,r.right)),u(r.bottom)&&(n=Math.min(n,r.bottom)),u(r.left)&&(t=Math.max(t,r.left)),u(r.top)&&(n=Math.max(n,r.top)),[t,n]}function R(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function N(e){return"both"===e.props.axis||"x"===e.props.axis}function C(e){return"both"===e.props.axis||"y"===e.props.axis}function _(e,t,n){var r="number"==typeof t?M(e,t):null;if("number"==typeof t&&!r)return null;var o=B(n),a=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return k(r||e,a)}function W(e,t,n){var r=e.state,o=!u(r.lastX),a=B(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function A(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function I(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function B(t){var n=e.findDOMNode(t);if(!n)throw new Error("<DraggableCore>: Unmounted during event!");return n}function V(){}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var Y=function(){};Y.thatReturns=r,Y.thatReturnsFalse=r(!1),Y.thatReturnsTrue=r(!0),Y.thatReturnsNull=r(null),Y.thatReturnsThis=function(){return this},Y.thatReturnsArgument=function(e){return e};var H=Y,X=function(e){};X=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")};var q=o,U=H,F=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}};U=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];F.apply(void 0,[t].concat(r))}};var G=U,J=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,$=function(){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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=a(e),i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)K.call(n,s)&&(o[s]=n[s]);if(J){r=J(n);for(var l=0;l<r.length;l++)Q.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},Z="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ee=q,te=G,ne=Z,re={},oe=i,ae=function(e,t){function n(e){var t=e&&(w&&e[w]||e[x]);if("function"==typeof t)return t}function r(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function o(e){this.message=e,this.stack=""}function a(e){function n(n,i,s,l,u,c,f){if(l=l||k,c=c||s,f!==Z)if(t)q(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("undefined"!=typeof console){var p=l+":"+s;!r[p]&&a<3&&(G(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",c,l),r[p]=!0,a++)}return null==i[s]?n?new o(null===i[s]?"The "+u+" `"+c+"` is marked as required in `"+l+"`, but its value is `null`.":"The "+u+" `"+c+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(i,s,l,u,c)}var r={},a=0,i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function i(e){function t(t,n,r,a,i,s){var l=t[n];return m(l)!==e?new o("Invalid "+a+" `"+i+"` of type `"+v(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null}return a(t)}function s(e){function t(t,n,r,a,i){if("function"!=typeof e)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+a+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,a,i+"["+l+"]",Z);if(u instanceof Error)return u}return null}return a(t)}function l(e){function t(t,n,r,a,i){if(!(t[n]instanceof e)){var s=e.name||k;return new o("Invalid "+a+" `"+i+"` of type `"+b(t[n])+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}return null}return a(t)}function u(e){function t(t,n,a,i,s){for(var l=t[n],u=0;u<e.length;u++)if(r(l,e[u]))return null;return new o("Invalid "+i+" `"+s+"` of value `"+l+"` supplied to `"+a+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?a(t):(G(!1,"Invalid argument supplied to oneOf, expected an instance of array."),H.thatReturnsNull)}function c(e){function t(t,n,r,a,i){if("function"!=typeof e)return new o("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new o("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var c=e(s,u,r,a,i+"."+u,Z);if(c instanceof Error)return c}return null}return a(t)}function f(e){function t(t,n,r,a,i){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,a,i,Z))return null;return new o("Invalid "+a+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return G(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),H.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return G(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),n),H.thatReturnsNull}return a(t)}function p(e){function t(t,n,r,a,i){var s=t[n],l=m(s);if("object"!==l)return new o("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if(c){var f=c(s,u,r,a,i+"."+u,Z);if(f)return f}}return null}return a(t)}function d(e){function t(t,n,r,a,i){var s=t[n],l=m(s);if("object"!==l)return new o("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=$({},t[n],e);for(var c in u){var f=e[c];if(!f)return new o("Invalid "+a+" `"+i+"` key `"+c+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,c,r,a,i+"."+c,Z);if(p)return p}return null}return a(t)}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var r=n(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!h(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function g(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":g(t,e)?"symbol":t}function v(e){if(void 0===e||null===e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function b(e){return e.constructor&&e.constructor.name?e.constructor.name:k}var w="function"==typeof Symbol&&Symbol.iterator,x="@@iterator",k="<<anonymous>>",E={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:function(){return a(H.thatReturnsNull)}(),arrayOf:s,element:function(){function t(t,n,r,a,i){var s=t[n];return e(s)?null:new o("Invalid "+a+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected a single ReactElement.")}return a(t)}(),instanceOf:l,node:function(){function e(e,t,n,r,a){return h(e[t])?null:new o("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}return a(e)}(),objectOf:c,oneOf:u,oneOfType:f,shape:p,exact:d};return o.prototype=Error.prototype,E.checkPropTypes=oe,E.PropTypes=E,E},ie=n(function(e){var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,n=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t};e.exports=ae(n,!0)}),se=n(function(e){/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){function t(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o))e.push(t.apply(null,o));else if("object"===a)for(var i in o)n.call(o,i)&&o[i]&&e.push(i)}}return e.join(" ")}var n={}.hasOwnProperty;e.exports?e.exports=t:window.classNames=t}()}),le=["Moz","Webkit","O","ms"],ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<le.length;n++)if(p(e,le[n])in t)return le[n];return""}(),ce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),pe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he=function(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)},ge=function(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},me=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ve="",ye={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},be=ye.mouse,we=function(n){function r(){var t,n,o,a;ce(this,r);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return n=o=ge(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(s))),o.state={dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null},o.handleDragStart=function(t){if(o.props.onMouseDown(t),!o.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode(o);if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(o.props.disabled||!(t.target instanceof r.defaultView.Node)||o.props.handle&&!g(t.target,o.props.handle,n)||o.props.cancel&&g(t.target,o.props.cancel,n))){var a=O(t);o.setState({touchIdentifier:a});var i=_(t,a,o);if(null!=i){var s=i.x,l=i.y,u=W(o,s,l);V("calling",o.props.onStart),!1!==o.props.onStart(t,u)&&(o.props.enableUserSelectHack&&j(r),o.setState({dragging:!0,lastX:s,lastY:l}),m(r,be.move,o.handleDrag),m(r,be.stop,o.handleDragStop))}}},o.handleDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=_(e,o.state.touchIdentifier,o);if(null!=t){var n=t.x,r=t.y;if(Array.isArray(o.props.grid)){var a=n-o.state.lastX,i=r-o.state.lastY,s=R(o.props.grid,a,i),l=me(s,2);if(a=l[0],i=l[1],!a&&!i)return;n=o.state.lastX+a,r=o.state.lastY+i}var u=W(o,n,r);if(!1!==o.props.onDrag(e,u))o.setState({lastX:n,lastY:r});else try{o.handleDragStop(new MouseEvent("mouseup"))}catch(e){var c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.handleDragStop(c)}}},o.handleDragStop=function(t){if(o.state.dragging){var n=_(t,o.state.touchIdentifier,o);if(null!=n){var r=n.x,a=n.y,i=W(o,r,a),s=e.findDOMNode(o);s&&o.props.enableUserSelectHack&&D(s.ownerDocument),o.setState({dragging:!1,lastX:NaN,lastY:NaN}),o.props.onStop(t,i),s&&(v(s.ownerDocument,be.move,o.handleDrag),v(s.ownerDocument,be.stop,o.handleDragStop))}}},o.onMouseDown=function(e){return be=ye.mouse,o.handleDragStart(e)},o.onMouseUp=function(e){return be=ye.mouse,o.handleDragStop(e)},o.onTouchStart=function(e){return be=ye.touch,o.handleDragStart(e)},o.onTouchEnd=function(e){return be=ye.touch,o.handleDragStop(e)},a=n,ge(o,a)}return he(r,n),fe(r,[{key:"componentWillUnmount",value:function(){var t=e.findDOMNode(this);if(t){var n=t.ownerDocument;v(n,ye.mouse.move,this.handleDrag),v(n,ye.touch.move,this.handleDrag),v(n,ye.mouse.stop,this.handleDragStop),v(n,ye.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&D(n)}}},{key:"render",value:function(){return t.cloneElement(t.Children.only(this.props.children),{style:P(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(t.Component);we.displayName="DraggableCore",we.propTypes={allowAnyClick:ie.bool,disabled:ie.bool,enableUserSelectHack:ie.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ie.arrayOf(ie.number),scale:ie.number,handle:ie.string,cancel:ie.string,onStart:ie.func,onDrag:ie.func,onStop:ie.func,onMouseDown:ie.func,className:f,style:f,transform:f},we.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}};var xe=function(n){function r(e){ce(this,r);var t=ge(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.onDragStart=function(e,n){if(!1===t.props.onStart(e,A(t,n)))return!1;t.setState({dragging:!0,dragged:!0})},t.onDrag=function(e,n){if(!t.state.dragging)return!1;var r=A(t,n),o={x:r.x,y:r.y};if(t.props.bounds){var a=o.x,i=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var s=z(t,o.x,o.y),l=me(s,2),u=l[0],c=l[1];o.x=u,o.y=c,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(i-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)},t.onDragStop=function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,A(t,n)))return!1;var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,a=o.x,i=o.y;r.x=a,r.y=i}t.setState(r)},t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},t}return he(r,n),fe(r,[{key:"componentWillMount",value:function(){!this.props.position||this.props.onDrag||this.props.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&e.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n={},r=null,o=Boolean(this.props.position),a=!o||this.state.dragging,i=this.props.position||this.props.defaultPosition,s={x:N(this)&&a?this.state.x:i.x,y:C(this)&&a?this.state.y:i.y};this.state.isElementSVG?r=S(s):n=E(s);var l=this.props,u=l.defaultClassName,c=l.defaultClassNameDragging,f=l.defaultClassNameDragged,p=t.Children.only(this.props.children),d=se(p.props.className||"",u,(e={},pe(e,c,this.state.dragging),pe(e,f,this.state.dragged),e));return t.createElement(we,de({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(p,{className:d,style:de({},p.props.style,n),transform:r}))}}]),r}(t.Component);return xe.displayName="Draggable",xe.propTypes=de({},we.propTypes,{axis:ie.oneOf(["both","x","y","none"]),bounds:ie.oneOfType([ie.shape({left:ie.number,right:ie.number,top:ie.number,bottom:ie.number}),ie.string,ie.oneOf([!1])]),defaultClassName:ie.string,defaultClassNameDragging:ie.string,defaultClassNameDragged:ie.string,defaultPosition:ie.shape({x:ie.number,y:ie.number}),position:ie.shape({x:ie.number,y:ie.number}),className:f,style:f,transform:f}),xe.defaultProps=de({},we.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}),xe.default=xe,xe.DraggableCore=we,xe}(n(5),n(0))}()},function(e,n){e.exports=t},function(e,t,n){!function(e,r){!function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 i(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 function(n){return t.createElement(f,l({component:e},n))}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},f=function(e){function s(){var e,t,n,r;o(this,s);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return t=n=a(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(l))),n.state={},n.handleObjectLoad=function(e){n.setState({resizeTarget:e.target.contentDocument.defaultView},function(){n.state.resizeTarget.addEventListener("resize",n.handleResize),n.handleResize()})},n.handleResize=function(){var e={width:n.container.offsetWidth,height:n.container.offsetHeight};n.setState(e),n.props.onResize&&n.props.onResize(e)},r=t,a(n,r)}return i(s,e),u(s,[{key:"componentDidMount",value:function(){this.resizeElement.data="about:blank"}},{key:"componentWillUnmount",value:function(){var e=this.state.resizeTarget;e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",this.handleResize)}},{key:"render",value:function(){var e,o=this,a=this.props,i=a.children,s=(a.onResize,a.onlyEvent),u=a.component,f=a.widthPropName,p=a.heightPropName,d=r(a,["children","onResize","onlyEvent","component","widthPropName","heightPropName"]),h=this.state,g=h.width,m=h.height,v="string"!=typeof u,y=[f||"width"],b=[p||"height"],w=(e={},n(e,y,g),n(e,b,m),e);return t.createElement(u,l(n({},v?"getRef":"ref",function(e){return o.container=e}),v&&w,d),t.createElement("object",{type:"text/html",style:c,ref:function(e){return o.resizeElement=e},onLoad:this.handleObjectLoad,"aria-hidden":!0,tabIndex:-1}),"function"==typeof i?i({width:g,height:m}):t.Children.map(i,function(e){return t.isValidElement(e)?t.cloneElement(e,s?null:w):e}))}}]),s}(t.Component);f.defaultProps={component:"div",widthPropName:void 0,heightPropName:void 0},e.default=f,e.makeResizeAware=s,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(0))}()},function(e,t,n){"use strict";e.exports=["R@a1","P@a2","p@a7","r@a8","N@b1","P@b2","p@b7","n@b8","B@c1","P@c2","p@c7","b@c8","Q@d1","P@d2","p@d7","q@d8","K@e1","P@e2","p@e7","k@e8","B@f1","P@f2","p@f7","b@f8","N@g1","P@g2","p@g7","n@g8","R@h1","P@h2","p@h7","r@h8"]},function(e,t,n){"use strict";e.exports={p:n(9),n:n(10),b:n(11),r:n(12),q:n(13),k:n(14),P:n(15),N:n(16),B:n(17),R:n(18),Q:n(19),K:n(20)}},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("path",{d:"M22 9c-2.21 0-4 1.79-4 4 0 .89.29 1.71.78 2.38-1.95 1.12-3.28 3.21-3.28 5.62 0 2.03.94 3.84 2.41 5.03-3 1.06-7.41 5.55-7.41 13.47h23c0-7.92-4.41-12.41-7.41-13.47 1.47-1.19 2.41-3 2.41-5.03 0-2.41-1.33-4.5-3.28-5.62.49-.67.78-1.49.78-2.38 0-2.21-1.79-4-4-4z",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round"}))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",null,o.createElement("path",{d:"M36 36c-3.385-.972-10.115.43-13.5-2-3.385 2.43-10.115 1.028-13.5 2 0 0-1.646.542-3 2 .677.972 1.646.986 3 .5 3.385-.972 10.115.458 13.5-1 3.385 1.458 10.115.028 13.5 1 1.354.486 2.323.472 3-.5-1.354-1.945-3-2-3-2z",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinejoin:"round"}),o.createElement("path",{d:"M30 32c-2.5 2.5-12.5 2.5-15 0-.5-1.5 0-2 0-2h15s.5.5 0 2z",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinejoin:"round"}),o.createElement("path",{d:"M30 30H15",fill:"none",stroke:"#000",strokeWidth:"1.5"}),o.createElement("g",{strokeLinecap:"round"},o.createElement("path",{d:"M20.344 7.627c8.037.765 12.63 6.123 12.247 22.197H14.987c0-6.89 7.654-4.975 6.124-16.074",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.14813"}),o.createElement("path",{d:"M21.875 13.75c.294 2.228-4.25 5.64-6.123 6.89-2.297 1.53-2.158 3.323-3.827 3.06-.798-.722 1.08-2.325 0-2.296-.766 0 .143.943-.766 1.53-.766 0-3.065.766-3.063-3.06 0-1.53 4.593-9.186 4.593-9.186s1.443-1.456 1.53-2.68c-.555-.76-.382-1.53-.382-2.295.765-.765 2.296 1.914 2.296 1.914h1.53s.6-1.525 1.915-2.297c.764 0 .764 2.297.764 2.297",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.14813",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.776 19.49a.383.383 0 1 1-.765 0 .383.383 0 1 1 .766 0zM14.935 12.028a.383 1.148 30 1 1-.663-.383.383 1.148 30 1 1 .663.383z",stroke:"#fff",strokeWidth:"1.14813",strokeLinejoin:"round"}),o.createElement("path",{d:"M31.825 29.824c.766-15.31-4.21-21.05-9.185-21.815",fillRule:"evenodd",stroke:"#fff",strokeWidth:".76542"})),o.createElement("path",{d:"M15 30h15",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("g",{fill:"#000",strokeLinecap:"butt"},o.createElement("path",{d:"M9 36c3.39-.97 10.11.43 13.5-2 3.39 2.43 10.11 1.03 13.5 2 0 0 1.65.54 3 2-.68.97-1.65.99-3 .5-3.39-.97-10.11.46-13.5-1-3.39 1.46-10.11.03-13.5 1-1.354.49-2.323.47-3-.5 1.354-1.94 3-2 3-2z"}),o.createElement("path",{d:"M15 32c2.5 2.5 12.5 2.5 15 0 .5-1.5 0-2 0-2 0-2.5-2.5-4-2.5-4 5.5-1.5 6-11.5-5-15.5-11 4-10.5 14-5 15.5 0 0-2.5 1.5-2.5 4 0 0-.5.5 0 2z"}),o.createElement("path",{d:"M25 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 1 1 5 0z"})),o.createElement("path",{d:"M17.5 26h10M15 30h15m-7.5-14.5v5M20 18h5",stroke:"#fff",strokeLinejoin:"miter"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:0,fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M9 39h27v-3H9v3zM12.5 32l1.5-2.5h17l1.5 2.5h-20zM12 36v-4h21v4H12z",strokeLinecap:"butt"}),o.createElement("path",{d:"M14 29.5v-13h17v13H14z",strokeLinecap:"butt",strokeLinejoin:"miter"}),o.createElement("path",{d:"M14 16.5L11 14h23l-3 2.5H14zM11 14V9h4v2h5V9h5v2h5V9h4v5H11z",strokeLinecap:"butt"}),o.createElement("path",{d:"M12 35.5h21M13 31.5h19M14 29.5h17M14 16.5h17M11 14h23",fill:"none",stroke:"#fff",strokeWidth:1,strokeLinejoin:"miter"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:0,fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("g",{fill:"#000",stroke:"none"},o.createElement("circle",{cx:6,cy:12,r:2.75}),o.createElement("circle",{cx:14,cy:9,r:2.75}),o.createElement("circle",{cx:22.5,cy:8,r:2.75}),o.createElement("circle",{cx:31,cy:9,r:2.75}),o.createElement("circle",{cx:39,cy:12,r:2.75})),o.createElement("path",{d:"M9 26c8.5-1.5 21-1.5 27 0l2.5-12.5L31 25l-.3-14.1-5.2 13.6-3-14.5-3 14.5-5.2-13.6L14 25 6.5 13.5 9 26z",strokeLinecap:"butt"}),o.createElement("path",{d:"M9 26c0 2 1.5 2 2.5 4 1 1.5 1 1 .5 3.5-1.5 1-1.5 2.5-1.5 2.5-1.5 1.5.5 2.5.5 2.5 6.5 1 16.5 1 23 0 0 0 1.5-1 0-2.5 0 0 .5-1.5-1-2.5-.5-2.5-.5-2 .5-3.5 1-2 2.5-2 2.5-4-8.5-1.5-18.5-1.5-27 0z",strokeLinecap:"butt"}),o.createElement("path",{d:"M11 38.5a35 35 1 0 0 23 0",fill:"none",strokeLinecap:"butt"}),o.createElement("path",{d:"M11 29a35 35 1 0 1 23 0M12.5 31.5h20M11.5 34.5a35 35 1 0 0 22 0M10.5 37.5a35 35 1 0 0 24 0",fill:"none",stroke:"#fff"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M22.5 11.63V6",strokeLinejoin:"miter"}),o.createElement("path",{d:"M22.5 25s4.5-7.5 3-10.5c0 0-1-2.5-3-2.5s-3 2.5-3 2.5c-1.5 3 3 10.5 3 10.5",fill:"#000",strokeLinecap:"butt",strokeLinejoin:"miter"}),o.createElement("path",{d:"M11.5 37c5.5 3.5 15.5 3.5 21 0v-7s9-4.5 6-10.5c-4-6.5-13.5-3.5-16 4V27v-3.5c-3.5-7.5-13-10.5-16-4-3 6 5 10 5 10V37z",fill:"#000"}),o.createElement("path",{d:"M20 8h5",strokeLinejoin:"miter"}),o.createElement("path",{d:"M32 29.5s8.5-4 6.03-9.65C34.15 14 25 18 22.5 24.5l.01 2.1-.01-2.1C20 18 9.906 14 6.997 19.85c-2.497 5.65 4.853 9 4.853 9",stroke:"#fff"}),o.createElement("path",{d:"M11.5 30c5.5-3 15.5-3 21 0m-21 3.5c5.5-3 15.5-3 21 0m-21 3.5c5.5-3 15.5-3 21 0",stroke:"#fff"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},a.createElement("path",o({d:"M22 9c-2.21 0-4 1.79-4 4 0 .89.29 1.71.78 2.38-1.95 1.12-3.28 3.21-3.28 5.62 0 2.03.94 3.84 2.41 5.03-3 1.06-7.41 5.55-7.41 13.47h23c0-7.92-4.41-12.41-7.41-13.47 1.47-1.19 2.41-3 2.41-5.03 0-2.41-1.33-4.5-3.28-5.62.49-.67.78-1.49.78-2.38 0-2.21-1.79-4-4-4z",fill:"#fff",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round"},e)))}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=n(1);e.exports=i(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M22 10c10.5 1 16.5 8 16 29H15c0-9 10-6.5 8-21",fill:"#fff"}),o.createElement("path",{d:"M24 18c.38 2.91-5.55 7.37-8 9-3 2-2.82 4.34-5 4-1.042-.94 1.41-3.04 0-3-1 0 .19 1.23-1 2-1 0-4.003 1-4-4 0-2 6-12 6-12s1.89-1.9 2-3.5c-.73-.994-.5-2-.5-3 1-1 3 2.5 3 2.5h2s.78-1.992 2.5-3c1 0 1 3 1 3",fill:"#fff"}),o.createElement("path",{d:"M9.5 25.5a.5.5 0 1 1-1 0 .5.5 0 1 1 1 0z",fill:"#000"}),o.createElement("path",{d:"M14.933 15.75a.5 1.5 30 1 1-.866-.5.5 1.5 30 1 1 .866.5z",fill:"#000",strokeWidth:"1.49997"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("g",{fill:"#fff",strokeLinecap:"butt"},o.createElement("path",{d:"M9 36c3.39-.97 10.11.43 13.5-2 3.39 2.43 10.11 1.03 13.5 2 0 0 1.65.54 3 2-.68.97-1.65.99-3 .5-3.39-.97-10.11.46-13.5-1-3.39 1.46-10.11.03-13.5 1-1.354.49-2.323.47-3-.5 1.354-1.94 3-2 3-2z"}),o.createElement("path",{d:"M15 32c2.5 2.5 12.5 2.5 15 0 .5-1.5 0-2 0-2 0-2.5-2.5-4-2.5-4 5.5-1.5 6-11.5-5-15.5-11 4-10.5 14-5 15.5 0 0-2.5 1.5-2.5 4 0 0-.5.5 0 2z"}),o.createElement("path",{d:"M25 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 1 1 5 0z"})),o.createElement("path",{d:"M17.5 26h10M15 30h15m-7.5-14.5v5M20 18h5",strokeLinejoin:"miter"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M9 39h27v-3H9v3zM12 36v-4h21v4H12zM11 14V9h4v2h5V9h5v2h5V9h4v5",strokeLinecap:"butt"}),o.createElement("path",{d:"M34 14l-3 3H14l-3-3"}),o.createElement("path",{d:"M31 17v12.5H14V17",strokeLinecap:"butt",strokeLinejoin:"miter"}),o.createElement("path",{d:"M31 29.5l1.5 2.5h-20l1.5-2.5"}),o.createElement("path",{d:"M11 14h23",fill:"none",strokeLinejoin:"miter"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M8 12a2 2 0 1 1-4 0 2 2 0 1 1 4 0zM24.5 7.5a2 2 0 1 1-4 0 2 2 0 1 1 4 0zM41 12a2 2 0 1 1-4 0 2 2 0 1 1 4 0zM16 8.5a2 2 0 1 1-4 0 2 2 0 1 1 4 0zM33 9a2 2 0 1 1-4 0 2 2 0 1 1 4 0z"}),o.createElement("path",{d:"M9 26c8.5-1.5 21-1.5 27 0l2-12-7 11V11l-5.5 13.5-3-15-3 15-5.5-14V25L7 14l2 12z",strokeLinecap:"butt"}),o.createElement("path",{d:"M9 26c0 2 1.5 2 2.5 4 1 1.5 1 1 .5 3.5-1.5 1-1.5 2.5-1.5 2.5-1.5 1.5.5 2.5.5 2.5 6.5 1 16.5 1 23 0 0 0 1.5-1 0-2.5 0 0 .5-1.5-1-2.5-.5-2.5-.5-2 .5-3.5 1-2 2.5-2 2.5-4-8.5-1.5-18.5-1.5-27 0z",strokeLinecap:"butt"}),o.createElement("path",{d:"M11.5 30c3.5-1 18.5-1 22 0M12 33.5c6-1 15-1 21 0",fill:"none"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";function r(e){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 45",width:e.size,height:"100%"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M22.5 11.63V6M20 8h5",strokeLinejoin:"miter"}),o.createElement("path",{d:"M22.5 25s4.5-7.5 3-10.5c0 0-1-2.5-3-2.5s-3 2.5-3 2.5c-1.5 3 3 10.5 3 10.5",fill:"#fff",strokeLinecap:"butt",strokeLinejoin:"miter"}),o.createElement("path",{d:"M11.5 37c5.5 3.5 15.5 3.5 21 0v-7s9-4.5 6-10.5c-4-6.5-13.5-3.5-16 4V27v-3.5c-3.5-7.5-13-10.5-16-4-3 6 5 10 5 10V37z",fill:"#fff"}),o.createElement("path",{d:"M11.5 30c5.5-3 15.5-3 21 0M11.5 33.5c5.5-3 15.5-3 21 0M11.5 37c5.5-3 15.5-3 21 0"})))}var o=n(0),a=n(1);e.exports=a(r)},function(e,t,n){"use strict";var r=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.exports={fromPieceDecl:function(e){var t=e.split("@"),n=r(t,2),o=n[0],a=n[1];return{x:a.toLowerCase().charCodeAt(0)-97,y:Number(a[1])-1,piece:o,square:a}},charCodeOffset:97}}])});