UNPKG

14.2 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.semon=e():t.semon=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){"use strict";t.exports=n(5)},,,function(t,e,n){"use strict";
2/*
3object-assign
4(c) Sindre Sorhus
5@license MIT
6*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var a in n=Object(arguments[s]))o.call(n,a)&&(c[a]=n[a]);if(r){u=r(n);for(var f=0;f<u.length;f++)i.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},,function(t,e,n){"use strict";
7/** @license React v16.7.0
8 * react.production.min.js
9 *
10 * Copyright (c) Facebook, Inc. and its affiliates.
11 *
12 * This source code is licensed under the MIT license found in the
13 * LICENSE file in the root directory of this source tree.
14 */var r=n(3),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,u=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,y=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,d=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function v(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(t,e,n,r,o,i,u,c){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,u,c],a=0;(t=Error(e.replace(/%s/g,function(){return s[a++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j={};function w(t,e,n){this.props=t,this.context=e,this.refs=j,this.updater=n||g}function O(){}function S(t,e,n){this.props=t,this.context=e,this.refs=j,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&v("85"),this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},O.prototype=w.prototype;var _=S.prototype=new O;_.constructor=S,r(_,w.prototype),_.isPureReactComponent=!0;var x={current:null,currentDispatcher:null},P=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,n){var r=void 0,o={},u=null,c=null;if(null!=e)for(r in void 0!==e.ref&&(c=e.ref),void 0!==e.key&&(u=""+e.key),e)P.call(e,r)&&!k.hasOwnProperty(r)&&(o[r]=e[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var a=Array(s),f=0;f<s;f++)a[f]=arguments[f+2];o.children=a}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:t,key:u,ref:c,props:o,_owner:x.current}}function $(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var q=/\/+/g,C=[];function R(t,e,n,r){if(C.length){var o=C.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function M(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>C.length&&C.push(t)}function A(t,e,n){return null==t?0:function t(e,n,r,o){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var s=!1;if(null===e)s=!0;else switch(c){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case u:s=!0}}if(s)return r(o,e,""===n?"."+I(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var a=0;a<e.length;a++){var f=n+I(c=e[a],a);s+=t(c,f,r,o)}else if(f=null===e||"object"!=typeof e?null:"function"==typeof(f=b&&e[b]||e["@@iterator"])?f:null,"function"==typeof f)for(e=f.call(e),a=0;!(c=e.next()).done;)s+=t(c=c.value,f=n+I(c,a++),r,o);else"object"===c&&v("31","[object Object]"==(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return s}(t,"",e,n)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}(t.key):e.toString(36)}function T(t,e){t.func.call(t.context,e,t.count++)}function U(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?N(t,r,n,function(t){return t}):null!=t&&($(t)&&(t=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(q,"$&/")+"/")+n)),r.push(t))}function N(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(q,"$&/")+"/"),A(t,U,e=R(e,i,r,o)),M(e)}var F={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return N(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;A(t,T,e=R(null,null,e,n)),M(e)},count:function(t){return A(t,function(){return null},null)},toArray:function(t){var e=[];return N(t,e,null,function(t){return t}),e},only:function(t){return $(t)||v("143"),t}},createRef:function(){return{current:null}},Component:w,PureComponent:S,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:l,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:y,render:t}},lazy:function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},Fragment:c,StrictMode:s,Suspense:h,createElement:E,cloneElement:function(t,e,n){null==t&&v("267",t);var o=void 0,u=r({},t.props),c=t.key,s=t.ref,a=t._owner;if(null!=e){void 0!==e.ref&&(s=e.ref,a=x.current),void 0!==e.key&&(c=""+e.key);var f=void 0;for(o in t.type&&t.type.defaultProps&&(f=t.type.defaultProps),e)P.call(e,o)&&!k.hasOwnProperty(o)&&(u[o]=void 0===e[o]&&void 0!==f?f[o]:e[o])}if(1===(o=arguments.length-2))u.children=n;else if(1<o){f=Array(o);for(var l=0;l<o;l++)f[l]=arguments[l+2];u.children=f}return{$$typeof:i,type:t.type,key:c,ref:s,props:u,_owner:a}},createFactory:function(t){var e=E.bind(null,t);return e.type=t,e},isValidElement:$,version:"16.7.0",unstable_ConcurrentMode:p,unstable_Profiler:a,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:r}},L={default:F},D=L&&F||L;t.exports=D.default||D},,,function(t,e,n){"use strict";var r=n(0),o=r.createContext({});e.a=o},function(t,e,n){t.exports={row:"s-row","justify-start":"s-justify-start","justify-end":"s-justify-end","align-top":"s-align-top","align-middle":"s-align-middle","align-bottom":"s-align-bottom","justify-space-between":"s-justify-space-between","justify-space-around":"s-justify-space-around","justify-center":"s-justify-center"}},,function(t,e,n){var r=n(17);t.exports=new r},function(t,e){t.exports={isFunction:function(t){return"function"==typeof t},isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},each:function(t,e){for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);}}},function(t,e,n){"use strict";var r=n(0),o=n(11),i=n(9),u=n.n(i),c=n(8);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=["xl","lg","md","sm","xs"],m={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},b=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,y(e).apply(this,arguments))).state={screen:{}},t}var n,i,b;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,r["Component"]),n=e,(i=[{key:"classes",value:function(){var t=[];return this.props.className&&t.push(this.props.className),t.push(u.a.row),t.push(u.a["justify-".concat(this.props.justify||"start")]),t.push(u.a["align-".concat(this.props.align||"top")]),t.join(" ")}},{key:"getGutter",value:function(){var t=this;if("object"!==f(this.props.gutter))return this.props.gutter;var e=this.props.gutter.default;return d.some(function(n){return t.props.gutter[n]&&(e=t.props.gutter[n]),t.state.screen[n]}),e}},{key:"style",value:function(){var t=this.getGutter();return{marginLeft:t?-t/2:void 0,marginRight:t?-t/2:void 0}}},{key:"componentDidMount",value:function(){var t=this;Reflect.ownKeys(m).forEach(function(e){o.register(m[e],{match:function(){"object"===f(t.props.gutter)&&t.setState(function(t){return{screen:s({},t.screen,a({},e,!0))}})},unmatch:function(){"object"===f(t.props.gutter)&&t.setState(function(t){return{screen:s({},t.screen,a({},e,!1))}})},destroy:function(){}})})}},{key:"componentWillUnmount",value:function(){Object.keys(m).forEach(function(t){return o.unregister(m[t])})}},{key:"render",value:function(){return r.createElement(c.a.Provider,{value:{gutter:this.getGutter()}},r.createElement("div",{className:this.classes(),style:this.style()},this.props.children))}}])&&l(n.prototype,i),b&&l(n,b),e}();b.displayName="Row",e.a=b},,,,function(t,e,n){var r=n(18),o=n(12),i=o.each,u=o.isFunction,c=o.isArray;function s(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}s.prototype={constructor:s,register:function(t,e,n){var o=this.queries,s=n&&this.browserIsIncapable;return o[t]||(o[t]=new r(t,s)),u(e)&&(e={match:e}),c(e)||(e=[e]),i(e,function(e){u(e)&&(e={match:e}),o[t].addHandler(e)}),this},unregister:function(t,e){var n=this.queries[t];return n&&(e?n.removeHandler(e):(n.clear(),delete this.queries[t])),this}},t.exports=s},function(t,e,n){var r=n(19),o=n(12).each;function i(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var n=this;this.listener=function(t){n.mql=t.currentTarget||t,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(t){var e=new r(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;o(e,function(n,r){if(n.equals(t))return n.destroy(),!e.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";o(this.handlers,function(e){e[t]()})}},t.exports=i},function(t,e){function n(t){this.options=t,!t.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},t.exports=n},,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(13);e.default=r.a}])});
\No newline at end of file