es6-kameita
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
/*! es6-kameita - v0.0.0 */!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.es6Kameita=t()}}(function(){var t;return function e(t,r,n){function o(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};t[a][0].call(f.exports,function(e){var r=t[a][1][e];return o(r?r:e)},f,f.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t){"use strict";t("6to5/runtime")["default"],t("6to5/browser-polyfill")["default"],t("./src/foo")["default"]},{"./src/foo":4,"6to5/browser-polyfill":2,"6to5/runtime":3}],2:[function(e){!function r(t,n,o){function i(u,s){if(!n[u]){if(!t[u]){var c="function"==typeof e&&e;if(!s&&c)return c(u,!0);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[u]={exports:{}};t[u][0].call(l.exports,function(e){var r=t[u][1][e];return i(r?r:e)},l,l.exports,r,t,n,o)}return n[u].exports}for(var a="function"==typeof e&&e,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(t){(function(e){var r=function(t){Symbol[t]=Symbol[t]||Symbol()},n=function(t,e,r){var n=t.prototype;n[e]=n[e]||r};"undefined"==typeof Symbol&&t("es6-symbol/implement"),t("es6-shim"),t("./transformation/transformers/es6-generators/runtime"),r("referenceGet"),r("referenceSet"),r("referenceDelete"),n(Function,Symbol.referenceGet,function(){return this}),n(Map,Symbol.referenceGet,Map.prototype.get),n(Map,Symbol.referenceSet,Map.prototype.set),n(Map,Symbol.referenceDelete,Map.prototype.delete),e.WeakMap&&(n(WeakMap,Symbol.referenceGet,WeakMap.prototype.get),n(WeakMap,Symbol.referenceSet,WeakMap.prototype.set),n(WeakMap,Symbol.referenceDelete,WeakMap.prototype.delete))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transformation/transformers/es6-generators/runtime":2,"es6-shim":4,"es6-symbol/implement":5}],2:[function(t,e,r){(function(t){function e(){}function n(t,e,r,n){function o(e,n){if(s===y)throw new Error("Generator is already running");if(s===d)throw new Error("Generator has already finished");for(;;){var o,i=u.delegate;if(i){try{o=i.iterator[e](n),e="next",n=void 0}catch(a){u.delegate=null,e="throw",n=a;continue}if(!o.done)return s=h,o;u[i.resultName]=o.value,u.next=i.nextLoc,u.delegate=null}if("next"===e){if(s===p&&"undefined"!=typeof n)throw new TypeError("attempt to send "+JSON.stringify(n)+" to newborn generator");s===h?u.sent=n:delete u.sent}else if("throw"===e){if(s===p)throw s=d,n;u.dispatchException(n)&&(e="next",n=void 0)}else"return"===e&&u.abrupt("return",n);s=y;try{var c=t.call(r,u);if(s=u.done?d:h,o={value:c,done:u.done},c!==v)return o;u.delegate&&"next"===e&&(n=void 0)}catch(f){s=d,"next"===e?u.dispatchException(f):n=f}}}var i=e?Object.create(e.prototype):this,u=new a(n),s=p;return i.next=o.bind(i,"next"),i["throw"]=o.bind(i,"throw"),i["return"]=o.bind(i,"return"),i}function o(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2]),this.tryEntries.push(e)}function i(t,e){var r=t.completion||{};r.type=0===e?"normal":"return",delete r.arg,t.completion=r}function a(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(o,this),this.reset()}function u(t){var e=t;if(s in t)e=t[s]();else if(!isNaN(t.length)){var r=-1;e=function n(){for(;++r<t.length;)if(r in t)return n.value=t[r],n.done=!1,n;return n.done=!0,n},e.next=e}return e}var s="function"==typeof Symbol&&Symbol.iterator||"@@iterator",c=t.regeneratorRuntime=r,f=Object.prototype.hasOwnProperty,l=c.wrap=function(t,e,r,o){return new n(t,e,r||null,o||[])},p="suspendedStart",h="suspendedYield",y="executing",d="completed",v={},b=function(){},m=b.prototype=n.prototype;(b.constructor=e).prototype=m.constructor=b,c.isGeneratorFunction=function(t){var r=t&&t.constructor;return r?e.name===r.name:!1},c.mark=function(t){return t.__proto__=b,t.prototype=Object.create(m),t},c.async=function(t,e,r,n){return new Promise(function(o,i){function a(t){var e,r;try{e=this(t),r=e.value}catch(n){return i(n)}e.done?o(r):Promise.resolve(r).then(s,c)}var u=l(t,e,r,n),s=a.bind(u.next),c=a.bind(u["throw"]);s()})},m[s]=function(){return this},m.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var r in t)e.push(r);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}},c.values=u,a.prototype={constructor:a,reset:function(){this.prev=0,this.next=0,this.sent=void 0,this.done=!1,this.delegate=null,this.tryEntries.forEach(i);for(var t,e=0;f.call(this,t="t"+e)||20>e;++e)this[t]=null},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=f.call(o,"catchLoc"),u=f.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},_findFinallyEntry:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&(r.finallyLoc===t||this.prev<r.finallyLoc))return r}},abrupt:function(t,e){var r=this._findFinallyEntry(),n=r?r.completion:{};return n.type=t,n.arg=e,r?this.next=r.finallyLoc:this.complete(n),v},complete:function(t){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type&&(this.rval=t.arg,this.next="end"),v},finish:function(t){var e=this._findFinallyEntry(t);return this.complete(e.completion)},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,o=r.completion;return"throw"===o.type&&(n=o.arg,i(r,e)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:u(t),resultName:e,nextLoc:r},v}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e){function r(){}var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var n=[];if(e){var o=document.createElement("div"),i=new MutationObserver(function(){var t=n.slice();n.length=0,t.forEach(function(t){t()})});return i.observe(o,{attributes:!0}),function(t){n.length||o.setAttribute("yes","no"),n.push(t)}}return r?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}],4:[function(e,r,n){(function(e){!function(e,o){"function"==typeof t&&t.amd?t(o):"object"==typeof n?r.exports=o():e.returnExports=o()}(this,function(){"use strict";var t,r=function(t){try{t()}catch(e){return!1}return!0},n=function(t,e){try{var r=function(){t.apply(this,arguments)};return r.__proto__?(Object.setPrototypeOf(r,t),r.prototype=Object.create(t.prototype,{constructor:{value:t}}),e(r)):!1}catch(n){return!1}},o=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}},i=function(){var t=!1;if(String.prototype.startsWith)try{"/a/".startsWith(/a/)}catch(e){t=!0}return t},a=new Function("return this;"),u=a(),s=u.isFinite,c=!!Object.defineProperty&&o(),f=i(),l=(Array.prototype.slice,String.prototype.indexOf),p=Object.prototype.toString,h=Object.prototype.hasOwnProperty,y=function(t,e,r,n){!n&&e in t||(c?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r}):t[e]=r)},d=function(t,e){Object.keys(e).forEach(function(r){var n=e[r];y(t,r,n,!1)})},v=Object.create||function(t,e){function r(){}r.prototype=t;var n=new r;return"undefined"!=typeof e&&d(n,e),n},b="function"==typeof Symbol&&Symbol.iterator||"_es6-shim iterator_";u.Set&&"function"==typeof(new u.Set)["@@iterator"]&&(b="@@iterator");var m=function(t,e){e||(e=function(){return this});var r={};r[b]=e,d(t,r),t[b]||"symbol"!=typeof b||(t[b]=e)},g=function(t){var e=p.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===p.call(t.callee)),r},w=function(t){if(!j.TypeIsObject(t))throw new TypeError("bad object");return t._es6construct||(t.constructor&&j.IsCallable(t.constructor["@@create"])&&(t=t.constructor["@@create"](t)),d(t,{_es6construct:!0})),t},j={CheckObjectCoercible:function(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},TypeIsObject:function(t){return null!=t&&Object(t)===t},ToObject:function(t,e){return Object(j.CheckObjectCoercible(t,e))},IsCallable:function(t){return"function"==typeof t&&"[object Function]"===p.call(t)},ToInt32:function(t){return t>>0},ToUint32:function(t){return t>>>0},ToInteger:function(t){var e=+t;return Number.isNaN(e)?0:0!==e&&Number.isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e},ToLength:function(t){var e=j.ToInteger(t);return 0>=e?0:e>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e},SameValue:function(t,e){return t===e?0===t?1/t===1/e:!0:Number.isNaN(t)&&Number.isNaN(e)},SameValueZero:function(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)},IsIterable:function(t){return j.TypeIsObject(t)&&("undefined"!=typeof t[b]||g(t))},GetIterator:function(e){if(g(e))return new t(e,"value");var r=e[b];if(!j.IsCallable(r))throw new TypeError("value is not an iterable");var n=r.call(e);if(!j.TypeIsObject(n))throw new TypeError("bad iterator");return n},IteratorNext:function(t){var e=arguments.length>1?t.next(arguments[1]):t.next();if(!j.TypeIsObject(e))throw new TypeError("bad iterator");return e},Construct:function(t,e){var r;r=j.IsCallable(t["@@create"])?t["@@create"]():v(t.prototype||null),d(r,{_es6construct:!0});var n=t.apply(r,e);return j.TypeIsObject(n)?n:r}},O=function(){function t(t){var e=Math.floor(t),r=t-e;return.5>r?e:r>.5?e+1:e%2?e+1:e}function e(e,r,n){var o,i,a,u,s,c,f,l=(1<<r-1)-1;for(e!==e?(i=(1<<r)-1,a=Math.pow(2,n-1),o=0):1/0===e||e===-1/0?(i=(1<<r)-1,a=0,o=0>e?1:0):0===e?(i=0,a=0,o=1/e===-1/0?1:0):(o=0>e,e=Math.abs(e),e>=Math.pow(2,1-l)?(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023),a=t(e/Math.pow(2,i)*Math.pow(2,n)),a/Math.pow(2,n)>=2&&(i+=1,a=1),i>l?(i=(1<<r)-1,a=0):(i+=l,a-=Math.pow(2,n))):(i=0,a=t(e/Math.pow(2,1-l-n)))),s=[],u=n;u;u-=1)s.push(a%2?1:0),a=Math.floor(a/2);for(u=r;u;u-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(s.push(o?1:0),s.reverse(),c=s.join(""),f=[];c.length;)f.push(parseInt(c.slice(0,8),2)),c=c.slice(8);return f}function r(t,e,r){var n,o,i,a,u,s,c,f,l=[];for(n=t.length;n;n-=1)for(i=t[n-1],o=8;o;o-=1)l.push(i%2?1:0),i>>=1;return l.reverse(),a=l.join(""),u=(1<<e-1)-1,s=parseInt(a.slice(0,1),2)?-1:1,c=parseInt(a.slice(1,1+e),2),f=parseInt(a.slice(1+e),2),c===(1<<e)-1?0!==f?0/0:1/0*s:c>0?s*Math.pow(2,c-u)*(1+f/Math.pow(2,r)):0!==f?s*Math.pow(2,-(u-1))*(f/Math.pow(2,r)):0>s?-0:0}function n(t){return r(t,8,23)}function o(t){return e(t,8,23)}var i={toFloat32:function(t){return n(o(t))}};if("undefined"!=typeof Float32Array){var a=new Float32Array(1);i.toFloat32=function(t){return a[0]=t,a[0]}}return i}();if(d(String,{fromCodePoint:function(){for(var t,e=[],r=0,n=arguments.length;n>r;r++){if(t=Number(arguments[r]),!j.SameValue(t,j.ToInteger(t))||0>t||t>1114111)throw new RangeError("Invalid code point "+t);65536>t?e.push(String.fromCharCode(t)):(t-=65536,e.push(String.fromCharCode((t>>10)+55296)),e.push(String.fromCharCode(t%1024+56320)))}return e.join("")},raw:function(t){var e=j.ToObject(t,"bad callSite"),r=e.raw,n=j.ToObject(r,"bad raw value"),o=n.length,i=j.ToLength(o);if(0>=i)return"";for(var a,u,s,c,f=[],l=0;i>l&&(a=String(l),u=n[a],s=String(u),f.push(s),!(l+1>=i));)u=l+1<arguments.length?arguments[l+1]:"",c=String(u),f.push(c),l++;return f.join("")}}),1!==String.fromCodePoint.length){var _=String.fromCodePoint;y(String,"fromCodePoint",function(){return _.apply(this,arguments)},!0)}var x={repeat:function(){var t=function(e,r){if(1>r)return"";if(r%2)return t(e,r-1)+e;var n=t(e,r/2);return n+n};return function(e){var r=String(j.CheckObjectCoercible(this));if(e=j.ToInteger(e),0>e||1/0===e)throw new RangeError("Invalid String#repeat value");return t(r,e)}}(),startsWith:function(t){var e=String(j.CheckObjectCoercible(this));if("[object RegExp]"===p.call(t))throw new TypeError('Cannot call method "startsWith" with a regex');t=String(t);var r=arguments.length>1?arguments[1]:void 0,n=Math.max(j.ToInteger(r),0);return e.slice(n,n+t.length)===t},endsWith:function(t){var e=String(j.CheckObjectCoercible(this));if("[object RegExp]"===p.call(t))throw new TypeError('Cannot call method "endsWith" with a regex');t=String(t);var r=e.length,n=arguments.length>1?arguments[1]:void 0,o="undefined"==typeof n?r:j.ToInteger(n),i=Math.min(Math.max(o,0),r);return e.slice(i-t.length,i)===t},includes:function(t){var e=arguments.length>1?arguments[1]:void 0;return-1!==l.call(this,t,e)},codePointAt:function(t){var e=String(j.CheckObjectCoercible(this)),r=j.ToInteger(t),n=e.length;if(!(0>r||r>=n)){var o=e.charCodeAt(r),i=r+1===n;if(55296>o||o>56319||i)return o;var a=e.charCodeAt(r+1);return 56320>a||a>57343?o:1024*(o-55296)+(a-56320)+65536}}};d(String.prototype,x);var S=1!==" ".trim().length;if(S){{String.prototype.trim}delete String.prototype.trim;var E=[" \n\f\r "," \u2028","\u2029"].join(""),T=new RegExp("(^["+E+"]+)|(["+E+"]+$)","g");d(String.prototype,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(T,"")}})}var M=function(t){this._s=String(j.CheckObjectCoercible(t)),this._i=0};M.prototype.next=function(){var t=this._s,e=this._i;if("undefined"==typeof t||e>=t.length)return this._s=void 0,{value:void 0,done:!0};var r,n,o=t.charCodeAt(e);return 55296>o||o>56319||e+1==t.length?n=1:(r=t.charCodeAt(e+1),n=56320>r||r>57343?1:2),this._i=e+n,{value:t.substr(e,n),done:!1}},m(M.prototype),m(String.prototype,function(){return new M(this)}),f||(String.prototype.startsWith=x.startsWith,String.prototype.endsWith=x.endsWith);var I={from:function(t){var e=arguments.length>1?arguments[1]:void 0,r=j.ToObject(t,"bad iterable");if("undefined"!=typeof e&&!j.IsCallable(e))throw new TypeError("Array.from: when provided, the second argument must be a function");var n,o,i,a,u=arguments.length>2,s=u?arguments[2]:void 0,c=j.IsIterable(r);if(c){i=0,o=j.IsCallable(this)?Object(new this):[];var f,l=c?j.GetIterator(r):null;do f=j.IteratorNext(l),f.done||(a=f.value,o[i]=e?u?e.call(s,a,i):e(a,i):a,i+=1);while(!f.done);n=i}else for(n=j.ToLength(r.length),o=j.IsCallable(this)?Object(new this(n)):new Array(n),i=0;n>i;++i)a=r[i],o[i]=e?u?e.call(s,a,i):e(a,i):a;return o.length=n,o},of:function(){return Array.from(arguments)}};d(Array,I);var N=function(){try{return 0===Array.from({length:-1}).length}catch(t){return!1}};N()||y(Array,"from",I.from,!0),t=function(t,e){this.i=0,this.array=t,this.kind=e},d(t.prototype,{next:function(){var e=this.i,r=this.array;if(!(this instanceof t))throw new TypeError("Not an ArrayIterator");if("undefined"!=typeof r)for(var n=j.ToLength(r.length);n>e;e++){var o,i=this.kind;return"key"===i?o=e:"value"===i?o=r[e]:"entry"===i&&(o=[e,r[e]]),this.i=e+1,{value:o,done:!1}}return this.array=void 0,{value:void 0,done:!0}}}),m(t.prototype);var k={copyWithin:function(t,e){var r=arguments[2],n=j.ToObject(this),o=j.ToLength(n.length);t=j.ToInteger(t),e=j.ToInteger(e);var i=0>t?Math.max(o+t,0):Math.min(t,o),a=0>e?Math.max(o+e,0):Math.min(e,o);r="undefined"==typeof r?o:j.ToInteger(r);var u=0>r?Math.max(o+r,0):Math.min(r,o),s=Math.min(u-a,o-i),c=1;for(i>a&&a+s>i&&(c=-1,a+=s-1,i+=s-1);s>0;)h.call(n,a)?n[i]=n[a]:delete n[a],a+=c,i+=c,s-=1;return n},fill:function(t){var e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=j.ToObject(this),o=j.ToLength(n.length);e=j.ToInteger("undefined"==typeof e?0:e),r=j.ToInteger("undefined"==typeof r?o:r);for(var i=0>e?Math.max(o+e,0):Math.min(e,o),a=0>r?o+r:r,u=i;o>u&&a>u;++u)n[u]=t;return n},find:function(t){var e=j.ToObject(this),r=j.ToLength(e.length);if(!j.IsCallable(t))throw new TypeError("Array#find: predicate must be a function");for(var n,o=arguments.length>1?arguments[1]:null,i=0;r>i;i++)if(n=e[i],o){if(t.call(o,n,i,e))return n}else if(t(n,i,e))return n},findIndex:function(t){var e=j.ToObject(this),r=j.ToLength(e.length);if(!j.IsCallable(t))throw new TypeError("Array#findIndex: predicate must be a function");for(var n=arguments.length>1?arguments[1]:null,o=0;r>o;o++)if(n){if(t.call(n,e[o],o,e))return o}else if(t(e[o],o,e))return o;return-1},keys:function(){return new t(this,"key")},values:function(){return new t(this,"value")},entries:function(){return new t(this,"entry")}};Array.prototype.keys&&!j.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!j.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[b]&&d(Array.prototype,{values:Array.prototype[b]}),d(Array.prototype,k),m(Array.prototype,function(){return this.values()}),Object.getPrototypeOf&&m(Object.getPrototypeOf([].values()));var P=Math.pow(2,53)-1;d(Number,{MAX_SAFE_INTEGER:P,MIN_SAFE_INTEGER:-P,EPSILON:2.220446049250313e-16,parseInt:u.parseInt,parseFloat:u.parseFloat,isFinite:function(t){return"number"==typeof t&&s(t)},isInteger:function(t){return Number.isFinite(t)&&j.ToInteger(t)===t},isSafeInteger:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER},isNaN:function(t){return t!==t}}),[,1].find(function(t,e){return 0===e})||y(Array.prototype,"find",k.find,!0),0!==[,1].findIndex(function(t,e){return 0===e})&&y(Array.prototype,"findIndex",k.findIndex,!0),c&&(d(Object,{getPropertyDescriptor:function(t,e){for(var r=Object.getOwnPropertyDescriptor(t,e),n=Object.getPrototypeOf(t);"undefined"==typeof r&&null!==n;)r=Object.getOwnPropertyDescriptor(n,e),n=Object.getPrototypeOf(n);return r},getPropertyNames:function(t){for(var e=Object.getOwnPropertyNames(t),r=Object.getPrototypeOf(t),n=function(t){-1===e.indexOf(t)&&e.push(t)};null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}}),d(Object,{assign:function(t){if(!j.TypeIsObject(t))throw new TypeError("target must be an object");return Array.prototype.reduce.call(arguments,function(t,e){return Object.keys(Object(e)).reduce(function(t,r){return t[r]=e[r],t},t)})},is:function(t,e){return j.SameValue(t,e)},setPrototypeOf:function(t,e){var r,n=function(t,e){if(!j.TypeIsObject(t))throw new TypeError("cannot set prototype on a non-object");if(null!==e&&!j.TypeIsObject(e))throw new TypeError("can only set prototype to an object or null"+e)},o=function(t,e){return n(t,e),r.call(t,e),t};try{r=t.getOwnPropertyDescriptor(t.prototype,e).set,r.call({},null)}catch(i){if(t.prototype!=={}[e])return;r=function(t){this[e]=t},o.polyfill=o(o({},null),t.prototype)instanceof t}return o}(Object,"__proto__")})),Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&!function(){var t=Object.create(null),e=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=e(r);return n===t?null:n},Object.setPrototypeOf=function(e,n){return null===n&&(n=t),r(e,n)},Object.setPrototypeOf.polyfill=!1}();try{Object.keys("foo")}catch(C){var A=Object.keys;Object.keys=function(t){return A(j.ToObject(t))}}var L={acosh:function(t){return t=Number(t),Number.isNaN(t)||1>t?0/0:1===t?0:1/0===t?t:Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return t=Number(t),0!==t&&s(t)?0>t?-Math.asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t},atanh:function(t){return t=Number(t),Number.isNaN(t)||-1>t||t>1?0/0:-1===t?-1/0:1===t?1/0:0===t?t:.5*Math.log((1+t)/(1-t))},cbrt:function(t){if(t=Number(t),0===t)return t;var e,r=0>t;return r&&(t=-t),e=Math.pow(t,1/3),r?-e:e},clz32:function(t){t=Number(t);var e=j.ToUint32(t);return 0===e?32:32-e.toString(2).length},cosh:function(t){return t=Number(t),0===t?1:Number.isNaN(t)?0/0:s(t)?(0>t&&(t=-t),t>21?Math.exp(t)/2:(Math.exp(t)+Math.exp(-t))/2):1/0},expm1:function(t){return t=Number(t),t===-1/0?-1:s(t)&&0!==t?Math.exp(t)-1:t},hypot:function(){var t=!1,e=!0,r=!1,n=[];if(Array.prototype.every.call(arguments,function(o){var i=Number(o);return Number.isNaN(i)?t=!0:1/0===i||i===-1/0?r=!0:0!==i&&(e=!1),r?!1:(t||n.push(Math.abs(i)),!0)}),r)return 1/0;if(t)return 0/0;if(e)return 0;n.sort(function(t,e){return e-t});var o=n[0],i=n.map(function(t){return t/o}),a=i.reduce(function(t,e){return t+=e*e},0);return o*Math.sqrt(a)},log2:function(t){return Math.log(t)*Math.LOG2E},log10:function(t){return Math.log(t)*Math.LOG10E},log1p:function(t){if(t=Number(t),-1>t||Number.isNaN(t))return 0/0;if(0===t||1/0===t)return t;if(-1===t)return-1/0;var e=0,r=50;if(0>t||t>1)return Math.log(1+t);for(var n=1;r>n;n++)n%2===0?e-=Math.pow(t,n)/n:e+=Math.pow(t,n)/n;return e},sign:function(t){var e=+t;return 0===e?e:Number.isNaN(e)?e:0>e?-1:1},sinh:function(t){return t=Number(t),s(t)&&0!==t?(Math.exp(t)-Math.exp(-t))/2:t},tanh:function(t){return t=Number(t),Number.isNaN(t)||0===t?t:1/0===t?1:t===-1/0?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))},trunc:function(t){var e=Number(t);return 0>e?-Math.floor(-e):Math.floor(e)},imul:function(t,e){t=j.ToUint32(t),e=j.ToUint32(e);var r=t>>>16&65535,n=65535&t,o=e>>>16&65535,i=65535&e;return n*i+(r*i+n*o<<16>>>0)|0},fround:function(t){if(0===t||1/0===t||t===-1/0||Number.isNaN(t))return t;var e=Number(t);return O.toFloat32(e)}};d(Math,L),-5!==Math.imul(4294967295,5)&&(Math.imul=L.imul);var R=function(){var t,r;j.IsPromise=function(t){return j.TypeIsObject(t)&&t._promiseConstructor?"undefined"==typeof t._status?!1:!0:!1};var n,o=function(t){if(!j.IsCallable(t))throw new TypeError("bad promise constructor");var e=this,r=function(t,r){e.resolve=t,e.reject=r};if(e.promise=j.Construct(t,[r]),!e.promise._es6construct)throw new TypeError("bad promise constructor");if(!j.IsCallable(e.resolve)||!j.IsCallable(e.reject))throw new TypeError("bad promise constructor")},i=u.setTimeout;"undefined"!=typeof window&&j.IsCallable(window.postMessage)&&(n=function(){var t=[],e="zero-timeout-message",r=function(r){t.push(r),window.postMessage(e,"*")},n=function(r){if(r.source==window&&r.data==e){if(r.stopPropagation(),0===t.length)return;var n=t.shift();n()}};return window.addEventListener("message",n,!0),r});var a=function(){var t=u.Promise;return t&&t.resolve&&function(e){return t.resolve().then(e)}},s=j.IsCallable(u.setImmediate)?u.setImmediate.bind(u):"object"==typeof e&&e.nextTick?e.nextTick:a()||(j.IsCallable(n)?n():function(t){i(t,0)}),c=function(t,e){t.forEach(function(t){s(function(){var r=t.handler,n=t.capability,o=n.resolve,i=n.reject;try{var a=r(e);if(a===n.promise)throw new TypeError("self resolution");var u=f(a,n);u||o(a)}catch(s){i(s)}})})},f=function(t,e){if(!j.TypeIsObject(t))return!1;var r=e.resolve,n=e.reject;try{var o=t.then;if(!j.IsCallable(o))return!1;o.call(t,r,n)}catch(i){n(i)}return!0},l=function(t,e,r){return function(n){if(n===t)return r(new TypeError("self resolution"));var i=t._promiseConstructor,a=new o(i),u=f(n,a);return u?a.promise.then(e,r):e(n)}};t=function(t){var e=this;if(e=w(e),!e._promiseConstructor)throw new TypeError("bad promise");if("undefined"!=typeof e._status)throw new TypeError("promise already initialized");if(!j.IsCallable(t))throw new TypeError("not a valid resolver");e._status="unresolved",e._resolveReactions=[],e._rejectReactions=[];var r=function(t){if("unresolved"===e._status){var r=e._resolveReactions;e._result=t,e._resolveReactions=void 0,e._rejectReactions=void 0,e._status="has-resolution",c(r,t)}},n=function(t){if("unresolved"===e._status){var r=e._rejectReactions;e._result=t,e._resolveReactions=void 0,e._rejectReactions=void 0,e._status="has-rejection",c(r,t)}};try{t(r,n)}catch(o){n(o)}return e},r=t.prototype,d(t,{"@@create":function(t){var e=this,n=e.prototype||r;return t=t||v(n),d(t,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0}),t._promiseConstructor=e,t}});var p=function(t,e,r,n){var o=!1;return function(i){if(!o&&(o=!0,e[t]=i,0===--n.count)){var a=r.resolve;a(e)}}};return t.all=function(t){var e=this,r=new o(e),n=r.resolve,i=r.reject;try{if(!j.IsIterable(t))throw new TypeError("bad iterable");for(var a=j.GetIterator(t),u=[],s={count:1},c=0;;c++){var f=j.IteratorNext(a);if(f.done)break;var l=e.resolve(f.value),h=p(c,u,r,s);s.count++,l.then(h,r.reject)}0===--s.count&&n(u)}catch(y){i(y)}return r.promise},t.race=function(t){var e=this,r=new o(e),n=r.resolve,i=r.reject;try{if(!j.IsIterable(t))throw new TypeError("bad iterable");for(var a=j.GetIterator(t);;){var u=j.IteratorNext(a);if(u.done)break;var s=e.resolve(u.value);s.then(n,i)}}catch(c){i(c)}return r.promise},t.reject=function(t){var e=this,r=new o(e),n=r.reject;return n(t),r.promise},t.resolve=function(t){var e=this;if(j.IsPromise(t)){var r=t._promiseConstructor;if(r===e)return t}var n=new o(e),i=n.resolve;return i(t),n.promise},t.prototype["catch"]=function(t){return this.then(void 0,t)},t.prototype.then=function(t,e){var r=this;if(!j.IsPromise(r))throw new TypeError("not a promise");var n=this.constructor,i=new o(n);j.IsCallable(e)||(e=function(t){throw t}),j.IsCallable(t)||(t=function(t){return t});var a=l(r,t,e),u={capability:i,handler:a},s={capability:i,handler:e};switch(r._status){case"unresolved":r._resolveReactions.push(u),r._rejectReactions.push(s);break;case"has-resolution":c([u],r._result);break;case"has-rejection":c([s],r._result);break;default:throw new TypeError("unexpected")}return i.promise},t}();u.Promise&&(delete u.Promise.accept,delete u.Promise.defer,delete u.Promise.prototype.chain),d(u,{Promise:R});var z=n(u.Promise,function(t){return t.resolve(42)instanceof t}),F=function(){try{return u.Promise.reject(42).then(null,5).then(null,function(){}),!0}catch(t){return!1}}(),D=function(){try{Promise.call(3,function(){})}catch(t){return!0}return!1}();z&&F&&D||(u.Promise=R);var G=function(t){var e=Object.keys(t.reduce(function(t,e){return t[e]=!0,t},{}));return t.join(":")===e.join(":")},W=G(["z","a","bb"]),V=G(["z",1,"a","3",2]);if(c){var q=function(t){if(!W)return null;var e=typeof t;return"string"===e?"$"+t:"number"===e?V?t:"n"+t:null},U=function(){return Object.create?Object.create(null):{}},Z={Map:function(){function t(t,e){this.key=t,this.value=e,this.next=null,this.prev=null}function e(t,e){this.head=t._head,this.i=this.head,this.kind=e}function r(e){var r=this;if(!j.TypeIsObject(r))throw new TypeError("Map does not accept arguments when called as a function");if(r=w(r),!r._es6map)throw new TypeError("bad map");var n=new t(null,null);if(n.next=n.prev=n,d(r,{_head:n,_storage:U(),_size:0}),"undefined"!=typeof e&&null!==e){var o=j.GetIterator(e),i=r.set;if(!j.IsCallable(i))throw new TypeError("bad map");for(;;){var a=j.IteratorNext(o);if(a.done)break;var u=a.value;if(!j.TypeIsObject(u))throw new TypeError("expected iterable of pairs");i.call(r,u[0],u[1])}}return r}var n={};t.prototype.isRemoved=function(){return this.key===n},e.prototype={next:function(){var t,e=this.i,r=this.kind,n=this.head;if("undefined"==typeof this.i)return{value:void 0,done:!0};for(;e.isRemoved()&&e!==n;)e=e.prev;for(;e.next!==n;)if(e=e.next,!e.isRemoved())return t="key"===r?e.key:"value"===r?e.value:[e.key,e.value],this.i=e,{value:t,done:!1};return this.i=void 0,{value:void 0,done:!0}}},m(e.prototype);var o=r.prototype;return d(r,{"@@create":function(t){var e=this,r=e.prototype||o;return t=t||v(r),d(t,{_es6map:!0}),t}}),Object.defineProperty(r.prototype,"size",{configurable:!0,enumerable:!1,get:function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}}),d(r.prototype,{get:function(t){var e=q(t);if(null!==e){var r=this._storage[e];return r?r.value:void 0}for(var n=this._head,o=n;(o=o.next)!==n;)if(j.SameValueZero(o.key,t))return o.value},has:function(t){var e=q(t);if(null!==e)return"undefined"!=typeof this._storage[e];for(var r=this._head,n=r;(n=n.next)!==r;)if(j.SameValueZero(n.key,t))return!0;return!1},set:function(e,r){var n,o=this._head,i=o,a=q(e);if(null!==a){if("undefined"!=typeof this._storage[a])return this._storage[a].value=r,this;n=this._storage[a]=new t(e,r),i=o.prev}for(;(i=i.next)!==o;)if(j.SameValueZero(i.key,e))return i.value=r,this;return n=n||new t(e,r),j.SameValue(-0,e)&&(n.key=0),n.next=this._head,n.prev=this._head.prev,n.prev.next=n,n.next.prev=n,this._size+=1,this},"delete":function(t){var e=this._head,r=e,o=q(t);if(null!==o){if("undefined"==typeof this._storage[o])return!1;r=this._storage[o].prev,delete this._storage[o]}for(;(r=r.next)!==e;)if(j.SameValueZero(r.key,t))return r.key=r.value=n,r.prev.next=r.next,r.next.prev=r.prev,this._size-=1,!0;return!1},clear:function(){this._size=0,this._storage=U();for(var t=this._head,e=t,r=e.next;(e=r)!==t;)e.key=e.value=n,r=e.next,e.next=e.prev=t;t.next=t.prev=t},keys:function(){return new e(this,"key")},values:function(){return new e(this,"value")},entries:function(){return new e(this,"key+value")},forEach:function(t){for(var e=arguments.length>1?arguments[1]:null,r=this.entries(),n=r.next();!n.done;n=r.next())e?t.call(e,n.value[1],n.value[0],this):t(n.value[1],n.value[0],this)}}),m(r.prototype,function(){return this.entries()}),r}(),Set:function(){var t=function(t){var e=this;if(!j.TypeIsObject(e))throw new TypeError("Set does not accept arguments when called as a function");if(e=w(e),!e._es6set)throw new TypeError("bad set");if(d(e,{"[[SetData]]":null,_storage:U()}),"undefined"!=typeof t&&null!==t){var r=j.GetIterator(t),n=e.add;if(!j.IsCallable(n))throw new TypeError("bad set");for(;;){var o=j.IteratorNext(r);if(o.done)break;var i=o.value;n.call(e,i)}}return e},e=t.prototype;d(t,{"@@create":function(t){var r=this,n=r.prototype||e;return t=t||v(n),d(t,{_es6set:!0}),t}});var r=function(t){if(!t["[[SetData]]"]){var e=t["[[SetData]]"]=new Z.Map;Object.keys(t._storage).forEach(function(t){t=36===t.charCodeAt(0)?t.slice(1):"n"===t.charAt(0)?+t.slice(1):+t,e.set(t,t)}),t._storage=null}};return Object.defineProperty(t.prototype,"size",{configurable:!0,enumerable:!1,get:function(){if("undefined"==typeof this._storage)throw new TypeError("size method called on incompatible Set");return r(this),this["[[SetData]]"].size}}),d(t.prototype,{has:function(t){var e;return this._storage&&null!==(e=q(t))?!!this._storage[e]:(r(this),this["[[SetData]]"].has(t))},add:function(t){var e;return this._storage&&null!==(e=q(t))?(this._storage[e]=!0,this):(r(this),this["[[SetData]]"].set(t,t),this)},"delete":function(t){var e;if(this._storage&&null!==(e=q(t))){var n=h.call(this._storage,e);return delete this._storage[e]&&n | ||
/*! es6-kameita - v0.1.0 */!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.es6kameita=t()}}(function(){var t;return function e(t,r,n){function o(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};t[a][0].call(f.exports,function(e){var r=t[a][1][e];return o(r?r:e)},f,f.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t){"use strict";t("6to5/runtime")["default"],t("6to5/browser-polyfill")["default"],t("./src/foo")["default"]},{"./src/foo":4,"6to5/browser-polyfill":2,"6to5/runtime":3}],2:[function(e){!function r(t,n,o){function i(u,s){if(!n[u]){if(!t[u]){var c="function"==typeof e&&e;if(!s&&c)return c(u,!0);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[u]={exports:{}};t[u][0].call(l.exports,function(e){var r=t[u][1][e];return i(r?r:e)},l,l.exports,r,t,n,o)}return n[u].exports}for(var a="function"==typeof e&&e,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(t){(function(e){var r=function(t){Symbol[t]=Symbol[t]||Symbol()},n=function(t,e,r){var n=t.prototype;n[e]=n[e]||r};"undefined"==typeof Symbol&&t("es6-symbol/implement"),t("es6-shim"),t("./transformation/transformers/es6-generators/runtime"),r("referenceGet"),r("referenceSet"),r("referenceDelete"),n(Function,Symbol.referenceGet,function(){return this}),n(Map,Symbol.referenceGet,Map.prototype.get),n(Map,Symbol.referenceSet,Map.prototype.set),n(Map,Symbol.referenceDelete,Map.prototype.delete),e.WeakMap&&(n(WeakMap,Symbol.referenceGet,WeakMap.prototype.get),n(WeakMap,Symbol.referenceSet,WeakMap.prototype.set),n(WeakMap,Symbol.referenceDelete,WeakMap.prototype.delete))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transformation/transformers/es6-generators/runtime":2,"es6-shim":4,"es6-symbol/implement":5}],2:[function(t,e,r){(function(t){function e(){}function n(t,e,r,n){function o(e,n){if(s===y)throw new Error("Generator is already running");if(s===d)throw new Error("Generator has already finished");for(;;){var o,i=u.delegate;if(i){try{o=i.iterator[e](n),e="next",n=void 0}catch(a){u.delegate=null,e="throw",n=a;continue}if(!o.done)return s=h,o;u[i.resultName]=o.value,u.next=i.nextLoc,u.delegate=null}if("next"===e){if(s===p&&"undefined"!=typeof n)throw new TypeError("attempt to send "+JSON.stringify(n)+" to newborn generator");s===h?u.sent=n:delete u.sent}else if("throw"===e){if(s===p)throw s=d,n;u.dispatchException(n)&&(e="next",n=void 0)}else"return"===e&&u.abrupt("return",n);s=y;try{var c=t.call(r,u);if(s=u.done?d:h,o={value:c,done:u.done},c!==v)return o;u.delegate&&"next"===e&&(n=void 0)}catch(f){s=d,"next"===e?u.dispatchException(f):n=f}}}var i=e?Object.create(e.prototype):this,u=new a(n),s=p;return i.next=o.bind(i,"next"),i["throw"]=o.bind(i,"throw"),i["return"]=o.bind(i,"return"),i}function o(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2]),this.tryEntries.push(e)}function i(t,e){var r=t.completion||{};r.type=0===e?"normal":"return",delete r.arg,t.completion=r}function a(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(o,this),this.reset()}function u(t){var e=t;if(s in t)e=t[s]();else if(!isNaN(t.length)){var r=-1;e=function n(){for(;++r<t.length;)if(r in t)return n.value=t[r],n.done=!1,n;return n.done=!0,n},e.next=e}return e}var s="function"==typeof Symbol&&Symbol.iterator||"@@iterator",c=t.regeneratorRuntime=r,f=Object.prototype.hasOwnProperty,l=c.wrap=function(t,e,r,o){return new n(t,e,r||null,o||[])},p="suspendedStart",h="suspendedYield",y="executing",d="completed",v={},b=function(){},m=b.prototype=n.prototype;(b.constructor=e).prototype=m.constructor=b,c.isGeneratorFunction=function(t){var r=t&&t.constructor;return r?e.name===r.name:!1},c.mark=function(t){return t.__proto__=b,t.prototype=Object.create(m),t},c.async=function(t,e,r,n){return new Promise(function(o,i){function a(t){var e,r;try{e=this(t),r=e.value}catch(n){return i(n)}e.done?o(r):Promise.resolve(r).then(s,c)}var u=l(t,e,r,n),s=a.bind(u.next),c=a.bind(u["throw"]);s()})},m[s]=function(){return this},m.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var r in t)e.push(r);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}},c.values=u,a.prototype={constructor:a,reset:function(){this.prev=0,this.next=0,this.sent=void 0,this.done=!1,this.delegate=null,this.tryEntries.forEach(i);for(var t,e=0;f.call(this,t="t"+e)||20>e;++e)this[t]=null},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=f.call(o,"catchLoc"),u=f.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},_findFinallyEntry:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&(r.finallyLoc===t||this.prev<r.finallyLoc))return r}},abrupt:function(t,e){var r=this._findFinallyEntry(),n=r?r.completion:{};return n.type=t,n.arg=e,r?this.next=r.finallyLoc:this.complete(n),v},complete:function(t){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type&&(this.rval=t.arg,this.next="end"),v},finish:function(t){var e=this._findFinallyEntry(t);return this.complete(e.completion)},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,o=r.completion;return"throw"===o.type&&(n=o.arg,i(r,e)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:u(t),resultName:e,nextLoc:r},v}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e){function r(){}var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var n=[];if(e){var o=document.createElement("div"),i=new MutationObserver(function(){var t=n.slice();n.length=0,t.forEach(function(t){t()})});return i.observe(o,{attributes:!0}),function(t){n.length||o.setAttribute("yes","no"),n.push(t)}}return r?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}],4:[function(e,r,n){(function(e){!function(e,o){"function"==typeof t&&t.amd?t(o):"object"==typeof n?r.exports=o():e.returnExports=o()}(this,function(){"use strict";var t,r=function(t){try{t()}catch(e){return!1}return!0},n=function(t,e){try{var r=function(){t.apply(this,arguments)};return r.__proto__?(Object.setPrototypeOf(r,t),r.prototype=Object.create(t.prototype,{constructor:{value:t}}),e(r)):!1}catch(n){return!1}},o=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}},i=function(){var t=!1;if(String.prototype.startsWith)try{"/a/".startsWith(/a/)}catch(e){t=!0}return t},a=new Function("return this;"),u=a(),s=u.isFinite,c=!!Object.defineProperty&&o(),f=i(),l=(Array.prototype.slice,String.prototype.indexOf),p=Object.prototype.toString,h=Object.prototype.hasOwnProperty,y=function(t,e,r,n){!n&&e in t||(c?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r}):t[e]=r)},d=function(t,e){Object.keys(e).forEach(function(r){var n=e[r];y(t,r,n,!1)})},v=Object.create||function(t,e){function r(){}r.prototype=t;var n=new r;return"undefined"!=typeof e&&d(n,e),n},b="function"==typeof Symbol&&Symbol.iterator||"_es6-shim iterator_";u.Set&&"function"==typeof(new u.Set)["@@iterator"]&&(b="@@iterator");var m=function(t,e){e||(e=function(){return this});var r={};r[b]=e,d(t,r),t[b]||"symbol"!=typeof b||(t[b]=e)},g=function(t){var e=p.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===p.call(t.callee)),r},w=function(t){if(!j.TypeIsObject(t))throw new TypeError("bad object");return t._es6construct||(t.constructor&&j.IsCallable(t.constructor["@@create"])&&(t=t.constructor["@@create"](t)),d(t,{_es6construct:!0})),t},j={CheckObjectCoercible:function(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},TypeIsObject:function(t){return null!=t&&Object(t)===t},ToObject:function(t,e){return Object(j.CheckObjectCoercible(t,e))},IsCallable:function(t){return"function"==typeof t&&"[object Function]"===p.call(t)},ToInt32:function(t){return t>>0},ToUint32:function(t){return t>>>0},ToInteger:function(t){var e=+t;return Number.isNaN(e)?0:0!==e&&Number.isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e},ToLength:function(t){var e=j.ToInteger(t);return 0>=e?0:e>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e},SameValue:function(t,e){return t===e?0===t?1/t===1/e:!0:Number.isNaN(t)&&Number.isNaN(e)},SameValueZero:function(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)},IsIterable:function(t){return j.TypeIsObject(t)&&("undefined"!=typeof t[b]||g(t))},GetIterator:function(e){if(g(e))return new t(e,"value");var r=e[b];if(!j.IsCallable(r))throw new TypeError("value is not an iterable");var n=r.call(e);if(!j.TypeIsObject(n))throw new TypeError("bad iterator");return n},IteratorNext:function(t){var e=arguments.length>1?t.next(arguments[1]):t.next();if(!j.TypeIsObject(e))throw new TypeError("bad iterator");return e},Construct:function(t,e){var r;r=j.IsCallable(t["@@create"])?t["@@create"]():v(t.prototype||null),d(r,{_es6construct:!0});var n=t.apply(r,e);return j.TypeIsObject(n)?n:r}},O=function(){function t(t){var e=Math.floor(t),r=t-e;return.5>r?e:r>.5?e+1:e%2?e+1:e}function e(e,r,n){var o,i,a,u,s,c,f,l=(1<<r-1)-1;for(e!==e?(i=(1<<r)-1,a=Math.pow(2,n-1),o=0):1/0===e||e===-1/0?(i=(1<<r)-1,a=0,o=0>e?1:0):0===e?(i=0,a=0,o=1/e===-1/0?1:0):(o=0>e,e=Math.abs(e),e>=Math.pow(2,1-l)?(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023),a=t(e/Math.pow(2,i)*Math.pow(2,n)),a/Math.pow(2,n)>=2&&(i+=1,a=1),i>l?(i=(1<<r)-1,a=0):(i+=l,a-=Math.pow(2,n))):(i=0,a=t(e/Math.pow(2,1-l-n)))),s=[],u=n;u;u-=1)s.push(a%2?1:0),a=Math.floor(a/2);for(u=r;u;u-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(s.push(o?1:0),s.reverse(),c=s.join(""),f=[];c.length;)f.push(parseInt(c.slice(0,8),2)),c=c.slice(8);return f}function r(t,e,r){var n,o,i,a,u,s,c,f,l=[];for(n=t.length;n;n-=1)for(i=t[n-1],o=8;o;o-=1)l.push(i%2?1:0),i>>=1;return l.reverse(),a=l.join(""),u=(1<<e-1)-1,s=parseInt(a.slice(0,1),2)?-1:1,c=parseInt(a.slice(1,1+e),2),f=parseInt(a.slice(1+e),2),c===(1<<e)-1?0!==f?0/0:1/0*s:c>0?s*Math.pow(2,c-u)*(1+f/Math.pow(2,r)):0!==f?s*Math.pow(2,-(u-1))*(f/Math.pow(2,r)):0>s?-0:0}function n(t){return r(t,8,23)}function o(t){return e(t,8,23)}var i={toFloat32:function(t){return n(o(t))}};if("undefined"!=typeof Float32Array){var a=new Float32Array(1);i.toFloat32=function(t){return a[0]=t,a[0]}}return i}();if(d(String,{fromCodePoint:function(){for(var t,e=[],r=0,n=arguments.length;n>r;r++){if(t=Number(arguments[r]),!j.SameValue(t,j.ToInteger(t))||0>t||t>1114111)throw new RangeError("Invalid code point "+t);65536>t?e.push(String.fromCharCode(t)):(t-=65536,e.push(String.fromCharCode((t>>10)+55296)),e.push(String.fromCharCode(t%1024+56320)))}return e.join("")},raw:function(t){var e=j.ToObject(t,"bad callSite"),r=e.raw,n=j.ToObject(r,"bad raw value"),o=n.length,i=j.ToLength(o);if(0>=i)return"";for(var a,u,s,c,f=[],l=0;i>l&&(a=String(l),u=n[a],s=String(u),f.push(s),!(l+1>=i));)u=l+1<arguments.length?arguments[l+1]:"",c=String(u),f.push(c),l++;return f.join("")}}),1!==String.fromCodePoint.length){var _=String.fromCodePoint;y(String,"fromCodePoint",function(){return _.apply(this,arguments)},!0)}var x={repeat:function(){var t=function(e,r){if(1>r)return"";if(r%2)return t(e,r-1)+e;var n=t(e,r/2);return n+n};return function(e){var r=String(j.CheckObjectCoercible(this));if(e=j.ToInteger(e),0>e||1/0===e)throw new RangeError("Invalid String#repeat value");return t(r,e)}}(),startsWith:function(t){var e=String(j.CheckObjectCoercible(this));if("[object RegExp]"===p.call(t))throw new TypeError('Cannot call method "startsWith" with a regex');t=String(t);var r=arguments.length>1?arguments[1]:void 0,n=Math.max(j.ToInteger(r),0);return e.slice(n,n+t.length)===t},endsWith:function(t){var e=String(j.CheckObjectCoercible(this));if("[object RegExp]"===p.call(t))throw new TypeError('Cannot call method "endsWith" with a regex');t=String(t);var r=e.length,n=arguments.length>1?arguments[1]:void 0,o="undefined"==typeof n?r:j.ToInteger(n),i=Math.min(Math.max(o,0),r);return e.slice(i-t.length,i)===t},includes:function(t){var e=arguments.length>1?arguments[1]:void 0;return-1!==l.call(this,t,e)},codePointAt:function(t){var e=String(j.CheckObjectCoercible(this)),r=j.ToInteger(t),n=e.length;if(!(0>r||r>=n)){var o=e.charCodeAt(r),i=r+1===n;if(55296>o||o>56319||i)return o;var a=e.charCodeAt(r+1);return 56320>a||a>57343?o:1024*(o-55296)+(a-56320)+65536}}};d(String.prototype,x);var S=1!==" ".trim().length;if(S){{String.prototype.trim}delete String.prototype.trim;var E=[" \n\f\r "," \u2028","\u2029"].join(""),T=new RegExp("(^["+E+"]+)|(["+E+"]+$)","g");d(String.prototype,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(T,"")}})}var M=function(t){this._s=String(j.CheckObjectCoercible(t)),this._i=0};M.prototype.next=function(){var t=this._s,e=this._i;if("undefined"==typeof t||e>=t.length)return this._s=void 0,{value:void 0,done:!0};var r,n,o=t.charCodeAt(e);return 55296>o||o>56319||e+1==t.length?n=1:(r=t.charCodeAt(e+1),n=56320>r||r>57343?1:2),this._i=e+n,{value:t.substr(e,n),done:!1}},m(M.prototype),m(String.prototype,function(){return new M(this)}),f||(String.prototype.startsWith=x.startsWith,String.prototype.endsWith=x.endsWith);var I={from:function(t){var e=arguments.length>1?arguments[1]:void 0,r=j.ToObject(t,"bad iterable");if("undefined"!=typeof e&&!j.IsCallable(e))throw new TypeError("Array.from: when provided, the second argument must be a function");var n,o,i,a,u=arguments.length>2,s=u?arguments[2]:void 0,c=j.IsIterable(r);if(c){i=0,o=j.IsCallable(this)?Object(new this):[];var f,l=c?j.GetIterator(r):null;do f=j.IteratorNext(l),f.done||(a=f.value,o[i]=e?u?e.call(s,a,i):e(a,i):a,i+=1);while(!f.done);n=i}else for(n=j.ToLength(r.length),o=j.IsCallable(this)?Object(new this(n)):new Array(n),i=0;n>i;++i)a=r[i],o[i]=e?u?e.call(s,a,i):e(a,i):a;return o.length=n,o},of:function(){return Array.from(arguments)}};d(Array,I);var N=function(){try{return 0===Array.from({length:-1}).length}catch(t){return!1}};N()||y(Array,"from",I.from,!0),t=function(t,e){this.i=0,this.array=t,this.kind=e},d(t.prototype,{next:function(){var e=this.i,r=this.array;if(!(this instanceof t))throw new TypeError("Not an ArrayIterator");if("undefined"!=typeof r)for(var n=j.ToLength(r.length);n>e;e++){var o,i=this.kind;return"key"===i?o=e:"value"===i?o=r[e]:"entry"===i&&(o=[e,r[e]]),this.i=e+1,{value:o,done:!1}}return this.array=void 0,{value:void 0,done:!0}}}),m(t.prototype);var k={copyWithin:function(t,e){var r=arguments[2],n=j.ToObject(this),o=j.ToLength(n.length);t=j.ToInteger(t),e=j.ToInteger(e);var i=0>t?Math.max(o+t,0):Math.min(t,o),a=0>e?Math.max(o+e,0):Math.min(e,o);r="undefined"==typeof r?o:j.ToInteger(r);var u=0>r?Math.max(o+r,0):Math.min(r,o),s=Math.min(u-a,o-i),c=1;for(i>a&&a+s>i&&(c=-1,a+=s-1,i+=s-1);s>0;)h.call(n,a)?n[i]=n[a]:delete n[a],a+=c,i+=c,s-=1;return n},fill:function(t){var e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=j.ToObject(this),o=j.ToLength(n.length);e=j.ToInteger("undefined"==typeof e?0:e),r=j.ToInteger("undefined"==typeof r?o:r);for(var i=0>e?Math.max(o+e,0):Math.min(e,o),a=0>r?o+r:r,u=i;o>u&&a>u;++u)n[u]=t;return n},find:function(t){var e=j.ToObject(this),r=j.ToLength(e.length);if(!j.IsCallable(t))throw new TypeError("Array#find: predicate must be a function");for(var n,o=arguments.length>1?arguments[1]:null,i=0;r>i;i++)if(n=e[i],o){if(t.call(o,n,i,e))return n}else if(t(n,i,e))return n},findIndex:function(t){var e=j.ToObject(this),r=j.ToLength(e.length);if(!j.IsCallable(t))throw new TypeError("Array#findIndex: predicate must be a function");for(var n=arguments.length>1?arguments[1]:null,o=0;r>o;o++)if(n){if(t.call(n,e[o],o,e))return o}else if(t(e[o],o,e))return o;return-1},keys:function(){return new t(this,"key")},values:function(){return new t(this,"value")},entries:function(){return new t(this,"entry")}};Array.prototype.keys&&!j.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!j.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[b]&&d(Array.prototype,{values:Array.prototype[b]}),d(Array.prototype,k),m(Array.prototype,function(){return this.values()}),Object.getPrototypeOf&&m(Object.getPrototypeOf([].values()));var P=Math.pow(2,53)-1;d(Number,{MAX_SAFE_INTEGER:P,MIN_SAFE_INTEGER:-P,EPSILON:2.220446049250313e-16,parseInt:u.parseInt,parseFloat:u.parseFloat,isFinite:function(t){return"number"==typeof t&&s(t)},isInteger:function(t){return Number.isFinite(t)&&j.ToInteger(t)===t},isSafeInteger:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER},isNaN:function(t){return t!==t}}),[,1].find(function(t,e){return 0===e})||y(Array.prototype,"find",k.find,!0),0!==[,1].findIndex(function(t,e){return 0===e})&&y(Array.prototype,"findIndex",k.findIndex,!0),c&&(d(Object,{getPropertyDescriptor:function(t,e){for(var r=Object.getOwnPropertyDescriptor(t,e),n=Object.getPrototypeOf(t);"undefined"==typeof r&&null!==n;)r=Object.getOwnPropertyDescriptor(n,e),n=Object.getPrototypeOf(n);return r},getPropertyNames:function(t){for(var e=Object.getOwnPropertyNames(t),r=Object.getPrototypeOf(t),n=function(t){-1===e.indexOf(t)&&e.push(t)};null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}}),d(Object,{assign:function(t){if(!j.TypeIsObject(t))throw new TypeError("target must be an object");return Array.prototype.reduce.call(arguments,function(t,e){return Object.keys(Object(e)).reduce(function(t,r){return t[r]=e[r],t},t)})},is:function(t,e){return j.SameValue(t,e)},setPrototypeOf:function(t,e){var r,n=function(t,e){if(!j.TypeIsObject(t))throw new TypeError("cannot set prototype on a non-object");if(null!==e&&!j.TypeIsObject(e))throw new TypeError("can only set prototype to an object or null"+e)},o=function(t,e){return n(t,e),r.call(t,e),t};try{r=t.getOwnPropertyDescriptor(t.prototype,e).set,r.call({},null)}catch(i){if(t.prototype!=={}[e])return;r=function(t){this[e]=t},o.polyfill=o(o({},null),t.prototype)instanceof t}return o}(Object,"__proto__")})),Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&!function(){var t=Object.create(null),e=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=e(r);return n===t?null:n},Object.setPrototypeOf=function(e,n){return null===n&&(n=t),r(e,n)},Object.setPrototypeOf.polyfill=!1}();try{Object.keys("foo")}catch(C){var A=Object.keys;Object.keys=function(t){return A(j.ToObject(t))}}var L={acosh:function(t){return t=Number(t),Number.isNaN(t)||1>t?0/0:1===t?0:1/0===t?t:Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return t=Number(t),0!==t&&s(t)?0>t?-Math.asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t},atanh:function(t){return t=Number(t),Number.isNaN(t)||-1>t||t>1?0/0:-1===t?-1/0:1===t?1/0:0===t?t:.5*Math.log((1+t)/(1-t))},cbrt:function(t){if(t=Number(t),0===t)return t;var e,r=0>t;return r&&(t=-t),e=Math.pow(t,1/3),r?-e:e},clz32:function(t){t=Number(t);var e=j.ToUint32(t);return 0===e?32:32-e.toString(2).length},cosh:function(t){return t=Number(t),0===t?1:Number.isNaN(t)?0/0:s(t)?(0>t&&(t=-t),t>21?Math.exp(t)/2:(Math.exp(t)+Math.exp(-t))/2):1/0},expm1:function(t){return t=Number(t),t===-1/0?-1:s(t)&&0!==t?Math.exp(t)-1:t},hypot:function(){var t=!1,e=!0,r=!1,n=[];if(Array.prototype.every.call(arguments,function(o){var i=Number(o);return Number.isNaN(i)?t=!0:1/0===i||i===-1/0?r=!0:0!==i&&(e=!1),r?!1:(t||n.push(Math.abs(i)),!0)}),r)return 1/0;if(t)return 0/0;if(e)return 0;n.sort(function(t,e){return e-t});var o=n[0],i=n.map(function(t){return t/o}),a=i.reduce(function(t,e){return t+=e*e},0);return o*Math.sqrt(a)},log2:function(t){return Math.log(t)*Math.LOG2E},log10:function(t){return Math.log(t)*Math.LOG10E},log1p:function(t){if(t=Number(t),-1>t||Number.isNaN(t))return 0/0;if(0===t||1/0===t)return t;if(-1===t)return-1/0;var e=0,r=50;if(0>t||t>1)return Math.log(1+t);for(var n=1;r>n;n++)n%2===0?e-=Math.pow(t,n)/n:e+=Math.pow(t,n)/n;return e},sign:function(t){var e=+t;return 0===e?e:Number.isNaN(e)?e:0>e?-1:1},sinh:function(t){return t=Number(t),s(t)&&0!==t?(Math.exp(t)-Math.exp(-t))/2:t},tanh:function(t){return t=Number(t),Number.isNaN(t)||0===t?t:1/0===t?1:t===-1/0?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))},trunc:function(t){var e=Number(t);return 0>e?-Math.floor(-e):Math.floor(e)},imul:function(t,e){t=j.ToUint32(t),e=j.ToUint32(e);var r=t>>>16&65535,n=65535&t,o=e>>>16&65535,i=65535&e;return n*i+(r*i+n*o<<16>>>0)|0},fround:function(t){if(0===t||1/0===t||t===-1/0||Number.isNaN(t))return t;var e=Number(t);return O.toFloat32(e)}};d(Math,L),-5!==Math.imul(4294967295,5)&&(Math.imul=L.imul);var R=function(){var t,r;j.IsPromise=function(t){return j.TypeIsObject(t)&&t._promiseConstructor?"undefined"==typeof t._status?!1:!0:!1};var n,o=function(t){if(!j.IsCallable(t))throw new TypeError("bad promise constructor");var e=this,r=function(t,r){e.resolve=t,e.reject=r};if(e.promise=j.Construct(t,[r]),!e.promise._es6construct)throw new TypeError("bad promise constructor");if(!j.IsCallable(e.resolve)||!j.IsCallable(e.reject))throw new TypeError("bad promise constructor")},i=u.setTimeout;"undefined"!=typeof window&&j.IsCallable(window.postMessage)&&(n=function(){var t=[],e="zero-timeout-message",r=function(r){t.push(r),window.postMessage(e,"*")},n=function(r){if(r.source==window&&r.data==e){if(r.stopPropagation(),0===t.length)return;var n=t.shift();n()}};return window.addEventListener("message",n,!0),r});var a=function(){var t=u.Promise;return t&&t.resolve&&function(e){return t.resolve().then(e)}},s=j.IsCallable(u.setImmediate)?u.setImmediate.bind(u):"object"==typeof e&&e.nextTick?e.nextTick:a()||(j.IsCallable(n)?n():function(t){i(t,0)}),c=function(t,e){t.forEach(function(t){s(function(){var r=t.handler,n=t.capability,o=n.resolve,i=n.reject;try{var a=r(e);if(a===n.promise)throw new TypeError("self resolution");var u=f(a,n);u||o(a)}catch(s){i(s)}})})},f=function(t,e){if(!j.TypeIsObject(t))return!1;var r=e.resolve,n=e.reject;try{var o=t.then;if(!j.IsCallable(o))return!1;o.call(t,r,n)}catch(i){n(i)}return!0},l=function(t,e,r){return function(n){if(n===t)return r(new TypeError("self resolution"));var i=t._promiseConstructor,a=new o(i),u=f(n,a);return u?a.promise.then(e,r):e(n)}};t=function(t){var e=this;if(e=w(e),!e._promiseConstructor)throw new TypeError("bad promise");if("undefined"!=typeof e._status)throw new TypeError("promise already initialized");if(!j.IsCallable(t))throw new TypeError("not a valid resolver");e._status="unresolved",e._resolveReactions=[],e._rejectReactions=[];var r=function(t){if("unresolved"===e._status){var r=e._resolveReactions;e._result=t,e._resolveReactions=void 0,e._rejectReactions=void 0,e._status="has-resolution",c(r,t)}},n=function(t){if("unresolved"===e._status){var r=e._rejectReactions;e._result=t,e._resolveReactions=void 0,e._rejectReactions=void 0,e._status="has-rejection",c(r,t)}};try{t(r,n)}catch(o){n(o)}return e},r=t.prototype,d(t,{"@@create":function(t){var e=this,n=e.prototype||r;return t=t||v(n),d(t,{_status:void 0,_result:void 0,_resolveReactions:void 0,_rejectReactions:void 0,_promiseConstructor:void 0}),t._promiseConstructor=e,t}});var p=function(t,e,r,n){var o=!1;return function(i){if(!o&&(o=!0,e[t]=i,0===--n.count)){var a=r.resolve;a(e)}}};return t.all=function(t){var e=this,r=new o(e),n=r.resolve,i=r.reject;try{if(!j.IsIterable(t))throw new TypeError("bad iterable");for(var a=j.GetIterator(t),u=[],s={count:1},c=0;;c++){var f=j.IteratorNext(a);if(f.done)break;var l=e.resolve(f.value),h=p(c,u,r,s);s.count++,l.then(h,r.reject)}0===--s.count&&n(u)}catch(y){i(y)}return r.promise},t.race=function(t){var e=this,r=new o(e),n=r.resolve,i=r.reject;try{if(!j.IsIterable(t))throw new TypeError("bad iterable");for(var a=j.GetIterator(t);;){var u=j.IteratorNext(a);if(u.done)break;var s=e.resolve(u.value);s.then(n,i)}}catch(c){i(c)}return r.promise},t.reject=function(t){var e=this,r=new o(e),n=r.reject;return n(t),r.promise},t.resolve=function(t){var e=this;if(j.IsPromise(t)){var r=t._promiseConstructor;if(r===e)return t}var n=new o(e),i=n.resolve;return i(t),n.promise},t.prototype["catch"]=function(t){return this.then(void 0,t)},t.prototype.then=function(t,e){var r=this;if(!j.IsPromise(r))throw new TypeError("not a promise");var n=this.constructor,i=new o(n);j.IsCallable(e)||(e=function(t){throw t}),j.IsCallable(t)||(t=function(t){return t});var a=l(r,t,e),u={capability:i,handler:a},s={capability:i,handler:e};switch(r._status){case"unresolved":r._resolveReactions.push(u),r._rejectReactions.push(s);break;case"has-resolution":c([u],r._result);break;case"has-rejection":c([s],r._result);break;default:throw new TypeError("unexpected")}return i.promise},t}();u.Promise&&(delete u.Promise.accept,delete u.Promise.defer,delete u.Promise.prototype.chain),d(u,{Promise:R});var z=n(u.Promise,function(t){return t.resolve(42)instanceof t}),F=function(){try{return u.Promise.reject(42).then(null,5).then(null,function(){}),!0}catch(t){return!1}}(),D=function(){try{Promise.call(3,function(){})}catch(t){return!0}return!1}();z&&F&&D||(u.Promise=R);var G=function(t){var e=Object.keys(t.reduce(function(t,e){return t[e]=!0,t},{}));return t.join(":")===e.join(":")},W=G(["z","a","bb"]),V=G(["z",1,"a","3",2]);if(c){var q=function(t){if(!W)return null;var e=typeof t;return"string"===e?"$"+t:"number"===e?V?t:"n"+t:null},U=function(){return Object.create?Object.create(null):{}},Z={Map:function(){function t(t,e){this.key=t,this.value=e,this.next=null,this.prev=null}function e(t,e){this.head=t._head,this.i=this.head,this.kind=e}function r(e){var r=this;if(!j.TypeIsObject(r))throw new TypeError("Map does not accept arguments when called as a function");if(r=w(r),!r._es6map)throw new TypeError("bad map");var n=new t(null,null);if(n.next=n.prev=n,d(r,{_head:n,_storage:U(),_size:0}),"undefined"!=typeof e&&null!==e){var o=j.GetIterator(e),i=r.set;if(!j.IsCallable(i))throw new TypeError("bad map");for(;;){var a=j.IteratorNext(o);if(a.done)break;var u=a.value;if(!j.TypeIsObject(u))throw new TypeError("expected iterable of pairs");i.call(r,u[0],u[1])}}return r}var n={};t.prototype.isRemoved=function(){return this.key===n},e.prototype={next:function(){var t,e=this.i,r=this.kind,n=this.head;if("undefined"==typeof this.i)return{value:void 0,done:!0};for(;e.isRemoved()&&e!==n;)e=e.prev;for(;e.next!==n;)if(e=e.next,!e.isRemoved())return t="key"===r?e.key:"value"===r?e.value:[e.key,e.value],this.i=e,{value:t,done:!1};return this.i=void 0,{value:void 0,done:!0}}},m(e.prototype);var o=r.prototype;return d(r,{"@@create":function(t){var e=this,r=e.prototype||o;return t=t||v(r),d(t,{_es6map:!0}),t}}),Object.defineProperty(r.prototype,"size",{configurable:!0,enumerable:!1,get:function(){if("undefined"==typeof this._size)throw new TypeError("size method called on incompatible Map");return this._size}}),d(r.prototype,{get:function(t){var e=q(t);if(null!==e){var r=this._storage[e];return r?r.value:void 0}for(var n=this._head,o=n;(o=o.next)!==n;)if(j.SameValueZero(o.key,t))return o.value},has:function(t){var e=q(t);if(null!==e)return"undefined"!=typeof this._storage[e];for(var r=this._head,n=r;(n=n.next)!==r;)if(j.SameValueZero(n.key,t))return!0;return!1},set:function(e,r){var n,o=this._head,i=o,a=q(e);if(null!==a){if("undefined"!=typeof this._storage[a])return this._storage[a].value=r,this;n=this._storage[a]=new t(e,r),i=o.prev}for(;(i=i.next)!==o;)if(j.SameValueZero(i.key,e))return i.value=r,this;return n=n||new t(e,r),j.SameValue(-0,e)&&(n.key=0),n.next=this._head,n.prev=this._head.prev,n.prev.next=n,n.next.prev=n,this._size+=1,this},"delete":function(t){var e=this._head,r=e,o=q(t);if(null!==o){if("undefined"==typeof this._storage[o])return!1;r=this._storage[o].prev,delete this._storage[o]}for(;(r=r.next)!==e;)if(j.SameValueZero(r.key,t))return r.key=r.value=n,r.prev.next=r.next,r.next.prev=r.prev,this._size-=1,!0;return!1},clear:function(){this._size=0,this._storage=U();for(var t=this._head,e=t,r=e.next;(e=r)!==t;)e.key=e.value=n,r=e.next,e.next=e.prev=t;t.next=t.prev=t},keys:function(){return new e(this,"key")},values:function(){return new e(this,"value")},entries:function(){return new e(this,"key+value")},forEach:function(t){for(var e=arguments.length>1?arguments[1]:null,r=this.entries(),n=r.next();!n.done;n=r.next())e?t.call(e,n.value[1],n.value[0],this):t(n.value[1],n.value[0],this)}}),m(r.prototype,function(){return this.entries()}),r}(),Set:function(){var t=function(t){var e=this;if(!j.TypeIsObject(e))throw new TypeError("Set does not accept arguments when called as a function");if(e=w(e),!e._es6set)throw new TypeError("bad set");if(d(e,{"[[SetData]]":null,_storage:U()}),"undefined"!=typeof t&&null!==t){var r=j.GetIterator(t),n=e.add;if(!j.IsCallable(n))throw new TypeError("bad set");for(;;){var o=j.IteratorNext(r);if(o.done)break;var i=o.value;n.call(e,i)}}return e},e=t.prototype;d(t,{"@@create":function(t){var r=this,n=r.prototype||e;return t=t||v(n),d(t,{_es6set:!0}),t}});var r=function(t){if(!t["[[SetData]]"]){var e=t["[[SetData]]"]=new Z.Map;Object.keys(t._storage).forEach(function(t){t=36===t.charCodeAt(0)?t.slice(1):"n"===t.charAt(0)?+t.slice(1):+t,e.set(t,t)}),t._storage=null}};return Object.defineProperty(t.prototype,"size",{configurable:!0,enumerable:!1,get:function(){if("undefined"==typeof this._storage)throw new TypeError("size method called on incompatible Set");return r(this),this["[[SetData]]"].size}}),d(t.prototype,{has:function(t){var e;return this._storage&&null!==(e=q(t))?!!this._storage[e]:(r(this),this["[[SetData]]"].has(t))},add:function(t){var e;return this._storage&&null!==(e=q(t))?(this._storage[e]=!0,this):(r(this),this["[[SetData]]"].set(t,t),this)},"delete":function(t){var e;if(this._storage&&null!==(e=q(t))){var n=h.call(this._storage,e);return delete this._storage[e]&&n | ||
}return r(this),this["[[SetData]]"]["delete"](t)},clear:function(){return this._storage?void(this._storage=U()):this["[[SetData]]"].clear()},values:function(){return r(this),this["[[SetData]]"].values()},entries:function(){return r(this),this["[[SetData]]"].entries()},forEach:function(t){var e=arguments.length>1?arguments[1]:null,n=this;r(n),this["[[SetData]]"].forEach(function(r,o){e?t.call(e,o,o,n):t(o,o,n)})}}),y(t,"keys",t.values,!0),m(t.prototype,function(){return this.values()}),t}()};d(u,Z),(u.Map||u.Set)&&("function"!=typeof u.Map.prototype.clear||0!==(new u.Set).size||0!==(new u.Map).size||"function"!=typeof u.Map.prototype.keys||"function"!=typeof u.Set.prototype.keys||"function"!=typeof u.Map.prototype.forEach||"function"!=typeof u.Set.prototype.forEach||r(u.Map)||r(u.Set)||!n(u.Map,function(t){var e=new t([]);return e.set(42,42),e instanceof t}))&&(u.Map=Z.Map,u.Set=Z.Set),u.Set.prototype.keys!==u.Set.prototype.values&&y(u.Set.prototype,"keys",u.Set.prototype.values,!0),m(Object.getPrototypeOf((new u.Map).keys())),m(Object.getPrototypeOf((new u.Set).keys()))}return u})}).call(this,e("_process"))},{_process:3}],5:[function(t){"use strict";t("./is-implemented")()||Object.defineProperty(t("es5-ext/global"),"Symbol",{value:t("./polyfill"),configurable:!0,enumerable:!1,writable:!0})},{"./is-implemented":6,"./polyfill":21,"es5-ext/global":8}],6:[function(t,e){"use strict";e.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(e){return!1}return"symbol"==typeof Symbol.iterator?!0:"object"!=typeof Symbol.isConcatSpreadable?!1:"object"!=typeof Symbol.isRegExp?!1:"object"!=typeof Symbol.iterator?!1:"object"!=typeof Symbol.toPrimitive?!1:"object"!=typeof Symbol.toStringTag?!1:"object"!=typeof Symbol.unscopables?!1:!0}},{}],7:[function(t,e){"use strict";var r,n=t("es5-ext/object/assign"),o=t("es5-ext/object/normalize-options"),i=t("es5-ext/object/is-callable"),a=t("es5-ext/string/#/contains");r=e.exports=function(t,e){var r,i,u,s,c;return arguments.length<2||"string"!=typeof t?(s=e,e=t,t=null):s=arguments[2],null==t?(r=u=!0,i=!1):(r=a.call(t,"c"),i=a.call(t,"e"),u=a.call(t,"w")),c={value:e,configurable:r,enumerable:i,writable:u},s?n(o(s),c):c},r.gs=function(t,e,r){var u,s,c,f;return"string"!=typeof t?(c=r,r=e,e=t,t=null):c=arguments[3],null==e?e=void 0:i(e)?null==r?r=void 0:i(r)||(c=r,r=void 0):(c=e,e=r=void 0),null==t?(u=!0,s=!1):(u=a.call(t,"c"),s=a.call(t,"e")),f={get:e,set:r,configurable:u,enumerable:s},c?n(o(c),f):f}},{"es5-ext/object/assign":9,"es5-ext/object/is-callable":12,"es5-ext/object/normalize-options":16,"es5-ext/string/#/contains":18}],8:[function(t,e){"use strict";e.exports=new Function("return this")()},{}],9:[function(t,e){"use strict";e.exports=t("./is-implemented")()?Object.assign:t("./shim")},{"./is-implemented":10,"./shim":11}],10:[function(t,e){"use strict";e.exports=function(){var t,e=Object.assign;return"function"!=typeof e?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},{}],11:[function(t,e){"use strict";var r=t("../keys"),n=t("../valid-value"),o=Math.max;e.exports=function(t,e){var i,a,u,s=o(arguments.length,2);for(t=Object(n(t)),u=function(r){try{t[r]=e[r]}catch(n){i||(i=n)}},a=1;s>a;++a)e=arguments[a],r(e).forEach(u);if(void 0!==i)throw i;return t}},{"../keys":13,"../valid-value":17}],12:[function(t,e){"use strict";e.exports=function(t){return"function"==typeof t}},{}],13:[function(t,e){"use strict";e.exports=t("./is-implemented")()?Object.keys:t("./shim")},{"./is-implemented":14,"./shim":15}],14:[function(t,e){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},{}],15:[function(t,e){"use strict";var r=Object.keys;e.exports=function(t){return r(null==t?t:Object(t))}},{}],16:[function(t,e){"use strict";var r,n=t("./assign"),o=Array.prototype.forEach,i=Object.create,a=Object.getPrototypeOf;r=function(t,e){var o=a(t);return n(o?r(o,e):e,t)},e.exports=function(){var t=i(null);return o.call(arguments,function(e){null!=e&&r(Object(e),t)}),t}},{"./assign":9}],17:[function(t,e){"use strict";e.exports=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t}},{}],18:[function(t,e){"use strict";e.exports=t("./is-implemented")()?String.prototype.contains:t("./shim")},{"./is-implemented":19,"./shim":20}],19:[function(t,e){"use strict";var r="razdwatrzy";e.exports=function(){return"function"!=typeof r.contains?!1:r.contains("dwa")===!0&&r.contains("foo")===!1}},{}],20:[function(t,e){"use strict";var r=String.prototype.indexOf;e.exports=function(t){return r.call(this,t,arguments[1])>-1}},{}],21:[function(t,e){"use strict";var r,n,o=t("d"),i=Object.create,a=Object.defineProperties;r=function(){var t=i(null);return function(e){for(var r=0;t[e+(r||"")];)++r;return e+=r||"",t[e]=!0,"@@"+e}}(),e.exports=n=function(t){var e;if(this instanceof n)throw new TypeError("TypeError: Symbol is not a constructor");return e=i(n.prototype),t=void 0===t?"":String(t),a(e,{__description__:o("",t),__name__:o("",r(t))})},Object.defineProperties(n,{create:o("",n("create")),hasInstance:o("",n("hasInstance")),isConcatSpreadable:o("",n("isConcatSpreadable")),isRegExp:o("",n("isRegExp")),iterator:o("",n("iterator")),toPrimitive:o("",n("toPrimitive")),toStringTag:o("",n("toStringTag")),unscopables:o("",n("unscopables"))}),a(n.prototype,{properToString:o(function(){return"Symbol ("+this.__description__+")"}),toString:o("",function(){return this.__name__})}),Object.defineProperty(n.prototype,n.toPrimitive,o("",function(){throw new TypeError("Conversion of symbol objects is not allowed")})),Object.defineProperty(n.prototype,n.toStringTag,o("c","Symbol"))},{d:7}]},{},[1])},{}],3:[function(){(function(t){!function(t){var e=t.to5Runtime={};e.extends=function(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),t.__proto__=e},e.classProps=function(t,e,r){e&&Object.defineProperties(t,e),r&&Object.defineProperties(t.prototype,r)},e.applyConstructor=function(t,e){var r=Object.create(t.prototype),n=t.apply(r,e);return null==n||"object"!=typeof n&&"function"!=typeof n?r:n},e.taggedTemplateLiteral=function(t,e){return Object.defineProperties(t,{raw:{value:e}})},e.interopRequire=function(t){return t&&(t["default"]||t)},e.toArray=function(t){return Array.isArray(t)?t:Array.from(t)},e.objectSpread=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},e.hasOwn=Object.prototype.hasOwnProperty,e.slice=Array.prototype.slice}("undefined"==typeof t?self:t)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e,r){"use strict";r["default"]=function(t,e){to5Runtime.slice.call(arguments,2);return void 0===e&&(e="baz"),"bar!"}},{}]},{},[1])(1)}); |
@@ -57,9 +57,9 @@ var gulp = require('gulp'); | ||
gulp.task('build', function() { | ||
var name = package.name, | ||
lowerName = name.toLocaleLowerCase(); | ||
var exportName = package.name.replace('-', ''); | ||
var fileName = package.name.toLocaleLowerCase(); | ||
return gulp.src('./index.js') | ||
.pipe(bufferedBrowserify(name)) | ||
.pipe(header(banner, {name: name, version: package.version})) | ||
.pipe(rename(lowerName + '.js')) | ||
.pipe(bufferedBrowserify(exportName)) | ||
.pipe(header(banner, {name: fileName, version: package.version})) | ||
.pipe(rename(fileName + '.js')) | ||
.pipe(gulp.dest('./dist')) | ||
@@ -70,3 +70,3 @@ .pipe(plumber()) | ||
})) | ||
.pipe(rename(lowerName + '.min.js')) | ||
.pipe(rename(fileName + '.min.js')) | ||
.pipe(gulp.dest('./dist')) | ||
@@ -73,0 +73,0 @@ }); |
{ | ||
"name": "es6-kameita", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ /* global YourApp */ | ||
it('foo?',function(){ | ||
assert(YourApp != null); | ||
assert(es6kameita != null); | ||
}); | ||
@@ -14,0 +14,0 @@ it('foo!',function(){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3
-40%7
-50%4
-50%219681
-44.04%26
-7.14%839
-43.92%