cacheability
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,7 @@ | ||
#### 2.0.2 (2018-07-02) | ||
##### Chores | ||
* **dependencies:** Upgrading dependencies. ([485afd8f](https://github.com/bad-batch/cacheability/commit/485afd8fe66827f2afb6ad4c64457ab1123c1694)) | ||
#### 2.0.1 (2018-06-26) | ||
@@ -2,0 +8,0 @@ |
@@ -32,4 +32,3 @@ import "core-js/modules/es6.symbol"; | ||
import "isomorphic-fetch"; | ||
var Cacheability = function () { | ||
export var Cacheability = function () { | ||
function Cacheability() { | ||
@@ -185,5 +184,3 @@ var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
}(); | ||
export { Cacheability as default }; | ||
Cacheability._headerKeys = ["cache-control", "etag"]; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export { default } from "./cacheability"; | ||
export { Cacheability as default } from "./cacheability"; | ||
//# sourceMappingURL=index.js.map |
@@ -162,3 +162,3 @@ "use strict"; | ||
Cacheability._headerKeys = ["cache-control", "etag"]; | ||
exports.default = Cacheability; | ||
exports.Cacheability = Cacheability; | ||
//# sourceMappingURL=index.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.default = cacheability_1.default; | ||
exports.default = cacheability_1.Cacheability; | ||
//# sourceMappingURL=index.js.map |
@@ -20,3 +20,3 @@ import "core-js/modules/es6.symbol"; | ||
import "isomorphic-fetch"; | ||
export default class Cacheability { | ||
export class Cacheability { | ||
constructor(args = {}) { | ||
@@ -23,0 +23,0 @@ const cacheControl = args.cacheControl, |
@@ -1,2 +0,2 @@ | ||
export { default } from "./cacheability"; | ||
export { Cacheability as default } from "./cacheability"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,44 +0,3 @@ | ||
// Generated by dts-bundle v0.7.3 | ||
import "isomorphic-fetch"; | ||
export default class Cacheability { | ||
readonly metadata: Metadata; | ||
constructor(args?: ConstructorArgs); | ||
checkTTL(): boolean; | ||
printCacheControl(): string; | ||
} | ||
export interface ConstructorArgs { | ||
cacheControl?: string; | ||
headers?: Headers | CacheHeaders; | ||
metadata?: Metadata; | ||
} | ||
export interface CacheHeaders { | ||
cacheControl?: string; | ||
etag?: string; | ||
} | ||
export interface CacheControl { | ||
maxAge?: number; | ||
noCache?: boolean; | ||
noStore?: boolean; | ||
sMaxage?: number; | ||
[key: string]: string | number | boolean; | ||
} | ||
export interface Metadata { | ||
cacheControl: CacheControl; | ||
etag?: string; | ||
ttl: number; | ||
} | ||
/** @internal */ | ||
export type HeaderKeys = Array<"cache-control" | "etag">; | ||
/** @internal */ | ||
export interface ParsedCacheHeaders { | ||
cacheControl: CacheControl; | ||
etag?: string; | ||
} | ||
export { Cacheability as default } from "./cacheability"; | ||
export { CacheabilityArgs, CacheControl, Metadata, } from "./types"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Cacheability=e():t.Cacheability=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=51)}([function(t,e,r){var n=r(33)("wks"),o=r(12),i=r(1).Symbol,u="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=n},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(9),o=r(17);t.exports=r(10)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(31),o=r(29);t.exports=function(t){return n(o(t))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(1),o=r(19),i=r(2),u=r(13),a=r(47),f=function(t,e,r){var c,s,l,p,h=t&f.F,d=t&f.G,y=t&f.S,v=t&f.P,b=t&f.B,x=d?n:y?n[e]||(n[e]={}):(n[e]||{}).prototype,m=d?o:o[e]||(o[e]={}),g=m.prototype||(m.prototype={});for(c in d&&(r=e),r)l=((s=!h&&x&&void 0!==x[c])?x:r)[c],p=b&&s?a(l,n):v&&"function"==typeof l?a(Function.call,l):l,x&&u(x,c,l,t&f.U),m[c]!=l&&i(m,c,p),v&&g[c]!=l&&(g[c]=l)};n.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(45),o=r(27);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(18),o=r(49),i=r(34),u=Object.defineProperty;e.f=r(10)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){t.exports=!r(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(1),o=r(2),i=r(7),u=r(12)("src"),a=Function.toString,f=(""+a).split("toString");r(19).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var c="function"==typeof r;c&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(c&&(i(r,u)||o(r,u,t[e]?""+t[e]:f.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(4);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(61),o=r(39)(function(t,e,r){return e=e.toLowerCase(),t+(r?n(e):e)});t.exports=o},function(t,e,r){var n=r(15),o=r(63),i=r(14),u=Function.prototype,a=Object.prototype,f=u.toString,c=a.hasOwnProperty,s=f.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==s}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports={}},function(t,e,r){var n=r(30);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(33)("keys"),o=r(12);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(9).f,o=r(7),i=r(0)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(19),o=r(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(4);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(15),o=r(14);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},function(t,e,r){var n=r(15),o=r(64),i=r(14);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(39)(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()});t.exports=n},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(70),o=r(69),i=r(68),u=RegExp("['’]","g");t.exports=function(t){return function(e){return n(i(o(e).replace(u,"")),t,"")}}},function(t,e,r){"use strict";var n=r(2),o=r(13),i=r(6),u=r(29),a=r(0);t.exports=function(t,e,r){var f=a(t),c=r(u,f,""[t]),s=c[0],l=c[1];i(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,s),n(RegExp.prototype,f,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,r){var n=r(45),o=r(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(18),o=r(95),i=r(27),u=r(28)("IE_PROTO"),a=function(){},f=function(){var t,e=r(48)("iframe"),n=i.length;for(e.style.display="none",r(94).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;n--;)delete f.prototype[i[n]];return f()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[u]=t):r=f(),void 0===e?r:o(r,e)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(43),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(7),o=r(3),i=r(97)(!1),u=r(28)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),f=0,c=[];for(r in a)r!=u&&n(a,r)&&c.push(r);for(;e.length>f;)n(a,r=e[f++])&&(~i(c,r)||c.push(r));return c}},function(t,e,r){e.f=r(0)},function(t,e,r){var n=r(101);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(4),o=r(1).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){t.exports=!r(10)&&!r(6)(function(){return 7!=Object.defineProperty(r(48)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(15),o=r(14);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},function(t,e,r){"use strict";r.r(e),r(102),r(91),r(84),r(83),r(82),r(80),r(75),r(73),r(71);var n=r(37),o=r.n(n),i=r(36),u=r.n(i),a=r(21),f=r.n(a),c=r(35),s=r.n(c),l=r(50),p=r.n(l),h=r(20),d=r.n(h);function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r(53);var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=e.cacheControl,n=e.headers,o=e.metadata;this.metadata=r?t._setMetadata({cacheControl:t._parseCacheControl(r)}):n?t._setMetadata(t._parseHeaders(n)):o?t._validateMetadata(o):t._setDefaultMetadata()}return function(t,e,r){e&&y(t.prototype,e),r&&y(t,r)}(t,[{key:"checkTTL",value:function(){return this.metadata.ttl>Date.now()}},{key:"printCacheControl",value:function(){if(!Object.values(this.metadata.cacheControl).length)return"";var t=Object.assign({},this.metadata.cacheControl);if(t.sMaxage||t.maxAge){var e=this.checkTTL()?Math.round((this.metadata.ttl-Date.now())/1e3):0;t.sMaxage&&(t.sMaxage=e),t.maxAge&&(t.maxAge=e)}var r=[];return Object.keys(t).forEach(function(e){p()(t[e])?r.push(o()(e)):r.push("".concat(o()(e),"=").concat(t[e]))}),r.join(", ")}}],[{key:"_getDirectives",value:function(t){return t.split(", ")}},{key:"_parseCacheControl",value:function(e){var r={};return u()(e)&&e.length?(t._getDirectives(e).forEach(function(t){if(t.match(/=/)){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t.split("="),2),n=e[0],o=e[1];r[d()(n)]=Number(o)}else r[d()(t)]=!0}),r):r}},{key:"_parseHeaders",value:function(e){var r={};return e instanceof Headers?t._headerKeys.forEach(function(t){var n=e.get(t);if(n){var o=d()(t);r[o]=n}}):f()(e)&&(r=e),{cacheControl:t._parseCacheControl(r.cacheControl),etag:r.etag}}},{key:"_setDefaultMetadata",value:function(){return{cacheControl:{},ttl:1/0}}},{key:"_setMetadata",value:function(e){var r=e.cacheControl;return{cacheControl:r,etag:e.etag,ttl:t._setTTL(r)}}},{key:"_setTTL",value:function(t){var e=t.maxAge,r=t.noCache,n=t.noStore,o=t.sMaxage;if(r||n)return 0;var i=o||e;if(!s()(i))return 1/0;var u=1e3*i;return Date.now()+u}},{key:"_validateMetadata",value:function(t){if(!f()(t))return this._setDefaultMetadata();var e=t.cacheControl,r=t.etag,n=t.ttl;return{cacheControl:f()(e)?e:{},etag:u()(r)?r:void 0,ttl:s()(n)?n:1/0}}}]),t}();v._headerKeys=["cache-control","etag"],r.d(e,"default",function(){return v})},function(t,e){!function(t){"use strict";if(!t.fetch){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(t){return t&&DataView.prototype.isPrototypeOf(t)},o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};s.prototype.append=function(t,e){t=a(t),e=f(e);var r=this.map[t];this.map[t]=r?r+","+e:e},s.prototype.delete=function(t){delete this.map[a(t)]},s.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},s.prototype.set=function(t,e){this.map[a(t)]=f(e)},s.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},s.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),c(t)},s.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),c(t)},s.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),c(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var u=[301,302,303,307,308];x.redirect=function(t,e){if(-1===u.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},t.Headers=s,t.Request=v,t.Response=x,t.fetch=function(t,r){return new Promise(function(n,o){var i=new v(t,r),u=new XMLHttpRequest;u.onload=function(){var t={status:u.status,statusText:u.statusText,headers:function(t){var e=new s;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e}(u.getAllResponseHeaders()||"")};t.url="responseURL"in u?u.responseURL:t.headers.get("X-Request-URL");var e="response"in u?u.response:u.responseText;n(new x(e,t))},u.onerror=function(){o(new TypeError("Network request failed"))},u.ontimeout=function(){o(new TypeError("Network request failed"))},u.open(i.method,i.url,!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&e.blob&&(u.responseType="blob"),i.headers.forEach(function(t,e){u.setRequestHeader(e,t)}),u.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function s(t){this.map={},t instanceof s?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function h(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&n(t))this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!o(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=p(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new s(e.headers)),this.method=function(t){var e=t.toUpperCase();return i.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new s(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,e,r){r(52),t.exports=self.fetch.bind(self)},function(t,e){var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+r+"|"+n+")?",f="[\\ufe0e\\ufe0f]?"+a+"(?:\\u200d(?:"+[o,i,u].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",c="(?:"+[o+r+"?",r,i,u,"[\\ud800-\\udfff]"].join("|")+")",s=RegExp(n+"(?="+n+")|"+c+f,"g");t.exports=function(t){return t.match(s)||[]}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e,r){var n=r(55),o=r(38),i=r(54);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},function(t,e,r){var n=r(57);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},function(t,e,r){var n=r(58),o=r(38),i=r(56),u=r(22);t.exports=function(t){return function(e){e=u(e);var r=o(e)?i(e):void 0,a=r?r[0]:e.charAt(0),f=r?n(r,1).join(""):e.slice(1);return a[t]()+f}}},function(t,e,r){var n=r(59)("toUpperCase");t.exports=n},function(t,e,r){var n=r(22),o=r(60);t.exports=function(t){return o(n(t).toLowerCase())}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(62)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+r+"]",o="\\d+",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",u="[^\\ud800-\\udfff"+r+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",s="(?:"+i+"|"+u+")",l="(?:"+c+"|"+u+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+p+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",a,f].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*",d="(?:"+["[\\u2700-\\u27bf]",a,f].join("|")+")"+h,y=RegExp([c+"?"+i+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,c,"$"].join("|")+")",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,c+s,"$"].join("|")+")",c+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,d].join("|"),"g");t.exports=function(t){return t.match(y)||[]}},function(t,e){var r=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return r.test(t)}},function(t,e){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(r)||[]}},function(t,e,r){var n=r(67),o=r(66),i=r(22),u=r(65);t.exports=function(t,e,r){return t=i(t),void 0===(e=r?void 0:e)?o(t)?u(t):n(t):t.match(e)||[]}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(5);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){var n=r(8),o=r(3),i=r(11).f;t.exports=function(t){return function(e){for(var r,u=o(e),a=n(u),f=a.length,c=0,s=[];f>c;)i.call(u,r=a[c++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,e,r){var n=r(5),o=r(72)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,r){"use strict";var n=r(8),o=r(26),i=r(11),u=r(23),a=r(31),f=Object.assign;t.exports=!f||r(6)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=f({},t)[r]||Object.keys(f({},e)).join("")!=n})?function(t,e){for(var r=u(t),f=arguments.length,c=1,s=o.f,l=i.f;f>c;)for(var p,h=a(arguments[c++]),d=s?n(h).concat(s(h)):n(h),y=d.length,v=0;y>v;)l.call(h,p=d[v++])&&(r[p]=h[p]);return r}:f},function(t,e,r){var n=r(5);n(n.S+n.F,"Object",{assign:r(74)})},function(t,e,r){"use strict";var n=r(6);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,r){var n=r(4),o=r(25),i=r(0)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(77);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){var n=r(47),o=r(31),i=r(23),u=r(44),a=r(78);t.exports=function(t,e){var r=1==t,f=2==t,c=3==t,s=4==t,l=6==t,p=5==t||l,h=e||a;return function(e,a,d){for(var y,v,b=i(e),x=o(b),m=n(a,d,3),g=u(x.length),w=0,S=r?h(e,g):f?h(e,0):void 0;g>w;w++)if((p||w in x)&&(v=m(y=x[w],w,b),t))if(r)S[w]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:S.push(y)}else if(s)return!1;return l?-1:c||s?s:S}}},function(t,e,r){"use strict";var n=r(5),o=r(79)(0),i=r(76)([].forEach,!0);n(n.P+n.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,r){var n=r(4),o=r(30),i=r(0)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){r(40)("split",2,function(t,e,n){"use strict";var o=r(81),i=n,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n,f,c,s,l,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,y=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,h+"g");for(a||(n=new RegExp("^"+v.source+"$(?!\\s)",h));(f=v.exec(r))&&!((c=f.index+f[0].length)>d&&(p.push(r.slice(d,f.index)),!a&&f.length>1&&f[0].replace(n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f.length>1&&f.index<r.length&&u.apply(p,f.slice(1)),s=f[0].length,d=c,p.length>=y));)v.lastIndex===f.index&&v.lastIndex++;return d===r.length?!s&&v.test("")||p.push(""):p.push(r.slice(d)),p.length>y?p.slice(0,y):p}}else"0".split(void 0,0).length&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,o){var i=t(this),u=void 0==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,r){r(40)("match",1,function(t,e,r){return[function(r){"use strict";var n=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,n):new RegExp(r)[e](String(n))},r]})},function(t,e,r){var n=r(5);n(n.S,"Array",{isArray:r(25)})},function(t,e,r){var n=r(7),o=r(23),i=r(28)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){"use strict";var n=r(42),o=r(17),i=r(32),u={};r(2)(u,r(0)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){"use strict";var n=r(16),o=r(5),i=r(13),u=r(2),a=r(24),f=r(86),c=r(32),s=r(85),l=r(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,d,y,v,b){f(r,e,d);var x,m,g,w=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",O="values"==y,_=!1,j=t.prototype,E=j[l]||j["@@iterator"]||y&&j[y],T=E||w(y),A=y?O?w("entries"):T:void 0,P="Array"==e&&j.entries||E;if(P&&(g=s(P.call(new t)))!==Object.prototype&&g.next&&(c(g,S,!0),n||"function"==typeof g[l]||u(g,l,h)),O&&E&&"values"!==E.name&&(_=!0,T=function(){return E.call(this)}),n&&!b||!p&&!_&&j[l]||u(j,l,T),a[e]=T,a[S]=h,y)if(x={values:O?T:w("values"),keys:v?T:w("keys"),entries:A},b)for(m in x)m in j||i(j,m,x[m]);else o(o.P+o.F*(p||_),e,x);return x}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(0)("unscopables"),o=Array.prototype;void 0==o[n]&&r(2)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,r){"use strict";var n=r(89),o=r(88),i=r(24),u=r(3);t.exports=r(87)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){for(var n=r(90),o=r(8),i=r(13),u=r(1),a=r(2),f=r(24),c=r(0),s=c("iterator"),l=c("toStringTag"),p=f.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;y<d.length;y++){var v,b=d[y],x=h[b],m=u[b],g=m&&m.prototype;if(g&&(g[s]||a(g,s,p),g[l]||a(g,l,b),f[b]=p,x))for(v in n)g[v]||i(g,v,n[v],!0)}},function(t,e,r){var n=r(11),o=r(17),i=r(3),u=r(34),a=r(7),f=r(49),c=Object.getOwnPropertyDescriptor;e.f=r(10)?c:function(t,e){if(t=i(t),e=u(e,!0),f)try{return c(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(3),o=r(41).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(1).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(9),o=r(18),i=r(8);t.exports=r(10)?Object.defineProperties:function(t,e){o(t);for(var r,u=i(e),a=u.length,f=0;a>f;)n.f(t,r=u[f++],e[r]);return t}},function(t,e,r){var n=r(43),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(3),o=r(44),i=r(96);t.exports=function(t){return function(e,r,u){var a,f=n(e),c=o(f.length),s=i(u,c);if(t&&r!=r){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,e,r){var n=r(8),o=r(26),i=r(11);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var u,a=r(t),f=i.f,c=0;a.length>c;)f.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,r){var n=r(1),o=r(19),i=r(16),u=r(46),a=r(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,r){var n=r(12)("meta"),o=r(4),i=r(7),u=r(9).f,a=0,f=Object.isExtensible||function(){return!0},c=!r(6)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,n,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return c&&l.NEED&&f(t)&&!i(t,n)&&s(t),t}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(1),o=r(7),i=r(10),u=r(5),a=r(13),f=r(100).KEY,c=r(6),s=r(33),l=r(32),p=r(12),h=r(0),d=r(46),y=r(99),v=r(98),b=r(25),x=r(18),m=r(4),g=r(3),w=r(34),S=r(17),O=r(42),_=r(93),j=r(92),E=r(9),T=r(8),A=j.f,P=E.f,C=_.f,L=n.Symbol,M=n.JSON,k=M&&M.stringify,B=h("_hidden"),D=h("toPrimitive"),R={}.propertyIsEnumerable,F=s("symbol-registry"),I=s("symbols"),U=s("op-symbols"),N=Object.prototype,H="function"==typeof L,G=n.QObject,z=!G||!G.prototype||!G.prototype.findChild,V=i&&c(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=A(N,e);n&&delete N[e],P(t,e,r),n&&t!==N&&P(N,e,n)}:P,q=function(t){var e=I[t]=O(L.prototype);return e._k=t,e},Z=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},K=function(t,e,r){return t===N&&K(U,e,r),x(t),e=w(e,!0),x(r),o(I,e)?(r.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),r=O(r,{enumerable:S(0,!1)})):(o(t,B)||P(t,B,S(1,{})),t[B][e]=!0),V(t,e,r)):P(t,e,r)},J=function(t,e){x(t);for(var r,n=v(e=g(e)),o=0,i=n.length;i>o;)K(t,r=n[o++],e[r]);return t},W=function(t){var e=R.call(this,t=w(t,!0));return!(this===N&&o(I,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,B)&&this[B][t])||e)},$=function(t,e){if(t=g(t),e=w(e,!0),t!==N||!o(I,e)||o(U,e)){var r=A(t,e);return!r||!o(I,e)||o(t,B)&&t[B][e]||(r.enumerable=!0),r}},X=function(t){for(var e,r=C(g(t)),n=[],i=0;r.length>i;)o(I,e=r[i++])||e==B||e==f||n.push(e);return n},Y=function(t){for(var e,r=t===N,n=C(r?U:g(t)),i=[],u=0;n.length>u;)!o(I,e=n[u++])||r&&!o(N,e)||i.push(I[e]);return i};H||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===N&&e.call(U,r),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),V(this,t,S(1,r))};return i&&z&&V(N,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),j.f=$,E.f=K,r(41).f=_.f=X,r(11).f=W,r(26).f=Y,i&&!r(16)&&a(N,"propertyIsEnumerable",W,!0),d.f=function(t){return q(h(t))}),u(u.G+u.W+u.F*!H,{Symbol:L});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)h(Q[tt++]);for(var et=T(h.store),rt=0;et.length>rt;)y(et[rt++]);u(u.S+u.F*!H,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!H,"Object",{create:function(t,e){return void 0===e?O(t):J(O(t),e)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&u(u.S+u.F*(!H||c(function(){var t=L();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(m(e)||void 0!==t)&&!Z(t))return b(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Z(e))return e}),n[1]=e,k.apply(M,n)}}),L.prototype[D]||r(2)(L.prototype,D,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Cacheability=e():t.Cacheability=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=102)}([function(t,e,r){var n=r(33)("wks"),o=r(12),i=r(1).Symbol,u="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=n},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(9),o=r(17);t.exports=r(10)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(31),o=r(29);t.exports=function(t){return n(o(t))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(1),o=r(19),i=r(2),u=r(13),a=r(47),f=function(t,e,r){var c,s,l,p,h=t&f.F,d=t&f.G,y=t&f.S,v=t&f.P,b=t&f.B,x=d?n:y?n[e]||(n[e]={}):(n[e]||{}).prototype,m=d?o:o[e]||(o[e]={}),g=m.prototype||(m.prototype={});for(c in d&&(r=e),r)l=((s=!h&&x&&void 0!==x[c])?x:r)[c],p=b&&s?a(l,n):v&&"function"==typeof l?a(Function.call,l):l,x&&u(x,c,l,t&f.U),m[c]!=l&&i(m,c,p),v&&g[c]!=l&&(g[c]=l)};n.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(45),o=r(27);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(18),o=r(49),i=r(34),u=Object.defineProperty;e.f=r(10)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){t.exports=!r(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(1),o=r(2),i=r(7),u=r(12)("src"),a=Function.toString,f=(""+a).split("toString");r(19).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var c="function"==typeof r;c&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(c&&(i(r,u)||o(r,u,t[e]?""+t[e]:f.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(4);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(60),o=r(39)(function(t,e,r){return e=e.toLowerCase(),t+(r?n(e):e)});t.exports=o},function(t,e,r){var n=r(15),o=r(62),i=r(14),u=Function.prototype,a=Object.prototype,f=u.toString,c=a.hasOwnProperty,s=f.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==s}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports={}},function(t,e,r){var n=r(30);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(33)("keys"),o=r(12);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(9).f,o=r(7),i=r(0)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(19),o=r(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(4);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(15),o=r(14);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},function(t,e,r){var n=r(15),o=r(63),i=r(14);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(39)(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()});t.exports=n},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(69),o=r(68),i=r(67),u=RegExp("['’]","g");t.exports=function(t){return function(e){return n(i(o(e).replace(u,"")),t,"")}}},function(t,e,r){"use strict";var n=r(2),o=r(13),i=r(6),u=r(29),a=r(0);t.exports=function(t,e,r){var f=a(t),c=r(u,f,""[t]),s=c[0],l=c[1];i(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,s),n(RegExp.prototype,f,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,r){var n=r(45),o=r(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(18),o=r(94),i=r(27),u=r(28)("IE_PROTO"),a=function(){},f=function(){var t,e=r(48)("iframe"),n=i.length;for(e.style.display="none",r(93).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;n--;)delete f.prototype[i[n]];return f()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[u]=t):r=f(),void 0===e?r:o(r,e)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(43),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(7),o=r(3),i=r(96)(!1),u=r(28)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),f=0,c=[];for(r in a)r!=u&&n(a,r)&&c.push(r);for(;e.length>f;)n(a,r=e[f++])&&(~i(c,r)||c.push(r));return c}},function(t,e,r){e.f=r(0)},function(t,e,r){var n=r(100);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(4),o=r(1).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){t.exports=!r(10)&&!r(6)(function(){return 7!=Object.defineProperty(r(48)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(15),o=r(14);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},function(t,e){!function(t){"use strict";if(!t.fetch){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(t){return t&&DataView.prototype.isPrototypeOf(t)},o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};s.prototype.append=function(t,e){t=a(t),e=f(e);var r=this.map[t];this.map[t]=r?r+","+e:e},s.prototype.delete=function(t){delete this.map[a(t)]},s.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},s.prototype.set=function(t,e){this.map[a(t)]=f(e)},s.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},s.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),c(t)},s.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),c(t)},s.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),c(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var u=[301,302,303,307,308];x.redirect=function(t,e){if(-1===u.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},t.Headers=s,t.Request=v,t.Response=x,t.fetch=function(t,r){return new Promise(function(n,o){var i=new v(t,r),u=new XMLHttpRequest;u.onload=function(){var t={status:u.status,statusText:u.statusText,headers:function(t){var e=new s;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e}(u.getAllResponseHeaders()||"")};t.url="responseURL"in u?u.responseURL:t.headers.get("X-Request-URL");var e="response"in u?u.response:u.responseText;n(new x(e,t))},u.onerror=function(){o(new TypeError("Network request failed"))},u.ontimeout=function(){o(new TypeError("Network request failed"))},u.open(i.method,i.url,!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&e.blob&&(u.responseType="blob"),i.headers.forEach(function(t,e){u.setRequestHeader(e,t)}),u.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function s(t){this.map={},t instanceof s?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function h(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&n(t))this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!o(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=p(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new s(e.headers)),this.method=function(t){var e=t.toUpperCase();return i.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new s(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,e,r){r(51),t.exports=self.fetch.bind(self)},function(t,e){var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+r+"|"+n+")?",f="[\\ufe0e\\ufe0f]?"+a+"(?:\\u200d(?:"+[o,i,u].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",c="(?:"+[o+r+"?",r,i,u,"[\\ud800-\\udfff]"].join("|")+")",s=RegExp(n+"(?="+n+")|"+c+f,"g");t.exports=function(t){return t.match(s)||[]}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e,r){var n=r(54),o=r(38),i=r(53);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},function(t,e,r){var n=r(56);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},function(t,e,r){var n=r(57),o=r(38),i=r(55),u=r(22);t.exports=function(t){return function(e){e=u(e);var r=o(e)?i(e):void 0,a=r?r[0]:e.charAt(0),f=r?n(r,1).join(""):e.slice(1);return a[t]()+f}}},function(t,e,r){var n=r(58)("toUpperCase");t.exports=n},function(t,e,r){var n=r(22),o=r(59);t.exports=function(t){return o(n(t).toLowerCase())}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(61)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+r+"]",o="\\d+",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",u="[^\\ud800-\\udfff"+r+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",s="(?:"+i+"|"+u+")",l="(?:"+c+"|"+u+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+p+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",a,f].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*",d="(?:"+["[\\u2700-\\u27bf]",a,f].join("|")+")"+h,y=RegExp([c+"?"+i+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,c,"$"].join("|")+")",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,c+s,"$"].join("|")+")",c+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,d].join("|"),"g");t.exports=function(t){return t.match(y)||[]}},function(t,e){var r=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return r.test(t)}},function(t,e){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(r)||[]}},function(t,e,r){var n=r(66),o=r(65),i=r(22),u=r(64);t.exports=function(t,e,r){return t=i(t),void 0===(e=r?void 0:e)?o(t)?u(t):n(t):t.match(e)||[]}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(5);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){var n=r(8),o=r(3),i=r(11).f;t.exports=function(t){return function(e){for(var r,u=o(e),a=n(u),f=a.length,c=0,s=[];f>c;)i.call(u,r=a[c++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,e,r){var n=r(5),o=r(71)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,r){"use strict";var n=r(8),o=r(26),i=r(11),u=r(23),a=r(31),f=Object.assign;t.exports=!f||r(6)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=f({},t)[r]||Object.keys(f({},e)).join("")!=n})?function(t,e){for(var r=u(t),f=arguments.length,c=1,s=o.f,l=i.f;f>c;)for(var p,h=a(arguments[c++]),d=s?n(h).concat(s(h)):n(h),y=d.length,v=0;y>v;)l.call(h,p=d[v++])&&(r[p]=h[p]);return r}:f},function(t,e,r){var n=r(5);n(n.S+n.F,"Object",{assign:r(73)})},function(t,e,r){"use strict";var n=r(6);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,r){var n=r(4),o=r(25),i=r(0)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(76);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){var n=r(47),o=r(31),i=r(23),u=r(44),a=r(77);t.exports=function(t,e){var r=1==t,f=2==t,c=3==t,s=4==t,l=6==t,p=5==t||l,h=e||a;return function(e,a,d){for(var y,v,b=i(e),x=o(b),m=n(a,d,3),g=u(x.length),w=0,S=r?h(e,g):f?h(e,0):void 0;g>w;w++)if((p||w in x)&&(v=m(y=x[w],w,b),t))if(r)S[w]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:S.push(y)}else if(s)return!1;return l?-1:c||s?s:S}}},function(t,e,r){"use strict";var n=r(5),o=r(78)(0),i=r(75)([].forEach,!0);n(n.P+n.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,r){var n=r(4),o=r(30),i=r(0)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){r(40)("split",2,function(t,e,n){"use strict";var o=r(80),i=n,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n,f,c,s,l,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,y=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,h+"g");for(a||(n=new RegExp("^"+v.source+"$(?!\\s)",h));(f=v.exec(r))&&!((c=f.index+f[0].length)>d&&(p.push(r.slice(d,f.index)),!a&&f.length>1&&f[0].replace(n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f.length>1&&f.index<r.length&&u.apply(p,f.slice(1)),s=f[0].length,d=c,p.length>=y));)v.lastIndex===f.index&&v.lastIndex++;return d===r.length?!s&&v.test("")||p.push(""):p.push(r.slice(d)),p.length>y?p.slice(0,y):p}}else"0".split(void 0,0).length&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,o){var i=t(this),u=void 0==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,r){r(40)("match",1,function(t,e,r){return[function(r){"use strict";var n=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,n):new RegExp(r)[e](String(n))},r]})},function(t,e,r){var n=r(5);n(n.S,"Array",{isArray:r(25)})},function(t,e,r){var n=r(7),o=r(23),i=r(28)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){"use strict";var n=r(42),o=r(17),i=r(32),u={};r(2)(u,r(0)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){"use strict";var n=r(16),o=r(5),i=r(13),u=r(2),a=r(24),f=r(85),c=r(32),s=r(84),l=r(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,d,y,v,b){f(r,e,d);var x,m,g,w=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",O="values"==y,_=!1,j=t.prototype,E=j[l]||j["@@iterator"]||y&&j[y],T=E||w(y),A=y?O?w("entries"):T:void 0,P="Array"==e&&j.entries||E;if(P&&(g=s(P.call(new t)))!==Object.prototype&&g.next&&(c(g,S,!0),n||"function"==typeof g[l]||u(g,l,h)),O&&E&&"values"!==E.name&&(_=!0,T=function(){return E.call(this)}),n&&!b||!p&&!_&&j[l]||u(j,l,T),a[e]=T,a[S]=h,y)if(x={values:O?T:w("values"),keys:v?T:w("keys"),entries:A},b)for(m in x)m in j||i(j,m,x[m]);else o(o.P+o.F*(p||_),e,x);return x}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(0)("unscopables"),o=Array.prototype;void 0==o[n]&&r(2)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,r){"use strict";var n=r(88),o=r(87),i=r(24),u=r(3);t.exports=r(86)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){for(var n=r(89),o=r(8),i=r(13),u=r(1),a=r(2),f=r(24),c=r(0),s=c("iterator"),l=c("toStringTag"),p=f.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;y<d.length;y++){var v,b=d[y],x=h[b],m=u[b],g=m&&m.prototype;if(g&&(g[s]||a(g,s,p),g[l]||a(g,l,b),f[b]=p,x))for(v in n)g[v]||i(g,v,n[v],!0)}},function(t,e,r){var n=r(11),o=r(17),i=r(3),u=r(34),a=r(7),f=r(49),c=Object.getOwnPropertyDescriptor;e.f=r(10)?c:function(t,e){if(t=i(t),e=u(e,!0),f)try{return c(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(3),o=r(41).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(1).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(9),o=r(18),i=r(8);t.exports=r(10)?Object.defineProperties:function(t,e){o(t);for(var r,u=i(e),a=u.length,f=0;a>f;)n.f(t,r=u[f++],e[r]);return t}},function(t,e,r){var n=r(43),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(3),o=r(44),i=r(95);t.exports=function(t){return function(e,r,u){var a,f=n(e),c=o(f.length),s=i(u,c);if(t&&r!=r){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,e,r){var n=r(8),o=r(26),i=r(11);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var u,a=r(t),f=i.f,c=0;a.length>c;)f.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,r){var n=r(1),o=r(19),i=r(16),u=r(46),a=r(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,r){var n=r(12)("meta"),o=r(4),i=r(7),u=r(9).f,a=0,f=Object.isExtensible||function(){return!0},c=!r(6)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,n,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return c&&l.NEED&&f(t)&&!i(t,n)&&s(t),t}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(1),o=r(7),i=r(10),u=r(5),a=r(13),f=r(99).KEY,c=r(6),s=r(33),l=r(32),p=r(12),h=r(0),d=r(46),y=r(98),v=r(97),b=r(25),x=r(18),m=r(4),g=r(3),w=r(34),S=r(17),O=r(42),_=r(92),j=r(91),E=r(9),T=r(8),A=j.f,P=E.f,C=_.f,L=n.Symbol,M=n.JSON,k=M&&M.stringify,B=h("_hidden"),D=h("toPrimitive"),R={}.propertyIsEnumerable,F=s("symbol-registry"),I=s("symbols"),U=s("op-symbols"),N=Object.prototype,H="function"==typeof L,G=n.QObject,z=!G||!G.prototype||!G.prototype.findChild,V=i&&c(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=A(N,e);n&&delete N[e],P(t,e,r),n&&t!==N&&P(N,e,n)}:P,q=function(t){var e=I[t]=O(L.prototype);return e._k=t,e},Z=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},K=function(t,e,r){return t===N&&K(U,e,r),x(t),e=w(e,!0),x(r),o(I,e)?(r.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),r=O(r,{enumerable:S(0,!1)})):(o(t,B)||P(t,B,S(1,{})),t[B][e]=!0),V(t,e,r)):P(t,e,r)},J=function(t,e){x(t);for(var r,n=v(e=g(e)),o=0,i=n.length;i>o;)K(t,r=n[o++],e[r]);return t},W=function(t){var e=R.call(this,t=w(t,!0));return!(this===N&&o(I,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,B)&&this[B][t])||e)},$=function(t,e){if(t=g(t),e=w(e,!0),t!==N||!o(I,e)||o(U,e)){var r=A(t,e);return!r||!o(I,e)||o(t,B)&&t[B][e]||(r.enumerable=!0),r}},X=function(t){for(var e,r=C(g(t)),n=[],i=0;r.length>i;)o(I,e=r[i++])||e==B||e==f||n.push(e);return n},Y=function(t){for(var e,r=t===N,n=C(r?U:g(t)),i=[],u=0;n.length>u;)!o(I,e=n[u++])||r&&!o(N,e)||i.push(I[e]);return i};H||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===N&&e.call(U,r),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),V(this,t,S(1,r))};return i&&z&&V(N,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),j.f=$,E.f=K,r(41).f=_.f=X,r(11).f=W,r(26).f=Y,i&&!r(16)&&a(N,"propertyIsEnumerable",W,!0),d.f=function(t){return q(h(t))}),u(u.G+u.W+u.F*!H,{Symbol:L});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)h(Q[tt++]);for(var et=T(h.store),rt=0;et.length>rt;)y(et[rt++]);u(u.S+u.F*!H,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!H,"Object",{create:function(t,e){return void 0===e?O(t):J(O(t),e)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&u(u.S+u.F*(!H||c(function(){var t=L();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(m(e)||void 0!==t)&&!Z(t))return b(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Z(e))return e}),n[1]=e,k.apply(M,n)}}),L.prototype[D]||r(2)(L.prototype,D,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){"use strict";r.r(e),r.d(e,"Cacheability",function(){return v}),r(101),r(90),r(83),r(82),r(81),r(79),r(74),r(72),r(70);var n=r(37),o=r.n(n),i=r(36),u=r.n(i),a=r(21),f=r.n(a),c=r(35),s=r.n(c),l=r(50),p=r.n(l),h=r(20),d=r.n(h);function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r(52);var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=e.cacheControl,n=e.headers,o=e.metadata;this.metadata=r?t._setMetadata({cacheControl:t._parseCacheControl(r)}):n?t._setMetadata(t._parseHeaders(n)):o?t._validateMetadata(o):t._setDefaultMetadata()}return function(t,e,r){e&&y(t.prototype,e),r&&y(t,r)}(t,[{key:"checkTTL",value:function(){return this.metadata.ttl>Date.now()}},{key:"printCacheControl",value:function(){if(!Object.values(this.metadata.cacheControl).length)return"";var t=Object.assign({},this.metadata.cacheControl);if(t.sMaxage||t.maxAge){var e=this.checkTTL()?Math.round((this.metadata.ttl-Date.now())/1e3):0;t.sMaxage&&(t.sMaxage=e),t.maxAge&&(t.maxAge=e)}var r=[];return Object.keys(t).forEach(function(e){p()(t[e])?r.push(o()(e)):r.push("".concat(o()(e),"=").concat(t[e]))}),r.join(", ")}}],[{key:"_getDirectives",value:function(t){return t.split(", ")}},{key:"_parseCacheControl",value:function(e){var r={};return u()(e)&&e.length?(t._getDirectives(e).forEach(function(t){if(t.match(/=/)){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t.split("="),2),n=e[0],o=e[1];r[d()(n)]=Number(o)}else r[d()(t)]=!0}),r):r}},{key:"_parseHeaders",value:function(e){var r={};return e instanceof Headers?t._headerKeys.forEach(function(t){var n=e.get(t);if(n){var o=d()(t);r[o]=n}}):f()(e)&&(r=e),{cacheControl:t._parseCacheControl(r.cacheControl),etag:r.etag}}},{key:"_setDefaultMetadata",value:function(){return{cacheControl:{},ttl:1/0}}},{key:"_setMetadata",value:function(e){var r=e.cacheControl;return{cacheControl:r,etag:e.etag,ttl:t._setTTL(r)}}},{key:"_setTTL",value:function(t){var e=t.maxAge,r=t.noCache,n=t.noStore,o=t.sMaxage;if(r||n)return 0;var i=o||e;if(!s()(i))return 1/0;var u=1e3*i;return Date.now()+u}},{key:"_validateMetadata",value:function(t){if(!f()(t))return this._setDefaultMetadata();var e=t.cacheControl,r=t.etag,n=t.ttl;return{cacheControl:f()(e)?e:{},etag:u()(r)?r:void 0,ttl:s()(n)?n:1/0}}}]),t}();v._headerKeys=["cache-control","etag"]}])}); | ||
//# sourceMappingURL=cacheability.js.map |
{ | ||
"name": "cacheability", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A utility class to parse, store and print http cache headers.", | ||
@@ -35,4 +35,4 @@ "author": "Dylan Aubrey <dylanaubrey@gmail.com>", | ||
"compile:module": "cross-env BABEL_ENV=module gulp module", | ||
"compile:types": "gulp types && yarn run dts-bundle && delete-empty \"lib/types\"", | ||
"compile:umd": "cross-env BABEL_ENV=browser gulp umd", | ||
"compile:types": "gulp types", | ||
"compile:umd": "cross-env BABEL_ENV=browser webpack", | ||
"cut-off": "cut-off", | ||
@@ -42,3 +42,2 @@ "cutoff:post-version": "yarn run document", | ||
"document": "gulp document", | ||
"dts-bundle": "dts-bundle --name cacheability --main \"lib/types/**/*.d.ts\" --out \"index.d.ts\" --outputAsModuleFolder --removeSource", | ||
"lint": "yarn run tslint && yarn run markdownLint", | ||
@@ -72,4 +71,4 @@ "markdownLint": "markdownlint README.md", | ||
"@types/lodash": "^4.14.110", | ||
"@types/mocha": "^5.2.3", | ||
"@types/node": "^10.3.6", | ||
"@types/mocha": "^5.2.4", | ||
"@types/node": "^10.5.1", | ||
"awesome-typescript-loader": "^5.2.0", | ||
@@ -81,6 +80,4 @@ "babel-eslint": "^8.2.5", | ||
"cross-env": "^5.2.0", | ||
"cutoff": "^0.0.13", | ||
"cutoff": "^0.0.15", | ||
"del": "^3.0.0", | ||
"delete-empty": "^2.0.0", | ||
"dts-bundle": "^0.7.3", | ||
"eslint": "^5.0.1", | ||
@@ -121,6 +118,6 @@ "eslint-config-airbnb": "^17.0.0", | ||
"uglifyjs-webpack-plugin": "^1.2.7", | ||
"webpack": "^4.12.1", | ||
"webpack": "^4.14.0", | ||
"webpack-bundle-analyzer": "^2.9.1", | ||
"webpack-stream": "^4.0.0" | ||
"webpack-cli": "^3.0.8" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
247144
54
21
612