UNPKG

sush

Version:

Core module for SUSH

1 lines 2.86 kB
(function(b,c){'object'==typeof exports&&'object'==typeof module?module.exports=c():'function'==typeof define&&define.amd?define([],c):'object'==typeof exports?exports.SUSH=c():b.SUSH=c()})(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.i=function(d){return d},b.d=function(d,e,f){b.o(d,e)||Object.defineProperty(d,e,{configurable:!1,enumerable:!0,get:f})},b.n=function(d){var e=d&&d.__esModule?function(){return d['default']}:function(){return d};return b.d(e,'a',e),e},b.o=function(d,e){return Object.prototype.hasOwnProperty.call(d,e)},b.p='',b(b.s=2)}([function(a,b,c){'use strict';function d(g,h){if(!(g instanceof h))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(b,'__esModule',{value:!0});var e=c(1),f=function(){function g(){var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{mode:'default'};d(this,g),this.stock=new e.a(h),this._location=location}return g.prototype.flow=function(i){var j=this._location.hash.substr(1);return i.reduce(function(k,l){return k.then(l)},Promise.resolve({id:j,stock:this.stock}))},g}();b['default']=f},function(a,b){'use strict';function d(i,j){if(!(i instanceof j))throw new TypeError('Cannot call a class as a function')}function e(i,j){if(!i)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return j&&('object'==typeof j||'function'==typeof j)?j:i}function f(i,j){if('function'!=typeof j&&null!==j)throw new TypeError('Super expression must either be null or a function, not '+typeof j);i.prototype=Object.create(j&&j.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(i,j):i.__proto__=j)}var h=function(i){function j(){var k=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{mode:'default'};d(this,j);var l=e(this,i.call(this));return l.mode=k.mode,l}return f(j,i),j.prototype.get=function(l){return i.prototype.get.call(this,this._convertKey(l))||''},j.prototype.set=function(l,m){return i.prototype.set.call(this,this._convertKey(l),m)},j.prototype.has=function(l){return i.prototype.has.call(this,this._convertKey(l))},j.prototype._convertKey=function(l){return'upper'===this.mode?l.toUpperCase():'lower'===this.mode?l.toLowerCase():l},j}(function(i){function j(){var k=Reflect.construct(i,Array.from(arguments));return Object.setPrototypeOf(k,Object.getPrototypeOf(this)),k}return j.prototype=Object.create(i.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(j,i):j.__proto__=i,j}(Map));b.a=h},function(a,b,c){a.exports=c(0).default,Object.defineProperties(a.exports,{__esModule:{value:!0},'default':{value:a.exports}})}])});