From 5fd8f679e8480ea88b4fe391eab5b4306cf94b61 Mon Sep 17 00:00:00 2001 From: Dmitri Voronianski Date: Mon, 2 Oct 2017 17:09:53 +0200 Subject: [PATCH] new version build --- .eslintrc | 29 +- demo/bundle.min.js | 7 +- dist/react-swipe.js | 2606 ++++++++++++++++++++------------------- dist/react-swipe.min.js | 2 +- package.json | 56 +- webpack.config.js | 13 +- 6 files changed, 1398 insertions(+), 1315 deletions(-) diff --git a/.eslintrc b/.eslintrc index 5673188..8a789c0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,18 +1,21 @@ { - extends: "airbnb/base", + parser: "babel-eslint", + + extends: "eslint:recommended", env: { - "browser": true, + "es6": true, "node": true, - "es6": true + "browser": true }, - parser: "babel-eslint", - - plugins: ["react"], + plugins: [ + "react", + "import" + ], - ecmaFeatures: { - "jsx": true + settings: { + "import/resolver": "node" }, rules: { @@ -37,7 +40,7 @@ "react/react-in-jsx-scope": 1, "react/self-closing-comp": 1, "react/jsx-wrap-multilines": 1, - "import/no-extraneous-dependencies": 0, + "import/imports-first": 0, "new-cap": 0, "no-extra-boolean-cast": 0, "yoda": 0, @@ -53,16 +56,14 @@ "no-param-reassign": 0, "consistent-return": 0, "no-console": 0, + "no-void": 0, "func-names": 0, "no-nested-ternary": 0, - "quote-props": 0, + "quote-props": [2, "consistent-as-needed", { "keywords": false, "unnecessary": true, "numbers": false }], "space-infix-ops": 0, "prefer-const": 0, "prefer-template": 0, "spaced-comment": 0, - "prefer-rest-params": 0, - "no-shadow": 0, - "no-unneeded-ternary": 0, - "no-void": 0 + "prefer-rest-params": 0 } } diff --git a/demo/bundle.min.js b/demo/bundle.min.js index 8ab937d..6359371 100644 --- a/demo/bundle.min.js +++ b/demo/bundle.min.js @@ -1,6 +1 @@ -!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n||e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a=0?b:0,auto:parseInt(v.auto,10)||0,speed:parseInt(v.speed,10)||300,disableScroll:"true"===v.disableScroll,continuous:"true"===v.continuous,callback:function(){console.log("slide changed")},transitionEnd:function(){console.log("ended transition")}},E=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"next",value:function(){this.refs.reactSwipe.next()}},{key:"prev",value:function(){this.refs.reactSwipe.prev()}},{key:"render",value:function(){return u.default.createElement("div",{className:"center"},u.default.createElement("h1",null,"ReactSwipe.js"),u.default.createElement("h2",null,"Open this page from a mobile device (real or emulated)."),u.default.createElement("h2",null,"You can pass ",u.default.createElement("a",{href:"https://github.com/voronianski/swipe-js-iso#config-options"},"Swipe.js options")," as query params."),u.default.createElement(m.default,{ref:"reactSwipe",className:"mySwipe",swipeOptions:C},y),u.default.createElement("div",null,u.default.createElement("button",{type:"button",onClick:this.prev.bind(this)},"Prev"),u.default.createElement("button",{type:"button",onClick:this.next.bind(this)},"Next")))}}]),t}(c.Component);p.default.render(u.default.createElement(E,null),document.getElementById("app"))},{"../src/reactSwipe":189,querystring:35,react:187,"react-dom":36}],2:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":9}],3:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],4:[function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],5:[function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=e("./camelize"),i=/^-ms-/;t.exports=r},{"./camelize":4}],6:[function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=e("./isTextNode");t.exports=r},{"./isTextNode":19}],7:[function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=e("./ExecutionEnvironment"),i=e("./invariant"),a=o.canUseDOM?document.createElement("div"):null,s={},c=[1,'"],u=[1,"","
"],l=[3,"","
"],p=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){f[e]=p,s[e]=!0}),t.exports=r},{"./ExecutionEnvironment":3,"./invariant":17}],14:[function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],15:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],16:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e("./hyphenate"),i=/^ms-/;t.exports=r},{"./hyphenate":15}],17:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,c){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};t.exports=r},{}],18:[function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],19:[function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":18}],20:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],21:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":3}],22:[function(e,t,n){"use strict";var r,o=e("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},t.exports=r},{"./performance":21}],23:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a1)for(var n=1;n0&&c>s&&(c=s);for(var u=0;u=0?(l=h.substr(0,m),p=h.substr(m+1)):(l=h,p=""),f=decodeURIComponent(l),d=decodeURIComponent(p),r(a,f)?o(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],34:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r8&&C<=11),w=32,R=String.fromCharCode(w),T={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},x=!1,P=null,M={eventTypes:T,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}};t.exports=M},{"./EventPropagators":55,"./FallbackCompositionState":56,"./SyntheticCompositionEvent":120,"./SyntheticInputEvent":124,"fbjs/lib/ExecutionEnvironment":3}],40:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=s},{}],41:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("fbjs/lib/ExecutionEnvironment"),i=(e("./ReactInstrumentation"),e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),a=e("fbjs/lib/hyphenateStyleName"),s=e("fbjs/lib/memoizeStringOnly"),c=(e("fbjs/lib/warning"),s(function(e){return a(e)})),u=!1,l="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];null!=o&&(n+=c(r)+":",n+=i(r,o,t)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=l),s)o[a]=s;else{var c=u&&r.shorthandPropertyExpansions[a];if(c)for(var p in c)o[p]="";else o[a]=""}}}};t.exports=f},{"./CSSProperty":40,"./ReactInstrumentation":98,"./dangerousStyleValue":137,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/camelizeStyleName":5,"fbjs/lib/hyphenateStyleName":16,"fbjs/lib/memoizeStringOnly":20,"fbjs/lib/warning":24}],42:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("./reactProdInvariant"),i=e("./PooledClass"),a=(e("fbjs/lib/invariant"),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&o("24"),this._callbacks=null,this._contexts=null;for(var r=0;r8));var N=!1;E.canUseDOM&&(N=x("input")&&(!document.documentMode||document.documentMode>11));var j={get:function(){return S.get.call(this)},set:function(e){I=""+e,S.set.call(this,e)}},A={eventTypes:M, -extractEvents:function(e,t,n,o){var i,a,s=t?_.getNodeFromInstance(t):window;if(r(s)?D?i=c:a=u:P(s)?N?i=d:(i=m,a=h):v(s)&&(i=g),i){var l=i(e,t);if(l){var p=R.getPooled(M.change,l,n,o);return p.type="change",C.accumulateTwoPhaseDispatches(p),p}}a&&a(e,s,t),"topBlur"===e&&y(t,s)}};t.exports=A},{"./EventPluginHub":52,"./EventPropagators":55,"./ReactDOMComponentTree":69,"./ReactUpdates":113,"./SyntheticEvent":122,"./getEventTarget":145,"./isEventSupported":152,"./isTextInputElement":153,"fbjs/lib/ExecutionEnvironment":3}],44:[function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],c(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var i=o.nextSibling;if(m(e,o,r),o===n)break;o=i}}function c(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&m(r,document.createTextNode(n),o):n?(h(o,n),c(r,o,t)):c(r,e,t)}var l=e("./DOMLazyTree"),p=e("./Danger"),f=(e("./ReactDOMComponentTree"),e("./ReactInstrumentation"),e("./createMicrosoftUnsafeLocalFunction")),d=e("./setInnerHTML"),h=e("./setTextContent"),m=f(function(e,t,n){e.insertBefore(t,n)}),v=p.dangerouslyReplaceNodeWithMarkup,g={dangerouslyReplaceNodeWithMarkup:v,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("./reactProdInvariant"),s=(e("fbjs/lib/invariant"),null),c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];c.hasOwnProperty(n)&&c[n]===o||(c[n]&&a("102",n),c[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=u.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=u},{"./reactProdInvariant":155,"fbjs/lib/invariant":17}],54:[function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},{"./PooledClass":60,"./getTextContentAccessor":149,"object-assign":25}],57:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,c=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:c,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};t.exports=u},{"./DOMProperty":47}],58:[function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,function(e){return t[e]})}var i={escape:r,unescape:o};t.exports=i},{}],59:[function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink&&s("87")}function o(e){r(e),(null!=e.value||null!=e.onChange)&&s("88")}function i(e){r(e),(null!=e.checked||null!=e.onChange)&&s("89")}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./reactProdInvariant"),c=e("./ReactPropTypesSecret"),u=e("prop-types/factory"),l=e("react/lib/React"),p=u(l.isValidElement),f=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||f[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:p.func},h={},m={checkPropTypes:function(e,t,n){for(var r in d){if(d.hasOwnProperty(r))var o=d[r](t,r,e,"prop",null,c);if(o instanceof Error&&!(o.message in h)){h[o.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=m},{"./ReactPropTypesSecret":106,"./reactProdInvariant":155,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"prop-types/factory":28,"react/lib/React":164}],60:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=(e("fbjs/lib/invariant"),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length=0||null!=t.is}function h(e){var t=e.type;f(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=e("./reactProdInvariant"),v=e("object-assign"),g=e("./AutoFocusUtils"),y=e("./CSSPropertyOperations"),b=e("./DOMLazyTree"),C=e("./DOMNamespaces"),E=e("./DOMProperty"),_=e("./DOMPropertyOperations"),w=e("./EventPluginHub"),R=e("./EventPluginRegistry"),T=e("./ReactBrowserEventEmitter"),x=e("./ReactDOMComponentFlags"),P=e("./ReactDOMComponentTree"),M=e("./ReactDOMInput"),O=e("./ReactDOMOption"),k=e("./ReactDOMSelect"),I=e("./ReactDOMTextarea"),S=(e("./ReactInstrumentation"),e("./ReactMultiChild")),D=e("./ReactServerRenderingTransaction"),N=(e("fbjs/lib/emptyFunction"),e("./escapeTextContentForBrowser")),j=(e("fbjs/lib/invariant"),e("./isEventSupported"),e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),x),A=w.deleteListener,U=P.getNodeFromInstance,L=T.listenTo,F=R.registrationNameModules,B={string:!0,number:!0},H="__html",V={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,q={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},K={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},z={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},K),Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,X={},G={}.hasOwnProperty,$=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=$++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(l,this);break;case"input":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"option":O.mountWrapper(this,i,t),i=O.getHostProps(this,i);break;case"select":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"textarea":I.mountWrapper(this,i,t),i=I.getHostProps(this,i),e.getReactMountReady().enqueue(l,this)}o(this,i);var a,p;null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===C.svg&&"foreignobject"===p)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var f;if(e.useCreateElement){var d,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",d=m.removeChild(m.firstChild)}else d=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else d=h.createElementNS(a,this._currentElement.type);P.precacheNode(this,d),this._flags|=j.hasCachedChildNodes,this._hostParent||_.setAttributeForRoot(d),this._updateDOMProperties(null,i,e);var y=b(d);this._createInitialChildren(e,i,r,y),f=y}else{var E=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,r);f=!w&&K[this._tag]?E+"/>":E+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(c,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return f},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(F.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=v({},t.style)),o=y.createMarkupForStyles(o,this));var a=null;null!=this._tag&&d(this._tag,t)?V.hasOwnProperty(r)||(a=_.createMarkupForCustomAttribute(r,o)):a=_.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+_.createMarkupForRoot()),n+=" "+_.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=B[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var i=B[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&b.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),c=0;ct.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=u(e,o),c=u(e,i);if(s&&c){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(c.node,c.offset)):(p.setEnd(c.node,c.offset),n.addRange(p))}}}var c=e("fbjs/lib/ExecutionEnvironment"),u=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),p=c.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};t.exports=f},{"./getNodeForCharacterOffset":148,"./getTextContentAccessor":149,"fbjs/lib/ExecutionEnvironment":3}],80:[function(e,t,n){"use strict";var r=e("./reactProdInvariant"),o=e("object-assign"),i=e("./DOMChildrenOperations"),a=e("./DOMLazyTree"),s=e("./ReactDOMComponentTree"),c=e("./escapeTextContentForBrowser"),u=(e("fbjs/lib/invariant"),e("./validateDOMNesting"),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(u.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,l=u.createComment(i),p=u.createComment(" /react-text "),f=a(u.createDocumentFragment());return a.queueChild(f,a(l)),this._stringText&&a.queueChild(f,a(u.createTextNode(this._stringText))),a.queueChild(f,a(p)),s.precacheNode(this,l),this._closingComment=p,f}var d=c(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=u},{"./DOMChildrenOperations":44,"./DOMLazyTree":45,"./ReactDOMComponentTree":69,"./escapeTextContentForBrowser":138,"./reactProdInvariant":155,"./validateDOMNesting":161,"fbjs/lib/invariant":17,"object-assign":25}],81:[function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return u.asap(r,this),n}var i=e("./reactProdInvariant"),a=e("object-assign"),s=e("./LinkedValueUtils"),c=e("./ReactDOMComponentTree"),u=e("./ReactUpdates"),l=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var a=t.defaultValue,c=t.children;null!=c&&(null!=a&&i("92"),Array.isArray(c)&&(c.length<=1||i("93"),c=c[0]),a=""+c),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=c.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});t.exports=l},{"./LinkedValueUtils":59,"./ReactDOMComponentTree":69,"./ReactUpdates":113,"./reactProdInvariant":155,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":25}],82:[function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||c("33"),"_hostNode"in t||c("33") -;for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||c("35"),"_hostNode"in t||c("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||c("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(c[u],"captured",i)}var c=e("./reactProdInvariant");e("fbjs/lib/invariant");t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},{"./reactProdInvariant":155,"fbjs/lib/invariant":17}],83:[function(e,t,n){"use strict";function r(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||i(e,t))}var o,i=(e("./DOMProperty"),e("./EventPluginRegistry"),e("react/lib/ReactComponentTreeHook"),e("fbjs/lib/warning"),function(e,t){var n=[];for(var r in t.props){o(t.type,r,e)||n.push(r)}n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length||n.length}),a={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};t.exports=a},{"./DOMProperty":47,"./EventPluginRegistry":53,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":168}],84:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){try{t.call(n,r,o,i,a,s)}catch(t){_[e]=!0}}function o(e,t,n,o,i,a){for(var s=0;s1&&void 0!==arguments[1]&&arguments[1]}function u(e,t){0!==x&&(S&&!D&&(D=!0),k=C(),I=0,O=e,S=t)}function l(e,t){0!==x&&(S===t||D||(D=!0),w&&P.push({timerType:t,instanceID:e,duration:C()-k-I}),k=0,I=0,O=null,S=null)}function p(){var e={startTime:k,nestedFlushStartTime:C(),debugID:O,timerType:S};T.push(e),k=0,I=0,O=null,S=null}function f(){var e=T.pop(),t=e.startTime,n=e.nestedFlushStartTime,r=e.debugID,o=e.timerType,i=C()-n;k=t,I+=i,O=r,S=o}function d(e){if(!w||!j)return!1;var t=y.getElement(e);return null!=t&&"object"==typeof t&&!("string"==typeof t.type)}function h(e,t){if(d(e)){var n=e+"::"+t;N=C(),performance.mark(n)}}function m(e,t){if(d(e)){var n=e+"::"+t,r=y.getDisplayName(e)||"Unknown";if(C()-N>.1){var o=r+" ["+t+"]";performance.measure(o,n)}performance.clearMarks(n),performance.clearMeasures(o)}}var v=e("./ReactInvalidSetStateWarningHook"),g=e("./ReactHostOperationHistoryHook"),y=e("react/lib/ReactComponentTreeHook"),b=e("fbjs/lib/ExecutionEnvironment"),C=e("fbjs/lib/performanceNow"),E=(e("fbjs/lib/warning"),[]),_={},w=!1,R=[],T=[],x=0,P=[],M=0,O=null,k=0,I=0,S=null,D=!1,N=0,j="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks&&"function"==typeof performance.measure&&"function"==typeof performance.clearMeasures,A={addHook:function(e){E.push(e)},removeHook:function(e){for(var t=0;t/," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};t.exports=i},{"./adler32":134}],101:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(L,{child:t});if(e){var c=_.get(e);a=c._processChildContext(c._context)}else a=P;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(k(h,t)){var m=l._renderedComponent.getPublicInstance(),g=r&&function(){r.call(m)};return F._updateRootComponent(l,s,a,n,g),m}F.unmountComponentAtNode(n)}var y=o(n),b=y&&!!i(y),C=u(n),E=b&&!l&&!C,w=F._renderNewRootComponent(s,n,E,a)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(S);return!1}return delete A[t._instance.rootID],x.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var s=o(t);if(w.canReuseMarkup(e,s))return void y.precacheNode(n,s);var c=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,c);var p=e,f=r(p,u),m=" (client) "+p.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===N&&d("42",m)}if(t.nodeType===N&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else O(t,e),y.precacheNode(n,t.firstChild)}};t.exports=F},{"./DOMLazyTree":45,"./DOMProperty":47,"./ReactBrowserEventEmitter":61,"./ReactDOMComponentTree":69,"./ReactDOMContainerInfo":70,"./ReactDOMFeatureFlags":72,"./ReactFeatureFlags":92,"./ReactInstanceMap":97,"./ReactInstrumentation":98,"./ReactMarkupChecksum":100,"./ReactReconciler":108,"./ReactUpdateQueue":112,"./ReactUpdates":113,"./instantiateReactComponent":151,"./reactProdInvariant":155,"./setInnerHTML":157,"./shouldUpdateReactComponent":159,"fbjs/lib/emptyObject":10,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/React":164,"react/lib/ReactCurrentOwner":169}],102:[function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:f.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function c(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){p.processChildrenUpdates(e,t)}var l=e("./reactProdInvariant"),p=e("./ReactComponentEnvironment"),f=(e("./ReactInstanceMap"),e("./ReactInstrumentation"),e("react/lib/ReactCurrentOwner"),e("./ReactReconciler")),d=e("./ReactChildReconciler"),h=(e("fbjs/lib/emptyFunction"),e("./flattenChildren")),m=(e("fbjs/lib/invariant"),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=h(t,s),d.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],c=0,u=f.mountComponent(s,t,this,this._hostContainerInfo,n,c);s._mountIndex=i++,o.push(u)}return o},updateTextContent:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;d.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,l=null,p=0,d=0,h=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var v=r&&r[s],g=a[s];v===g?(l=c(l,this.moveChild(v,m,p,d)),d=Math.max(v._mountIndex,d),v._mountIndex=p):(v&&(d=Math.max(v._mountIndex,d)),l=c(l,this._mountChildAtIndex(g,i[h],m,p,t,n)),h++),p++,m=f.getHostNode(g)}for(s in o)o.hasOwnProperty(s)&&(l=c(l,this._unmountChild(r[s],o[s])));l&&u(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;d.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=e("./reactProdInvariant"),s=(e("react/lib/ReactCurrentOwner"),e("./ReactInstanceMap")),c=(e("./ReactInstrumentation"),e("./ReactUpdates")),u=(e("fbjs/lib/invariant"),e("fbjs/lib/warning"),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(u.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});t.exports=u},{"./ReactInstanceMap":97,"./ReactInstrumentation":98,"./ReactUpdates":113,"./reactProdInvariant":155,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactCurrentOwner":169}],113:[function(e,t,n){"use strict";function r(){P.ReactReconcileTransaction&&E||l("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=P.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),E.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==g.length&&l("124",t,g.length),g.sort(a),y++;for(var n=0;n]/;t.exports=o},{}],139:[function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);if(t)return t=s(t),t?i.getNodeFromInstance(t):null;"function"==typeof e.render?o("44"):o("45",Object.keys(e))}var o=e("./reactProdInvariant"),i=(e("react/lib/ReactCurrentOwner"),e("./ReactDOMComponentTree")),a=e("./ReactInstanceMap"),s=e("./getHostComponentFromComposite");e("fbjs/lib/invariant"),e("fbjs/lib/warning");t.exports=r},{"./ReactDOMComponentTree":69,"./ReactInstanceMap":97,"./getHostComponentFromComposite":146,"./reactProdInvariant":155,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"react/lib/ReactCurrentOwner":169}],140:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e("./KeyEscapeUtils"),e("./traverseAllChildren"));e("fbjs/lib/warning");void 0!==n&&n.env,t.exports=o}).call(this,e("_process"))},{"./KeyEscapeUtils":58,"./traverseAllChildren":160,_process:26,"fbjs/lib/warning":24,"react/lib/ReactComponentTreeHook":168}],141:[function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}t.exports=r},{}],142:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}t.exports=r},{}],143:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":142}],144:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],145:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=r},{}],146:[function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=e("./ReactNodeTypes");t.exports=r},{"./ReactNodeTypes":103}],147:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],148:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],149:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e("fbjs/lib/ExecutionEnvironment"),i=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":3}],150:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in c)return s[e]=t[n];return""}var i=e("fbjs/lib/ExecutionEnvironment"),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},c={};i.canUseDOM&&(c=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{"fbjs/lib/ExecutionEnvironment":3}],151:[function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=u.create(i);else if("object"==typeof e){var s=e,c=s.type;if("function"!=typeof c&&"string"!=typeof c){var f="";f+=r(s._owner),a("130",null==c?c:typeof c,f)}"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=e("./reactProdInvariant"),s=e("object-assign"),c=e("./ReactCompositeComponent"),u=e("./ReactEmptyComponent"),l=e("./ReactHostComponent"),p=(e("react/lib/getNextDebugID"),e("fbjs/lib/invariant"),e("fbjs/lib/warning"),function(e){this.construct(e)});s(p.prototype,c,{_instantiateReactComponent:i}),t.exports=i},{"./ReactCompositeComponent":65,"./ReactEmptyComponent":88,"./ReactHostComponent":93,"./reactProdInvariant":155,"fbjs/lib/invariant":17,"fbjs/lib/warning":24,"object-assign":25,"react/lib/getNextDebugID":183}],152:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e("fbjs/lib/ExecutionEnvironment");i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=r},{"fbjs/lib/ExecutionEnvironment":3}],153:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],154:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":138}],155:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r]/,c=e("./createMicrosoftUnsafeLocalFunction"),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}t.exports=u},{"./DOMNamespaces":46,"./createMicrosoftUnsafeLocalFunction":136,"fbjs/lib/ExecutionEnvironment":3}],158:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),i=e("./setInnerHTML"),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),t.exports=a},{"./escapeTextContentForBrowser":138,"./setInnerHTML":157,"fbjs/lib/ExecutionEnvironment":3}],159:[function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}t.exports=r},{}],160:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var d,h,m=0,v=""===t?l:t+p;if(Array.isArray(e))for(var g=0;g1){for(var h=Array(d),m=0;m1){for(var g=Array(v),y=0;y.")}return t}function a(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=h.uniqueKey||(h.uniqueKey={}),r=i(t);if(!n[r]){n[r]=!0;e&&e._owner&&e._owner!==u.current&&" It was passed a child from "+e._owner.getName()+"."}}}function s(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;nn?-g:CC?e:C)-a-1),g*r,0);e=i(e),s(C,g*r,n||E),s(e,0,n||E),t.continuous&&s(i(e-r),-g*r,0)}else e=i(e),u(C*-g,e*-g,n||E);C=e,d(t.callback&&t.callback(C,m[C]))}}function s(e,t,n){c(e,t,n),v[e]=t}function c(e,t,n){var r=m[e],o=r&&r.style;o&&(o.webkitTransitionDuration=o.MozTransitionDuration=o.msTransitionDuration=o.OTransitionDuration=o.transitionDuration=n+"ms",o.webkitTransform="translate("+t+"px,0)translateZ(0)",o.msTransform=o.MozTransform=o.OTransform="translateX("+t+"px)")}function u(e,n,r){if(!r)return void(b.style.left=n+"px");var o=+new Date,i=setInterval(function(){var a=+new Date-o;if(a>r)return b.style.left=n+"px",R&&l(),t.transitionEnd&&t.transitionEnd.call(event,C,m[C]),void clearInterval(i);b.style.left=(n-e)*(Math.floor(a/r*100)/100)+e+"px"},4)}function l(){_=setTimeout(o,R)}function p(){R=0,clearTimeout(_)}var f=function(){},d=function(e){setTimeout(e||f,0)},h={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,transitions:function(e){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var n in t)if(void 0!==e.style[t[n]])return!0;return!1}(document.createElement("swipe"))};if(e){var m,v,g,y,b=e.children[0];t=t||{};var C=parseInt(t.startSlide,10)||0,E=t.speed||300;t.continuous=void 0===t.continuous||t.continuous;var _,w,R=t.auto||0,T={},x={},P={handleEvent:function(e){switch(e.type){case"touchstart":this.start(e);break;case"touchmove":this.move(e);break;case"touchend":d(this.end(e));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":d(this.transitionEnd(e));break;case"resize":d(n)}t.stopPropagation&&e.stopPropagation()},start:function(e){var t=e.touches[0];T={x:t.pageX,y:t.pageY,time:+new Date},w=void 0,x={},b.addEventListener("touchmove",this,!1),b.addEventListener("touchend",this,!1)},move:function(e){if(!(e.touches.length>1||e.scale&&1!==e.scale)){t.disableScroll&&e.preventDefault();var n=e.touches[0];x={x:n.pageX-T.x,y:n.pageY-T.y},void 0===w&&(w=!!(w||Math.abs(x.x)0||C==m.length-1&&x.x<0?Math.abs(x.x)/g+1:1),c(C-1,x.x+v[C-1],0),c(C,x.x+v[C],0),c(C+1,x.x+v[C+1],0)),t.swiping&&t.swiping(-x.x/g))}},end:function(e){var n=+new Date-T.time,r=Number(n)<250&&Math.abs(x.x)>20||Math.abs(x.x)>g/2,o=!C&&x.x>0||C==m.length-1&&x.x<0;t.continuous&&(o=!1);var a=x.x<0;w||(r&&!o?(a?(t.continuous?(s(i(C-1),-g,0),s(i(C+2),g,0)):s(C-1,-g,0),s(C,v[C]-g,E),s(i(C+1),v[i(C+1)]-g,E),C=i(C+1)):(t.continuous?(s(i(C+1),g,0),s(i(C-2),-g,0)):s(C+1,g,0),s(C,v[C]+g,E),s(i(C-1),v[i(C-1)]+g,E),C=i(C-1)),t.callback&&t.callback(C,m[C])):t.continuous?(s(i(C-1),-g,E),s(C,0,E),s(i(C+1),g,E)):(s(C-1,-g,E),s(C,0,E),s(C+1,g,E))),R=t.auto||0,b.removeEventListener("touchmove",P,!1),b.removeEventListener("touchend",P,!1)},transitionEnd:function(e){parseInt(e.target.getAttribute("data-index"),10)==C&&(R&&l(),t.transitionEnd&&t.transitionEnd.call(e,C,m[C]))}};return n(),R&&l(),h.addEventListener?(h.touch&&b.addEventListener("touchstart",P,!1),h.transitions&&(b.addEventListener("webkitTransitionEnd",P,!1),b.addEventListener("msTransitionEnd",P,!1),b.addEventListener("oTransitionEnd",P,!1),b.addEventListener("otransitionend",P,!1),b.addEventListener("transitionend",P,!1)),window.addEventListener("resize",P,!1)):window.onresize=function(){n()},{setup:function(){n()},slide:function(e,t){p(),a(e,t)},prev:function(){p(),r()},next:function(){p(),o()},stop:function(){p()},getPos:function(){return C},getNumSlides:function(){return y},kill:function(){p(),b.style.width="",b.style.left="";for(var e=m.length;e--;){var t=m[e];t.style.width="",t.style.left="",h.transitions&&c(e,0,0)}h.addEventListener?(b.removeEventListener("touchstart",P,!1),b.removeEventListener("webkitTransitionEnd",P,!1),b.removeEventListener("msTransitionEnd",P,!1),b.removeEventListener("oTransitionEnd",P,!1),b.removeEventListener("otransitionend",P,!1),b.removeEventListener("transitionend",P,!1),window.removeEventListener("resize",P,!1)):window.onresize=null}}}}})},{}],189:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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(n,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0?g:0,auto:parseInt(d.auto,10)||0,speed:parseInt(d.speed,10)||300,disableScroll:"true"===d.disableScroll,continuous:"true"===d.continuous,callback:function(){console.log("slide changed")},transitionEnd:function(){console.log("ended transition")}},v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,u.Component),l(t,[{key:"next",value:function(){this.reactSwipe.next()}},{key:"prev",value:function(){this.reactSwipe.prev()}},{key:"render",value:function(){var e=this;return s.default.createElement("div",{className:"center"},s.default.createElement("h1",null,"ReactSwipe.js"),s.default.createElement("h2",null,"Open this page from a mobile device (real or emulated)."),s.default.createElement("h2",null,"You can pass ",s.default.createElement("a",{href:"https://github.com/voronianski/swipe-js-iso#config-options"},"Swipe.js options")," as query params."),s.default.createElement(f.default,{ref:function(t){return e.reactSwipe=t},className:"mySwipe",swipeOptions:y},m),s.default.createElement("div",null,s.default.createElement("button",{type:"button",onClick:this.prev.bind(this)},"Prev"),s.default.createElement("button",{type:"button",onClick:this.next.bind(this)},"Next")))}}]),t}();c.default.render(s.default.createElement(v,null),document.getElementById("app"))},{"../src/reactSwipe":36,querystring:28,react:34,"react-dom":31}],2:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":7}],3:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],4:[function(e,t,n){"use strict";var r=/-(.)/g;t.exports=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})}},{}],5:[function(e,t,n){"use strict";var r=e("./camelize"),o=/^-ms-/;t.exports=function(e){return r(e.replace(o,"ms-"))}},{"./camelize":4}],6:[function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=e("./isTextNode");t.exports=r},{"./isTextNode":15}],7:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],8:[function(e,t,n){"use strict";var r={};t.exports=r},{}],9:[function(e,t,n){"use strict";t.exports=function(e){try{e.focus()}catch(e){}}},{}],10:[function(e,t,n){"use strict";t.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},{}],11:[function(e,t,n){"use strict";var r=/([A-Z])/g;t.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},{}],12:[function(e,t,n){"use strict";var r=e("./hyphenate"),o=/^ms-/;t.exports=function(e){return r(e).replace(o,"-ms-")}},{"./hyphenate":11}],13:[function(e,t,n){"use strict";var r=function(e){};t.exports=function(e,t,n,o,a,i,l,u){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,l,u],p=0;(s=new Error(t.replace(/%s/g,function(){return c[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},{}],15:[function(e,t,n){"use strict";var r=e("./isNode");t.exports=function(e){return r(e)&&3==e.nodeType}},{"./isNode":14}],16:[function(e,t,n){"use strict";var r;e("./ExecutionEnvironment").canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":3}],17:[function(e,t,n){"use strict";var r,o=e("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},t.exports=r},{"./performance":16}],18:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}var o=Object.prototype.hasOwnProperty;t.exports=function(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i0&&s>u&&(s=u);for(var c=0;c=0?(p=m.substr(0,g),f=m.substr(g+1)):(p=m,f=""),d=decodeURIComponent(p),h=decodeURIComponent(f),r(i,d)?o(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],27:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=K(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=K(e.priorityLevel,t);)n=e,e=e.next;return n}function Q(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=q()),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=q()):e=null;var o=Rr=r;n=Mr=e!==r?e:null;var a=$(o,t),i=null!==a?a.next:o.first;return null===n?(Y(o,t,a,i),null):(r=$(n,t),e=null!==r?r.next:n.first,Y(o,t,a,i),i===e&&null!==i||a===r&&null!==a?(null===r&&(n.first=t),null===e&&(n.last=null),null):(t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},Y(n,t,r,e),t))}function G(e,t,n,r){return"function"==typeof(e=e.partialState)?e.call(t,n,r):e}function X(e,t,n){(e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function Z(e){return e.tag===Vr&&null!=e.type.childContextTypes}function J(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var a in n)a in o||r("108",f(e)||"Unknown",a);return yt({},t,n)}function ee(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=so,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=lo,this.alternate=null}function te(e,t,n){var o=void 0;return"function"==typeof e?(o=e.prototype&&e.prototype.isReactComponent?new ee(Jr,t,n):new ee(Zr,t,n),o.type=e):"string"==typeof e?(o=new ee(to,t,n),o.type=e):"object"==typeof e&&null!==e&&"number"==typeof e.tag?o=e:r("130",null==e?e:typeof e,""),o}function ne(e){return null===e||void 0===e?null:"function"==typeof(e=Wo&&e[Wo]||e["@@iterator"])?e:null}function re(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){var o=void 0;(t=t._owner)&&("number"==typeof t.tag?(t.tag!==Fo&&r("110"),o=t.stateNode):o=t.getPublicInstance()),o||r("147",n);var a=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(e){var t=o.refs===Ct?o.refs={}:o.refs;null===e?delete t[a]:t[a]=e},e._stringRef=a,e)}"string"!=typeof n&&r("148"),t._owner||r("149",n)}return n}function oe(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ae(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=Ho}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(t,n){return e?(t=wo(t,n),t.index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=Lo,t.index=0,t.sibling=null,t)}function l(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)f?(d=p,p=null):d=p.sibling;var h=g(e,p,i[f],u);if(null===h){null===p&&(p=d);break}t&&p&&null===h.alternate&&n(e,p),r=l(h,r,f),null===c?s=h:c.sibling=h,c=h,p=d}if(f===i.length)return o(e,p),s;if(null===p){for(;fd?(h=f,f=null):h=f.sibling;var b=g(e,f,v.value,s);if(null===b){f||(f=h);break}t&&f&&null===b.alternate&&n(e,f),i=l(b,i,d),null===p?c=b:p.sibling=b,p=b,f=h}if(v.done)return o(e,f),c;if(null===f){for(;!v.done;d++,v=u.next())null!==(v=m(e,v.value,s))&&(i=l(v,i,d),null===p?c=v:p.sibling=v,p=v);return c}for(f=a(e,f);!v.done;d++,v=u.next())null!==(v=y(f,e,d,v.value,s))&&(t&&null!==v.alternate&&f.delete(null===v.key?d:v.key),i=l(v,i,d),null===p?c=v:p.sibling=v,p=v);return t&&f.forEach(function(t){return n(e,t)}),c}return function(e,t,a,l){var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Vo:e:{var c=a.key;for(s=t;null!==s;){if(s.key===c){if(s.type===a.type){o(e,s.sibling),(t=i(s,l)).ref=re(s,a),t.pendingProps=a.props,t.return=e,e=t;break e}o(e,s);break}n(e,s),s=s.sibling}(l=Po(a,e.internalContextTag,l)).ref=re(t,a),l.return=e,e=l}return u(e);case Co:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Ro){o(e,t.sibling),(t=i(t,l)).pendingProps=a,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(a=No(a,e.internalContextTag,l)).return=e,e=a}return u(e);case Eo:e:{if(null!==t){if(t.tag===Mo){o(e,t.sibling),(t=i(t,l)).type=a.value,t.return=e,e=t;break e}o(e,t)}(t=So(a,e.internalContextTag,l)).type=a.value,t.return=e,e=t}return u(e);case ko:e:{for(s=a.key;null!==t;){if(t.key===s){if(t.tag===Do&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){o(e,t.sibling),(t=i(t,l)).pendingProps=a.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(a=_o(a,e.internalContextTag,l)).return=e,e=a}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==t&&t.tag===Ao?(o(e,t.sibling),t=i(t,l),t.pendingProps=a,t.return=e,e=t):(o(e,t),a=xo(a,e.internalContextTag,l),a.return=e,e=a),u(e);if(Oo(a))return v(e,t,a,l);if(ne(a))return b(e,t,a,l);if(s&&oe(e,a),void 0===a)switch(e.tag){case Fo:case Io:r("152",(a=e.type).displayName||a.name||"Component")}return o(e,t)}}function ie(e,t,n,o){function a(e,t){t.updater=i,e.stateNode=t,$t.set(t,e)}var i={isMounted:ta,enqueueSetState:function(n,r,o){n=$t.get(n);var a=t(n,!1);Go(n,r,void 0===o?null:o,a),e(n,a)},enqueueReplaceState:function(n,r,o){n=$t.get(n);var a=t(n,!1);Xo(n,r,void 0===o?null:o,a),e(n,a)},enqueueForceUpdate:function(n,r){n=$t.get(n);var o=t(n,!1);Zo(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:a,constructClassInstance:function(e,t){var n=e.type,r=$o(e),o=Qo(e),i=o?Yo(e,r):Ct;return t=new n(t,i),a(e,t),o&&qo(e,r,i),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,a=o.state||null,l=e.pendingProps;l||r("158");var u=$o(e);o.props=l,o.state=a,o.refs=Ct,o.context=Yo(e,u),Nr.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=Ko),"function"==typeof o.componentWillMount&&(u=o.state,o.componentWillMount(),u!==o.state&&i.enqueueReplaceState(o,o.state,null),null!==(u=e.updateQueue)&&(o.state=Jo(n,e,u,o,a,l,t))),"function"==typeof o.componentDidMount&&(e.effectTag|=zo)},updateClassInstance:function(e,t,a){var l=t.stateNode;l.props=t.memoizedProps,l.state=t.memoizedState;var u=t.memoizedProps,s=t.pendingProps;s||null==(s=u)&&r("159");var c=l.context,p=$o(t);if(p=Yo(t,p),"function"!=typeof l.componentWillReceiveProps||u===s&&c===p||(c=l.state,l.componentWillReceiveProps(s,p),l.state!==c&&i.enqueueReplaceState(l,l.state,null)),c=t.memoizedState,a=null!==t.updateQueue?Jo(e,t,t.updateQueue,l,c,s,a):c,!(u!==s||c!==a||ea()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof l.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=zo),!1;var f=s;if(null===u||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)f=!0;else{var d=t.stateNode,h=t.type;f="function"==typeof d.shouldComponentUpdate?d.shouldComponentUpdate(f,a,p):!h.prototype||!h.prototype.isPureReactComponent||(!Et(u,f)||!Et(c,a))}return f?("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(s,a,p),"function"==typeof l.componentDidUpdate&&(t.effectTag|=zo)):("function"!=typeof l.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=zo),n(t,s),o(t,a)),l.props=s,l.state=a,l.context=p,f}}}function le(e,t,n,o,a){function i(e,t,n){l(e,t,n,t.pendingWorkPriority)}function l(e,t,n,r){t.child=null===e?na(t,t.child,n,r):e.child===t.child?ra(t,t.child,n,r):oa(t,t.child,n,r)}function u(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=Oa)}function s(e,t,n,r){if(u(e,t),!n)return r&&fa(t,!1),p(e,t);n=t.stateNode,Ia.current=t;var o=n.render();return t.effectTag|=xa,i(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&fa(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?pa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pa(e,t.context,!1),y(e,t.containerInfo)}function p(e,t){return aa(e,t),t.child}function f(e,t){switch(t.tag){case ga:c(t);break;case ma:ca(t);break;case ba:y(t,t.stateNode.containerInfo)}return null}var d=e.shouldSetTextContent,h=e.useSyncScheduling,m=e.shouldDeprioritizeSubtree,g=t.pushHostContext,y=t.pushHostContainer,v=n.enterHydrationState,b=n.resetHydrationState,C=n.tryToClaimNextHydratableInstance,E=(e=ie(o,a,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t})).adoptClassInstance,k=e.constructClassInstance,w=e.mountClassInstance,P=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Pa||t.pendingWorkPriority>n)return f(0,t);switch(t.tag){case da:null!==e&&r("155");var o=t.type,a=t.pendingProps,l=ua(t);return l=la(t,l),o=o(a,l),t.effectTag|=xa,"object"==typeof o&&null!==o&&"function"==typeof o.render?(t.tag=ma,a=ca(t),E(t,o),w(t,n),t=s(e,t,!0,a)):(t.tag=ha,i(e,t,o),t.memoizedProps=a,t=t.child),t;case ha:e:{if(a=t.type,n=t.pendingProps,o=t.memoizedProps,sa())null===n&&(n=o);else if(null===n||o===n){t=p(e,t);break e}o=ua(t),a=a(n,o=la(t,o)),t.effectTag|=xa,i(e,t,a),t.memoizedProps=n,t=t.child}return t;case ma:return a=ca(t),o=void 0,null===e?t.stateNode?r("153"):(k(t,t.pendingProps),w(t,n),o=!0):o=P(e,t,n),s(e,t,o,a);case ga:return c(t),null!==(o=t.updateQueue)?(a=t.memoizedState,o=ia(e,t,o,null,a,null,n),a===o?(b(),t=p(e,t)):(a=o.element,null!==e&&null!==e.child||!v(t)?(b(),i(e,t,a)):(t.effectTag|=Na,t.child=na(t,t.child,a,n)),t.memoizedState=o,t=t.child)):(b(),t=p(e,t)),t;case ya:g(t),null===e&&C(t),a=t.type;var T=t.memoizedProps;return null===(o=t.pendingProps)&&null===(o=T)&&r("154"),l=null!==e?e.memoizedProps:null,sa()||null!==o&&T!==o?(T=o.children,d(a,o)?T=null:l&&d(a,l)&&(t.effectTag|=Sa),u(e,t),n!==Ta&&!h&&m(a,o)?(t.pendingWorkPriority=Ta,t=null):(i(e,t,T),t.memoizedProps=o,t=t.child)):t=p(e,t),t;case va:return null===e&&C(t),null===(e=t.pendingProps)&&(e=t.memoizedProps),t.memoizedProps=e,null;case Ea:t.tag=Ca;case Ca:return n=t.pendingProps,sa()?null===n&&null===(n=e&&e.memoizedProps)&&r("154"):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),a=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?na(t,t.stateNode,a,o):e.child===t.child?ra(t,t.stateNode,a,o):oa(t,t.stateNode,a,o),t.memoizedProps=n,t.stateNode;case ka:return null;case ba:e:{if(y(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,a=t.pendingProps,sa())null===a&&null==(a=e&&e.memoizedProps)&&r("154");else if(null===a||t.memoizedProps===a){t=p(e,t);break e}null===e?t.child=oa(t,t.child,a,n):i(e,t,a),t.memoizedProps=a,t=t.child}return t;case wa:e:{if(n=t.pendingProps,sa())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=p(e,t);break e}i(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case ma:ca(t);break;case ga:c(t);break;default:r("157")}return t.effectTag|=_a,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Pa||t.pendingWorkPriority>n?f(0,t):(t.firstEffect=null,t.lastEffect=null,l(e,t,null,n),t.tag===ma&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function ue(e,t,n){var o=e.createInstance,a=e.createTextInstance,i=e.appendInitialChild,l=e.finalizeInitialChildren,u=e.prepareUpdate,s=t.getRootHostContainer,c=t.popHostContext,p=t.getHostContext,f=t.popHostContainer,d=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,m=n.popHydrationState;return{completeWork:function(e,t,n){var g=t.pendingProps;switch(null===g?g=t.memoizedProps:t.pendingWorkPriority===Qa&&n!==Qa||(t.pendingProps=null),t.tag){case Ma:return null;case ja:return Aa(t),null;case La:return f(t),Da(t),(g=t.stateNode).pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),null!==e&&null!==e.child||(m(t),t.effectTag&=~qa),null;case Ua:c(t),n=s();var y=t.type;if(null!==e&&null!=t.stateNode){var v=e.memoizedProps,b=t.stateNode,C=p();g=u(b,y,v,g,n,C),(t.updateQueue=g)&&(t.effectTag|=$a),e.ref!==t.ref&&(t.effectTag|=Ya)}else{if(!g)return null===t.stateNode&&r("166"),null;if(e=p(),m(t))d(t,n,e)&&(t.effectTag|=$a);else{e=o(y,g,n,e,t);e:for(v=t.child;null!==v;){if(v.tag===Ua||v.tag===Ha)i(e,v.stateNode);else if(v.tag!==Wa&&null!==v.child){v=v.child;continue}if(v===t)break e;for(;null===v.sibling;){if(null===v.return||v.return===t)break e;v=v.return}v=v.sibling}l(e,y,g,n)&&(t.effectTag|=$a),t.stateNode=e}null!==t.ref&&(t.effectTag|=Ya)}return null;case Ha:if(e&&null!=t.stateNode)e.memoizedProps!==g&&(t.effectTag|=$a);else{if("string"!=typeof g)return null===t.stateNode&&r("166"),null;e=s(),n=p(),m(t)?h(t)&&(t.effectTag|=$a):t.stateNode=a(g,e,n,t)}return null;case Va:(g=t.memoizedProps)||r("165"),t.tag=Ba,n=[];e:for((y=t.stateNode)&&(y.return=t);null!==y;){if(y.tag===Ua||y.tag===Ha||y.tag===Wa)r("164");else if(y.tag===za)n.push(y.type);else if(null!==y.child){y.child.return=y,y=y.child;continue}for(;null===y.sibling;){if(null===y.return||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}return y=g.handler,g=y(g.props,n),t.child=Fa(t,null!==e?e.child:null,g,t.pendingWorkPriority),t.child;case Ba:return t.tag=Va,null;case za:case Ka:return null;case Wa:return t.effectTag|=$a,f(t),null;case Ra:r("167");default:r("156")}}}}function se(e){return function(t){try{return e(t)}catch(e){}}}function ce(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){return e.tag===ti||e.tag===ei||e.tag===ri}function a(e){for(var t=e;;)if(l(t),null!==t.child&&t.tag!==ri)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,o=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case ti:o=n.stateNode,i=!1;break e;case ei:case ri:o=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===ti||t.tag===ni)a(t),i?y(o,t.stateNode):g(o,t.stateNode);else if(t.tag===ri?o=t.stateNode.containerInfo:l(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;(t=t.return).tag===ri&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function l(e){switch("function"==typeof ii&&ii(e),e.tag){case Ja:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case ti:n(e);break;case oi:a(e.stateNode);break;case ri:i(e)}}var u=e.commitMount,s=e.commitUpdate,c=e.resetTextContent,p=e.commitTextUpdate,f=e.appendChild,d=e.appendChildToContainer,h=e.insertBefore,m=e.insertInContainerBefore,g=e.removeChild,y=e.removeChildFromContainer,v=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(o(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var a=t=void 0;switch(n.tag){case ti:t=n.stateNode,a=!1;break;case ei:case ri:t=n.stateNode.containerInfo,a=!0;break;default:r("161")}n.effectTag&ci&&(c(t),n.effectTag&=~ci);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==ti&&n.tag!==ni;){if(n.effectTag&li)continue t;if(null===n.child||n.tag===ri)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&li)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===ti||i.tag===ni)n?a?m(t,i.stateNode,n):h(t,i.stateNode,n):a?d(t,i.stateNode):f(t,i.stateNode);else if(i.tag!==ri&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case Ja:break;case ti:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&s(n,i,a,e,o,t)}break;case ni:null===t.stateNode&&r("162"),n=t.memoizedProps,p(t.stateNode,null!==e?e.memoizedProps:n,n);break;case ei:case ri:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case Ja:var n=t.stateNode;if(t.effectTag&ui)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t.effectTag&si&&null!==t.updateQueue&&ai(t,t.updateQueue,n);break;case ei:null!==(e=t.updateQueue)&&ai(t,e,t.child&&t.child.stateNode);break;case ti:n=t.stateNode,null===e&&t.effectTag&ui&&u(n,t.type,t.memoizedProps,t);break;case ni:case ri:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case ti:t(v(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function pe(e){function t(e){return e===hi&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,a=pi(hi),i=pi(hi),l=pi(hi);return{getHostContext:function(){return t(a.current)},getRootHostContainer:function(){return t(l.current)},popHostContainer:function(e){fi(a,e),fi(i,e),fi(l,e)},popHostContext:function(e){i.current===e&&(fi(a,e),fi(i,e))},pushHostContainer:function(e,t){di(l,t,e),t=o(t),di(i,e,e),di(a,t,e)},pushHostContext:function(e){var r=t(l.current),o=t(a.current);o!==(r=n(o,e.type,r))&&(di(i,e,e),di(a,r,e))},resetHostContainer:function(){a.current=hi,l.current=hi}}}function fe(e){function t(e,t){var n=Ci();n.stateNode=t,n.return=e,n.effectTag=vi,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case mi:return i(t,e.type,e.pendingProps);case gi:return l(t,e.pendingProps);default:return!1}}function o(e){for(e=e.return;null!==e&&e.tag!==mi&&e.tag!==yi;)e=e.return;h=e}var a=e.shouldSetTextContent,i=e.canHydrateInstance,l=e.canHydrateTextInstance,u=e.getNextHydratableSibling,s=e.getFirstHydratableChild,c=e.hydrateInstance,p=e.hydrateTextInstance,f=e.didNotHydrateInstance,d=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&l&&u&&s&&c&&p&&f&&d&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var h=null,m=null,g=!1;return{enterHydrationState:function(e){return m=s(e.stateNode.containerInfo),h=e,g=!0},resetHydrationState:function(){m=h=null,g=!1},tryToClaimNextHydratableInstance:function(e){if(g){var r=m;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=bi,g=!1,void(h=e);t(h,m)}e.stateNode=r,h=e,m=s(r)}else e.effectTag|=bi,g=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!g)return o(e),g=!0,!1;var n=e.type;if(e.tag!==mi||"head"!==n&&"body"!==n&&!a(n,e.memoizedProps))for(n=m;n;)t(e,n),n=u(n);return o(e),m=h?u(e.stateNode):null,!0}}}function de(e){function t(){for(;null!==q&&q.current.pendingWorkPriority===Ni;){q.isScheduled=!1;var e=q.nextScheduledRoot;if(q.nextScheduledRoot=null,q===Y)return Y=q=null,B=Ni,null;q=e}e=q;for(var t=null,n=Ni;null!==e;)e.current.pendingWorkPriority!==Ni&&(n===Ni||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(B=n,ki(),$i(),k(),V=Pi(t.current,n),t!==oe&&(re=0,oe=t)):(B=Ni,oe=V=null)}function n(n){ee=!0,K=null;var o=n.stateNode;if(o.current===n&&r("177"),B!==Si&&B!==_i||re++,wi.current=null,n.effectTag>Di)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var a=n.firstEffect}else a=n;else a=n.firstEffect;for(R(),z=a;null!==z;){var i=!1,l=void 0;try{for(;null!==z;){var u=z.effectTag;if(u&Ui&&e.resetTextContent(z.stateNode),u&Vi){var s=z.alternate;null!==s&&F(s)}switch(u&~(Hi|Wi|Ui|Vi|Di)){case Ri:N(z),z.effectTag&=~Ri;break;case ji:N(z),z.effectTag&=~Ri,_(z.alternate,z);break;case Mi:_(z.alternate,z);break;case Li:te=!0,S(z),te=!1}z=z.nextEffect}}catch(e){i=!0,l=e}i&&(null===z&&r("178"),p(z,l),null!==z&&(z=z.nextEffect))}for(M(),o.current=n,z=a;null!==z;){o=!1,a=void 0;try{for(;null!==z;){var c=z.effectTag;if(c&(Mi|Hi)&&O(z.alternate,z),c&Vi&&I(z),c&Wi)switch(i=z,l=void 0,null!==Q&&(l=Q.get(i),Q.delete(i),null==l&&null!==i.alternate&&(i=i.alternate,l=Q.get(i),Q.delete(i))),null==l&&r("184"),i.tag){case qi:i.stateNode.componentDidCatch(l.error,{componentStack:l.componentStack});break;case Bi:null===Z&&(Z=l.error);break;default:r("157")}var f=z.nextEffect;z.nextEffect=null,z=f}}catch(e){o=!0,a=e}o&&(null===z&&r("178"),p(z,a),null!==z&&(z=z.nextEffect))}ee=!1,"function"==typeof xi&&xi(n.stateNode),X&&(X.forEach(y),X=null),t()}function o(e){for(;;){var t=x(e.alternate,e,B),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ni&&o.pendingWorkPriority>B)){for(var a=Yi(o),i=o.child;null!==i;)a=Ti(a,i.pendingWorkPriority),i=i.sibling;o.pendingWorkPriority=a}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>Di&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){K=e;break}e=n}return null}function a(e){var t=P(e.alternate,e,B);return null===t&&(t=o(e)),wi.current=null,t}function i(e){var t=T(e.alternate,e,B);return null===t&&(t=o(e)),wi.current=null,t}function l(e){c(Fi,e)}function u(){if(null!==Q&&0e)){j=B;e:for(;;){if(B<=_i)for(;null!==V&&!(null===(V=a(V))&&(null===K&&r("179"),j=_i,n(K),j=B,u(),B===Ni||B>e||B>_i)););else if(null!==o)for(;null!==V&&!U;)if(1e||B_i&&!$&&(A(l),$=!0),e=Z,J=U=L=!1,oe=G=Q=Z=null,re=0,null!==e)throw e}function p(e,t){var n=wi.current=null,r=!1,o=!1,a=null;if(e.tag===Bi)n=e,d(e)&&(J=!0);else for(var i=e.return;null!==i&&null===n;){if(i.tag===qi?"function"==typeof i.stateNode.componentDidCatch&&(r=!0,a=f(i),n=i,o=!0):i.tag===Bi&&(n=i),d(i)){if(te||null!==X&&(X.has(i)||null!==i.alternate&&X.has(i.alternate)))return null;n=null,o=!1}i=i.return}if(null!==n){null===G&&(G=new Set),G.add(n);var l="";i=e;do{e:switch(i.tag){case fo:case ho:case mo:case go:var u=i._debugOwner,s=i._debugSource,c=f(i),p=null;u&&(p=f(u)),u=s,c="\n in "+(c||"Unknown")+(u?" (at "+u.fileName.replace(/^.*[\\\/]/,"")+":"+u.lineNumber+")":p?" (created by "+p+")":"");break e;default:c=""}l+=c,i=i.return}while(i);i=l,e=f(e),null===Q&&(Q=new Map),t={componentName:e,componentStack:i,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:a,willRetry:o},Q.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return ee?(null===X&&(X=new Set),X.add(n)):y(n),n}return null===Z&&(Z=t),null}function d(e){return null!==G&&(G.has(e)||null!==e.alternate&&G.has(e.alternate))}function h(e,t){return m(e,t,!1)}function m(e,t){re>ne&&(J=!0,r("185")),!L&&t<=B&&(V=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ni||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ni||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==Bi)break;var o=e.stateNode;if(t===Ni||o.isScheduled||(o.isScheduled=!0,Y?Y.nextScheduledRoot=o:q=o,Y=o),!L)switch(t){case Si:W?c(Si,null):c(_i,null);break;case _i:H||r("186");break;default:$||(A(l),$=!0)}}e=e.return}}function g(e,t){var n=j;return n===Ni&&(n=!D||e.internalContextTag&Ai||t?Ii:Si),n===Si&&(L||H)?_i:n}function y(e){m(e,_i,!0)}var v=pe(e),b=fe(e),C=v.popHostContainer,E=v.popHostContext,k=v.resetHostContainer,w=le(e,v,b,h,g),P=w.beginWork,T=w.beginFailedWork,x=ue(e,v,b).completeWork,N=(v=ce(e,p)).commitPlacement,S=v.commitDeletion,_=v.commitWork,O=v.commitLifeCycles,I=v.commitAttachRef,F=v.commitDetachRef,A=e.scheduleDeferredCallback,D=e.useSyncScheduling,R=e.prepareForCommit,M=e.resetAfterCommit,j=Ni,L=!1,U=!1,H=!1,W=!1,V=null,B=Ni,z=null,K=null,q=null,Y=null,$=!1,Q=null,G=null,X=null,Z=null,J=!1,ee=!1,te=!1,ne=1e3,re=0,oe=null;return{scheduleUpdate:h,getPriorityContext:g,batchedUpdates:function(e,t){var n=H;H=!0;try{return e(t)}finally{H=n,L||H||c(_i,null)}},unbatchedUpdates:function(e){var t=W,n=H;W=H,H=!1;try{return e()}finally{H=n,W=t}},flushSync:function(e){var t=H,n=j;H=!0,j=Si;try{return e()}finally{H=t,j=n,L&&r("187"),c(_i,null)}},deferredUpdates:function(e){var t=j;j=Ii;try{return e()}finally{j=t}}}}function he(){r("196")}function me(e){return e?"number"==typeof(e=$t.get(e)).tag?he(e):e._processChildContext(e._context):Ct}function ge(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ye(e,t){var n=ge(e);e=0;for(var r;n;){if(n.nodeType===nl){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ge(n)}}function ve(){return!rl&>.canUseDOM&&(rl="textContent"in document.documentElement?"textContent":"innerText"),rl}function be(){r("211")}function Ce(){r("212")}function Ee(e){if(null==e)return null;if(e.nodeType===ul)return e;var t=$t.get(e);if(t)return"number"==typeof t.tag?be(t):Ce(t);"function"==typeof e.render?r("188"):r("213",Object.keys(e))}function ke(e){if(void 0!==e._hostParent)return e._hostParent;if("number"==typeof e.tag){do{e=e.return}while(e&&e.tag!==sl);if(e)return e}return null}function we(e,t){for(var n=0,r=e;r;r=ke(r))n++;r=0;for(var o=t;o;o=ke(o))r++;for(;0this.eventPool.length&&this.eventPool.push(e)}function Fe(e){e.eventPool=[],e.getPooled=Oe,e.release=Ie}function Ae(e,t,n,r){return _e.call(this,e,t,n,r)}function De(e,t,n,r){return _e.call(this,e,t,n,r)}function Re(e,t){switch(e){case"topKeyUp":return-1!==vl.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Me(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function je(e,t){switch(e){case"topCompositionEnd":return Me(t);case"topKeyPress":return 32!==t.which?null:(Nl=!0,Tl);case"topTextInput":return(e=t.data)===Tl&&Nl?null:e;default:return null}}function Le(e,t){if(Sl)return"topCompositionEnd"===e||!bl&&Re(e,t)?(e=ml.getData(),ml.reset(),Sl=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=(u={attributeName:u,attributeNamespace:null,propertyName:i,mutationMethod:null,mustUseProperty:l(s,t.MUST_USE_PROPERTY),hasBooleanValue:l(s,t.HAS_BOOLEAN_VALUE),hasNumericValue:l(s,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:l(s,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:l(s,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:l(s,t.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",i),a.hasOwnProperty(i)&&(u.attributeName=a[i]),o.hasOwnProperty(i)&&(u.attributeNamespace=o[i]),e.hasOwnProperty(i)&&(u.mutationMethod=e[i]),Dt.properties[i]=u}}},Dt={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(Dt.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return Dt.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return Dt.properties.hasOwnProperty(e)?Dt.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(Dt.isReservedProp(e))return!0;var t=Dt.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:"data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e},isReservedProp:function(e){return Ft.hasOwnProperty(e)},injection:At},Rt=Dt,Mt={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},jt={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},Lt=Mt.HostComponent,Ut=Mt.HostText,Ht=jt.ELEMENT_NODE,Wt=jt.COMMENT_NODE,Vt=Rt.ID_ATTRIBUTE_NAME,Bt={hasCachedChildNodes:1},zt=Math.random().toString(36).slice(2),Kt="__reactInternalInstance$"+zt,qt="__reactEventHandlers$"+zt,Yt={getClosestInstanceFromNode:p,getInstanceFromNode:function(e){var t=e[Kt];return t?t.tag===Lt||t.tag===Ut?t:t._hostNode===e?t:null:null!=(t=p(e))&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(e.tag===Lt||e.tag===Ut)return e.stateNode;if(void 0===e._hostNode&&r("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||r("34"),e=e._hostParent;for(;t.length;e=t.pop())c(e,e._hostNode);return e._hostNode},precacheChildNodes:c,precacheNode:s,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Kt],e._hostNode=null)},precacheFiberNode:function(e,t){t[Kt]=e},getFiberCurrentPropsFromNode:function(e){return e[qt]||null},updateFiberProps:function(e,t){e[qt]=t}},$t={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},Qt={ReactCurrentOwner:mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Gt={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},Xt=Mt.HostComponent,Zt=Mt.HostRoot,Jt=Mt.HostPortal,en=Mt.HostText,tn=Gt.NoEffect,nn=Gt.Placement,rn={isFiberMounted:function(e){return 2===d(e)},isMounted:function(e){return!!(e=$t.get(e))&&2===d(e)},findCurrentFiberUsingSlowPath:m,findCurrentHostFiber:function(e){if(!(e=m(e)))return null;for(var t=e;;){if(t.tag===Xt||t.tag===en)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){if(!(e=m(e)))return null;for(var t=e;;){if(t.tag===Xt||t.tag===en)return t;if(t.child&&t.tag!==Jt)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}},on={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&r("197"),g=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,l,u){g.apply(on,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,l,u){if(on.invokeGuardedCallback.apply(this,arguments),on.hasCaughtError()){var s=on.clearCaughtError();on._hasRethrowError||(on._hasRethrowError=!0,on._rethrowError=s)}},rethrowCaughtError:function(){return y.apply(on,arguments)},hasCaughtError:function(){return on._hasCaughtError},clearCaughtError:function(){if(on._hasCaughtError){var e=on._caughtError;return on._caughtError=null,on._hasCaughtError=!1,e}r("198")}},an=on,ln={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)&&r("103"),e.currentTarget=t?ln.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;oyn.length&&yn.push(e)}}}},bn=vn,Cn=null,En={injection:{injectEventPluginOrder:It.injectEventPluginOrder,injectEventPluginsByName:It.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var o=un.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],O(t,e.type,o))return null}else{if("string"==typeof(o=e._currentElement)||"number"==typeof o||!e._rootNodeID)return null;if(e=o.props,n=e[t],O(t,o.type,e))return null}return n&&"function"!=typeof n&&r("231",t,typeof n),n},extractEvents:function(e,t,n,r){for(var o,a=It.plugins,i=0;in||r.hasOverloadedBooleanValue&&!1===n?Wn.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Wn.setValueForAttribute(e,t,Rt.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){R(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=Rt.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Vn=Wn,Bn=Qt.ReactDebugCurrentFrame,zn={current:null,phase:null,resetCurrentFiber:function(){Bn.getCurrentStack=null,zn.current=null,zn.phase=null},setCurrentFiber:function(e,t){Bn.getCurrentStack=M,zn.current=e,zn.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:M},Kn=zn,qn={getHostProps:function(e,t){var n=t.value,r=t.checked;return yt({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Vn.setValueForProperty(e,"checked",n||!1),null!=(n=t.value)?0===n&&""===e.value?e.value="0":"number"===t.type?(n!=(t=parseFloat(e.value)||0)||n==t&&e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){qn.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n=""),o=n),e._wrapperState={initialValue:""+o}},updateWrapper:function(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Gn.updateWrapper(e,t)}},Xn=Gn,Zn=yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Jn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=W(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}},er=Nt.Namespaces,tr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==er.svg||"innerHTML"in e)e.innerHTML=t;else for(Mn=Mn||document.createElement("div"),Mn.innerHTML=""+t+"",t=Mn.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),nr=/["'&<>]/,rr=jt.TEXT_NODE;gt.canUseDOM&&("textContent"in document.documentElement||(B=function(e,t){if(e.nodeType===rr)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=nr.exec(t);if(n){var r,o="",a=0;for(r=n.index;r<\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===ar?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=V(t,n);switch(t){case"iframe":case"object":_n.trapBubbledEvent("topLoad","load",e);var a=n;break;case"video":case"audio":for(a in pr)pr.hasOwnProperty(a)&&_n.trapBubbledEvent(a,pr[a],e);a=n;break;case"source":_n.trapBubbledEvent("topError","error",e),a=n;break;case"img":case"image":_n.trapBubbledEvent("topError","error",e),_n.trapBubbledEvent("topLoad","load",e),a=n;break;case"form":_n.trapBubbledEvent("topReset","reset",e),_n.trapBubbledEvent("topSubmit","submit",e),a=n;break;case"details":_n.trapBubbledEvent("topToggle","toggle",e),a=n;break;case"input":Yn.initWrapperState(e,n),a=Yn.getHostProps(e,n),_n.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"option":$n.validateProps(e,n),a=$n.getHostProps(e,n);break;case"select":Qn.initWrapperState(e,n),a=Qn.getHostProps(e,n),_n.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;case"textarea":Xn.initWrapperState(e,n),a=Xn.getHostProps(e,n),_n.trapBubbledEvent("topInvalid","invalid",e),z(r,"onChange");break;default:a=n}U(t,a);var i,l=a;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];"style"===i?jn.setValueForStyles(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&tr(e,u):"children"===i?"string"==typeof u?or(e,u):"number"==typeof u&&or(e,""+u):"suppressContentEditableWarning"!==i&&(ur.hasOwnProperty(i)?null!=u&&z(r,i):o?Vn.setValueForAttribute(e,i,u):null!=u&&Vn.setValueForProperty(e,i,u))}switch(t){case"input":Jn.track(e),Yn.postMountWrapper(e,n);break;case"textarea":Jn.track(e),Xn.postMountWrapper(e,n);break;case"option":$n.postMountWrapper(e,n);break;case"select":Qn.postMountWrapper(e,n);break;default:"function"==typeof a.onClick&&(e.onclick=bt)}},diffProperties:function(e,t,n,r,o){var a=null;switch(t){case"input":n=Yn.getHostProps(e,n),r=Yn.getHostProps(e,r),a=[];break;case"option":n=$n.getHostProps(e,n),r=$n.getHostProps(e,r),a=[];break;case"select":n=Qn.getHostProps(e,n),r=Qn.getHostProps(e,r),a=[];break;case"textarea":n=Xn.getHostProps(e,n),r=Xn.getHostProps(e,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=bt)}U(t,r);var i,l;e=null;for(i in n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(l in t=n[i])t.hasOwnProperty(l)&&(e||(e={}),e[l]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(ur.hasOwnProperty(i)?a||(a=[]):(a=a||[]).push(i,null));for(i in r){var u=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&u!==t&&(null!=u||null!=t))if("style"===i)if(t){for(l in t)!t.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(e||(e={}),e[l]="");for(l in u)u.hasOwnProperty(l)&&t[l]!==u[l]&&(e||(e={}),e[l]=u[l])}else e||(a||(a=[]),a.push(i,e)),e=u;else"dangerouslySetInnerHTML"===i?(u=u?u.__html:void 0,t=t?t.__html:void 0,null!=u&&t!==u&&(a=a||[]).push(i,""+u)):"children"===i?t===u||"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(i,""+u):"suppressContentEditableWarning"!==i&&(ur.hasOwnProperty(i)?(null!=u&&z(o,i),a||t===u||(a=[])):(a=a||[]).push(i,u))}return e&&(a=a||[]).push("style",e),a},updateProperties:function(e,t,n,r,o){V(n,r),r=V(n,o);for(var a=0;at&&(t=8),Cr=t=K(s.priorityLevel,i);){n.first=s.next,null===n.first&&(n.last=null);var c;s.isReplace?(o=G(s,r,o,a),u=!0):(c=G(s,r,o,a))&&(o=u?yt({},o,c):yt(o,c),u=!1),s.isForced&&(l=!0),null===s.callback||s.isTopLevelUnmount&&null!==s.next||((e=null!==e?e:[]).push(s.callback),t.effectTag|=_r),s=s.next}return n.callbackList=e,n.hasForceUpdate=l,null!==n.first||null!==e||l||(t.updateQueue=null),o},commitCallbacks:function(e,t,n){if(null!==(e=t.callbackList))for(t.callbackList=null,t=0;tUr||(e.current=Lr[Ur],Lr[Ur]=null,Ur--)},push:function(e,t){Lr[++Ur]=e.current,e.current=t},reset:function(){for(;-1e)?e:t}},po=co.createHostRootFiber,fo=Mt.IndeterminateComponent,ho=Mt.FunctionalComponent,mo=Mt.ClassComponent,go=Mt.HostComponent;"function"==typeof Symbol&&Symbol.for?(Pr=Symbol.for("react.coroutine"),Tr=Symbol.for("react.yield")):(Pr=60104,Tr=60105);var yo={createCoroutine:function(e,t,n){var r=3t&&(r=t,t=o,o=r),r=ye(e,o),e=ye(e,t),r&&e){var a=document.createRange();a.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(a),n.extend(e.node,e.offset)):(a.setEnd(e.node,e.offset),n.addRange(a))}}}},al=jt.ELEMENT_NODE,il={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=Pt();return{focusedElem:e,selectionRange:il.hasSelectionCapabilities(e)?il.getSelection(e):null}},restoreSelection:function(e){var t=Pt(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&kt(document.documentElement,n)){for(il.hasSelectionCapabilities(n)&&il.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===al&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(wt(n),n=0;n=parseInt(kl.version(),10))}var wl=El,Pl=gt.canUseDOM&&(!bl||Cl&&8=Cl),Tl=String.fromCharCode(32),xl={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Nl=!1,Sl=!1,_l={eventTypes:xl,extractEvents:function(e,t,n,r){var o;if(bl)e:{switch(e){case"topCompositionStart":var a=xl.compositionStart;break e;case"topCompositionEnd":a=xl.compositionEnd;break e;case"topCompositionUpdate":a=xl.compositionUpdate;break e}a=void 0}else Sl?Re(e,n)&&(a=xl.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=xl.compositionStart);return a?(Pl&&(Sl||a!==xl.compositionStart?a===xl.compositionEnd&&Sl&&(o=ml.getData()):Sl=ml.initialize(r)),a=Ae.getPooled(a,t,n,r),o?a.data=o:null!==(o=Me(n))&&(a.data=o),fl.accumulateTwoPhaseDispatches(a),o=a):o=null,(e=wl?je(e,n):Le(e,n))?(t=De.getPooled(xl.beforeInput,t,n,r),t.data=e,fl.accumulateTwoPhaseDispatches(t)):t=null,[o,t]}},Ol={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Il={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Fl=null,Al=null,Dl=!1;gt.canUseDOM&&(Dl=I("input")&&(!document.documentMode||9=document.documentMode,Wl={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Vl=null,Bl=null,zl=null,Kl=!1,ql=_n.isListeningToAllDependencies,Yl={eventTypes:Wl,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===Ul?r:r.ownerDocument;if(!o||!ql("onSelect",o))return null;switch(o=t?Yt.getNodeFromInstance(t):window,e){case"topFocus":(Ue(o)||"true"===o.contentEditable)&&(Vl=o,Bl=t,zl=null);break;case"topBlur":zl=Bl=Vl=null;break;case"topMouseDown":Kl=!0;break;case"topContextMenu":case"topMouseUp":return Kl=!1,et(n,r);case"topSelectionChange":if(Hl)break;case"topKeyDown":case"topKeyUp":return et(n,r)}return null}};_e.augmentClass(tt,{animationName:null,elapsedTime:null,pseudoElement:null}),_e.augmentClass(nt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ge.augmentClass(rt,{relatedTarget:null});var $l={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ql={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};Ge.augmentClass(at,{key:function(e){if(e.key){var t=$l[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ot(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ql[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ze,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Je.augmentClass(it,{dataTransfer:null}),Ge.augmentClass(lt,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ze}),_e.augmentClass(ut,{propertyName:null,elapsedTime:null,pseudoElement:null}),Je.augmentClass(st,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Gl={},Xl={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t="top"+t]},Gl[e]=n,Xl[t]=n});var Zl={eventTypes:Gl,extractEvents:function(e,t,n,o){var a=Xl[e];if(!a)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=_e;break;case"topKeyPress":if(0===ot(n))return null;case"topKeyDown":case"topKeyUp":i=at;break;case"topBlur":case"topFocus":i=rt;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Je;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=it;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=lt;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=tt;break;case"topTransitionEnd":i=ut;break;case"topScroll":i=Ge;break;case"topWheel":i=st;break;case"topCopy":case"topCut":case"topPaste":i=nt}return i||r("86",e),e=i.getPooled(a,t,n,o),fl.accumulateTwoPhaseDispatches(e),e}};bn.setHandleTopLevel(_n.handleTopLevel),En.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),un.injection.injectComponentTree(Yt),En.injection.injectEventPluginsByName({SimpleEventPlugin:Zl,EnterLeaveEventPlugin:Ll,ChangeEventPlugin:Rl,SelectEventPlugin:Yl,BeforeInputEventPlugin:_l});var Jl=Rt.injection.MUST_USE_PROPERTY,eu=Rt.injection.HAS_BOOLEAN_VALUE,tu=Rt.injection.HAS_NUMERIC_VALUE,nu=Rt.injection.HAS_POSITIVE_NUMERIC_VALUE,ru=Rt.injection.HAS_STRING_BOOLEAN_VALUE,ou={Properties:{allowFullScreen:eu,allowTransparency:ru,async:eu,autoPlay:eu,capture:eu,checked:Jl|eu,cols:nu,contentEditable:ru,controls:eu,default:eu,defer:eu,disabled:eu,download:Rt.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:ru,formNoValidate:eu,hidden:eu,loop:eu,multiple:Jl|eu,muted:Jl|eu,noValidate:eu,open:eu,playsInline:eu,readOnly:eu,required:eu,reversed:eu,rows:nu,rowSpan:tu,scoped:eu,seamless:eu,selected:Jl|eu,size:nu,start:tu,span:nu,spellCheck:ru,style:0,itemScope:eu,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:ru},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},au=Rt.injection.HAS_STRING_BOOLEAN_VALUE,iu={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},lu={Properties:{autoReverse:au,externalResourcesRequired:au,preserveAlpha:au},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:iu.xlink,xlinkArcrole:iu.xlink,xlinkHref:iu.xlink,xlinkRole:iu.xlink,xlinkShow:iu.xlink,xlinkTitle:iu.xlink,xlinkType:iu.xlink,xmlBase:iu.xml,xmlLang:iu.xml,xmlSpace:iu.xml}},uu=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(uu,ct);lu.Properties[t]=0,lu.DOMAttributeNames[t]=e}),Rt.injection.injectDOMPropertyConfig(ou),Rt.injection.injectDOMPropertyConfig(lu);var su=Za.injectInternals,cu=jt.ELEMENT_NODE,pu=jt.TEXT_NODE,fu=jt.COMMENT_NODE,du=jt.DOCUMENT_NODE,hu=jt.DOCUMENT_FRAGMENT_NODE,mu=Rt.ROOT_ATTRIBUTE_NAME,gu=Nt.getChildNamespace,yu=fr.createElement,vu=fr.createTextNode,bu=fr.setInitialProperties,Cu=fr.diffProperties,Eu=fr.updateProperties,ku=fr.diffHydratedProperties,wu=fr.diffHydratedText,Pu=fr.warnForDeletedHydratableElement,Tu=fr.warnForDeletedHydratableText,xu=fr.warnForInsertedHydratedElement,Nu=fr.warnForInsertedHydratedText,Su=Yt.precacheFiberNode,_u=Yt.updateFiberProps;fn.injection.injectFiberControlledHostComponent(fr),Ee._injectFiber(function(e){return Fu.findHostInstance(e)});var Ou=null,Iu=null,Fu=function(e){var t=e.getPublicInstance,n=(e=de(e)).scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=po();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,a){var i=t.current;o=me(o),null===t.context?t.context=o:t.pendingContext=o,t=a,a=r(i,Nr.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),Qi(i,e={element:e},void 0===t?null:t,a),n(i,a)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case Ji:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return null===(e=el(e))?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return null===(e=tl(e))?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===du)e=(e=e.documentElement)?e.namespaceURI:gu(null,"");else{var t=e.nodeType===fu?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=gu(e,t)}return e},getChildHostContext:function(e,t){return gu(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){Ou=_n.isEnabled(),Iu=ll.getSelectionInformation(),_n.setEnabled(!1)},resetAfterCommit:function(){ll.restoreSelection(Iu),Iu=null,_n.setEnabled(Ou),Ou=null},createInstance:function(e,t,n,r,o){return e=yu(e,t,n,r),Su(o,e),_u(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){bu(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return Cu(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){_u(e,o),Eu(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=vu(e,t),Su(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===fu?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===fu?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===fu?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===cu&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===pu},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==cu&&e.nodeType!==pu;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==cu&&e.nodeType!==pu;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,a){return Su(a,e),_u(e,n),ku(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Su(n,e),wu(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Pu(e,t):Tu(e,t)},didNotFindHydratableInstance:function(e,t,n){xu(e,t,n)},didNotFindHydratableTextInstance:function(e,t){Nu(e,t)},scheduleDeferredCallback:xr.rIC,useSyncScheduling:!0});hn.injection.injectFiberBatchedUpdates(Fu.batchedUpdates);var Au={createPortal:ht,hydrate:function(e,t,n){return dt(null,e,t,!0,n)},render:function(e,t,n){return dt(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&$t.has(e)||r("38"),dt(e,t,n,!1,o)},unmountComponentAtNode:function(e){return pt(e)||r("40"),!!e._reactRootContainer&&(Fu.unbatchedUpdates(function(){dt(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},findDOMNode:Ee,unstable_createPortal:ht,unstable_batchedUpdates:hn.batchedUpdates,unstable_deferredUpdates:Fu.deferredUpdates,flushSync:Fu.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:En,EventPluginRegistry:It,EventPropagators:fl,ReactControlledComponent:fn,ReactDOMComponentTree:Yt,ReactDOMEventListener:bn}};su({findFiberByHostInstance:Yt.getClosestInstanceFromNode,findHostInstanceByFiber:Fu.findHostInstance,bundleType:0,version:"16.0.0",rendererPackageName:"react-dom"}),t.exports=Au},{"fbjs/lib/EventListener":2,"fbjs/lib/ExecutionEnvironment":3,"fbjs/lib/containsNode":6,"fbjs/lib/emptyFunction":7,"fbjs/lib/emptyObject":8,"fbjs/lib/focusNode":9,"fbjs/lib/getActiveElement":10,"fbjs/lib/invariant":13,"fbjs/lib/shallowEqual":18,"object-assign":20,react:34}],31:[function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),t.exports=e("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.development.js":29,"./cjs/react-dom.production.min.js":30}],32:[function(e,t,n){"use strict"},{"fbjs/lib/emptyFunction":7,"fbjs/lib/emptyObject":8,"fbjs/lib/invariant":13,"fbjs/lib/warning":19,"object-assign":20,"prop-types/checkPropTypes":21}],33:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;rI.length&&I.push(e)}function f(e,t,n,o){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===_)return n(o,e,""===t?"."+d(e,0):t),1;var i=0;if(t=""===t?".":t+":",Array.isArray(e))for(var l=0;ln?-y:kk?e:k)-i-1),y*r,0);e=a(e),l(k,y*r,n||w),l(e,0,n||w),P&&l(a(e-r),-y*r,0)}else e=a(e),s(k*-y,e*-y,n||w);k=e,d(t.callback&&t.callback(k,m[k]))}}function l(e,t,n){u(e,t,n),g[e]=t}function u(e,t,n){var r=m[e],o=r&&r.style;o&&(o.webkitTransitionDuration=o.MozTransitionDuration=o.msTransitionDuration=o.OTransitionDuration=o.transitionDuration=n+"ms",o.webkitTransform="translate("+t+"px,0)translateZ(0)",o.msTransform=o.MozTransform=o.OTransform="translateX("+t+"px)")}function s(e,n,r){if(r)var o=+new Date,a=setInterval(function(){var i=+new Date-o;if(i>r)return b.style.left=n+"px",T&&c(),t.transitionEnd&&t.transitionEnd.call(event,k,m[k]),void clearInterval(a);b.style.left=(n-e)*(Math.floor(i/r*100)/100)+e+"px"},4);else b.style.left=n+"px"}function c(){clearTimeout(C),C=setTimeout(o,T)}function p(){T=0,clearTimeout(C)}var f=function(){},d=function(e){setTimeout(e||f,0)},h={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,transitions:function(e){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var n in t)if(void 0!==e.style[t[n]])return!0;return!1}(document.createElement("swipe"))};if(e){var m,g,y,v,b=e.children[0];t=t||{};var C,E,k=parseInt(t.startSlide,10)||0,w=t.speed||300,P=t.continuous=void 0===t.continuous||t.continuous,T=t.auto||0,x={},N={},S={handleEvent:function(e){switch(e.type){case"touchstart":this.start(e);break;case"touchmove":this.move(e);break;case"touchend":d(this.end(e));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":d(this.transitionEnd(e));break;case"resize":d(n)}t.stopPropagation&&e.stopPropagation()},start:function(e){var t=e.touches[0];x={x:t.pageX,y:t.pageY,time:+new Date},E=void 0,N={},b.addEventListener("touchmove",this,!1),b.addEventListener("touchend",this,!1)},move:function(e){if(!(e.touches.length>1||e.scale&&1!==e.scale||t.disableScroll)){var n=e.touches[0];N={x:n.pageX-x.x,y:n.pageY-x.y},void 0===E&&(E=!!(E||Math.abs(N.x)0||k==m.length-1&&N.x<0?Math.abs(N.x)/y+1:1),u(k-1,N.x+g[k-1],0),u(k,N.x+g[k],0),u(k+1,N.x+g[k+1],0)),t.swiping&&t.swiping(-N.x/y))}},end:function(e){var n=+new Date-x.time,r=Number(n)<250&&Math.abs(N.x)>20||Math.abs(N.x)>y/2,o=!k&&N.x>0||k==m.length-1&&N.x<0;P&&(o=!1);var i=N.x<0;E||(r&&!o?(i?(P?(l(a(k-1),-y,0),l(a(k+2),y,0)):l(k-1,-y,0),l(k,g[k]-y,w),l(a(k+1),g[a(k+1)]-y,w),k=a(k+1)):(P?(l(a(k+1),y,0),l(a(k-2),-y,0)):l(k+1,y,0),l(k,g[k]+y,w),l(a(k-1),g[a(k-1)]+y,w),k=a(k-1)),t.callback&&t.callback(k,m[k])):P?(l(a(k-1),-y,w),l(k,0,w),l(a(k+1),y,w)):(l(k-1,-y,w),l(k,0,w),l(k+1,y,w))),b.removeEventListener("touchmove",S,!1),b.removeEventListener("touchend",S,!1),b.removeEventListener("touchforcechange",function(){},!1)},transitionEnd:function(e){parseInt(e.target.getAttribute("data-index"),10)==k&&(T&&c(),t.transitionEnd&&t.transitionEnd.call(e,k,m[k]))}};return n(),T&&c(),h.addEventListener?(h.touch&&(b.addEventListener("touchstart",S,!1),b.addEventListener("touchforcechange",function(){},!1)),h.transitions&&(b.addEventListener("webkitTransitionEnd",S,!1),b.addEventListener("msTransitionEnd",S,!1),b.addEventListener("oTransitionEnd",S,!1),b.addEventListener("otransitionend",S,!1),b.addEventListener("transitionend",S,!1)),window.addEventListener("resize",S,!1)):window.onresize=function(){n()},{setup:function(){n()},slide:function(e,t){p(),i(e,t)},prev:function(){p(),r()},next:function(){p(),o()},stop:function(){p()},getPos:function(){return k},getNumSlides:function(){return v},kill:function(){p(),b.style.width="",b.style.left="";for(var e=m.length;e--;){var t=m[e];t.style.width="",t.style.left="",h.transitions&&u(e,0,0)}h.addEventListener?(b.removeEventListener("touchstart",S,!1),b.removeEventListener("webkitTransitionEnd",S,!1),b.removeEventListener("msTransitionEnd",S,!1),b.removeEventListener("oTransitionEnd",S,!1),b.removeEventListener("otransitionend",S,!1),b.removeEventListener("transitionend",S,!1),window.removeEventListener("resize",S,!1)):window.onresize=null}}}}})},{}],36:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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)}Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _propTypes = __webpack_require__(1); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _react = __webpack_require__(10); - - var _react2 = _interopRequireDefault(_react); - - var _swipeJsIso = __webpack_require__(11); - - var _swipeJsIso2 = _interopRequireDefault(_swipeJsIso); - - var _objectAssign = __webpack_require__(12); - - var _objectAssign2 = _interopRequireDefault(_objectAssign); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - var ReactSwipe = function (_Component) { - _inherits(ReactSwipe, _Component); - - function ReactSwipe() { - _classCallCheck(this, ReactSwipe); - - return _possibleConstructorReturn(this, (ReactSwipe.__proto__ || Object.getPrototypeOf(ReactSwipe)).apply(this, arguments)); - } - - _createClass(ReactSwipe, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var swipeOptions = this.props.swipeOptions; - - - this.swipe = (0, _swipeJsIso2.default)(this.refs.container, swipeOptions); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.swipe.kill(); - this.swipe = void 0; - } - }, { - key: 'next', - value: function next() { - this.swipe.next(); - } - }, { - key: 'prev', - value: function prev() { - this.swipe.prev(); - } - }, { - key: 'slide', - value: function slide() { - var _swipe; - - (_swipe = this.swipe).slide.apply(_swipe, arguments); - } - }, { - key: 'getPos', - value: function getPos() { - return this.swipe.getPos(); - } - }, { - key: 'getNumSlides', - value: function getNumSlides() { - return this.swipe.getNumSlides(); - } - }, { - key: 'render', - value: function render() { - var _props = this.props, - id = _props.id, - className = _props.className, - style = _props.style, - children = _props.children; - - - return _react2.default.createElement( - 'div', - { ref: 'container', id: id, className: 'react-swipe-container ' + className, style: style.container }, - _react2.default.createElement( - 'div', - { style: style.wrapper }, - _react2.default.Children.map(children, function (child) { - if (!child) { - return null; - } - - var childStyle = child.props.style ? (0, _objectAssign2.default)({}, style.child, child.props.style) : style.child; - - return _react2.default.cloneElement(child, { style: childStyle }); - }) - ) - ); - } - }]); - - return ReactSwipe; - }(_react.Component); - - ReactSwipe.propTypes = { - swipeOptions: _propTypes2.default.shape({ - startSlide: _propTypes2.default.number, - speed: _propTypes2.default.number, - auto: _propTypes2.default.number, - continuous: _propTypes2.default.bool, - disableScroll: _propTypes2.default.bool, - stopPropagation: _propTypes2.default.bool, - swiping: _propTypes2.default.func, - callback: _propTypes2.default.func, - transitionEnd: _propTypes2.default.func - }), - style: _propTypes2.default.shape({ - container: _propTypes2.default.object, - wrapper: _propTypes2.default.object, - child: _propTypes2.default.object - }), - id: _propTypes2.default.string, - className: _propTypes2.default.string - }; - ReactSwipe.defaultProps = { - swipeOptions: {}, - style: { - container: { - overflow: 'hidden', - visibility: 'hidden', - position: 'relative' - }, - - wrapper: { - overflow: 'hidden', - position: 'relative' - }, - - child: { - float: 'left', - width: '100%', - position: 'relative', - transitionProperty: 'transform' - } - }, - className: '' - }; - exports.default = ReactSwipe; - module.exports = exports['default']; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - if (process.env.NODE_ENV !== 'production') { - var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && - Symbol.for && - Symbol.for('react.element')) || - 0xeac7; - - var isValidElement = function(object) { - return typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE; - }; - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = __webpack_require__(3)(isValidElement, throwOnDirectAccess); - } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(9)(); - } - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2))) +"use strict"; + + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ + +function makeEmptyFunction(arg) { + return function () { + return arg; + }; +} + +/** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ +var emptyFunction = function emptyFunction() {}; + +emptyFunction.thatReturns = makeEmptyFunction; +emptyFunction.thatReturnsFalse = makeEmptyFunction(false); +emptyFunction.thatReturnsTrue = makeEmptyFunction(true); +emptyFunction.thatReturnsNull = makeEmptyFunction(null); +emptyFunction.thatReturnsThis = function () { + return this; +}; +emptyFunction.thatReturnsArgument = function (arg) { + return arg; +}; + +module.exports = emptyFunction; /***/ }), /* 2 */ -/***/ (function(module, exports) { - - // shim for using process in browser - var process = module.exports = {}; - - // cached from whatever global is present so that test runners that stub it - // don't break things. But we need to wrap it in a try catch in case it is - // wrapped in strict mode code which doesn't define any globals. It's inside a - // function because try/catches deoptimize in certain engines. - - var cachedSetTimeout; - var cachedClearTimeout; - - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); - } - (function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - } ()) - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } +/***/ (function(module, exports, __webpack_require__) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + + +/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + +var validateFormat = function validateFormat(format) {}; + +if (process.env.NODE_ENV !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; +} + +function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } +} + +module.exports = invariant; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) - } - function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - } - var queue = []; - var draining = false; - var currentQueue; - var queueIndex = -1; - - function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } - } - function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); - } +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } - }; - - // v8 likes predictible objects - function Item(fun, array) { - this.fun = fun; - this.array = array; - } - Item.prototype.run = function () { - this.fun.apply(null, this.array); - }; - process.title = 'browser'; - process.browser = true; - process.env = {}; - process.argv = []; - process.version = ''; // empty string to avoid regexp issues - process.versions = {}; - - function noop() {} - - process.on = noop; - process.addListener = noop; - process.once = noop; - process.off = noop; - process.removeListener = noop; - process.removeAllListeners = noop; - process.emit = noop; - - process.binding = function (name) { - throw new Error('process.binding is not supported'); - }; - - process.cwd = function () { return '/' }; - process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); - }; - process.umask = function() { return 0; }; +module.exports = ReactPropTypesSecret; /***/ }), -/* 3 */ +/* 4 */ /***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - 'use strict'; - - var emptyFunction = __webpack_require__(4); - var invariant = __webpack_require__(5); - var warning = __webpack_require__(6); - - var ReactPropTypesSecret = __webpack_require__(7); - var checkPropTypes = __webpack_require__(8); - - module.exports = function(isValidElement, throwOnDirectAccess) { - /* global Symbol */ - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - - /** - * Returns the iterator method function contained on the iterable object. - * - * Be sure to invoke the function with the iterable as context: - * - * var iteratorFn = getIteratorFn(myIterable); - * if (iteratorFn) { - * var iterator = iteratorFn.call(myIterable); - * ... - * } - * - * @param {?object} maybeIterable - * @return {?function} - */ - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } - - /** - * Collection of methods that allow declaration and validation of props that are - * supplied to React components. Example usage: - * - * var Props = require('ReactPropTypes'); - * var MyArticle = React.createClass({ - * propTypes: { - * // An optional string prop named "description". - * description: Props.string, - * - * // A required enum prop named "category". - * category: Props.oneOf(['News','Photos']).isRequired, - * - * // A prop named "dialog" that requires an instance of Dialog. - * dialog: Props.instanceOf(Dialog).isRequired - * }, - * render: function() { ... } - * }); - * - * A more formal specification of how these methods are used: - * - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) - * decl := ReactPropTypes.{type}(.isRequired)? - * - * Each and every declaration produces a function with the same signature. This - * allows the creation of custom validation functions. For example: - * - * var MyLink = React.createClass({ - * propTypes: { - * // An optional string or URI prop named "href". - * href: function(props, propName, componentName) { - * var propValue = props[propName]; - * if (propValue != null && typeof propValue !== 'string' && - * !(propValue instanceof URI)) { - * return new Error( - * 'Expected a string or an URI for ' + propName + ' in ' + - * componentName - * ); - * } - * } - * }, - * render: function() {...} - * }); - * - * @internal - */ - - var ANONYMOUS = '<>'; - - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker - }; - - /** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ - /*eslint-disable no-self-compare*/ - function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - return x !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } - } - /*eslint-enable no-self-compare*/ - - /** - * We use an Error-like object for backward compatibility as people may call - * PropTypes directly and inspect their output. However, we don't use real - * Errors anymore. We don't inspect their stack anyway, and creating them - * is prohibitively expensive if they are created too often, such as what - * happens in oneOfType() for any type before the one that matched. - */ - function PropTypeError(message) { - this.message = message; - this.stack = ''; - } - // Make `instanceof Error` still work for returned errors. - PropTypeError.prototype = Error.prototype; - - function createChainableTypeChecker(validate) { - if (process.env.NODE_ENV !== 'production') { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - // New behavior only for users of `prop-types` package - invariant( - false, - '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 (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { - // Old behavior for people using React.PropTypes - var cacheKey = componentName + ':' + propName; - if ( - !manualPropTypeCallCache[cacheKey] && - // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3 - ) { - warning( - false, - '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.', - propFullName, - componentName - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - // `propValue` being instance of, say, date/regexp, pass the 'object' - // check, but we can offer a more precise error message here rather than - // 'of type `object`'. - var preciseType = getPreciseType(propValue); - - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunction.thatReturnsNull); - } - - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; - return emptyFunction.thatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - return createChainableTypeChecker(validate); - } - - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - for (var key in propValue) { - if (propValue.hasOwnProperty(key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; - return emptyFunction.thatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { - return null; - } - } - - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); - } - return createChainableTypeChecker(validate); - } - - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (!checker) { - continue; - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } - - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - // Iterator will provide entry [k,v] tuples rather than values. - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - - return true; - default: - return false; - } - } - - function isSymbol(propType, propValue) { - // Native Symbol. - if (propType === 'symbol') { - return true; - } - - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } - - // Fallback for non-spec compliant Symbols which are polyfilled. - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } - - return false; - } - - // Equivalent of `typeof` but with special handling for array and regexp. - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return 'array'; - } - if (propValue instanceof RegExp) { - // Old webkits (at least until Android 4.0) return 'function' rather than - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ - // passes PropTypes.object. - return 'object'; - } - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - return propType; - } - - // This handles more types than `getPropType`. Only used for error messages. - // See `createPrimitiveTypeChecker`. - function getPreciseType(propValue) { - var propType = getPropType(propValue); - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - return propType; - } - - // Returns class name of the object, if any. - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; - }; - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2))) +"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - "use strict"; - - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - function makeEmptyFunction(arg) { - return function () { - return arg; - }; +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); } - /** - * This function accepts and discards inputs; it has no side effects. This is - * primarily useful idiomatically for overridable function endpoints which - * always need to be callable, since JS lacks a null-call idiom ala Cocoa. - */ - var emptyFunction = function emptyFunction() {}; - - emptyFunction.thatReturns = makeEmptyFunction; - emptyFunction.thatReturnsFalse = makeEmptyFunction(false); - emptyFunction.thatReturnsTrue = makeEmptyFunction(true); - emptyFunction.thatReturnsNull = makeEmptyFunction(null); - emptyFunction.thatReturnsThis = function () { - return this; - }; - emptyFunction.thatReturnsArgument = function (arg) { - return arg; - }; - - module.exports = emptyFunction; + return Object(val); +} -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - 'use strict'; - - /** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - - var validateFormat = function validateFormat(format) {}; - - if (process.env.NODE_ENV !== 'production') { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } + // Detect buggy property enumeration order in older V8 versions. - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); - - if (!condition) { - var error; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - } + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - module.exports = invariant; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2))) + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - 'use strict'; - - var emptyFunction = __webpack_require__(4); - - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - - var warning = emptyFunction; - - if (process.env.NODE_ENV !== 'production') { - (function () { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (format.indexOf('Failed Composite propType: ') === 0) { - return; // Ignore CompositeComponent proptype check. - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - })(); + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; } +} - module.exports = warning; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2))) +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - 'use strict'; + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - module.exports = ReactPropTypesSecret; + return to; +}; /***/ }), -/* 8 */ +/* 5 */ /***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - 'use strict'; - - if (process.env.NODE_ENV !== 'production') { - var invariant = __webpack_require__(5); - var warning = __webpack_require__(6); - var ReactPropTypesSecret = __webpack_require__(7); - var loggedTypeFailures = {}; - } - - /** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (process.env.NODE_ENV !== 'production') { - for (var typeSpecName in typeSpecs) { - if (typeSpecs.hasOwnProperty(typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName); - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - warning(!error || error 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).', componentName || 'React class', location, typeSpecName, typeof error); - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; - - var stack = getStack ? getStack() : ''; - - warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); - } - } - } - } - } - - module.exports = checkPropTypes; - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2))) +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + + +var emptyFunction = __webpack_require__(1); + +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + +var warning = emptyFunction; + +if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; +} + +module.exports = warning; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), -/* 9 */ +/* 6 */ /***/ (function(module, exports, __webpack_require__) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - 'use strict'; - - var emptyFunction = __webpack_require__(4); - var invariant = __webpack_require__(5); - - module.exports = function() { - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - function shim() { - invariant( - false, - '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' - ); - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim - }; - - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; - }; - +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(12)(isValidElement, throwOnDirectAccess); +} else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(11)(); +} + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), -/* 10 */ +/* 7 */ /***/ (function(module, exports) { - module.exports = __WEBPACK_EXTERNAL_MODULE_10__; +module.exports = __WEBPACK_EXTERNAL_MODULE_7__; /***/ }), -/* 11 */ +/* 8 */ /***/ (function(module, exports) { - module.exports = __WEBPACK_EXTERNAL_MODULE_11__; +module.exports = __WEBPACK_EXTERNAL_MODULE_8__; /***/ }), -/* 12 */ -/***/ (function(module, exports) { - - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - - 'use strict'; - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } +/* 9 */ +/***/ (function(module, exports, __webpack_require__) { - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } +"use strict"; - // Detect buggy property enumeration order in older V8 versions. - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } +Object.defineProperty(exports, "__esModule", { + value: true +}); - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _propTypes = __webpack_require__(6); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _react = __webpack_require__(7); + +var _react2 = _interopRequireDefault(_react); + +var _swipeJsIso = __webpack_require__(8); + +var _swipeJsIso2 = _interopRequireDefault(_swipeJsIso); + +var _objectAssign = __webpack_require__(4); + +var _objectAssign2 = _interopRequireDefault(_objectAssign); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ReactSwipe = function (_Component) { + _inherits(ReactSwipe, _Component); + + function ReactSwipe() { + _classCallCheck(this, ReactSwipe); + + return _possibleConstructorReturn(this, (ReactSwipe.__proto__ || Object.getPrototypeOf(ReactSwipe)).apply(this, arguments)); + } + + _createClass(ReactSwipe, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var swipeOptions = this.props.swipeOptions; + + + this.swipe = (0, _swipeJsIso2.default)(this.container, swipeOptions); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.swipe.kill(); + this.swipe = void 0; + } + }, { + key: 'next', + value: function next() { + this.swipe.next(); + } + }, { + key: 'prev', + value: function prev() { + this.swipe.prev(); + } + }, { + key: 'slide', + value: function slide() { + var _swipe; + + (_swipe = this.swipe).slide.apply(_swipe, arguments); + } + }, { + key: 'getPos', + value: function getPos() { + return this.swipe.getPos(); + } + }, { + key: 'getNumSlides', + value: function getNumSlides() { + return this.swipe.getNumSlides(); + } + }, { + key: 'render', + value: function render() { + var _this2 = this; + + var _props = this.props, + id = _props.id, + className = _props.className, + style = _props.style, + children = _props.children; + + + return _react2.default.createElement( + 'div', + { ref: function ref(container) { + return _this2.container = container; + }, id: id, className: 'react-swipe-container ' + className, style: style.container }, + _react2.default.createElement( + 'div', + { style: style.wrapper }, + _react2.default.Children.map(children, function (child) { + if (!child) { + return null; + } + + var childStyle = child.props.style ? (0, _objectAssign2.default)({}, style.child, child.props.style) : style.child; + + return _react2.default.cloneElement(child, { style: childStyle }); + }) + ) + ); + } + }]); + + return ReactSwipe; +}(_react.Component); + +ReactSwipe.propTypes = { + swipeOptions: _propTypes2.default.shape({ + startSlide: _propTypes2.default.number, + speed: _propTypes2.default.number, + auto: _propTypes2.default.number, + continuous: _propTypes2.default.bool, + disableScroll: _propTypes2.default.bool, + stopPropagation: _propTypes2.default.bool, + swiping: _propTypes2.default.func, + callback: _propTypes2.default.func, + transitionEnd: _propTypes2.default.func + }), + style: _propTypes2.default.shape({ + container: _propTypes2.default.object, + wrapper: _propTypes2.default.object, + child: _propTypes2.default.object + }), + id: _propTypes2.default.string, + className: _propTypes2.default.string +}; +ReactSwipe.defaultProps = { + swipeOptions: {}, + style: { + container: { + overflow: 'hidden', + visibility: 'hidden', + position: 'relative' + }, + + wrapper: { + overflow: 'hidden', + position: 'relative' + }, + + child: { + float: 'left', + width: '100%', + position: 'relative', + transitionProperty: 'transform' + } + }, + className: '' +}; +exports.default = ReactSwipe; +module.exports = exports['default']; - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } +/***/ }), +/* 10 */ +/***/ (function(module, exports, __webpack_require__) { - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +if (process.env.NODE_ENV !== 'production') { + var invariant = __webpack_require__(2); + var warning = __webpack_require__(5); + var ReactPropTypesSecret = __webpack_require__(3); + var loggedTypeFailures = {}; +} + +/** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + warning(!error || error 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).', componentName || 'React class', location, typeSpecName, typeof error); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } +} + +module.exports = checkPropTypes; + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); +/***/ }), +/* 11 */ +/***/ (function(module, exports, __webpack_require__) { - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var emptyFunction = __webpack_require__(1); +var invariant = __webpack_require__(2); +var ReactPropTypesSecret = __webpack_require__(3); + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + invariant( + false, + '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' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - return to; - }; +/***/ }), +/* 12 */ +/***/ (function(module, exports, __webpack_require__) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var emptyFunction = __webpack_require__(1); +var invariant = __webpack_require__(2); +var warning = __webpack_require__(5); +var assign = __webpack_require__(4); + +var ReactPropTypesSecret = __webpack_require__(3); +var checkPropTypes = __webpack_require__(10); + +module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. + + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } + } + + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ + + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, + }; + + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ + + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + invariant( + false, + '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 (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + warning( + false, + '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.', + propFullName, + componentName + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } + + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); + + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunction.thatReturnsNull); + } + + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } + + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } + + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); + } + + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } + + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + warning( + false, + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received %s at index %s.', + getPostfixForTypeWarning(checker), + i + ); + return emptyFunction.thatReturnsNull; + } + } + + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { + return null; + } + } + + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + return createChainableTypeChecker(validate); + } + + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } + + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } + + return true; + default: + return false; + } + } + + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } + + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } + + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } + + return false; + } + + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } + + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } + + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } + + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }) -/******/ ]) -}); -; \ No newline at end of file +/******/ ]); +}); \ No newline at end of file diff --git a/dist/react-swipe.min.js b/dist/react-swipe.min.js index 8d211aa..d169faa 100644 --- a/dist/react-swipe.min.js +++ b/dist/react-swipe.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("swipe-js-iso")):"function"==typeof define&&define.amd?define("ReactSwipe",["react","swipe-js-iso"],t):"object"==typeof exports?exports.ReactSwipe=t(require("react"),require("swipe-js-iso")):e.ReactSwipe=t(e.React,e.Swipe)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 u=function(){function e(e,t){for(var n=0;n1)for(var n=1;n1?t-1:0),r=1;r2?r-2:0),i=2;i