From 3db8573cd2d6dbc77c8424a321920bb1ef0ae357 Mon Sep 17 00:00:00 2001 From: sktoiva Date: Mon, 2 Dec 2019 14:11:28 +0200 Subject: [PATCH 1/5] Add stripe_account_data/fetch, stripe_account_links/create endpoints --- src/sdk.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/sdk.js b/src/sdk.js index 0600da6a..ab030e72 100644 --- a/src/sdk.js +++ b/src/sdk.js @@ -420,6 +420,20 @@ const endpointDefinitions = [ method: 'post', interceptors: [new TransitResponse(), new TransitRequest()], }, + { + apiName: 'api', + path: 'stripe_account_data/fetch', + internal: false, + method: 'get', + interceptors: [new TransitResponse()], + }, + { + apiName: 'api', + path: 'stripe_account_links/create', + internal: false, + method: 'post', + interceptors: [new TransitResponse(), new TransitRequest()], + }, { apiName: 'api', path: 'stripe_persons/create', From a39eab337bd5d75858f77c97c1b89bba6869965c Mon Sep 17 00:00:00 2001 From: sktoiva Date: Thu, 5 Dec 2019 13:29:14 +0200 Subject: [PATCH 2/5] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bad9b89..36c39656 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] - xxxx-xx-xx +- New endpoints [#100](https://github.com/sharetribe/flex-sdk-js/pull/103) + - `sdk.stripeAccountData.fetch(/* ... */)` + - `sdk.stripeAccountLinks.create(/* ... */)` + ## [v1.5.0] - 2019-08-21 ### Security From d59a91b71d943a5c0f969ba8311e3a56300891a5 Mon Sep 17 00:00:00 2001 From: sktoiva Date: Thu, 5 Dec 2019 13:31:04 +0200 Subject: [PATCH 3/5] Update build files --- build/sharetribe-flex-sdk-node.js | 12 ++++++++++++ build/sharetribe-flex-sdk-web.js | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build/sharetribe-flex-sdk-node.js b/build/sharetribe-flex-sdk-node.js index 4392b9f3..1099b1b9 100644 --- a/build/sharetribe-flex-sdk-node.js +++ b/build/sharetribe-flex-sdk-node.js @@ -3346,6 +3346,18 @@ var endpointDefinitions = [{ internal: false, method: 'post', interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */](), new __WEBPACK_IMPORTED_MODULE_21__interceptors_transit_request__["a" /* default */]()] +}, { + apiName: 'api', + path: 'stripe_account_data/fetch', + internal: false, + method: 'get', + interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */]()] +}, { + apiName: 'api', + path: 'stripe_account_links/create', + internal: false, + method: 'post', + interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */](), new __WEBPACK_IMPORTED_MODULE_21__interceptors_transit_request__["a" /* default */]()] }, { apiName: 'api', path: 'stripe_persons/create', diff --git a/build/sharetribe-flex-sdk-web.js b/build/sharetribe-flex-sdk-web.js index b9aa76a0..38f17cfb 100644 --- a/build/sharetribe-flex-sdk-web.js +++ b/build/sharetribe-flex-sdk-web.js @@ -1,7 +1,7 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sharetribeSdk=e():t.sharetribeSdk=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=77)}([function(t,e,n){"use strict";function r(t){return"[object Array]"===T.call(t)}function o(t){return"[object ArrayBuffer]"===T.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function s(t){return"number"==typeof t}function u(t){return void 0===t}function g(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===T.call(t)}function l(t){return"[object File]"===T.call(t)}function f(t){return"[object Blob]"===T.call(t)}function h(t){return"[object Function]"===T.call(t)}function m(t){return g(t)&&h(t.pipe)}function d(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function y(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function i(t,e){return s(t)||a(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}function s(t){if(Array.isArray(t))return t}function u(t){return l(t)||p(t)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},{enterQueue:u(arguments.length>1?arguments[1]:void 0).reverse(),leaveStack:[]})},b=function(t,e,n){return d(t).then(e[n]||d).catch(function(r){var o=r.ctx||t;return Promise.resolve(h({},o,{error:r,errorMiddleware:e.constructor.name,errorStage:n}))})},v=function(t){var e,n,r=u(t.leaveStack),o=u(t.enterQueue);return t.error?(e=r.shift(),n="error"):o.length?(e=o.pop(),r.unshift(e),n="enter"):(e=r.shift(),n="leave"),[h({},t,{enterQueue:o,leaveStack:r}),e,n]},_=function t(e){var n=v(e),o=i(n,3),c=o[0],a=o[1],s=o[2];if(a)return b(c,a,s).then(t);if(c.error){var u=c.error,g=r(c,["error"]);return u.ctx=g,Promise.reject(u)}return Promise.resolve(c)},w=function(t){return function(e){return _(y(e,t))}};e.a=w},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t,e,n){var r=s(t)?o:a,u=arguments.length<3;return r(t,c(e,4),n,u,i)}var o=n(181),i=n(70),c=n(10),a=n(183),s=n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"UUID",function(){return o}),n.d(e,"LatLng",function(){return i}),n.d(e,"LatLngBounds",function(){return c}),n.d(e,"Money",function(){return a}),n.d(e,"BigDecimal",function(){return s}),n.d(e,"toType",function(){return u}),n.d(e,"replacer",function(){return g}),n.d(e,"reviver",function(){return p});var o=function t(e){r(this,t),this._sdkType=this.constructor._sdkType,this.uuid=e};o._sdkType="UUID";var i=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.lat=e,this.lng=n};i._sdkType="LatLng";var c=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.ne=e,this.sw=n};c._sdkType="LatLngBounds";var a=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.amount=e,this.currency=n};a._sdkType="Money";var s=function t(e){r(this,t),this._sdkType=this.constructor._sdkType,this.value=e};s._sdkType="BigDecimal";var u=function(t){switch(t&&t._sdkType){case"LatLng":return new i(t.lat,t.lng);case"LatLngBounds":return new c(t.ne,t.sw);case"UUID":return new o(t.uuid);case"Money":return new a(t.amount,t.currency);case"BigDecimal":return new s(t.value);default:return t}},g=function(t,e){return e},p=function(t,e){return u(e)}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(36))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==a||e==s||e==c||e==u}var o=n(5),i=n(6),c="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=r},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(40);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(c(t))return i(t,r)+"";if(a(t))return g?g.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}var o=n(7),i=n(28),c=n(1),a=n(14),s=1/0,u=o?o.prototype:void 0,g=u?u.toString:void 0;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(42);t.exports=r},function(t,e,n){var r=n(4),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){function r(t,e){return t&&o(t,e,i)}var o=n(108),i=n(19);t.exports=r},function(t,e,n){(function(t){var r=n(2),o=n(113),i="object"==typeof e&&e&&!e.nodeType&&e,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=c&&c.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,g=u||o;t.exports=g}).call(e,n(45)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(114),o=n(47),i=n(115),c=i&&i.isTypedArray,a=c?o(c):r;t.exports=a},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(16),i=n(121),c=n(122),a=n(123),s=n(124),u=n(125);r.prototype.clear=i,r.prototype.delete=c,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t,e,n,c,a){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,c,r,a))}var o=n(126),i=n(3);t.exports=r},function(t,e,n){function r(t,e,n,r,u,g){var p=n&a,l=t.length,f=e.length;if(l!=f&&!(p&&f>l))return!1;var h=g.get(t);if(h&&g.get(e))return h==e;var m=-1,d=!0,y=n&s?new o:void 0;for(g.set(t,e),g.set(e,t);++m=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){a.headers[t]={}}),o.forEach(["post","put","patch"],function(t){a.headers[t]=o.merge(c)}),t.exports=a}).call(e,n(169))},function(t,e,n){"use strict";var r=n(0),o=n(171),i=n(63),c=n(173),a=n(174),s=n(67);t.exports=function(t){return new Promise(function(e,u){var g=t.data,p=t.headers;r.isFormData(g)&&delete p["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",h=t.auth.password||"";p.Authorization="Basic "+btoa(f+":"+h)}if(l.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?c(l.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?l.response:l.responseText,i={data:r,status:l.status,statusText:l.statusText,headers:n,config:t,request:l};o(e,u,i),l=null}},l.onabort=function(){l&&(u(s("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){u(s("Network Error",t,null,l)),l=null},l.ontimeout=function(){u(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var m=n(175),d=(t.withCredentials||a(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;d&&(p[t.xsrfHeaderName]=d)}if("setRequestHeader"in l&&r.forEach(p,function(t,e){void 0===g&&"content-type"===e.toLowerCase()?delete p[e]:l.setRequestHeader(e,t)}),t.withCredentials&&(l.withCredentials=!0),t.responseType)try{l.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){l&&(l.abort(),u(t),l=null)}),void 0===g&&(g=null),l.send(g)})}},function(t,e,n){"use strict";var r=n(172);t.exports=function(t,e,n,o,i){var c=new Error(t);return r(c,e,n,o,i)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],function(t){void 0!==e[t]&&(n[t]=e[t])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){var r=n(43),o=n(182),i=o(r);t.exports=i},function(t,e,n){function r(t,e,n){return e===e?c(t,e,n):o(t,i,n)}var o=n(72),i=n(187),c=n(188);t.exports=r},function(t,e){function n(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i0&&void 0!==arguments[0]?arguments[0]:[],e=N(t);return L.a.reader("json",{handlers:u({},e,{":":function(t){return t},set:function(t){return t},list:function(t){return t}}),mapBuilder:U})},B=[Object,L.a.makeWriteHandler({tag:function(){return"map"},rep:function(t){return b()(t,function(t,e,n){return t.set(L.a.keyword(n),e),t},L.a.map())}})],H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.verbose,i=n?"json-verbose":"json";return L.a.writer(i,{handlers:L.a.map([].concat(o(R),B)),transform:function(e){if(d()(e)){if(e._sdkType)return Object(P.toType)(e);var n=O()(t,function(t){return t.appType&&e instanceof t.appType||t.canHandle&&t.canHandle(e)});if(n)return n.writer(e)}return e},handlerForForeign:function(t,e){return Array.isArray(t)?e.get("array"):"object"===r(t)?e.get("map"):null}})},$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=t.reduce(function(t,e){var n={sdkType:e.sdkType||e.type,reader:e.reader},r={sdkType:e.sdkType||e.type,appType:e.appType||e.customType,canHandle:e.canHandle,writer:e.writer};return t.readers.push(n),t.writers.push(r),t},{readers:[],writers:[]}),r=n.readers,o=n.writers;return{reader:q(r),writer:H(o,e)}}},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function i(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ot(a({params:e,queryParams:n,perRequestOpts:rt(r)},t))}},ct=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ot(a({params:e},t))}},at=function(t){var e=t.method,n=o(t,["method"]);return e&&"post"===e.toLowerCase()?it(n):ct(n)},st=function(t){var e=t.baseUrl,n=t.tokenStore,r=o(t,["baseUrl","tokenStore"]);return a({},r,{baseUrl:Object(T.c)(e),tokenStore:n||Object($.a)(n,r.clientId,!!r.secure)})},ut=function(t){if(!t.clientId)throw new Error("clientId must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");return t},gt=function t(e){var n=this;r(this,t);var o=ut(st(a({},V,{},e))),i=b()(W,function(t){return t(o)}),c=[].concat(G).map(function(t){var e=t.path,n=t.apiName,r=t.method,o=t.interceptors,c=void 0===o?[]:o,s=Object(T.a)(e),g=[n].concat(u(s)),p=[n,e].join("/"),l=i[n];return a({},t,{fnPath:s,fullFnPath:g,endpointInterceptors:[].concat(u(c),[et({method:r,url:p,httpOpts:l})])})}),s=c.reduce(function(t,e){var n=e.fullFnPath,r=e.endpointInterceptors;return d()(t,n,r)},{}),g={tokenStore:o.tokenStore,endpointInterceptors:s,clientId:o.clientId,typeHandlers:o.typeHandlers,transitVerbose:o.transitVerbose};[].concat(u(X),Z).map(function(t){var e=t.path,n=t.method,r=t.endpointInterceptorPath,o=t.interceptors;return{path:e,fn:at({method:n,ctx:g,endpointInterceptors:h()(s,r)||[],interceptors:o})}}).forEach(function(t){var e=t.path,r=t.fn;return d()(n,e,r)})}},function(t,e,n){function r(t){var e=c.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}var o=n(7),i=Object.prototype,c=i.hasOwnProperty,a=i.toString,s=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){var r=n(82),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,c=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=c},function(t,e,n){function r(t){var e=o(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}var o=n(83),i=500;t.exports=r},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var c=t.apply(this,r);return n.cache=i.set(o,c)||i,c};return n.cache=new(r.Cache||o),n}var o=n(25),i="Expected a function";r.Cache=o,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(c||i),string:new o}}var o=n(85),i=n(16),c=n(27);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}var o=n(17);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(17);t.exports=r},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(18);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(18);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(18);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(18);t.exports=r},function(t,e,n){function r(t,e,n){return null==t?t:o(t,e,n)}var o=n(29);t.exports=r},function(t,e,n){function r(t,e,n){var r=t[e];a.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(41),i=n(26),c=Object.prototype,a=c.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n={};return e=c(e,3),i(t,function(t,r,i){o(n,r,e(t,r,i))}),n}var o=n(41),i=n(43),c=n(10);t.exports=r},function(t,e,n){var r=n(109),o=r();t.exports=o},function(t,e){function n(t){return function(e,n,r){for(var o=-1,i=Object(e),c=r(e),a=c.length;a--;){var s=c[t?a:++o];if(!1===n(i[s],s,i))break}return e}}t.exports=n},function(t,e,n){function r(t,e){var n=c(t),r=!n&&i(t),g=!n&&!r&&a(t),l=!n&&!r&&!g&&u(t),f=n||r||g||l,h=f?o(t.length,String):[],m=h.length;for(var d in t)!e&&!p.call(t,d)||f&&("length"==d||g&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||s(d,m))||h.push(d);return h}var o=n(111),i=n(31),c=n(1),a=n(44),s=n(30),u=n(46),g=Object.prototype,p=g.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n0&&n(g)?e>1?r(g,e-1,n,c,a):o(a,g):c||(a[a.length]=g)}return a}var o=n(54),i=n(157);t.exports=r},function(t,e,n){function r(t){return c(t)||i(t)||!!(a&&t&&t[a])}var o=n(7),i=n(31),c=n(1),a=o?o.isConcatSpreadable:void 0;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(160),o=n(42),i=n(11),c=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=c},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e){function n(t){var e=0,n=0;return function(){var c=i(),a=o-(c-n);if(n=c,a>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){t.exports=n(163)},function(t,e,n){"use strict";function r(t){var e=new c(t),n=i(c.prototype.request,e);return o.extend(n,c.prototype,e),o.extend(n,e),n}var o=n(0),i=n(62),c=n(165),a=n(68),s=n(65),u=r(s);u.Axios=c,u.create=function(t){return r(a(u.defaults,t))},u.Cancel=n(69),u.CancelToken=n(178),u.isCancel=n(64),u.all=function(t){return Promise.all(t)},u.spread=n(179),t.exports=u,t.exports.default=u},function(t,e){/*! +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sharetribeSdk=e():t.sharetribeSdk=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=77)}([function(t,e,n){"use strict";function r(t){return"[object Array]"===T.call(t)}function o(t){return"[object ArrayBuffer]"===T.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function c(t){return"string"==typeof t}function s(t){return"number"==typeof t}function u(t){return void 0===t}function g(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===T.call(t)}function l(t){return"[object File]"===T.call(t)}function f(t){return"[object Blob]"===T.call(t)}function h(t){return"[object Function]"===T.call(t)}function m(t){return g(t)&&h(t.pipe)}function d(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function y(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function i(t,e){return s(t)||c(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function c(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}function s(t){if(Array.isArray(t))return t}function u(t){return l(t)||p(t)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},{enterQueue:u(arguments.length>1?arguments[1]:void 0).reverse(),leaveStack:[]})},b=function(t,e,n){return d(t).then(e[n]||d).catch(function(r){var o=r.ctx||t;return Promise.resolve(h({},o,{error:r,errorMiddleware:e.constructor.name,errorStage:n}))})},v=function(t){var e,n,r=u(t.leaveStack),o=u(t.enterQueue);return t.error?(e=r.shift(),n="error"):o.length?(e=o.pop(),r.unshift(e),n="enter"):(e=r.shift(),n="leave"),[h({},t,{enterQueue:o,leaveStack:r}),e,n]},_=function t(e){var n=v(e),o=i(n,3),a=o[0],c=o[1],s=o[2];if(c)return b(a,c,s).then(t);if(a.error){var u=a.error,g=r(a,["error"]);return u.ctx=g,Promise.reject(u)}return Promise.resolve(a)},w=function(t){return function(e){return _(y(e,t))}};e.a=w},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t,e,n){var r=s(t)?o:c,u=arguments.length<3;return r(t,a(e,4),n,u,i)}var o=n(181),i=n(70),a=n(10),c=n(183),s=n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"UUID",function(){return o}),n.d(e,"LatLng",function(){return i}),n.d(e,"LatLngBounds",function(){return a}),n.d(e,"Money",function(){return c}),n.d(e,"BigDecimal",function(){return s}),n.d(e,"toType",function(){return u}),n.d(e,"replacer",function(){return g}),n.d(e,"reviver",function(){return p});var o=function t(e){r(this,t),this._sdkType=this.constructor._sdkType,this.uuid=e};o._sdkType="UUID";var i=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.lat=e,this.lng=n};i._sdkType="LatLng";var a=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.ne=e,this.sw=n};a._sdkType="LatLngBounds";var c=function t(e,n){r(this,t),this._sdkType=this.constructor._sdkType,this.amount=e,this.currency=n};c._sdkType="Money";var s=function t(e){r(this,t),this._sdkType=this.constructor._sdkType,this.value=e};s._sdkType="BigDecimal";var u=function(t){switch(t&&t._sdkType){case"LatLng":return new i(t.lat,t.lng);case"LatLngBounds":return new a(t.ne,t.sw);case"UUID":return new o(t.uuid);case"Money":return new c(t.amount,t.currency);case"BigDecimal":return new s(t.value);default:return t}},g=function(t,e){return e},p=function(t,e){return u(e)}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(36))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==c||e==s||e==a||e==u}var o=n(5),i=n(6),a="[object AsyncFunction]",c="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=r},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(40);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return i(t,r)+"";if(c(t))return g?g.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}var o=n(7),i=n(28),a=n(1),c=n(14),s=1/0,u=o?o.prototype:void 0,g=u?u.toString:void 0;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(42);t.exports=r},function(t,e,n){var r=n(4),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){function r(t,e){return t&&o(t,e,i)}var o=n(108),i=n(19);t.exports=r},function(t,e,n){(function(t){var r=n(2),o=n(113),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i,s=c?r.Buffer:void 0,u=s?s.isBuffer:void 0,g=u||o;t.exports=g}).call(e,n(45)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(114),o=n(47),i=n(115),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(16),i=n(121),a=n(122),c=n(123),s=n(124),u=n(125);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=c,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t,e,n,a,c){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,a,r,c))}var o=n(126),i=n(3);t.exports=r},function(t,e,n){function r(t,e,n,r,u,g){var p=n&c,l=t.length,f=e.length;if(l!=f&&!(p&&f>l))return!1;var h=g.get(t);if(h&&g.get(e))return h==e;var m=-1,d=!0,y=n&s?new o:void 0;for(g.set(t,e),g.set(e,t);++m=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){c.headers[t]={}}),o.forEach(["post","put","patch"],function(t){c.headers[t]=o.merge(a)}),t.exports=c}).call(e,n(169))},function(t,e,n){"use strict";var r=n(0),o=n(171),i=n(63),a=n(173),c=n(174),s=n(67);t.exports=function(t){return new Promise(function(e,u){var g=t.data,p=t.headers;r.isFormData(g)&&delete p["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",h=t.auth.password||"";p.Authorization="Basic "+btoa(f+":"+h)}if(l.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?a(l.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?l.response:l.responseText,i={data:r,status:l.status,statusText:l.statusText,headers:n,config:t,request:l};o(e,u,i),l=null}},l.onabort=function(){l&&(u(s("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){u(s("Network Error",t,null,l)),l=null},l.ontimeout=function(){u(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var m=n(175),d=(t.withCredentials||c(t.url))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;d&&(p[t.xsrfHeaderName]=d)}if("setRequestHeader"in l&&r.forEach(p,function(t,e){void 0===g&&"content-type"===e.toLowerCase()?delete p[e]:l.setRequestHeader(e,t)}),t.withCredentials&&(l.withCredentials=!0),t.responseType)try{l.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){l&&(l.abort(),u(t),l=null)}),void 0===g&&(g=null),l.send(g)})}},function(t,e,n){"use strict";var r=n(172);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],function(t){void 0!==e[t]&&(n[t]=e[t])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){var r=n(43),o=n(182),i=o(r);t.exports=i},function(t,e,n){function r(t,e,n){return e===e?a(t,e,n):o(t,i,n)}var o=n(72),i=n(187),a=n(188);t.exports=r},function(t,e){function n(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i0&&void 0!==arguments[0]?arguments[0]:[],e=N(t);return L.a.reader("json",{handlers:u({},e,{":":function(t){return t},set:function(t){return t},list:function(t){return t}}),mapBuilder:U})},B=[Object,L.a.makeWriteHandler({tag:function(){return"map"},rep:function(t){return b()(t,function(t,e,n){return t.set(L.a.keyword(n),e),t},L.a.map())}})],H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.verbose,i=n?"json-verbose":"json";return L.a.writer(i,{handlers:L.a.map([].concat(o(R),B)),transform:function(e){if(d()(e)){if(e._sdkType)return Object(P.toType)(e);var n=O()(t,function(t){return t.appType&&e instanceof t.appType||t.canHandle&&t.canHandle(e)});if(n)return n.writer(e)}return e},handlerForForeign:function(t,e){return Array.isArray(t)?e.get("array"):"object"===r(t)?e.get("map"):null}})},$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=t.reduce(function(t,e){var n={sdkType:e.sdkType||e.type,reader:e.reader},r={sdkType:e.sdkType||e.type,appType:e.appType||e.customType,canHandle:e.canHandle,writer:e.writer};return t.readers.push(n),t.writers.push(r),t},{readers:[],writers:[]}),r=n.readers,o=n.writers;return{reader:q(r),writer:H(o,e)}}},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function i(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ot(c({params:e,queryParams:n,perRequestOpts:rt(r)},t))}},at=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ot(c({params:e},t))}},ct=function(t){var e=t.method,n=o(t,["method"]);return e&&"post"===e.toLowerCase()?it(n):at(n)},st=function(t){var e=t.baseUrl,n=t.tokenStore,r=o(t,["baseUrl","tokenStore"]);return c({},r,{baseUrl:Object(T.c)(e),tokenStore:n||Object($.a)(n,r.clientId,!!r.secure)})},ut=function(t){if(!t.clientId)throw new Error("clientId must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");return t},gt=function t(e){var n=this;r(this,t);var o=ut(st(c({},V,{},e))),i=b()(W,function(t){return t(o)}),a=[].concat(G).map(function(t){var e=t.path,n=t.apiName,r=t.method,o=t.interceptors,a=void 0===o?[]:o,s=Object(T.a)(e),g=[n].concat(u(s)),p=[n,e].join("/"),l=i[n];return c({},t,{fnPath:s,fullFnPath:g,endpointInterceptors:[].concat(u(a),[et({method:r,url:p,httpOpts:l})])})}),s=a.reduce(function(t,e){var n=e.fullFnPath,r=e.endpointInterceptors;return d()(t,n,r)},{}),g={tokenStore:o.tokenStore,endpointInterceptors:s,clientId:o.clientId,typeHandlers:o.typeHandlers,transitVerbose:o.transitVerbose};[].concat(u(X),Z).map(function(t){var e=t.path,n=t.method,r=t.endpointInterceptorPath,o=t.interceptors;return{path:e,fn:ct({method:n,ctx:g,endpointInterceptors:h()(s,r)||[],interceptors:o})}}).forEach(function(t){var e=t.path,r=t.fn;return d()(n,e,r)})}},function(t,e,n){function r(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[s]=n:delete t[s]),o}var o=n(7),i=Object.prototype,a=i.hasOwnProperty,c=i.toString,s=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){var r=n(82),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=a},function(t,e,n){function r(t){var e=o(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}var o=n(83),i=500;t.exports=r},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(r.Cache||o),n}var o=n(25),i="Expected a function";r.Cache=o,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(85),i=n(16),a=n(27);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}var o=n(17);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(17);t.exports=r},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(18);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(18);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(18);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(18);t.exports=r},function(t,e,n){function r(t,e,n){return null==t?t:o(t,e,n)}var o=n(29);t.exports=r},function(t,e,n){function r(t,e,n){var r=t[e];c.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(41),i=n(26),a=Object.prototype,c=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n={};return e=a(e,3),i(t,function(t,r,i){o(n,r,e(t,r,i))}),n}var o=n(41),i=n(43),a=n(10);t.exports=r},function(t,e,n){var r=n(109),o=r();t.exports=o},function(t,e){function n(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var s=a[t?c:++o];if(!1===n(i[s],s,i))break}return e}}t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&i(t),g=!n&&!r&&c(t),l=!n&&!r&&!g&&u(t),f=n||r||g||l,h=f?o(t.length,String):[],m=h.length;for(var d in t)!e&&!p.call(t,d)||f&&("length"==d||g&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||s(d,m))||h.push(d);return h}var o=n(111),i=n(31),a=n(1),c=n(44),s=n(30),u=n(46),g=Object.prototype,p=g.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n0&&n(g)?e>1?r(g,e-1,n,a,c):o(c,g):a||(c[c.length]=g)}return c}var o=n(54),i=n(157);t.exports=r},function(t,e,n){function r(t){return a(t)||i(t)||!!(c&&t&&t[c])}var o=n(7),i=n(31),a=n(1),c=o?o.isConcatSpreadable:void 0;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(160),o=n(42),i=n(11),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e){function n(t){var e=0,n=0;return function(){var a=i(),c=o-(a-n);if(n=a,c>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){t.exports=n(163)},function(t,e,n){"use strict";function r(t){var e=new a(t),n=i(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n}var o=n(0),i=n(62),a=n(165),c=n(68),s=n(65),u=r(s);u.Axios=a,u.create=function(t){return r(c(u.defaults,t))},u.Cancel=n(69),u.CancelToken=n(178),u.isCancel=n(64),u.all=function(t){return Promise.all(t)},u.spread=n(179),t.exports=u,t.exports.default=u},function(t,e){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new c,response:new c}}var o=n(0),i=n(63),c=n(166),a=n(167),s=n(68);r.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},r.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(0);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(0),i=n(168),c=n(64),a=n(65),s=n(176),u=n(177);t.exports=function(t){return r(t),t.baseURL&&!s(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return r(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return c(e)||(r(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(g===setTimeout)return setTimeout(t,0);if((g===n||!g)&&setTimeout)return g=setTimeout,setTimeout(t,0);try{return g(t,0)}catch(e){try{return g.call(null,t,0)}catch(e){return g.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function c(){m&&f&&(m=!1,f.length?h=f.concat(h):d=-1,h.length&&a())}function a(){if(!m){var t=o(c);m=!0;for(var e=h.length;e;){for(f=h,h=[];++d1)for(var n=1;n=0)return;c[e]="set-cookie"===e?(c[e]?c[e]:[]).concat([n]):c[e]?c[e]+", "+n:n}}),c):c}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,c){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===c&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new o(t),e(n.reason))})}var o=n(69);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r(function(e){t=e}),cancel:t}},t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";n.d(e,"c",function(){return u}),n.d(e,"a",function(){return g}),n.d(e,"b",function(){return p});var r=n(33),o=n.n(r),i=n(184),c=n.n(i),a=n(192),s=n.n(a),u=function(t){return s()(t,"/")},g=function(t){return c()(t.split("/"),"").map(function(t){return t.replace(/_\w/g,function(t){return t[1].toUpperCase()})})},p=function(t){return o()(t,function(t,e,n){return t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))),t},[]).join("&")}},function(t,e){function n(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o=g&&(l=u,f=!1,e=new o(e));t:for(;++p-1}var o=n(71);t.exports=r},function(t,e){function n(t){return t!==t}t.exports=n},function(t,e){function n(t,e,n){for(var r=n-1,o=t.length;++r=r?t:o(t,e,n)}var o=n(194);t.exports=r},function(t,e){function n(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r-1;);return n}var o=n(71);t.exports=r},function(t,e,n){function r(t){return i(t)?c(t):o(t)}var o=n(197),i=n(198),c=n(199);t.exports=r},function(t,e){function n(t){return t.split("")}t.exports=n},function(t,e){function n(t){return r.test(t)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=n},function(t,e){function n(t){return t.match(p)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",s="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,c].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",u="[\\ufe0e\\ufe0f]?"+a+s,g="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,c,"[\\ud800-\\udfff]"].join("|")+")",p=RegExp(o+"(?="+o+")|"+g+u,"g");t.exports=n},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(73),i=n.n(o),c=n(58),a=n.n(c),s=n(34),u=function(t){return encodeURIComponent(t).replace(/%2C/gi,",")},g=function(t,e){var n;if(e instanceof s.UUID)n=e.uuid;else if(e instanceof s.LatLng)n="".concat(e.lat,",").concat(e.lng);else if(e instanceof s.LatLngBounds)n="".concat(e.ne.lat,",").concat(e.ne.lng,",").concat(e.sw.lat,",").concat(e.sw.lng);else if(Array.isArray(e))n=e;else if(e instanceof Date)n=e.toISOString();else if(null==e)n=e;else{if("object"===r(e))throw new Error("Don't know how to serialize query parameter '".concat(t,"': ").concat(e));n=e}return null==n?null:[t,u(n)]},p=function(t){return a()(i()(t,function(t,e){var n=g(e,t);return n?n.join("="):null})).join("&")};e.a=p},function(t,e,n){function r(t,e){var n=-1,r=i(t)?Array(t.length):[];return o(t,function(t,o,i){r[++n]=e(t,o,i)}),r}var o=n(70),i=n(9);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e1?t:t.res&&401===t.res.status&&e.refresh_token?Object(f.a)([new h.a,new m.a].concat(r(i.auth.token)))({params:{client_id:n,grant_type:"refresh_token",refresh_token:e.refresh_token},tokenStore:o}).then(function(e){var n=e.authToken;return s({},t,{authToken:n,enterQueue:a,error:null})}).catch(function(e){return s({},t,{refreshTokenRetry:{retryQueue:a,attempts:u,res:e.response}})}):t}}]),t}()},function(t,e,n){"use strict";function r(t){return c(t)||i(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1?t:t.res&&401===t.res.status?Object(f.a)([new h.a,new m.a].concat(r(o.auth.token)))({params:{client_id:e,grant_type:"client_credentials",scope:"public-read"},tokenStore:n}).then(function(e){var n=e.authToken;return s({},t,{authToken:n,enterQueue:c,error:null})}):t}}]),t}()},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{enter:function(e){var n=e.params;return o({},c(e,["params"]),{params:o({},t,{},n)})}}};e.a=s},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n-1?a[s?e[u]:u]:void 0}}var o=n(10),i=n(9),c=n(19);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=null==n?0:c(n);return s<0&&(s=a(r+s,0)),o(t,i(e,3),s)}var o=n(72),i=n(10),c=n(219),a=Math.max;t.exports=r},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(220);t.exports=r},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if((t=o(t))===i||t===-i){return(t<0?-1:1)*c}return t===t?t:0}var o=n(221),i=1/0,c=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return c;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=u.test(t);return n||g.test(t)?p(t.slice(2),n?2:8):s.test(t)?c:+t}var o=n(6),i=n(14),c=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,g=/^0o[0-7]+$/i,p=parseInt;t.exports=r},function(t,e){function n(t){for(var e=-1,n=null==t?0:t.length,r={};++et||1342177279>>=1)&&(e+=e);return n}},"es6-impl","es3"),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype(function(){return e<\/script>')},goog.appendScriptSrcNode_=function(t){var e=goog.global.document,n=e.createElement("script");n.type="text/javascript",n.src=t,n.defer=!1,n.async=!1,e.head.appendChild(n)},goog.writeScriptTag_=function(t,e){if(goog.inHtmlDocument_()){var n=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==n.readyState){if(/\bdeps.js$/.test(t))return!1;throw Error('Cannot write "'+t+'" after document load')}if(void 0===e)if(goog.IS_OLD_IE_){goog.oldIeWaiting_=!0;var r=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ";n.write('