diff --git a/build/sharetribe-flex-sdk-node.js b/build/sharetribe-flex-sdk-node.js index ebfed0b..fdac94e 100644 --- a/build/sharetribe-flex-sdk-node.js +++ b/build/sharetribe-flex-sdk-node.js @@ -223,10 +223,9 @@ module.exports = root; /***/ }), /* 4 */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -// transit-js 0.8.877 +// transit-js 0.8.862 // http://transit-format.org // // Copyright 2014 Cognitect. All Rights Reserved. @@ -242,81 +241,175 @@ module.exports = root; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.. -/* - - Copyright The Closure Library Authors. - SPDX-License-Identifier: Apache-2.0 -*/ - -var COMPILED = !0, goog = goog || {}; -goog.global = this || self; -goog.exportPath_ = function(a, b, c, d) { - a = a.split("."); - d = d || goog.global; - a[0] in d || "undefined" == typeof d.execScript || d.execScript("var " + a[0]); - for (var e; a.length && (e = a.shift());) { - if (a.length || void 0 === b) { - d = d[e] && d[e] !== Object.prototype[e] ? d[e] : d[e] = {}; - } else { - if (!c && goog.isObject(b) && goog.isObject(d[e])) { - for (var f in b) { - b.hasOwnProperty(f) && (d[e][f] = b[f]); - } - } else { - d[e] = b; +var $jscomp = $jscomp || {}; +$jscomp.scope = {}; +$jscomp.checkStringArgs = function(a, b, c) { + if (null == a) { + throw new TypeError("The 'this' value for String.prototype." + c + " must not be null or undefined"); + } + if (b instanceof RegExp) { + throw new TypeError("First argument to String.prototype." + c + " must not be a regular expression"); + } + return a + ""; +}; +$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) { + a != Array.prototype && a != Object.prototype && (a[b] = c.value); +}; +$jscomp.getGlobal = function(a) { + return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a; +}; +$jscomp.global = $jscomp.getGlobal(this); +$jscomp.polyfill = function(a, b, c, d) { + if (b) { + c = $jscomp.global; + a = a.split("."); + for (d = 0; d < a.length - 1; d++) { + var e = a[d]; + e in c || (c[e] = {}); + c = c[e]; + } + a = a[a.length - 1]; + d = c[a]; + b = b(d); + b != d && null != b && $jscomp.defineProperty(c, a, {configurable:!0, writable:!0, value:b}); + } +}; +$jscomp.polyfill("String.prototype.repeat", function(a) { + return a ? a : function(a) { + var b = $jscomp.checkStringArgs(this, null, "repeat"); + if (0 > a || 1342177279 < a) { + throw new RangeError("Invalid count value"); + } + a |= 0; + for (var d = ""; a;) { + if (a & 1 && (d += b), a >>>= 1) { + b += b; } } + return d; + }; +}, "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(a) { + return $jscomp.SYMBOL_PREFIX + (a || "") + $jscomp.symbolCounter_++; +}; +$jscomp.initSymbolIterator = function() { + $jscomp.initSymbol(); + var a = $jscomp.global.Symbol.iterator; + a || (a = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")); + "function" != typeof Array.prototype[a] && $jscomp.defineProperty(Array.prototype, a, {configurable:!0, writable:!0, value:function() { + return $jscomp.arrayIterator(this); + }}); + $jscomp.initSymbolIterator = function() { + }; +}; +$jscomp.arrayIterator = function(a) { + var b = 0; + return $jscomp.iteratorPrototype(function() { + return b < a.length ? {done:!1, value:a[b++]} : {done:!0}; + }); +}; +$jscomp.iteratorPrototype = function(a) { + $jscomp.initSymbolIterator(); + a = {next:a}; + a[$jscomp.global.Symbol.iterator] = function() { + return this; + }; + return a; +}; +$jscomp.iteratorFromArray = function(a, b) { + $jscomp.initSymbolIterator(); + a instanceof String && (a += ""); + var c = 0, d = {next:function() { + if (c < a.length) { + var e = c++; + return {value:b(e, a[e]), done:!1}; + } + d.next = function() { + return {done:!0, value:void 0}; + }; + return d.next(); + }}; + d[Symbol.iterator] = function() { + return d; + }; + return d; +}; +$jscomp.polyfill("Array.prototype.entries", function(a) { + return a ? a : function() { + return $jscomp.iteratorFromArray(this, function(a, c) { + return [a, c]; + }); + }; +}, "es6-impl", "es3"); +$jscomp.polyfill("Array.prototype.keys", function(a) { + return a ? a : function() { + return $jscomp.iteratorFromArray(this, function(a) { + return a; + }); + }; +}, "es6-impl", "es3"); +$jscomp.polyfill("Array.prototype.values", function(a) { + return a ? a : function() { + return $jscomp.iteratorFromArray(this, function(a, c) { + return c; + }); + }; +}, "es6", "es3"); +var COMPILED = !0, goog = goog || {}; +goog.global = this; +goog.isDef = function(a) { + return void 0 !== a; +}; +goog.exportPath_ = function(a, b, c) { + a = a.split("."); + c = c || goog.global; + a[0] in c || !c.execScript || c.execScript("var " + a[0]); + for (var d; a.length && (d = a.shift());) { + !a.length && goog.isDef(b) ? c[d] = b : c = c[d] && c[d] !== Object.prototype[d] ? c[d] : c[d] = {}; } }; goog.define = function(a, b) { - if (!COMPILED) { - var c = goog.global.CLOSURE_UNCOMPILED_DEFINES, d = goog.global.CLOSURE_DEFINES; - c && void 0 === c.nodeType && Object.prototype.hasOwnProperty.call(c, a) ? b = c[a] : d && void 0 === d.nodeType && Object.prototype.hasOwnProperty.call(d, a) && (b = d[a]); - } - return b; + var c = b; + COMPILED || (goog.global.CLOSURE_UNCOMPILED_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES, a) ? c = goog.global.CLOSURE_UNCOMPILED_DEFINES[a] : goog.global.CLOSURE_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES, a) && (c = goog.global.CLOSURE_DEFINES[a])); + goog.exportPath_(a, c); }; -goog.FEATURESET_YEAR = 2012; goog.DEBUG = !0; goog.LOCALE = "en"; goog.TRUSTED_SITE = !0; +goog.STRICT_MODE_COMPATIBLE = !1; goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG; goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1; goog.provide = function(a) { if (goog.isInModuleLoader_()) { - throw Error("goog.provide cannot be used within a module."); + throw Error("goog.provide can not be used within a goog.module."); } if (!COMPILED && goog.isProvided_(a)) { throw Error('Namespace "' + a + '" already declared.'); } goog.constructNamespace_(a); }; -goog.constructNamespace_ = function(a, b, c) { +goog.constructNamespace_ = function(a, b) { if (!COMPILED) { delete goog.implicitNamespaces_[a]; - for (var d = a; (d = d.substring(0, d.lastIndexOf("."))) && !goog.getObjectByName(d);) { - goog.implicitNamespaces_[d] = !0; + for (var c = a; (c = c.substring(0, c.lastIndexOf("."))) && !goog.getObjectByName(c);) { + goog.implicitNamespaces_[c] = !0; } } - goog.exportPath_(a, b, c); -}; -goog.getScriptNonce = function(a) { - if (a && a != goog.global) { - return goog.getScriptNonce_(a.document); - } - null === goog.cspNonce_ && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document)); - return goog.cspNonce_; -}; -goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/; -goog.cspNonce_ = null; -goog.getScriptNonce_ = function(a) { - return (a = a.querySelector && a.querySelector("script[nonce]")) && (a = a.nonce || a.getAttribute("nonce")) && goog.NONCE_PATTERN_.test(a) ? a : ""; + goog.exportPath_(a, b); }; goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/; goog.module = function(a) { - if ("string" !== typeof a || !a || -1 == a.search(goog.VALID_MODULE_RE_)) { + if (!goog.isString(a) || !a || -1 == a.search(goog.VALID_MODULE_RE_)) { throw Error("Invalid module identifier"); } - if (!goog.isInGoogModuleLoader_()) { + if (!goog.isInModuleLoader_()) { throw Error("Module " + a + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide."); } if (goog.moduleLoaderState_.moduleName) { @@ -336,7 +429,7 @@ goog.module.get = function(a) { goog.module.getInternal_ = function(a) { if (!COMPILED) { if (a in goog.loadedModules_) { - return goog.loadedModules_[a].exports; + return goog.loadedModules_[a]; } if (!goog.implicitNamespaces_[a]) { return a = goog.getObjectByName(a), null != a ? a : null; @@ -344,23 +437,12 @@ goog.module.getInternal_ = function(a) { } return null; }; -goog.ModuleType = {ES6:"es6", GOOG:"goog"}; goog.moduleLoaderState_ = null; goog.isInModuleLoader_ = function() { - return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_(); -}; -goog.isInGoogModuleLoader_ = function() { - return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG; -}; -goog.isInEs6ModuleLoader_ = function() { - if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) { - return !0; - } - var a = goog.global.$jscomp; - return a ? "function" != typeof a.getCurrentModulePath ? !1 : !!a.getCurrentModulePath() : !1; + return null != goog.moduleLoaderState_; }; goog.module.declareLegacyNamespace = function() { - if (!COMPILED && !goog.isInGoogModuleLoader_()) { + if (!COMPILED && !goog.isInModuleLoader_()) { throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module"); } if (!COMPILED && !goog.moduleLoaderState_.moduleName) { @@ -368,29 +450,6 @@ goog.module.declareLegacyNamespace = function() { } goog.moduleLoaderState_.declareLegacyNamespace = !0; }; -goog.declareModuleId = function(a) { - if (!COMPILED) { - if (!goog.isInEs6ModuleLoader_()) { - throw Error("goog.declareModuleId may only be called from within an ES6 module"); - } - if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) { - throw Error("goog.declareModuleId may only be called once per module."); - } - if (a in goog.loadedModules_) { - throw Error('Module with namespace "' + a + '" already exists.'); - } - } - if (goog.moduleLoaderState_) { - goog.moduleLoaderState_.moduleName = a; - } else { - var b = goog.global.$jscomp; - if (!b || "function" != typeof b.getCurrentModulePath) { - throw Error('Module with namespace "' + a + '" has been loaded incorrectly.'); - } - b = b.require(b.getCurrentModulePath()); - goog.loadedModules_[a] = {exports:b, type:goog.ModuleType.ES6, moduleId:a}; - } -}; goog.setTestOnly = function(a) { if (goog.DISALLOW_TEST_ONLY_CODE) { throw a = a || "", Error("Importing test-only code into non-debug environment" + (a ? ": " + a : ".")); @@ -399,20 +458,37 @@ goog.setTestOnly = function(a) { goog.forwardDeclare = function(a) { }; COMPILED || (goog.isProvided_ = function(a) { - return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && null != goog.getObjectByName(a); + return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && goog.isDefAndNotNull(goog.getObjectByName(a)); }, goog.implicitNamespaces_ = {"goog.module":!0}); goog.getObjectByName = function(a, b) { - a = a.split("."); - b = b || goog.global; - for (var c = 0; c < a.length; c++) { - if (b = b[a[c]], null == b) { + for (var c = a.split("."), d = b || goog.global, e; e = c.shift();) { + if (goog.isDefAndNotNull(d[e])) { + d = d[e]; + } else { return null; } } - return b; + return d; +}; +goog.globalize = function(a, b) { + var c = b || goog.global, d; + for (d in a) { + c[d] = a[d]; + } }; goog.addDependency = function(a, b, c, d) { - !COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(a, b, c, d); + if (goog.DEPENDENCIES_ENABLED) { + var e; + a = a.replace(/\\/g, "/"); + var f = goog.dependencies_; + d && "boolean" !== typeof d || (d = d ? {module:"goog"} : {}); + for (var g = 0; e = b[g]; g++) { + f.nameToPath[e] = a, f.loadFlags[a] = d; + } + for (d = 0; b = c[d]; d++) { + a in f.requires || (f.requires[a] = {}), f.requires[a][b] = !0; + } + } }; goog.ENABLE_DEBUG_LOADER = !0; goog.logToConsole_ = function(a) { @@ -420,28 +496,24 @@ goog.logToConsole_ = function(a) { }; goog.require = function(a) { if (!COMPILED) { - goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(a); + goog.ENABLE_DEBUG_LOADER && goog.IS_OLD_IE_ && goog.maybeProcessDeferredDep_(a); if (goog.isProvided_(a)) { if (goog.isInModuleLoader_()) { return goog.module.getInternal_(a); } } else { if (goog.ENABLE_DEBUG_LOADER) { - var b = goog.moduleLoaderState_; - goog.moduleLoaderState_ = null; - try { - goog.debugLoader_.load_(a); - } finally { - goog.moduleLoaderState_ = b; + var b = goog.getPathFromDeps_(a); + if (b) { + goog.writeScripts_(b); + } else { + throw a = "goog.require could not find: " + a, goog.logToConsole_(a), Error(a); } } } return null; } }; -goog.requireType = function(a) { - return {}; -}; goog.basePath = ""; goog.nullFunction = function() { }; @@ -464,38 +536,189 @@ goog.SEAL_MODULE_EXPORTS = goog.DEBUG; goog.loadedModules_ = {}; goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER; goog.TRANSPILE = "detect"; -goog.ASSUME_ES_MODULES_TRANSPILED = !1; -goog.TRANSPILE_TO_LANGUAGE = ""; goog.TRANSPILER = "transpile.js"; -goog.TRUSTED_TYPES_POLICY_NAME = "goog"; +goog.DEPENDENCIES_ENABLED && (goog.dependencies_ = {loadFlags:{}, nameToPath:{}, requires:{}, visited:{}, written:{}, deferred:{}}, goog.inHtmlDocument_ = function() { + var a = goog.global.document; + return null != a && "write" in a; +}, goog.findBasePath_ = function() { + if (goog.isDef(goog.global.CLOSURE_BASE_PATH)) { + goog.basePath = goog.global.CLOSURE_BASE_PATH; + } else { + if (goog.inHtmlDocument_()) { + for (var a = goog.global.document.getElementsByTagName("SCRIPT"), b = a.length - 1; 0 <= b; --b) { + var c = a[b].src, d = c.lastIndexOf("?"), d = -1 == d ? c.length : d; + if ("base.js" == c.substr(d - 7, 7)) { + goog.basePath = c.substr(0, d - 7); + break; + } + } + } + } +}, goog.importScript_ = function(a, b) { + (goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_)(a, b) && (goog.dependencies_.written[a] = !0); +}, goog.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.oldIeWaiting_ = !1, goog.importProcessedScript_ = function(a, b, c) { + goog.importScript_("", 'goog.retrieveAndExec_("' + a + '", ' + b + ", " + c + ");"); +}, goog.queuedModules_ = [], goog.wrapModule_ = function(a, b) { + return goog.LOAD_MODULE_USING_EVAL && goog.isDef(goog.global.JSON) ? "goog.loadModule(" + goog.global.JSON.stringify(b + "\n//# sourceURL=" + a + "\n") + ");" : 'goog.loadModule(function(exports) {"use strict";' + b + "\n;return exports});\n//# sourceURL=" + a + "\n"; +}, goog.loadQueuedModules_ = function() { + var a = goog.queuedModules_.length; + if (0 < a) { + var b = goog.queuedModules_; + goog.queuedModules_ = []; + for (var c = 0; c < a; c++) { + goog.maybeProcessDeferredPath_(b[c]); + } + } + goog.oldIeWaiting_ = !1; +}, goog.maybeProcessDeferredDep_ = function(a) { + goog.isDeferredModule_(a) && goog.allDepsAreAvailable_(a) && (a = goog.getPathFromDeps_(a), goog.maybeProcessDeferredPath_(goog.basePath + a)); +}, goog.isDeferredModule_ = function(a) { + var b = (a = goog.getPathFromDeps_(a)) && goog.dependencies_.loadFlags[a] || {}, c = b.lang || "es3"; + return a && ("goog" == b.module || goog.needsTranspile_(c)) ? goog.basePath + a in goog.dependencies_.deferred : !1; +}, goog.allDepsAreAvailable_ = function(a) { + if ((a = goog.getPathFromDeps_(a)) && a in goog.dependencies_.requires) { + for (var b in goog.dependencies_.requires[a]) { + if (!goog.isProvided_(b) && !goog.isDeferredModule_(b)) { + return !1; + } + } + } + return !0; +}, goog.maybeProcessDeferredPath_ = function(a) { + if (a in goog.dependencies_.deferred) { + var b = goog.dependencies_.deferred[a]; + delete goog.dependencies_.deferred[a]; + goog.globalEval(b); + } +}, goog.loadModuleFromUrl = function(a) { + goog.retrieveAndExec_(a, !0, !1); +}, goog.writeScriptSrcNode_ = function(a) { + goog.global.document.write('