text: /*!
   * conp-react v1.0.0
   * MIT Licensed
   */
  !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.CONPReact=e(require("react")):t.CONPReact=e(t.React)}(window,function(t){return function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,u=[];s<o.length;s++)i=o[s],r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(c&&c(e);u.length;)u.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,i){n=r[t]=[e,i]});e.push(n[2]=o);var a,s=document.getElementsByTagName("head")[0],c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(t){return i.p+""+t+".conp-react.min.js"}(t),a=function(e){c.onerror=c.onload=null,clearTimeout(u);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,a=new Error("Loading chunk "+t+" failed.\n("+i+": "+o+")");a.type=i,a.request=o,n[1](a)}r[t]=void 0}};var u=setTimeout(function(){a({type:"timeout",target:c})},12e4);c.onerror=c.onload=a,s.appendChild(c)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpCONPReact=window.webpackJsonpCONPReact||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var c=a;return i(i.s=13)}([function(e,n){e.exports=t},function(t,e){
  /*!
  * screenfull
  * v4.2.0 - 2019-04-01
  * (c) Sindre Sorhus; MIT License
  */
  !function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=void 0!==t&&t.exports,r="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if((t=n[r])&&t[1]in e){for(r=0;r<t.length;r++)o[n[0][r]]=t[r];return o}return!1}(),o={change:i.fullscreenchange,error:i.fullscreenerror},a={request:function(t){return new Promise(function(n){var o=i.requestFullscreen,a=function(){this.off("change",a),n()}.bind(this);t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[o]():t[o](r?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",a)}.bind(this))},exit:function(){return new Promise(function(t){if(this.isFullscreen){var n=function(){this.off("change",n),t()}.bind(this);e[i.exitFullscreen](),this.on("change",n)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var r=o[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=o[t];r&&e.removeEventListener(r,n,!1)},raw:i};i?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(e[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[i.fullscreenEnabled])}}}),n?(t.exports=a,t.exports.default=a):window.screenfull=a):n?t.exports=!1:window.screenfull=!1}()},function(t,e,n){t.exports=n(14)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f<e;)c&&c[f].run();f=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=/[A-Z]/g;e.create=function(t){var e=(t=t||{}).assign||Object.assign;var n=e({raw:"",pfx:"_",client:"object"==typeof window,assign:e,stringify:JSON.stringify,kebab:function(t){return t.replace(r,"-$&").toLowerCase()},decl:function(t,e){return(t=n.kebab(t))+":"+e+";"},hash:function(t){return function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return"_"+(e>>>0).toString(36)}(n.stringify(t))},selector:function(t,e){return t+(":"===e[0]?"":" ")+e},putRaw:function(t){n.raw+=t}},t);return n.client&&(n.sh||document.head.appendChild(n.sh=document.createElement("style")),n.putRaw=function(t){var e=n.sh.sheet;try{e.insertRule(t,e.cssRules.length)}catch(t){}}),n.put=function(t,e,r){var i,o,a="",s=[];for(i in e)(o=e[i])instanceof Object&&!(o instanceof Array)?s.push(i):a+=n.decl(i,o,t,r);a&&(a=t+"{"+a+"}",n.putRaw(r?r+"{"+a+"}":a));for(var c=0;c<s.length;c++)"@"===(i=s[c])[0]&&"@font-face"!==i?n.putAt(t,e[i],i):n.put(n.selector(t,i),e[i],r)},n.putAt=n.put,n}},function(t,e,n){"use strict";e.addon=function(t){t.client&&(document.head.appendChild(t.msh=document.createElement("style")),t.createRule=function(e,n){var r=e+"{}";n&&(r=n+"{"+r+"}");var i=n?t.msh.sheet:t.sh.sheet,o=i.insertRule(r,i.cssRules.length),a=(i.cssRules||i.rules)[o];if(a.index=o,n){var s=(a.cssRules||a.rules)[0];a.style=s.style,a.styleMap=s.styleMap}return a})}},function(t,e,n){"use strict";var r=n(18).removeRule;e.addon=function(t){if(t.client){0;var e=t.kebab;n.prototype.diff=function(t){var n,r=this.decl,i=this.rule.style;for(n in r)void 0===t[n]&&i.removeProperty(n);for(n in t)t[n]!==r[n]&&i.setProperty(e(n),t[n]);this.decl=t},n.prototype.del=function(){r(this.rule)},i.prototype.diff=function(t){var e=this.tree;for(var r in e)if(void 0===t[r]){var i=e[r];for(var o in i)i[o].del()}for(var r in t)if(void 0===e[r])for(var o in t[r]){(c=new n(o,r)).diff(t[r][o]),t[r][o]=c}else{var a=e[r],s=t[r];for(var o in a)s[o]||a[o].del();for(var o in s){var c;(c=a[o])?(c.diff(s[o]),s[o]=c):((c=new n(o,r)).diff(s[o]),s[o]=c)}}this.tree=t},t.VRule=n,t.VSheet=i}function n(e,n){this.rule=t.createRule(e,n),this.decl={}}function i(){this.tree={}}}},function(t,e){e.cssToTree=function t(e,n,r,i){var o,a,s={},c=!1;for(o in n)"object"!=typeof(a=n[o])&&(c=!0,s[o]=a);for(o in c&&(e[i]||(e[i]={}),e[i][r]=s),n)if("object"==typeof(a=n[o]))if("@"===o[0])t(e,a,r,o);else{var u=o.indexOf("&")>-1,l=r.split(",");if(u)for(var f=0;f<l.length;f++)l[f]=o.replace(/&/g,l[f]);else for(f=0;f<l.length;f++)l[f]=l[f]+" "+o;t(e,a,l.join(","),i)}}},function(t,e,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;t.exports=function(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var s,c,u,l=r(e),f=r(n);if(l&&f){if((c=e.length)!=n.length)return!1;for(s=c;0!=s--;)if(!t(e[s],n[s]))return!1;return!0}if(l!=f)return!1;var p=e instanceof Date,h=n instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==n.getTime();var d=e instanceof RegExp,m=n instanceof RegExp;if(d!=m)return!1;if(d&&m)return e.toString()==n.toString();var g=i(e);if((c=g.length)!==i(n).length)return!1;for(s=c;0!=s--;)if(!o.call(n,g[s]))return!1;if(a&&e instanceof Element&&n instanceof Element)return e===n;for(s=c;0!=s--;)if(!("_owner"===(u=g[s])&&e.$$typeof||t(e[u],n[u])))return!1;return!0}return e!=e&&n!=n}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},function(t,e,n){(function(e,n){t.exports=function(){"use strict";var t=void 0;"undefined"!=typeof window&&(t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t||void 0===e||"node"!==e.title||(t=n);var r=t=t||function(t){window.setTimeout(t,1e3/60)},i=Array.prototype.concat,o=Array.prototype.slice;function a(t){return r(t)}function s(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var c={};function u(t){if(c[t])return c[t];var e=t.replace("#","");3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=e.match(/.{2}/g);if(!n||n.length<3)throw new Error("Expected a color string of format #rrggbb");var r={r:parseInt(n[0],16),g:parseInt(n[1],16),b:parseInt(n[2],16)};return c[t]=r,r}function l(t,e,n){var r=t.toString(16),i=e.toString(16),o=n.toString(16);return r=r.length<2?"0"+r:r,i=i.length<2?"0"+i:i,o=o.length<2?"0"+o:o,"#"+r+i+o}var f=Object.freeze({bind:function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return function(){for(var n=arguments.length,a=Array(n),s=0;s<n;s++)a[s]=arguments[s];t.apply(e,i.call(r,o.call(a)))}},extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},onFrame:a,removeFirst:s,hexToRGB:u,rgbToHex:l});function p(t,e,n,r,i){var o=n-e,a=i-r,s=(t-e)/o;return r+s*a}var h=Object.freeze({mapValueInRange:p,interpolateColor:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments[5],a=u(e),s=u(n),c=Math.floor(p(t,r,i,a.r,s.r)),f=Math.floor(p(t,r,i,a.g,s.g)),h=Math.floor(p(t,r,i,a.b,s.b));return o?"rgb("+c+","+f+","+h+")":l(c,f,h)},degreesToRadians:function(t){return t*Math.PI/180},radiansToDegrees:function(t){return 180*t/Math.PI}});function d(t){return 3.62*(t-30)+194}function m(t){return 3*(t-8)+25}var g=Object.freeze({tensionFromOrigamiValue:d,origamiValueFromTension:function(t){return(t-194)/3.62+30},frictionFromOrigamiValue:m,origamiFromFriction:function(t){return(t-25)/3+8}}),v=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},E=function(){function t(){v(this,t),this.springSystem=null}return t.prototype.run=function(){var t=_.call(this);a(function(){t.loop(Date.now())})},t}(),b=function(){function t(e){v(this,t),this.springSystem=null,this.time=0,this.running=!1,this.timestep=e||16.667}return t.prototype.run=function(){var t=_.call(this);if(!this.running){for(this.running=!0;!t.getIsIdle();)t.loop(this.time+=this.timestep);this.running=!1}},t}(),w=function(){function t(){v(this,t),this.springSystem=null,this.time=0,this.running=!1}return t.prototype.run=function(){},t.prototype.step=function(t){var e=_.call(this);e.loop(this.time+=t)},t}();function _(){if(null==this.springSystem)throw new Error("cannot run looper without a springSystem");return this.springSystem}var S=Object.freeze({AnimationLooper:E,SimulationLooper:b,SteppingSimulationLooper:w}),O=function(){function t(e,n){v(this,t),this.bounciness=e,this.speed=n;var r=this.normalize(e/1.7,0,20);r=this.projectNormal(r,0,.8);var i=this.normalize(n/1.7,0,20);this.bouncyTension=this.projectNormal(i,.5,200),this.bouncyFriction=this.quadraticOutInterpolation(r,this.b3Nobounce(this.bouncyTension),.01)}return t.prototype.normalize=function(t,e,n){return(t-e)/(n-e)},t.prototype.projectNormal=function(t,e,n){return e+t*(n-e)},t.prototype.linearInterpolation=function(t,e,n){return t*n+(1-t)*e},t.prototype.quadraticOutInterpolation=function(t,e,n){return this.linearInterpolation(2*t-t*t,e,n)},t.prototype.b3Friction1=function(t){return 7e-4*Math.pow(t,3)-.031*Math.pow(t,2)+.64*t+1.28},t.prototype.b3Friction2=function(t){return 44e-6*Math.pow(t,3)-.006*Math.pow(t,2)+.36*t+2},t.prototype.b3Friction3=function(t){return 4.5e-7*Math.pow(t,3)-332e-6*Math.pow(t,2)+.1078*t+5.84},t.prototype.b3Nobounce=function(t){return t<=18?this.b3Friction1(t):t>18&&t<=44?this.b3Friction2(t):this.b3Friction3(t)},t}(),T=function(){function t(e,n){v(this,t),this.tension=e,this.friction=n}return t.fromOrigamiTensionAndFriction=function(e,n){return new t(d(e),m(n))},t.fromBouncinessAndSpeed=function(e,n){var r=new O(e,n);return t.fromOrigamiTensionAndFriction(r.bouncyTension,r.bouncyFriction)},t.coastingConfigWithOrigamiFriction=function(e){return new t(0,m(e))},t}();T.DEFAULT_ORIGAMI_SPRING_CONFIG=T.fromOrigamiTensionAndFriction(40,7);var x=function t(){v(this,t),this.position=0,this.velocity=0},R=function(){function t(e){v(this,t),this.listeners=[],this._startValue=0,this._currentState=new x,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new x,this._restSpeedThreshold=.001,this._tempState=new x,this._timeAccumulator=0,this._wasAtRest=!0,this._id="s"+t._ID++,this._springSystem=e}return t.prototype.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.prototype.getId=function(){return this._id},t.prototype.setSpringConfig=function(t){return this._springConfig=t,this},t.prototype.getSpringConfig=function(){return this._springConfig},t.prototype.setCurrentValue=function(t,e){return this._startValue=t,this._currentState.position=t,e||this.setAtRest(),this.notifyPositionUpdated(!1,!1),this},t.prototype.getStartValue=function(){return this._startValue},t.prototype.getCurrentValue=function(){return this._currentState.position},t.prototype.getCurrentDisplacementDistance=function(){return this.getDisplacementDistanceForState(this._currentState)},t.prototype.getDisplacementDistanceForState=function(t){return Math.abs(this._endValue-t.position)},t.prototype.setEndValue=function(t){if(this._endValue===t&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=t,this._springSystem.activateSpring(this.getId());for(var e=0,n=this.listeners.length;e<n;e++){var r=this.listeners[e],i=r.onSpringEndStateChange;i&&i(this)}return this},t.prototype.getEndValue=function(){return this._endValue},t.prototype.setVelocity=function(t){return t===this._currentState.velocity?this:(this._currentState.velocity=t,this._springSystem.activateSpring(this.getId()),this)},t.prototype.getVelocity=function(){return this._currentState.velocity},t.prototype.setRestSpeedThreshold=function(t){return this._restSpeedThreshold=t,this},t.prototype.getRestSpeedThreshold=function(){return this._restSpeedThreshold},t.prototype.setRestDisplacementThreshold=function(t){this._displacementFromRestThreshold=t},t.prototype.getRestDisplacementThreshold=function(){return this._displacementFromRestThreshold},t.prototype.setOvershootClampingEnabled=function(t){return this._overshootClampingEnabled=t,this},t.prototype.isOvershootClampingEnabled=function(){return this._overshootClampingEnabled},t.prototype.isOvershooting=function(){var t=this._startValue,e=this._endValue;return this._springConfig.tension>0&&(t<e&&this.getCurrentValue()>e||t>e&&this.getCurrentValue()<e)},t.prototype.advance=function(e,n){var r=this.isAtRest();if(!r||!this._wasAtRest){var i=n;n>t.MAX_DELTA_TIME_SEC&&(i=t.MAX_DELTA_TIME_SEC),this._timeAccumulator+=i;for(var o=this._springConfig.tension,a=this._springConfig.friction,s=this._currentState.position,c=this._currentState.velocity,u=this._tempState.position,l=this._tempState.velocity,f=void 0,p=void 0,h=void 0,d=void 0,m=void 0,g=void 0,v=void 0,y=void 0,E=void 0;this._timeAccumulator>=t.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=t.SOLVER_TIMESTEP_SEC,this._timeAccumulator<t.SOLVER_TIMESTEP_SEC&&(this._previousState.position=s,this._previousState.velocity=c),f=c,p=o*(this._endValue-u)-a*c,u=s+f*t.SOLVER_TIMESTEP_SEC*.5,l=c+p*t.SOLVER_TIMESTEP_SEC*.5,h=l,d=o*(this._endValue-u)-a*l,u=s+h*t.SOLVER_TIMESTEP_SEC*.5,l=c+d*t.SOLVER_TIMESTEP_SEC*.5,m=l,g=o*(this._endValue-u)-a*l,u=s+m*t.SOLVER_TIMESTEP_SEC,l=c+g*t.SOLVER_TIMESTEP_SEC,v=l,y=o*(this._endValue-u)-a*l,E=1/6*(p+2*(d+g)+y),s+=1/6*(f+2*(h+m)+v)*t.SOLVER_TIMESTEP_SEC,c+=E*t.SOLVER_TIMESTEP_SEC;this._tempState.position=u,this._tempState.velocity=l,this._currentState.position=s,this._currentState.velocity=c,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/t.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),r=!0);var b=!1;this._wasAtRest&&(this._wasAtRest=!1,b=!0);var w=!1;r&&(this._wasAtRest=!0,w=!0),this.notifyPositionUpdated(b,w)}},t.prototype.notifyPositionUpdated=function(t,e){for(var n=0,r=this.listeners.length;n<r;n++){var i=this.listeners[n];t&&i.onSpringActivate&&i.onSpringActivate(this),i.onSpringUpdate&&i.onSpringUpdate(this),e&&i.onSpringAtRest&&i.onSpringAtRest(this)}},t.prototype.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.prototype.wasAtRest=function(){return this._wasAtRest},t.prototype.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},t.prototype.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.prototype._interpolate=function(t){this._currentState.position=this._currentState.position*t+this._previousState.position*(1-t),this._currentState.velocity=this._currentState.velocity*t+this._previousState.velocity*(1-t)},t.prototype.getListeners=function(){return this.listeners},t.prototype.addListener=function(t){return this.listeners.push(t),this},t.prototype.removeListener=function(t){return s(this.listeners,t),this},t.prototype.removeAllListeners=function(){return this.listeners=[],this},t.prototype.currentValueIsApproximately=function(t){return Math.abs(this.getCurrentValue()-t)<=this.getRestDisplacementThreshold()},t}();R._ID=0,R.MAX_DELTA_TIME_SEC=.064,R.SOLVER_TIMESTEP_SEC=.001;var C=function(){function t(e){v(this,t),this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={},this.looper=e||new E,this.looper.springSystem=this}return t.prototype.setLooper=function(t){this.looper=t,t.springSystem=this},t.prototype.createSpring=function(t,e){var n=void 0;return n=void 0===t||void 0===e?T.DEFAULT_ORIGAMI_SPRING_CONFIG:T.fromOrigamiTensionAndFriction(t,e),this.createSpringWithConfig(n)},t.prototype.createSpringWithBouncinessAndSpeed=function(t,e){var n=void 0;return n=void 0===t||void 0===e?T.DEFAULT_ORIGAMI_SPRING_CONFIG:T.fromBouncinessAndSpeed(t,e),this.createSpringWithConfig(n)},t.prototype.createSpringWithConfig=function(t){var e=new R(this);return this.registerSpring(e),e.setSpringConfig(t),e},t.prototype.getIsIdle=function(){return this._isIdle},t.prototype.getSpringById=function(t){return this._springRegistry[t]},t.prototype.getAllSprings=function(){var t=[];for(var e in this._springRegistry)this._springRegistry.hasOwnProperty(e)&&t.push(this._springRegistry[e]);return t},t.prototype.registerSpring=function(t){this._springRegistry[t.getId()]=t},t.prototype.deregisterSpring=function(t){s(this._activeSprings,t),delete this._springRegistry[t.getId()]},t.prototype.advance=function(t,e){for(;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(var n=0,r=this._activeSprings.length;n<r;n++){var i=this._activeSprings[n];i.systemShouldAdvance()?i.advance(t/1e3,e/1e3):this._idleSpringIndices.push(this._activeSprings.indexOf(i))}for(;this._idleSpringIndices.length>0;){var o=this._idleSpringIndices.pop();o>=0&&this._activeSprings.splice(o,1)}},t.prototype.loop=function(t){var e=void 0;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var n=t-this._lastTimeMillis;this._lastTimeMillis=t;var r=0,i=this.listeners.length;for(r=0;r<i;r++)(e=this.listeners[r]).onBeforeIntegrate&&e.onBeforeIntegrate(this);for(this.advance(t,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),r=0;r<i;r++)(e=this.listeners[r]).onAfterIntegrate&&e.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.prototype.activateSpring=function(t){var e=this._springRegistry[t];-1===this._activeSprings.indexOf(e)&&this._activeSprings.push(e),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},t.prototype.addListener=function(t){this.listeners.push(t)},t.prototype.removeListener=function(t){s(this.listeners,t)},t.prototype.removeAllListeners=function(){this.listeners=[]},t}();return y({},S,{OrigamiValueConverter:g,MathUtil:h,Spring:R,SpringConfig:T,SpringSystem:C,util:y({},f,h)})}()}).call(this,n(4),n(19).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.easing={linear:function(t){return t},quadratic:function(t){return t*(-t*t*t+4*t*t-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){return t*(33*t*t*t*t-106*t*t*t+126*t*t-67*t+15)},inQuad:function(t){return t*t},outQuad:function(t){return t*(2-t)},inOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},inCubic:function(t){return t*t*t},outCubic:function(t){return--t*t*t+1},inOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},inQuart:function(t){return t*t*t*t},outQuart:function(t){return 1- --t*t*t*t},inOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},inQuint:function(t){return t*t*t*t*t},outQuint:function(t){return 1+--t*t*t*t*t},inOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},inSine:function(t){return 1-Math.cos(t*(Math.PI/2))},outSine:function(t){return Math.sin(t*(Math.PI/2))},inOutSine:function(t){return-(Math.cos(Math.PI*t)-1)/2},inExpo:function(t){return Math.pow(2,10*(t-1))},outExpo:function(t){return 1-Math.pow(2,-10*t)},inOutExpo:function(t){return(t/=.5)<1?Math.pow(2,10*(t-1))/2:(t--,(2-Math.pow(2,-10*t))/2)},inCirc:function(t){return 1-Math.sqrt(1-t*t)},outCirc:function(t){return Math.sqrt(1-(t-=1)*t)},inOutCirc:function(t){return(t/=.5)<1?-(Math.sqrt(1-t*t)-1)/2:(t-=2,(Math.sqrt(1-t*t)+1)/2)}}},function(t,e,n){"use strict";const r=n(21),i=n(22),o=n(23);function a(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function s(t,e){return e.decode?i(t):t}function c(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function u(t){const e=(t=c(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function l(t,e){const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":return(t,e,n)=>{const r="string"==typeof e&&e.split("").indexOf(",")>-1?e.split(","):e;n[t]=r};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},e)),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const i of t.split("&")){let[t,a]=o(i.replace(/\+/g," "),"=");a=void 0===a?null:s(a,e),e.parseNumbers&&!Number.isNaN(Number(a))?a=Number(a):!e.parseBooleans||null===a||"true"!==a.toLowerCase()&&"false"!==a.toLowerCase()||(a="true"===a.toLowerCase()),n(s(t,e),a,r)}return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(n):t[e]=n,t},Object.create(null))}e.extract=u,e.parse=l,e.stringify=((t,e)=>{if(!t)return"";const n=function(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return void 0===r?n:null===r?[...n,[a(e,t),"[",i,"]"].join("")]:[...n,[a(e,t),"[",a(i,t),"]=",a(r,t)].join("")]};case"bracket":return e=>(n,r)=>void 0===r?n:null===r?[...n,[a(e,t),"[]"].join("")]:[...n,[a(e,t),"[]=",a(r,t)].join("")];case"comma":return e=>(n,r,i)=>null===r||void 0===r||0===r.length?n:0===i?[[a(e,t),"=",a(r,t)].join("")]:[[n,a(r,t)].join(",")];default:return e=>(n,r)=>void 0===r?n:null===r?[...n,a(e,t)]:[...n,[a(e,t),"=",a(r,t)].join("")]}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),r=Object.keys(t);return!1!==e.sort&&r.sort(e.sort),r.map(r=>{const i=t[r];return void 0===i?"":null===i?a(r,e):Array.isArray(i)?i.reduce(n(r),[]).join("&"):a(r,e)+"="+a(i,e)}).filter(t=>t.length>0).join("&")}),e.parseUrl=((t,e)=>({url:c(t).split("?")[0]||"",query:l(u(t),e)}))},function(t,e,n){t.exports=n(24)},function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(15),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==r&&i.call(y,a)&&(g=y);var E=O.prototype=_.prototype=Object.create(g);S.prototype=E.constructor=O,O.constructor=S,O[c]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(E),t},l.awrap=function(t){return{__await:t}},T(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(t,e,n,r){var i=new x(b(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},T(E),E[c]="Generator",E[a]=function(){return this},E.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function b(t,e,n,r){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=R(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=w(t,e,n);if("normal"===c.type){if(r=n.done?d:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function _(){}function S(){}function O(){}function T(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function x(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function R(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,R(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){"use strict";var r=n(17),i="Copy to clipboard: #{key}, Enter";t.exports=function(t,e){var n,o,a,s,c,u,l=!1;e||(e={}),n=e.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=t,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(n){n.stopPropagation(),e.format&&(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData(e.format,t))}),document.body.appendChild(u),s.selectNodeContents(u),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:i),window.prompt(o,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},function(t,e){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}},function(t,e){e.removeRule=function(t){var e=t.index,n=t.parentStyleSheet,r=n.cssRules||n.rules;for(e=Math.max(e,r.length-1);e>=0;){if(r[e]===t){n.deleteRule(e);break}e--}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(20),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(3))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i=1,o={},a=!1,s=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){l(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&l(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){l(t.data)},r=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;r=function(e){var n=s.createElement("script");n.onreadystatechange=function(){l(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():r=function(t){setTimeout(l,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return o[i]=a,r(i),i++},c.clearImmediate=u}function u(t){delete o[t]}function l(t){if(a)setTimeout(l,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{u(t),a=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(3),n(4))},function(t,e,n){"use strict";t.exports=(t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},function(t,e,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function a(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(r),n=1;n<e.length;n++)e=(t=o(e,n).join("")).match(r);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var r=a(n[0]);r!==n[0]&&(e[n[0]]=r)}n=i.exec(t)}e["%C2"]="�";for(var o=Object.keys(e),s=0;s<o.length;s++){var c=o[s];t=t.replace(new RegExp(c,"g"),e[c])}return t}(t)}}},function(t,e,n){"use strict";t.exports=((t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]})},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}function o(t){return"[object Number]"===Object.prototype.toString.call(t)}n.r(e);var a=function(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return r(n)?e:i(function(e){return t(n,e)});default:return r(n)&&r(o)?e:r(n)?i(function(e){return t(e,o)}):r(o)?i(function(e){return t(n,e)}):t(n,o)}}}(function(t,e){if(!o(t)||!o(e))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=t;r<e;)n.push(r),r+=1;return n}),s=n(0),c=n.n(s),u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(t){var e=t.authorized,n=t.sortKeys,r=t.elements,i=t.total,o=t.renderElement,s=t.query,l=t.setQuery;return c.a.createElement("div",{className:"search-dataset-table",cellSpacing:0},c.a.createElement("div",{className:"search-dataset-toolbar"},c.a.createElement("div",{className:"input-group"},c.a.createElement("label",{className:"input-group-addon"},"Sort By:"),c.a.createElement("select",{className:"form-control",value:s.sortKey,onChange:function(t){return l(u({},s,{sortKey:t.currentTarget.value}))}},n.map(function(t,e){var n=t.key,r=t.label;return c.a.createElement("option",{key:e,value:n},r)}))),c.a.createElement("div",{className:"input-group"},c.a.createElement("input",{className:"form-control",style:{width:"350px"},value:s.search,onChange:function(t){return l(u({},s,{search:t.currentTarget.value}))}}),c.a.createElement("span",{className:"input-group-addon"},c.a.createElement("i",{className:"fa fa-search"})))),r.map(function(t,n){return c.a.createElement("div",{key:t.id,style:{borderBottom:"solid",borderBottomWidth:n===r.length-1?"0px":"1px"}},c.a.createElement(o,u({},t,{authorized:e})))}),c.a.createElement("div",{className:"search-dataset-footer"},c.a.createElement("ul",{className:"pagination"},c.a.createElement("li",{onClick:function(){return l(u({},s,{cursor:Math.max(s.cursor-s.limit,0)}))}},c.a.createElement("a",{href:"#"},"«")),a(1,Math.max(Math.floor(i/s.limit)+1,2)).map(function(t,e){return c.a.createElement("li",{key:e,onClick:function(){return l(u({},s,{cursor:(t-1)*s.limit}))},className:t===Math.floor(s.cursor/s.limit)+1?"active":""},c.a.createElement("a",{href:"#"},t))}),c.a.createElement("li",{onClick:function(){return l(u({},s,{cursor:Math.max(Math.min(s.cursor+s.limit,i-s.limit),0)}))}},c.a.createElement("a",{href:"#"},"»")))))};l.defaultProps={sortKeys:[],elements:[],total:0};var f=l,p=n(2),h=n.n(p),d=function(t){void 0===t&&(t={});var e=Object(s.useState)(t),n=e[0],r=e[1];return[n,function(t){r(function(e){return Object.assign({},e,t instanceof Function?t(e):t)})}]},m=function(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},g=function(){return(g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},v=function(t){return function(e){var n,r;r=s.isValidElement(e)?(n=e).props:e;var i=d({buffered:[],time:0,duration:0,isPlaying:!1,muted:!1,volume:1}),o=i[0],a=i[1],c=Object(s.useRef)(null),u=function(t,e){return function(n){try{e&&e(n)}finally{t&&t(n)}}},l=function(){return a({isPlaying:!0})},f=function(){return a({isPlaying:!1})},p=function(){var t=c.current;t&&a({muted:t.muted,volume:t.volume})},h=function(){var t=c.current;if(t){var e=t.duration,n=t.buffered;a({duration:e,buffered:m(n)})}},v=function(){var t=c.current;t&&a({time:t.currentTime})},y=function(){var t=c.current;t&&a({buffered:m(t.buffered)})};n=n?s.cloneElement(n,g({controls:!1},r,{ref:c,onPlay:u(r.onPlay,l),onPause:u(r.onPause,f),onVolumeChange:u(r.onVolumeChange,p),onDurationChange:u(r.onDurationChange,h),onTimeUpdate:u(r.onTimeUpdate,v),onProgress:u(r.onProgress,y)})):s.createElement(t,g({controls:!1},r,{ref:c,onPlay:u(r.onPlay,l),onPause:u(r.onPause,f),onVolumeChange:u(r.onVolumeChange,p),onDurationChange:u(r.onDurationChange,h),onTimeUpdate:u(r.onTimeUpdate,v),onProgress:u(r.onProgress,y)}));var E=!1,b={play:function(){var t=c.current;if(t&&!E){var e=t.play();if("object"==typeof e){E=!0;var n=function(){E=!1};e.then(n,n)}return e}},pause:function(){var t=c.current;if(t&&!E)return t.pause()},seek:function(t){var e=c.current;e&&void 0!==o.duration&&(t=Math.min(o.duration,Math.max(0,t)),e.currentTime=t)},volume:function(t){var e=c.current;e&&(t=Math.min(1,Math.max(0,t)),e.volume=t,a({volume:t}))},mute:function(){var t=c.current;t&&(t.muted=!0)},unmute:function(){var t=c.current;t&&(t.muted=!1)}};return Object(s.useEffect)(function(){var t=c.current;t&&(r.autoPlay&&t.paused&&b.play(),a({volume:t.volume,muted:t.muted}))},[r.src]),[n,o,b,c]}},y=(v("audio"),"object"==typeof window),E=(n(16),s.useState,s.useMemo,s.useCallback,s.useEffect,n(5)),b=n(6),w=n(7),_=(n(8),Object(E.create)());Object(b.addon)(_),Object(w.addon)(_);var S=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=[]),Object(s.useEffect)(function(){var r=setTimeout(t.bind(null,n),e);return function(){clearTimeout(r)}},n)};n(9),y&&window,n(1),s.useState;var O=function(t){var e=history[t];history[t]=function(n){var r=e.apply(this,arguments),i=new Event(t.toLowerCase());return i.state=n,window.dispatchEvent(i),r}};y&&(O("pushState"),O("replaceState"));s.useState,s.useEffect,s.useRef,n(10),n(11),v("video");var T=function(t){return t.length>0},x=function(t,e){return t.includes(e)},R=function(t,e){return x(t,e)?t:t.concat([e])},C=function(t,e){return t.filter(function(t){return t!==e})},N=c.a.createContext();function I(t){return Object(s.useContext)(N).waiters.includes(t.on)?t.fallback:t.children}function j(){var t=Object(s.useContext)(N);return Object.assign({},t,{Wait:I})}j.Waiter=function(t){var e=Object(s.useState)([]),n=e[0],r=e[1];return c.a.createElement(N.Provider,{value:{waiters:n,createWaitingContext:function(t){return{isWaiting:function(){return x(n,t)},startWaiting:function(){return r(R(n,t))},endWaiting:function(){return r(C(n,t))},Wait:function(e){return c.a.createElement(I,Object.assign({},{on:t},e))}}},anyWaiting:function(){return T(n)},isWaiting:function(t){return x(n,t)},startWaiting:function(t){r(R(n,t))},endWaiting:function(t){r(C(n,t))}}},t.children)};var A=n(12),P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};var F=function(t){var e=t.endpointURL,n=t.limit,r=t.authorized,i=t.total,o=t.sortKeys,a=t.elements,s=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["endpointURL","limit","authorized","total","sortKeys","elements"]),u=c.a.useState(a),l=u[0],p=u[1],d=c.a.useState({search:"",sortKey:"title",sortComparitor:"asc",cursor:0,limit:n}),m=d[0],g=d[1],v=c.a.useState(i),y=v[0],E=v[1],b=c.a.useState(o),w=b[0],_=b[1],O=c.a.useState(r),T=O[0],x=O[1];c.a.useEffect(function(){g(P({},m,{limit:n}))},[n]);var R=function(){var t=function(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(i,o){try{var a=e[i](o),s=a.value}catch(t){return void n(t)}if(!a.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}(h.a.mark(function t(){var n,r,i;return h.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e+"?"+A.stringify(m),console.log("Fetching from: "+n),t.prev=2,t.next=5,fetch(n);case 5:if((r=t.sent).ok){t.next=8;break}throw new Error("Request failed with status: "+r.status+" ("+r.statusText+")");case 8:return t.next=10,r.json();case 10:i=t.sent,p(i.elements),E(i.total),_(i.sortKeys),x(i.authorized),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(2),alert("There was an error retrieving the search results."),console.error(t.t0);case 21:case"end":return t.stop()}},t,void 0,[[2,17]])}));return function(){return t.apply(this,arguments)}}();return S(function(){R()},300,[e,m]),c.a.createElement(f,P({authorized:T,elements:l,total:y,sortKeys:w,query:m,setQuery:g},s))};F.defaultProps={authorized:!1,endpointURL:"",limit:10,total:0,elements:[]};var M=F;var L=function(t){var e=t.authorized,n=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["authorized"]),r=n.imagePath,i=r+"/run_on_cbrain_green.png",o=r+"/run_on_cbrain_gray.png",a=r+"/download_green.png",s=r+"/download_gray.png";return c.a.createElement("div",{className:"search-dataset"},c.a.createElement("div",{className:"dataset-social"},c.a.createElement("img",{alt:"dataset format",className:"dataset-social-img",src:n.thumbnailURL}),c.a.createElement("div",{className:"dataset-social-icons"},c.a.createElement("div",{className:"dataset-social-icon"},c.a.createElement("i",{className:"fa fa-download social-fa"}),c.a.createElement("div",null,n.downloads)),c.a.createElement("div",{className:"dataset-social-icon"},c.a.createElement("i",{className:"fa fa-eye social-fa"}),c.a.createElement("div",null,n.views)),c.a.createElement("div",{className:"dataset-social-icon"},c.a.createElement("i",{className:"fa fa-heart social-fa"}),c.a.createElement("div",null,n.likes)))),c.a.createElement("div",{className:"dataset-details"},c.a.createElement("div",{className:"dataset-details-stats"},c.a.createElement("div",{className:"dataset-title"},c.a.createElement("div",null,c.a.createElement("a",{style:{color:"inherit"},href:"dataset?id="+n.id},n.title))),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Date Added"),c.a.createElement("div",{className:"dataset-stat-num"},n.dateAdded)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Date Updated"),c.a.createElement("div",{className:"dataset-stat-num"},n.dateUpdated)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Size"),c.a.createElement("div",{className:"dataset-stat-num"},n.size)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Files"),c.a.createElement("div",{className:"dataset-stat-num"},n.files)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Subjects"),c.a.createElement("div",{className:"dataset-stat-num"},n.subjects)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Format"),c.a.createElement("div",{className:"dataset-stat-num"},n.format)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Modalities"),c.a.createElement("div",{className:"dataset-stat-num"},n.modalities)),c.a.createElement("div",{className:"dataset-stat"},c.a.createElement("div",{className:"dataset-stat-text"},"Sources"),c.a.createElement("div",{className:"dataset-stat-num"},n.sources))),c.a.createElement("div",{className:"dataset-options"},c.a.createElement("div",{className:"dataset-option"},c.a.createElement("a",{href:"#",style:{pointerEvents:n.isPrivate&&!e?"none":"all"}},c.a.createElement("img",{alt:"Run On Cbrain",className:"run-on-cbrain-button option-icon",src:n.isPrivate&&!e?o:i}))),c.a.createElement("div",{className:"dataset-option",style:{position:"relative"}},c.a.createElement("a",{style:{pointerEvents:n.isPrivate&&!e?"none":"all"},href:"download_metadata?dataset="+n.downloadPath,download:!0},n.isPrivate&&!e&&c.a.createElement("div",{style:{backgroundColor:"white",padding:"5px",border:"solid black",color:"black",borderWidth:"1px",left:"-30px",textAlign:"center",position:"absolute"}},"Please register for access."),c.a.createElement("img",{alt:"Download Metadata",className:"download-button  option-icon",src:n.isPrivate&&!e?s:a}))))))};L.defaultProps={imagePath:"",downloadPath:""};var k=L;var V=function(t){t.authorized;var e=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["authorized"]);return c.a.createElement("div",{className:"search-dataset"},c.a.createElement("div",{className:"dataset-social"},c.a.createElement("a",{href:e.url},c.a.createElement("img",{alt:"dataset format",className:"dataset-social-img",src:void 0==e.url?"static/img/cogs-solid-grey.png":"static/img/cogs-solid-green.png"})),c.a.createElement("div",{className:"dataset-social-icons"},c.a.createElement("div",{className:"dataset-social-icon"},c.a.createElement("i",{className:"fa fa-download social-fa"}),c.a.createElement("div",null,e.downloads)))),c.a.createElement("div",{className:"dataset-details"},c.a.createElement("div",{className:"dataset-details-stats"},c.a.createElement("div",{className:"pipeline-title"},c.a.createElement("div",null,c.a.createElement("a",{style:{color:"inherit",pointerEvents:void 0==e.descriptorurl?"none":"all"},href:e.descriptorurl},e.title))),c.a.createElement("div",{className:"pipeline-id"},c.a.createElement("a",{style:{color:"black"},href:"https://www.zenodo.org/record/"+e.id.split(".")[1]},e.id)),c.a.createElement("div",{className:"pipeline-description"},e.description)),c.a.createElement("div",{className:"dataset-options"},c.a.createElement("div",{className:"dataset-option"},c.a.createElement("a",{href:e.onlineplatformurls},c.a.createElement("img",{alt:"Online platform",className:"run-on-cbrain-button option-icon",src:e.img}))))))};n.d(e,"DataTable",function(){return f}),n.d(e,"DataTableContainer",function(){return M}),n.d(e,"DatasetElement",function(){return k}),n.d(e,"PipelineElement",function(){return V});e.default={DataTable:f,DataTableContainer:M,DatasetElement:k,PipelineElement:V}}]).default});
  //# sourceMappingURL=conp-react.min.js.map