All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.swagger.swagger-ui.min.js Maven / Gradle / Ivy

(function () {
    function e() {
        e.history = e.history || [], e.history.push(arguments), this.console && console.log(Array.prototype.slice.call(arguments)[0])
    }

    this.Handlebars = this.Handlebars || {}, this.Handlebars.templates = this.Handlebars.templates || {}, this.Handlebars.templates.apikey_button_view = Handlebars.template({
        compiler: [6, ">= 2.0.0-beta.1"],
        main: function (e, t, n, r) {
            var i, a = "function", o = t.helperMissing, s = this.escapeExpression;
            return "\n
\n
\n
\n \n \n
\n
\n" }, useData: !0 }), this.Handlebars.templates.basic_auth_button_view = Handlebars.template({ compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { return '
\n
\n
\n
\n \n
\n \n \n
\n
\n\n' }, useData: !0 }), this.Handlebars.templates.content_type = Handlebars.template({ 1: function (e, t, n, r) { var i, a = ""; return i = t.each.call(e, null != e ? e.produces : e, { name: "each", hash: {}, fn: this.program(2, r), inverse: this.noop, data: r }), null != i && (a += i), a }, 2: function (e, t, n, r) { var i = this.lambda, a = this.escapeExpression; return ' \n" }, 4: function (e, t, n, r) { return ' \n' }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '\n\n" }, useData: !0 }), $(function () { $.fn.vAlign = function () { return this.each(function () { var e = $(this).height(), t = $(this).parent().height(), n = (t - e) / 2; $(this).css("margin-top", n) }) }, $.fn.stretchFormtasticInputWidthToParent = function () { return this.each(function () { var e = $(this).closest("form").innerWidth(), t = parseInt($(this).closest("form").css("padding-left"), 10) + parseInt($(this).closest("form").css("padding-right"), 10), n = parseInt($(this).css("padding-left"), 10) + parseInt($(this).css("padding-right"), 10); $(this).css("width", e - t - n) }) }, $("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent(), $("ul.downplayed li div.content p").vAlign(), $("form.sandbox").submit(function () { var e = !0; return $(this).find("input.required").each(function () { $(this).removeClass("error"), "" === $(this).val() && ($(this).addClass("error"), $(this).wiggle(), e = !1) }), e }) }), Function.prototype.bind && console && "object" == typeof console.log && ["log", "info", "warn", "error", "assert", "dir", "clear", "profile", "profileEnd"].forEach(function (e) { console[e] = this.bind(console[e], console) }, Function.prototype.call), window.Docs = { shebang: function () { var e = $.param.fragment().split("/"); switch (e.shift(), e.length) { case 1: if (e[0].length > 0) { var t = "resource_" + e[0]; Docs.expandEndpointListForResource(e[0]), $("#" + t).slideto({highlight: !1}) } break; case 2: Docs.expandEndpointListForResource(e[0]), $("#" + t).slideto({highlight: !1}); var n = e.join("_"), r = n + "_content"; Docs.expandOperation($("#" + r)), $("#" + n).slideto({highlight: !1}) } }, toggleEndpointListForResource: function (e) { var t = $("li#resource_" + Docs.escapeResourceName(e) + " ul.endpoints"); t.is(":visible") ? ($.bbq.pushState("#/", 2), Docs.collapseEndpointListForResource(e)) : ($.bbq.pushState("#/" + e, 2), Docs.expandEndpointListForResource(e)) }, expandEndpointListForResource: function (e) { var e = Docs.escapeResourceName(e); if ("" == e)return void $(".resource ul.endpoints").slideDown(); $("li#resource_" + e).addClass("active"); var t = $("li#resource_" + e + " ul.endpoints"); t.slideDown() }, collapseEndpointListForResource: function (e) { var e = Docs.escapeResourceName(e); if ("" == e)return void $(".resource ul.endpoints").slideUp(); $("li#resource_" + e).removeClass("active"); var t = $("li#resource_" + e + " ul.endpoints"); t.slideUp() }, expandOperationsForResource: function (e) { return Docs.expandEndpointListForResource(e), "" == e ? void $(".resource ul.endpoints li.operation div.content").slideDown() : void $("li#resource_" + Docs.escapeResourceName(e) + " li.operation div.content").each(function () { Docs.expandOperation($(this)) }) }, collapseOperationsForResource: function (e) { return Docs.expandEndpointListForResource(e), "" == e ? void $(".resource ul.endpoints li.operation div.content").slideUp() : void $("li#resource_" + Docs.escapeResourceName(e) + " li.operation div.content").each(function () { Docs.collapseOperation($(this)) }) }, escapeResourceName: function (e) { return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g, "\\$&") }, expandOperation: function (e) { e.slideDown() }, collapseOperation: function (e) { e.slideUp() } }, Handlebars.registerHelper("sanitize", function (e) { return e = e.replace(/)<[^<]*)*<\/script>/gi, ""), new Handlebars.SafeString(e) }), Handlebars.registerHelper("renderTextParam", function (e) { var t, n = "text", r = "", i = e.type || e.schema.type || "", a = "array" === i.toLowerCase() || e.allowMultiple, o = a && Array.isArray(e["default"]) ? e["default"].join("\n") : e["default"], s = Object.keys(e).filter(function (e) { return null !== e.match(/^X-data-/i) }).reduce(function (t, n) { return t += " " + n.substring(2, n.length) + "='" + e[n] + "'" }, ""); if ("undefined" == typeof o && (o = ""), e.format && "password" === e.format && (n = "password"), e.valueId && (r = " id='" + e.valueId + "'"), ("string" == typeof o || o instanceof String) && (o = o.replace(/'/g, "'")), a)t = ""; else { var l = "parameter"; e.required && (l += " required"), t = "" } return new Handlebars.SafeString(t) }), Handlebars.registerHelper("ifCond", function (e, t, n, r) { switch (t) { case"==": return e == n ? r.fn(this) : r.inverse(this); case"===": return e === n ? r.fn(this) : r.inverse(this); case"<": return n > e ? r.fn(this) : r.inverse(this); case"<=": return n >= e ? r.fn(this) : r.inverse(this); case">": return e > n ? r.fn(this) : r.inverse(this); case">=": return e >= n ? r.fn(this) : r.inverse(this); case"&&": return e && n ? r.fn(this) : r.inverse(this); case"||": return e || n ? r.fn(this) : r.inverse(this); default: return r.inverse(this) } }), this.Handlebars.templates.main = Handlebars.template({ 1: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression, s = '
' + o(a(null != (i = null != e ? e.info : e) ? i.title : i, e)) + '
\n
'; return i = a(null != (i = null != e ? e.info : e) ? i.description : i, e), null != i && (s += i), s += "
\n", i = t["if"].call(e, null != e ? e.externalDocs : e, { name: "if", hash: {}, fn: this.program(2, r), inverse: this.noop, data: r }), null != i && (s += i), s += " ", i = t["if"].call(e, null != (i = null != e ? e.info : e) ? i.termsOfServiceUrl : i, { name: "if", hash: {}, fn: this.program(4, r), inverse: this.noop, data: r }), null != i && (s += i), s += "\n ", i = t["if"].call(e, null != (i = null != (i = null != e ? e.info : e) ? i.contact : i) ? i.name : i, { name: "if", hash: {}, fn: this.program(6, r), inverse: this.noop, data: r }), null != i && (s += i), s += "\n ", i = t["if"].call(e, null != (i = null != (i = null != e ? e.info : e) ? i.contact : i) ? i.url : i, { name: "if", hash: {}, fn: this.program(8, r), inverse: this.noop, data: r }), null != i && (s += i), s += "\n ", i = t["if"].call(e, null != (i = null != (i = null != e ? e.info : e) ? i.contact : i) ? i.email : i, { name: "if", hash: {}, fn: this.program(10, r), inverse: this.noop, data: r }), null != i && (s += i), s += "\n ", i = t["if"].call(e, null != (i = null != e ? e.info : e) ? i.license : i, { name: "if", hash: {}, fn: this.program(12, r), inverse: this.noop, data: r }), null != i && (s += i), s + "\n" }, 2: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return "

" + o(a(null != (i = null != e ? e.externalDocs : e) ? i.description : i, e)) + '

\n ' + o(a(null != (i = null != e ? e.externalDocs : e) ? i.url : i, e)) + "\n" }, 4: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return '' }, 6: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return "
Created by " + o(a(null != (i = null != (i = null != e ? e.info : e) ? i.contact : i) ? i.name : i, e)) + "
" }, 8: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return "" }, 10: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return '' }, 12: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return "" }, 14: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression; return ' , api version: ' + o(a(null != (i = null != e ? e.info : e) ? i.version : i, e)) + "\n " }, 16: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return ' \n \n' }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "
\n"; return i = t["if"].call(e, null != e ? e.info : e, { name: "if", hash: {}, fn: this.program(1, r), inverse: this.noop, data: r }), null != i && (u += i), u += "
\n
\n
    \n\n
    \n

    [ base url: " + l((a = null != (a = t.basePath || (null != e ? e.basePath : e)) ? a : s, typeof a === o ? a.call(e, { name: "basePath", hash: {}, data: r }) : a)) + "\n", i = t["if"].call(e, null != (i = null != e ? e.info : e) ? i.version : i, { name: "if", hash: {}, fn: this.program(14, r), inverse: this.noop, data: r }), null != i && (u += i), u += "]\n", i = t["if"].call(e, null != e ? e.validatorUrl : e, { name: "if", hash: {}, fn: this.program(16, r), inverse: this.noop, data: r }), null != i && (u += i), u + "

    \n
    \n
    \n" }, useData: !0 }), this.Handlebars.templates.operation = Handlebars.template({ 1: function (e, t, n, r) { return "deprecated" }, 3: function (e, t, n, r) { return "

    Warning: Deprecated

    \n" }, 5: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = '

    Implementation Notes

    \n
    '; return a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (l += i), l + "
    \n" }, 7: function (e, t, n, r) { return '
    \n ' }, 9: function (e, t, n, r) { var i, a = '
    \n'; return i = t.each.call(e, e, { name: "each", hash: {}, fn: this.program(10, r), inverse: this.noop, data: r }), null != i && (a += i), a + "
    \n" }, 10: function (e, t, n, r) { var i, a = this.lambda, o = this.escapeExpression, s = "
    " + o(a(null != e ? e.scope : e, e)) + "
    \n" }, 12: function (e, t, n, r) { return "
    " }, 14: function (e, t, n, r) { return '
    \n \n
    \n' }, 16: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '
    \n

    Response Class (Status ' + l((a = null != (a = t.successCode || (null != e ? e.successCode : e)) ? a : s, typeof a === o ? a.call(e, { name: "successCode", hash: {}, data: r }) : a)) + ")

    \n "; return i = t["if"].call(e, null != e ? e.successDescription : e, { name: "if", hash: {}, fn: this.program(17, r), inverse: this.noop, data: r }), null != i && (u += i), u + '\n

    \n
    \n
    \n
    \n' }, 17: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = '
    '; return a = null != (a = t.successDescription || (null != e ? e.successDescription : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "successDescription", hash: {}, data: r }) : a, null != i && (l += i), l + "
    " }, 19: function (e, t, n, r) { var i, a = '

    Headers

    \n \n \n \n \n \n \n \n \n \n \n'; return i = t.each.call(e, null != e ? e.headers : e, { name: "each", hash: {}, fn: this.program(20, r), inverse: this.noop, data: r }), null != i && (a += i), a + " \n
    HeaderDescriptionTypeOther
    \n" }, 20: function (e, t, n, r) { var i = this.lambda, a = this.escapeExpression; return " \n " + a(i(r && r.key, e)) + "\n " + a(i(null != e ? e.description : e, e)) + "\n " + a(i(null != e ? e.type : e, e)) + "\n " + a(i(null != e ? e.other : e, e)) + "\n \n" }, 22: function (e, t, n, r) { return '

    Parameters

    \n \n \n \n \n \n \n \n \n \n \n \n\n \n
    ParameterValueDescriptionParameter TypeData Type
    \n' }, 24: function (e, t, n, r) { return "
    \n

    Response Messages

    \n \n \n \n \n \n \n \n \n \n \n \n
    HTTP Status CodeReasonResponse ModelHeaders
    \n" }, 26: function (e, t, n, r) { return "" }, 28: function (e, t, n, r) { return "
    \n \n \n \n
    \n" }, 30: function (e, t, n, r) { return "

    Request Headers

    \n
    \n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o, s = "function", l = t.helperMissing, u = this.escapeExpression, c = t.blockHelperMissing, p = "
      \n
    • \n \n \n
    • \n
    \n" }, useData: !0 }), this.Handlebars.templates.param_list = Handlebars.template({ 1: function (e, t, n, r) { return " required" }, 3: function (e, t, n, r) { return ' multiple="multiple"' }, 5: function (e, t, n, r) { return " required " }, 7: function (e, t, n, r) { var i, a = " \n" }, 8: function (e, t, n, r) { return ' selected="" ' }, 10: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n \n\n" }, 11: function (e, t, n, r) { return ' selected="" ' }, 13: function (e, t, n, r) { return " (default) " }, 15: function (e, t, n, r) { return "" }, 17: function (e, t, n, r) { return "" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n\n \n\n', i = t["if"].call(e, null != e ? e.required : e, { name: "if", hash: {}, fn: this.program(15, r), inverse: this.noop, data: r }), null != i && (u += i), a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (u += i), i = t["if"].call(e, null != e ? e.required : e, { name: "if", hash: {}, fn: this.program(17, r), inverse: this.noop, data: r }), null != i && (u += i), u += "\n", a = null != (a = t.paramType || (null != e ? e.paramType : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "paramType", hash: {}, data: r }) : a, null != i && (u += i), u + '\n\n' }, useData: !0 }), this.Handlebars.templates.param_readonly_required = Handlebars.template({ 1: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " \n" }, 3: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e["default"] : e, { name: "if", hash: {}, fn: this.program(4, r), inverse: this.program(6, r), data: r }), null != i && (a += i), a }, 4: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " " + s((i = null != (i = t["default"] || (null != e ? e["default"] : e)) ? i : o, typeof i === a ? i.call(e, { name: "default", hash: {}, data: r }) : i)) + "\n" }, 6: function (e, t, n, r) { return " (empty)\n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n\n"; return i = t["if"].call(e, null != e ? e.isBody : e, { name: "if", hash: {}, fn: this.program(1, r), inverse: this.program(3, r), data: r }), null != i && (u += i), u += '\n', a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (u += i), u += "\n", a = null != (a = t.paramType || (null != e ? e.paramType : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "paramType", hash: {}, data: r }) : a, null != i && (u += i), u + '\n\n' }, useData: !0 }), this.Handlebars.templates.param_readonly = Handlebars.template({ 1: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " \n
    \n' }, 3: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e["default"] : e, { name: "if", hash: {}, fn: this.program(4, r), inverse: this.program(6, r), data: r }), null != i && (a += i), a }, 4: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " " + s((i = null != (i = t["default"] || (null != e ? e["default"] : e)) ? i : o, typeof i === a ? i.call(e, { name: "default", hash: {}, data: r }) : i)) + "\n" }, 6: function (e, t, n, r) { return " (empty)\n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n\n"; return i = t["if"].call(e, null != e ? e.isBody : e, { name: "if", hash: {}, fn: this.program(1, r), inverse: this.program(3, r), data: r }), null != i && (u += i), u += '\n', a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (u += i), u += "\n", a = null != (a = t.paramType || (null != e ? e.paramType : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "paramType", hash: {}, data: r }) : a, null != i && (u += i), u + '\n\n' }, useData: !0 }), this.Handlebars.templates.param_required = Handlebars.template({ 1: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e.isFile : e, { name: "if", hash: {}, fn: this.program(2, r), inverse: this.program(4, r), data: r }), null != i && (a += i), a }, 2: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return ' \n" }, 4: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e["default"] : e, { name: "if", hash: {}, fn: this.program(5, r), inverse: this.program(7, r), data: r }), null != i && (a += i), a }, 5: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return "
    \n \n
    \n
    \n' }, 7: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " \n
    \n
    \n
    \n' }, 9: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e.isFile : e, { name: "if", hash: {}, fn: this.program(10, r), inverse: this.program(12, r), data: r }), null != i && (a += i), a }, 10: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " \n" }, 12: function (e, t, n, r) { var i, a = t.helperMissing, o = ""; return i = (t.renderTextParam || e && e.renderTextParam || a).call(e, e, { name: "renderTextParam", hash: {}, fn: this.program(13, r), inverse: this.noop, data: r }), null != i && (o += i), o }, 13: function (e, t, n, r) { return "" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n\n"; return i = t["if"].call(e, null != e ? e.isBody : e, { name: "if", hash: {}, fn: this.program(1, r), inverse: this.program(9, r), data: r }), null != i && (u += i), u += '\n\n ', a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (u += i), u += "\n\n", a = null != (a = t.paramType || (null != e ? e.paramType : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "paramType", hash: {}, data: r }) : a, null != i && (u += i), u + '\n\n' }, useData: !0 }), this.Handlebars.templates.param = Handlebars.template({ 1: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e.isFile : e, { name: "if", hash: {}, fn: this.program(2, r), inverse: this.program(4, r), data: r }), null != i && (a += i), a }, 2: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return ' \n
    \n' }, 4: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e["default"] : e, { name: "if", hash: {}, fn: this.program(5, r), inverse: this.program(7, r), data: r }), null != i && (a += i), a }, 5: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return "
    \n \n
    \n
    \n' }, 7: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " \n
    \n
    \n
    \n' }, 9: function (e, t, n, r) { var i, a = ""; return i = t["if"].call(e, null != e ? e.isFile : e, { name: "if", hash: {}, fn: this.program(2, r), inverse: this.program(10, r), data: r }), null != i && (a += i), a }, 10: function (e, t, n, r) { var i, a = t.helperMissing, o = ""; return i = (t.renderTextParam || e && e.renderTextParam || a).call(e, e, { name: "renderTextParam", hash: {}, fn: this.program(11, r), inverse: this.noop, data: r }), null != i && (o += i), o }, 11: function (e, t, n, r) { return "" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "\n\n\n"; return i = t["if"].call(e, null != e ? e.isBody : e, { name: "if", hash: {}, fn: this.program(1, r), inverse: this.program(9, r), data: r }), null != i && (u += i), u += '\n\n', a = null != (a = t.description || (null != e ? e.description : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "description", hash: {}, data: r }) : a, null != i && (u += i), u += "\n", a = null != (a = t.paramType || (null != e ? e.paramType : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "paramType", hash: {}, data: r }) : a, null != i && (u += i), u + '\n\n \n\n' }, useData: !0 }), this.Handlebars.templates.parameter_content_type = Handlebars.template({ 1: function (e, t, n, r) { var i, a = ""; return i = t.each.call(e, null != e ? e.consumes : e, { name: "each", hash: {}, fn: this.program(2, r), inverse: this.noop, data: r }), null != i && (a += i), a }, 2: function (e, t, n, r) { var i = this.lambda, a = this.escapeExpression; return ' \n" }, 4: function (e, t, n, r) { return ' \n' }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '\n\n" }, useData: !0 }), this.Handlebars.templates.resource = Handlebars.template({ 1: function (e, t, n, r) { return " : " }, 3: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return "
  • \n Raw\n
  • \n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o, s = "function", l = t.helperMissing, u = this.escapeExpression, c = t.blockHelperMissing, p = "
    \n

    \n ' + u((a = null != (a = t.name || (null != e ? e.name : e)) ? a : l, typeof a === s ? a.call(e, { name: "name", hash: {}, data: r }) : a)) + " "; return a = null != (a = t.summary || (null != e ? e.summary : e)) ? a : l, o = { name: "summary", hash: {}, fn: this.program(1, r), inverse: this.noop, data: r }, i = typeof a === s ? a.call(e, o) : a, t.summary || (i = c.call(e, i, o)), null != i && (p += i), a = null != (a = t.summary || (null != e ? e.summary : e)) ? a : l, i = typeof a === s ? a.call(e, { name: "summary", hash: {}, data: r }) : a, null != i && (p += i), p += "\n

    \n \n
    \n\n" }, useData: !0 }), this.Handlebars.templates.response_content_type = Handlebars.template({ 1: function (e, t, n, r) { var i, a = ""; return i = t.each.call(e, null != e ? e.produces : e, { name: "each", hash: {}, fn: this.program(2, r), inverse: this.noop, data: r }), null != i && (a += i), a }, 2: function (e, t, n, r) { var i = this.lambda, a = this.escapeExpression; return ' \n" }, 4: function (e, t, n, r) { return ' \n' }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '\n\n" }, useData: !0 }), this.Handlebars.templates.signature = Handlebars.template({ 1: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = '\n
    \n\n
    \n\n
    \n
    \n '; return a = null != (a = t.signature || (null != e ? e.signature : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "signature", hash: {}, data: r }) : a, null != i && (l += i), l += '\n
    \n\n
    \n', i = t["if"].call(e, null != e ? e.sampleJSON : e, { name: "if", hash: {}, fn: this.program(2, r), inverse: this.noop, data: r }), null != i && (l += i), i = t["if"].call(e, null != e ? e.sampleXML : e, { name: "if", hash: {}, fn: this.program(5, r), inverse: this.noop, data: r }), null != i && (l += i), l + "
    \n
    \n" }, 2: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '
    \n
    ' + l((a = null != (a = t.sampleJSON || (null != e ? e.sampleJSON : e)) ? a : s, typeof a === o ? a.call(e, {
                        name: "sampleJSON",
                        hash: {},
                        data: r
                    }) : a)) + "
    \n "; return i = t["if"].call(e, null != e ? e.isParam : e, { name: "if", hash: {}, fn: this.program(3, r), inverse: this.noop, data: r }), null != i && (u += i), u + "\n
    \n" }, 3: function (e, t, n, r) { return '' }, 5: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = '
    \n
    ' + l((a = null != (a = t.sampleXML || (null != e ? e.sampleXML : e)) ? a : s, typeof a === o ? a.call(e, {
                        name: "sampleXML",
                        hash: {},
                        data: r
                    }) : a)) + "
    \n "; return i = t["if"].call(e, null != e ? e.isParam : e, { name: "if", hash: {}, fn: this.program(3, r), inverse: this.noop, data: r }), null != i && (u += i), u + "\n
    \n" }, 7: function (e, t, n, r) { var i, a = "function", o = t.helperMissing, s = this.escapeExpression; return " " + s((i = null != (i = t.signature || (null != e ? e.signature : e)) ? i : o, typeof i === a ? i.call(e, { name: "signature", hash: {}, data: r }) : i)) + "\n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a = t.helperMissing; return i = (t.ifCond || e && e.ifCond || a).call(e, null != e ? e.sampleJSON : e, "||", null != e ? e.sampleXML : e, { name: "ifCond", hash: {}, fn: this.program(1, r), inverse: this.program(7, r), data: r }), null != i ? i : "" }, useData: !0 }), this.Handlebars.templates.status_code = Handlebars.template({ 1: function (e, t, n, r) { var i = this.lambda, a = this.escapeExpression; return " \n " + a(i(r && r.key, e)) + "\n " + a(i(null != e ? e.description : e, e)) + "\n " + a(i(null != e ? e.type : e, e)) + "\n \n" }, compiler: [6, ">= 2.0.0-beta.1"], main: function (e, t, n, r) { var i, a, o = "function", s = t.helperMissing, l = this.escapeExpression, u = "" + l((a = null != (a = t.code || (null != e ? e.code : e)) ? a : s, typeof a === o ? a.call(e, { name: "code", hash: {}, data: r }) : a)) + '\n'; return a = null != (a = t.message || (null != e ? e.message : e)) ? a : s, i = typeof a === o ? a.call(e, { name: "message", hash: {}, data: r }) : a, null != i && (u += i), u += '\n\n\n \n \n', i = t.each.call(e, null != e ? e.headers : e, { name: "each", hash: {}, fn: this.program(1, r), inverse: this.noop, data: r }), null != i && (u += i), u + " \n
    \n" }, useData: !0 }), function (e) { if ("object" == typeof exports && "undefined" != typeof module)module.exports = e(); else if ("function" == typeof define && define.amd)define([], e); else { var t; t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, t.SwaggerClient = e() } }(function () { var t; return function n(e, t, r) { function i(o, s) { if (!t[o]) { if (!e[o]) { var l = "function" == typeof require && require; if (!s && l)return l(o, !0); if (a)return a(o, !0); var u = new Error("Cannot find module '" + o + "'"); throw u.code = "MODULE_NOT_FOUND", u } var c = t[o] = {exports: {}}; e[o][0].call(c.exports, function (t) { var n = e[o][1][t]; return i(n ? n : t) }, c, c.exports, n, e, t, r) } return t[o].exports } for (var a = "function" == typeof require && require, o = 0; o < r.length; o++)i(r[o]); return i }({ 1: [function (e, t, n) { "use strict"; var r = e("./lib/auth"), i = e("./lib/helpers"), a = e("./lib/client"), o = function (e, t) { return i.log('This is deprecated, use "new SwaggerClient" instead.'), new a(e, t) }; Array.prototype.indexOf || (Array.prototype.indexOf = function (e, t) { for (var n = t || 0, r = this.length; r > n; n++)if (this[n] === e)return n; return -1 }), String.prototype.trim || (String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, "") }), String.prototype.endsWith || (String.prototype.endsWith = function (e) { return -1 !== this.indexOf(e, this.length - e.length) }), t.exports = a, a.ApiKeyAuthorization = r.ApiKeyAuthorization, a.PasswordAuthorization = r.PasswordAuthorization, a.CookieAuthorization = r.CookieAuthorization, a.SwaggerApi = o, a.SwaggerClient = o, a.SchemaMarkup = e("./lib/schema-markup") }, {"./lib/auth": 2, "./lib/client": 3, "./lib/helpers": 4, "./lib/schema-markup": 7}], 2: [function (e, t, n) { "use strict"; var r = e("./helpers"), i = e("btoa"), a = e("cookiejar").CookieJar, o = { each: e("lodash-compat/collection/each"), includes: e("lodash-compat/collection/includes"), isObject: e("lodash-compat/lang/isObject"), isArray: e("lodash-compat/lang/isArray") }, s = t.exports.SwaggerAuthorizations = function (e) { this.authz = e || {} }; s.prototype.add = function (e, t) { if (o.isObject(e))for (var n in e)this.authz[n] = e[n]; else"string" == typeof e && (this.authz[e] = t); return t }, s.prototype.remove = function (e) { return delete this.authz[e] }, s.prototype.apply = function (e, t) { var n = !0, r = !t, i = []; return o.each(t, function (e, t) { "string" == typeof t && i.push(t), o.each(e, function (e, t) { i.push(t) }) }), o.each(this.authz, function (t, a) { if (r || o.includes(i, a)) { var s = t.apply(e); n = n && !!s } }), n }; var l = t.exports.ApiKeyAuthorization = function (e, t, n) { this.name = e, this.value = t, this.type = n }; l.prototype.apply = function (e) { if ("query" === this.type) { var t; if (e.url.indexOf("?") > 0) { t = e.url.substring(e.url.indexOf("?") + 1); var n = t.split("&"); if (n && n.length > 0)for (var r = 0; r < n.length; r++) { var i = n[r].split("="); if (i && i.length > 0 && i[0] === this.name)return !1 } } return e.url.indexOf("?") > 0 ? e.url = e.url + "&" + this.name + "=" + this.value : e.url = e.url + "?" + this.name + "=" + this.value, !0 } return "header" === this.type ? ("undefined" == typeof e.headers[this.name] && (e.headers[this.name] = this.value), !0) : void 0 }; var u = t.exports.CookieAuthorization = function (e) { this.cookie = e }; u.prototype.apply = function (e) { return e.cookieJar = e.cookieJar || new a, e.cookieJar.setCookie(this.cookie), !0 }; var c = t.exports.PasswordAuthorization = function (e, t) { 3 === arguments.length && (r.log("PasswordAuthorization: the 'name' argument has been removed, pass only username and password"), e = arguments[1], t = arguments[2]), this.username = e, this.password = t }; c.prototype.apply = function (e) { return "undefined" == typeof e.headers.Authorization && (e.headers.Authorization = "Basic " + i(this.username + ":" + this.password)), !0 } }, { "./helpers": 4, btoa: 14, cookiejar: 19, "lodash-compat/collection/each": 53, "lodash-compat/collection/includes": 56, "lodash-compat/lang/isArray": 141, "lodash-compat/lang/isObject": 145 }], 3: [function (e, t, n) { "use strict"; var r = { bind: e("lodash-compat/function/bind"), cloneDeep: e("lodash-compat/lang/cloneDeep"), find: e("lodash-compat/collection/find"), forEach: e("lodash-compat/collection/forEach"), indexOf: e("lodash-compat/array/indexOf"), isArray: e("lodash-compat/lang/isArray"), isObject: e("lodash-compat/lang/isObject"), isFunction: e("lodash-compat/lang/isFunction"), isPlainObject: e("lodash-compat/lang/isPlainObject"), isUndefined: e("lodash-compat/lang/isUndefined") }, i = e("./auth"), a = e("./helpers"), o = e("./types/model"), s = e("./types/operation"), l = e("./types/operationGroup"), u = e("./resolver"), c = e("./http"), p = e("./spec-converter"), h = e("q"), f = ["apis", "authorizationScheme", "authorizations", "basePath", "build", "buildFrom1_1Spec", "buildFrom1_2Spec", "buildFromSpec", "clientAuthorizations", "convertInfo", "debug", "defaultErrorCallback", "defaultSuccessCallback", "enableCookies", "fail", "failure", "finish", "help", "idFromOp", "info", "initialize", "isBuilt", "isValid", "modelPropertyMacro", "models", "modelsArray", "options", "parameterMacro", "parseUri", "progress", "resourceCount", "sampleModels", "selfReflect", "setConsolidatedModels", "spec", "supportedSubmitMethods", "swaggerRequestHeaders", "tagFromLabel", "title", "url", "useJQuery"], d = ["apis", "asCurl", "description", "externalDocs", "help", "label", "name", "operation", "operations", "operationsArray", "path", "tag"], m = ["delete", "get", "head", "options", "patch", "post", "put"], y = t.exports = function (e, t) { return this.authorizations = null, this.authorizationScheme = null, this.basePath = null, this.debug = !1, this.enableCookies = !1, this.info = null, this.isBuilt = !1, this.isValid = !1, this.modelsArray = [], this.resourceCount = 0, this.url = null, this.useJQuery = !1, this.swaggerObject = {}, this.deferredClient = h.defer(), this.clientAuthorizations = new i.SwaggerAuthorizations, "undefined" != typeof e ? this.initialize(e, t) : this }; y.prototype.initialize = function (e, t) { return this.models = {}, this.sampleModels = {}, "string" == typeof e ? this.url = e : r.isObject(e) && (t = e, this.url = t.url), t = t || {}, this.clientAuthorizations.add(t.authorizations), this.swaggerRequestHeaders = t.swaggerRequestHeaders || "application/json;charset=utf-8,*/*", this.defaultSuccessCallback = t.defaultSuccessCallback || null, this.defaultErrorCallback = t.defaultErrorCallback || null, this.modelPropertyMacro = t.modelPropertyMacro || null, this.parameterMacro = t.parameterMacro || null, this.usePromise = t.usePromise || null, "function" == typeof t.success && (this.success = t.success), t.useJQuery && (this.useJQuery = t.useJQuery), t.enableCookies && (this.enableCookies = t.enableCookies), this.options = t || {}, this.supportedSubmitMethods = t.supportedSubmitMethods || [], this.failure = t.failure || function (e) { throw e }, this.progress = t.progress || function () { }, this.spec = r.cloneDeep(t.spec), t.scheme && (this.scheme = t.scheme), this.usePromise || "function" == typeof t.success ? (this.ready = !0, this.build()) : void 0 }, y.prototype.build = function (e) { if (this.isBuilt)return this; var t = this; this.progress("fetching resource list: " + this.url + "; Please wait."); var n = { useJQuery: this.useJQuery, url: this.url, method: "get", headers: {accept: this.swaggerRequestHeaders}, on: { error: function (e) { return "http" !== t.url.substring(0, 4) ? t.fail("Please specify the protocol for " + t.url) : 0 === e.status ? t.fail("Can't read from server. It may not have the appropriate access-control-origin settings.") : 404 === e.status ? t.fail("Can't read swagger JSON from " + t.url) : t.fail(e.status + " : " + e.statusText + " " + t.url) }, response: function (e) { var n = e.obj; if (!n)return t.fail("failed to parse JSON/YAML response"); if (t.swaggerVersion = n.swaggerVersion, t.swaggerObject = n, n.swagger && 2 === parseInt(n.swagger))t.swaggerVersion = n.swagger, (new u).resolve(n, t.url, t.buildFromSpec, t), t.isValid = !0; else { var r = new p; t.oldSwaggerObject = t.swaggerObject, r.setDocumentationLocation(t.url), r.convert(n, t.clientAuthorizations, t.options, function (e) { t.swaggerObject = e, (new u).resolve(e, t.url, t.buildFromSpec, t), t.isValid = !0 }) } } } }; if (this.spec)t.swaggerObject = this.spec, setTimeout(function () { (new u).resolve(t.spec, t.url, t.buildFromSpec, t) }, 10); else { if (this.clientAuthorizations.apply(n), e)return n; (new c).execute(n, this.options) } return this.usePromise ? this.deferredClient.promise : this }, y.prototype.buildFromSpec = function (e) { if (this.isBuilt)return this; this.apis = {}, this.apisArray = [], this.basePath = e.basePath || "", this.consumes = e.consumes, this.host = e.host || "", this.info = e.info || {}, this.produces = e.produces, this.schemes = e.schemes || [], this.securityDefinitions = e.securityDefinitions, this.title = e.title || "", e.externalDocs && (this.externalDocs = e.externalDocs), this.authSchemes = e.securityDefinitions; var t, n = {}; if (Array.isArray(e.tags))for (n = {}, t = 0; t < e.tags.length; t++) { var i = e.tags[t]; n[i.name] = i } var u; "string" == typeof this.url ? (u = this.parseUri(this.url), "undefined" == typeof this.scheme && "undefined" == typeof this.schemes || 0 === this.schemes.length ? this.scheme = u.scheme || "http" : "undefined" == typeof this.scheme && (this.scheme = this.schemes[0] || u.scheme), "undefined" != typeof this.host && "" !== this.host || (this.host = u.host, u.port && (this.host = this.host + ":" + u.port))) : "undefined" == typeof this.schemes || 0 === this.schemes.length ? this.scheme = "http" : "undefined" == typeof this.scheme && (this.scheme = this.schemes[0]), this.definitions = e.definitions; var c; for (c in this.definitions) { var p = new o(c, this.definitions[c], this.models, this.modelPropertyMacro); p && (this.models[c] = p) } var h = this; return h.apis.help = r.bind(h.help, h), r.forEach(e.paths, function (e, t) { r.isPlainObject(e) && r.forEach(m, function (i) { var o = e[i]; if (!r.isUndefined(o)) { if (!r.isPlainObject(o))return void a.log("The '" + i + "' operation for '" + t + "' path is not an Operation Object"); var u = o.tags; !r.isUndefined(u) && r.isArray(u) && 0 !== u.length || (u = o.tags = ["default"]); var c = h.idFromOp(t, i, o), p = new s(h, o.scheme, c, i, t, o, h.definitions, h.models, h.clientAuthorizations); r.forEach(u, function (e) { var t = r.indexOf(f, e) > -1 ? "_" + e : e, i = r.indexOf(d, e) > -1 ? "_" + e : e, o = h[t]; if (t !== e && a.log("The '" + e + "' tag conflicts with a SwaggerClient function/property name. Use 'client." + t + "' or 'client.apis." + e + "' instead of 'client." + e + "'."), i !== e && a.log("The '" + e + "' tag conflicts with a SwaggerClient operation function/property name. Use 'client.apis." + i + "' instead of 'client.apis." + e + "'."), r.indexOf(d, c) > -1 && (a.log("The '" + c + "' operationId conflicts with a SwaggerClient operation function/property name. Use 'client.apis." + i + "._" + c + "' instead of 'client.apis." + i + "." + c + "'."), c = "_" + c, p.nickname = c), r.isUndefined(o)) { o = h[t] = h.apis[i] = {}, o.operations = {}, o.label = i, o.apis = {}; var s = n[e]; r.isUndefined(s) || (o.description = s.description, o.externalDocs = s.externalDocs), h[t].help = r.bind(h.help, o), h.apisArray.push(new l(e, o.description, o.externalDocs, p)) } c = h.makeUniqueOperationId(c, h.apis[i]), r.isFunction(o.help) || (o.help = r.bind(h.help, o)), h.apis[i][c] = o[c] = r.bind(p.execute, p), h.apis[i][c].help = o[c].help = r.bind(p.help, p), h.apis[i][c].asCurl = o[c].asCurl = r.bind(p.asCurl, p), o.apis[c] = o.operations[c] = p; var u = r.find(h.apisArray, function (t) { return t.tag === e }); u && u.operationsArray.push(p) }) } }) }), r.forEach(e.definitions, function (e, t) { e.id = t.toLowerCase(), e.name = t, h.modelsArray.push(e) }), this.isBuilt = !0, this.usePromise ? (this.isValid = !0, this.isBuilt = !0, this.deferredClient.resolve(this), this.deferredClient.promise) : (this.success && this.success(), this) }, y.prototype.makeUniqueOperationId = function (e, t) { for (var n = 0, i = e; ;) { var a = !1; if (r.forEach(t.operations, function (e) { e.nickname === i && (a = !0) }), !a)return i; i = e + "_" + n, n++ } return e }, y.prototype.parseUri = function (e) { var t = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/, n = t.exec(e); return {scheme: n[4] ? n[4].replace(":", "") : void 0, host: n[11], port: n[12], path: n[15]} }, y.prototype.help = function (e) { var t = ""; return this instanceof y ? r.forEach(this.apis, function (e, n) { r.isPlainObject(e) && (t += "operations for the '" + n + "' tag\n", r.forEach(e.operations, function (e, n) { t += " * " + n + ": " + e.summary + "\n" })) }) : (this instanceof l || r.isPlainObject(this)) && (t += "operations for the '" + this.label + "' tag\n", r.forEach(this.apis, function (e, n) { t += " * " + n + ": " + e.summary + "\n" })), e ? t : (a.log(t), t) }, y.prototype.tagFromLabel = function (e) { return e }, y.prototype.idFromOp = function (e, t, n) { n && n.operationId || (n = n || {}, n.operationId = t + "_" + e); var r = n.operationId.replace(/[\s!@#$%^&*()_+=\[{\]};:<>|.\/?,\\'""-]/g, "_") || e.substring(1) + "_" + t; return r = r.replace(/((_){2,})/g, "_"), r = r.replace(/^(_)*/g, ""), r = r.replace(/([_])*$/g, "") }, y.prototype.setHost = function (e) { this.host = e, this.apis && r.forEach(this.apis, function (t) { t.operations && r.forEach(t.operations, function (t) { t.host = e }) }) }, y.prototype.setBasePath = function (e) { this.basePath = e, this.apis && r.forEach(this.apis, function (t) { t.operations && r.forEach(t.operations, function (t) { t.basePath = e }) }) }, y.prototype.fail = function (e) { return this.usePromise ? (this.deferredClient.reject(e), this.deferredClient.promise) : void(this.failure ? this.failure(e) : this.failure(e)) } }, { "./auth": 2, "./helpers": 4, "./http": 5, "./resolver": 6, "./spec-converter": 8, "./types/model": 9, "./types/operation": 10, "./types/operationGroup": 11, "lodash-compat/array/indexOf": 50, "lodash-compat/collection/find": 54, "lodash-compat/collection/forEach": 55, "lodash-compat/function/bind": 59, "lodash-compat/lang/cloneDeep": 139, "lodash-compat/lang/isArray": 141, "lodash-compat/lang/isFunction": 143, "lodash-compat/lang/isObject": 145, "lodash-compat/lang/isPlainObject": 146, "lodash-compat/lang/isUndefined": 149, q: 158 }], 4: [function (e, t, n) { (function (n) { "use strict"; var r = { isPlainObject: e("lodash-compat/lang/isPlainObject"), indexOf: e("lodash-compat/array/indexOf") }; t.exports.__bind = function (e, t) { return function () { return e.apply(t, arguments) } }; var i = t.exports.log = function () { console && "test" !== n.env.NODE_ENV && console.log(Array.prototype.slice.call(arguments)[0]) }; t.exports.fail = function (e) { i(e) }; var a = (t.exports.optionHtml = function (e, t) { return '' + e + ":" + t + "" }, t.exports.resolveSchema = function (e) { return r.isPlainObject(e.schema) && (e = a(e.schema)), e }); t.exports.simpleRef = function (e) { return "undefined" == typeof e ? null : 0 === e.indexOf("#/definitions/") ? e.substring("#/definitions/".length) : e } }).call(this, e("_process")) }, {_process: 13, "lodash-compat/array/indexOf": 50, "lodash-compat/lang/isPlainObject": 146}], 5: [function (t, n, r) { "use strict"; var i = t("./helpers"), a = t("superagent"), o = t("js-yaml"), s = {isObject: t("lodash-compat/lang/isObject")}, l = function () { this.type = "JQueryHttpClient" }, u = function () { this.type = "SuperagentHttpClient" }, c = n.exports = function () { }; c.prototype.execute = function (t, n) { var r; r = n && n.client ? n.client : new u(n), r.opts = n || {}; var i = !1; if ("undefined" != typeof window && "undefined" != typeof window.jQuery && (i = !0), "options" === t.method.toLowerCase() && "SuperagentHttpClient" === r.type && (e("forcing jQuery as OPTIONS are not supported by SuperAgent"), t.useJQuery = !0), this.isInternetExplorer() && (t.useJQuery === !1 || !i))throw new Error("Unsupported configuration! JQuery is required but not available"); (t && t.useJQuery === !0 || this.isInternetExplorer() && i) && (r = new l(n)); var a = t.on.response, o = function (e) { return n && n.requestInterceptor && (e = n.requestInterceptor.apply(e)), e }, c = function (e) { return n && n.responseInterceptor && (e = n.responseInterceptor.apply(e)), a(e) }; return t.on.response = function (e) { c(e) }, s.isObject(t) && s.isObject(t.body) && (t.body.type && "formData" === t.body.type ? (t.contentType = !1, t.processData = !1, delete t.headers["Content-Type"]) : t.body = JSON.stringify(t.body)), t = o(t) || t, t.beforeSend ? t.beforeSend(function (e) { r.execute(e || t) }) : r.execute(t), t.deferred ? t.deferred.promise : t }, c.prototype.isInternetExplorer = function () { var e = !1; if ("undefined" != typeof navigator && navigator.userAgent) { var t = navigator.userAgent.toLowerCase(); if (-1 !== t.indexOf("msie")) { var n = parseInt(t.split("msie")[1]); 8 >= n && (e = !0) } } return e }, l.prototype.execute = function (e) { var t = this.jQuery || "undefined" != typeof window && window.jQuery, n = e.on, r = e; if ("undefined" == typeof t || t === !1)throw new Error("Unsupported configuration! JQuery is required but not available"); return e.type = e.method, e.cache = !1, delete e.useJQuery, e.data = e.body, delete e.body, e.complete = function (e) { for (var t = {}, a = e.getAllResponseHeaders().split("\n"), s = 0; s < a.length; s++) { var l = a[s].trim(); if (0 !== l.length) { var u = l.indexOf(":"); if (-1 !== u) { var c = l.substring(0, u).trim(), p = l.substring(u + 1).trim(); t[c] = p } else t[l] = null } } var h = { url: r.url, method: r.method, status: e.status, statusText: e.statusText, data: e.responseText, headers: t }; try { var f = e.responseJSON || o.safeLoad(e.responseText); h.obj = "string" == typeof f ? {} : f } catch (d) { i.log("unable to parse JSON/YAML content") } if (h.obj = h.obj || null, e.status >= 200 && e.status < 300)n.response(h); else { if (!(0 === e.status || e.status >= 400 && e.status < 599))return n.response(h); n.error(h) } }, t.support.cors = !0, t.ajax(e) }, u.prototype.execute = function (e) { var t = e.method.toLowerCase(); "delete" === t && (t = "del"); var n, r = e.headers || {}, s = a[t](e.url); for (n in r)s.set(n, r[n]); e.enableCookies && s.withCredentials(), e.body && s.send(e.body), "function" == typeof s.buffer && s.buffer(), s.end(function (t, n) { n = n || {status: 0, headers: {error: "no response from server"}}; var r, a = {url: e.url, method: e.method, headers: n.headers}; if (!t && n.error && (t = n.error), t && e.on && e.on.error) { if (a.errObj = t, a.status = n ? n.status : 500, a.statusText = n ? n.text : t.message, n.headers && n.headers["content-type"] && n.headers["content-type"].indexOf("application/json") >= 0)try { a.obj = JSON.parse(a.statusText) } catch (s) { a.obj = null } r = e.on.error } else if (n && e.on && e.on.response) { var l; if (n.body && Object.keys(n.body).length > 0)l = n.body; else try { l = o.safeLoad(n.text), l = "string" == typeof l ? null : l } catch (s) { i.log("cannot parse JSON/YAML content") } a.obj = "object" == typeof l ? l : null, a.status = n.status, a.statusText = n.text, r = e.on.response } a.data = a.statusText, r && r(a) }) } }, {"./helpers": 4, "js-yaml": 20, "lodash-compat/lang/isObject": 145, superagent: 159}], 6: [function (e, t, n) { "use strict"; var r = e("./http"), i = { isObject: e("lodash-compat/lang/isObject"), cloneDeep: e("lodash-compat/lang/cloneDeep"), isArray: e("lodash-compat/lang/isArray") }, a = t.exports = function () { this.failedUrls = [] }; a.prototype.processAllOf = function (e, t, n, r, i, a) { var o, s, l; n["x-resolved-from"] = ["#/definitions/" + t]; var u = n.allOf; for (u.sort(function (e, t) { return e.$ref && t.$ref ? 0 : e.$ref ? -1 : 1 }), o = 0; o < u.length; o++)l = u[o], s = "/definitions/" + t + "/allOf", this.resolveInline(e, a, l, r, i, s) }, a.prototype.resolve = function (e, t, n, a) { this.spec = e; var o, s, l = t, u = n, c = a, p = {}; "function" == typeof t && (l = null, u = t, c = n); var h = l; this.scope = c || this, this.iteration = this.iteration || 0, this.scope.options && this.scope.options.requestInterceptor && (p.requestInterceptor = this.scope.options.requestInterceptor), this.scope.options && this.scope.options.responseInterceptor && (p.responseInterceptor = this.scope.options.responseInterceptor); var f, d, m, y, g = 0, v = {}, b = {}, w = []; e.definitions = e.definitions || {}; for (f in e.definitions) { var x = e.definitions[f]; for (y in x.properties)m = x.properties[y], i.isArray(m.allOf) ? this.processAllOf(l, f, m, w, b, e) : this.resolveTo(l, m, w, "/definitions"); x.allOf && this.processAllOf(l, f, x, w, b, e) } for (f in e.paths) { var j, A, O; d = e.paths[f]; for (j in d)if ("$ref" === j)o = "/paths" + f, this.resolveInline(l, e, d, w, b, o); else { A = d[j]; var _ = d.parameters || [], S = A.parameters || []; for (s in _) { var k = _[s]; S.unshift(k) } "parameters" !== j && i.isObject(A) && (A.parameters = A.parameters || S); for (s in S) { var k = S[s]; if (o = "/paths" + f + "/" + j + "/parameters", "body" === k["in"] && k.schema)if (i.isArray(k.schema.allOf)) { for (var E = "inline_model", f = E, C = !1, I = 0; !C;) { if ("undefined" == typeof e.definitions[f]) { C = !0; break } f = E + "_" + I, I++ } e.definitions[f] = {allOf: k.schema.allOf}, delete k.schema.allOf, k.schema.$ref = "#/definitions/" + f, this.processAllOf(l, f, e.definitions[f], w, b, e) } else this.resolveTo(l, k.schema, w, o); k.$ref && this.resolveInline(l, e, k, w, b, k.$ref) } for (O in A.responses) { var T = A.responses[O]; if (o = "/paths" + f + "/" + j + "/responses/" + O, i.isObject(T) && (T.$ref && this.resolveInline(l, e, T, w, b, o), T.schema)) { var $ = T; if (i.isArray($.schema.allOf)) { for (var E = "inline_model", f = E, C = !1, I = 0; !C;) { if ("undefined" == typeof e.definitions[f]) { C = !0; break } f = E + "_" + I, I++ } e.definitions[f] = {allOf: $.schema.allOf}, delete $.schema.allOf, delete $.schema.type, $.schema.$ref = "#/definitions/" + f, this.processAllOf(l, f, e.definitions[f], w, b, e) } else this.resolveTo(l, T.schema, w, o) } } } d.parameters = [] } var M, P = 0, U = [], L = w; for (s = 0; s < L.length; s++) { var D = L[s]; if (l === D.root) { if ("ref" === D.resolveAs) { var R, N = ((D.root || "") + "/" + D.key).split("/"), F = [], B = ""; if (D.key.indexOf("../") >= 0) { for (var q = 0; q < N.length; q++)".." === N[q] ? F = F.slice(0, F.length - 1) : F.push(N[q]); for (R = 0; R < F.length; R++)R > 0 && (B += "/"), B += F[R]; D.root = B, U.push(D) } else if (M = D.key.split("#"), 2 === M.length) { 0 !== M[0].indexOf("http://") && 0 !== M[0].indexOf("https://") || (D.root = M[0]), o = M[1].split("/"); var H, V = e; for (R = 0; R < o.length; R++) { var z = o[R]; if ("" !== z) { if (V = V[z], "undefined" == typeof V) { H = null; break } H = V } } null === H && U.push(D) } } else if ("inline" === D.resolveAs) { if (D.key && -1 === D.key.indexOf("#") && "/" !== D.key.charAt(0)) { for (M = D.root.split("/"), o = "", s = 0; s < M.length - 1; s++)o += M[s] + "/"; o += D.key, D.root = o, D.location = "" } U.push(D) } } else U.push(D) } P = U.length; for (var J = 0; J < U.length; J++)!function (e, t, n) { if (e.root && e.root !== l)if (-1 === n.failedUrls.indexOf(e.root)) { var i = { useJQuery: !1, url: e.root, method: "get", headers: {accept: n.scope.swaggerRequestHeaders || "application/json"}, on: { error: function (r) { g += 1, console.log("failed url: " + i.url), n.failedUrls.push(i.url), b[e.key] = { root: e.root, location: e.location }, g === P && n.finish(t, h, w, v, b, u) }, response: function (r) { var i = r.obj; n.resolveItem(i, e.root, w, v, b, e), g += 1, g === P && n.finish(t, h, w, v, b, u) } } }; c && c.clientAuthorizations && c.clientAuthorizations.apply(i), (new r).execute(i, p) } else g += 1, b[e.key] = { root: e.root, location: e.location }, g === P && n.finish(t, h, w, v, b, u); else n.resolveItem(t, h, w, v, b, e), g += 1, g === P && n.finish(t, l, w, v, b, u, !0) }(U[J], e, this); 0 === Object.keys(U).length && this.finish(e, h, w, v, b, u) }, a.prototype.resolveItem = function (e, t, n, r, i, a) { var o = a.location, s = e, l = o.split("/"); if ("" !== o)for (var u = 0; u < l.length; u++) { var c = l[u]; if (-1 !== c.indexOf("~1") && (c = l[u].replace(/~0/g, "~").replace(/~1/g, "/"), "/" !== c.charAt(0) && (c = "/" + c)), "undefined" == typeof s || null === s)break; if ("" === c && u === l.length - 1 && l.length > 1) { s = null; break } c.length > 0 && (s = s[c]) } var p = a.key; l = a.key.split("/"); var h = l[l.length - 1]; h.indexOf("#") >= 0 && (h = h.split("#")[1]), null !== s && "undefined" != typeof s ? r[p] = { name: h, obj: s, key: a.key, root: a.root } : i[p] = {root: a.root, location: a.location} }, a.prototype.finish = function (e, t, n, r, i, a, o) { var s; for (s in n) { var l = n[s], u = l.key, c = r[u]; if (c)if (e.definitions = e.definitions || {}, "ref" === l.resolveAs) { if (o !== !0)for (u in c.obj)var p = this.retainRoot(c.obj[u], l.root); e.definitions[c.name] = c.obj, l.obj.$ref = "#/definitions/" + c.name } else if ("inline" === l.resolveAs) { var h = l.obj; h["x-resolved-from"] = [l.key], delete h.$ref; for (u in c.obj) { var p = c.obj[u]; o !== !0 && (p = this.retainRoot(c.obj[u], l.root)), h[u] = p } } } var f = this.countUnresolvedRefs(e); 0 === f || this.iteration > 5 ? (this.resolveAllOf(e.definitions), a.call(this.scope, e, i)) : (this.iteration += 1, this.resolve(e, t, a, this.scope)) }, a.prototype.countUnresolvedRefs = function (e) { var t, n = this.getRefs(e), r = [], i = []; for (t in n)0 === t.indexOf("#") ? r.push(t.substring(1)) : i.push(t); for (t = 0; t < r.length; t++)for (var a = r[t], o = a.split("/"), s = e, l = 0; l < o.length; l++) { var u = o[l]; if ("" !== u && (s = s[u], "undefined" == typeof s)) { i.push(a); break } } return i.length }, a.prototype.getRefs = function (e, t) { t = t || e; var n = {}; for (var r in t)if (t.hasOwnProperty(r)) { var a = t[r]; if ("$ref" === r && "string" == typeof a)n[a] = null; else if (i.isObject(a)) { var o = this.getRefs(a); for (var s in o)n[s] = null } } return n }, a.prototype.retainRoot = function (e, t) { for (var n in e) { var r = e[n]; if ("$ref" === n && "string" == typeof r) { if (0 !== r.indexOf("http://") && 0 !== r.indexOf("https://")) { var a = !0; if (t) { var o = t.slice(-1); if ("/" !== o && 0 !== r.indexOf("#") && 0 !== r.indexOf("http://") && r.indexOf("https://")) { console.log("working with " + r), a = !1; var s = t.split("/"); s = s.splice(0, s.length - 1), t = ""; for (var l = 0; l < s.length; l++)t += s[l] + "/" } } 0 !== r.indexOf("#") && a && (r = "#" + r), r = (t || "") + r, e[n] = r } } else i.isObject(r) && this.retainRoot(r, t) } return e }, a.prototype.resolveInline = function (e, t, n, r, i, a) { var o, s, l, u, c = n.$ref, p = n.$ref, h = !1; if (e = e || "", p) { if (0 === p.indexOf("../")) { for (s = p.split("../"), l = e.split("/"), p = "", o = 0; o < s.length; o++)"" === s[o] ? l = l.slice(0, l.length - 1) : p += s[o]; for (e = "", o = 0; o < l.length - 1; o++)o > 0 && (e += "/"), e += l[o]; h = !0 } if (p.indexOf("#") >= 0)if (0 === p.indexOf("/"))u = p.split("#"), s = e.split("//"), l = s[1].split("/"), e = s[0] + "//" + l[0] + u[0], a = u[1]; else { if (u = p.split("#"), "" !== u[0]) { if (l = e.split("/"), l = l.slice(0, l.length - 1), !h) { e = ""; for (var f = 0; f < l.length; f++)f > 0 && (e += "/"), e += l[f] } e += "/" + p.split("#")[0] } a = u[1] } 0 === p.indexOf("http") ? (p.indexOf("#") >= 0 ? (e = p.split("#")[0], a = p.split("#")[1]) : (e = p, a = ""), r.push({ obj: n, resolveAs: "inline", root: e, key: c, location: a })) : 0 === p.indexOf("#") ? (a = p.split("#")[1], r.push({ obj: n, resolveAs: "inline", root: e, key: c, location: a })) : r.push({obj: n, resolveAs: "inline", root: e, key: c, location: a}) } else"array" === n.type && this.resolveTo(e, n.items, r, a) }, a.prototype.resolveTo = function (e, t, n, r) { var a, o, s = t.$ref, l = e; if ("undefined" != typeof s && null !== s) { if (s.indexOf("#") >= 0) { var u = s.split("#"); if (u[0] && 0 === s.indexOf("/")); else if (u[0] && 0 === u[0].indexOf("http"))l = u[0], s = u[1]; else if (u[0] && u[0].length > 0) { for (a = e.split("/"), l = "", o = 0; o < a.length - 1; o++)l += a[o] + "/"; l += u[0] } r = u[1] } else if (0 === s.indexOf("http://") || 0 === s.indexOf("https://"))l = s, r = ""; else { for (a = e.split("/"), l = "", o = 0; o < a.length - 1; o++)l += a[o] + "/"; l += s, r = "" } n.push({obj: t, resolveAs: "ref", root: l, key: s, location: r}) } else if ("array" === t.type) { var c = t.items; this.resolveTo(e, c, n, r) } else if (t && t.properties) { var p = this.uniqueName("inline_model"); t.title && (p = this.uniqueName(t.title)), delete t.title, this.spec.definitions[p] = i.cloneDeep(t), t.$ref = "#/definitions/" + p, delete t.type, delete t.properties } }, a.prototype.uniqueName = function (e) { for (var t = e, n = 0; ;) { if (!i.isObject(this.spec.definitions[t]))return t; t = e + "_" + n, n++ } }, a.prototype.resolveAllOf = function (e, t, n) { n = n || 0, t = t || e; var r; for (var a in t)if (t.hasOwnProperty(a)) { var o = t[a]; if (null === o)throw new TypeError("Swagger 2.0 does not support null types (" + t + "). See https://github.com/swagger-api/swagger-spec/issues/229."); if ("object" == typeof o && this.resolveAllOf(e, o, n + 1), o && "undefined" != typeof o.allOf) { var s = o.allOf; if (i.isArray(s)) { var l = i.cloneDeep(o); delete l.allOf, l["x-composed"] = !0, "undefined" != typeof o["x-resolved-from"] && (l["x-resolved-from"] = o["x-resolved-from"]); for (var u = 0; u < s.length; u++) { var c = s[u], p = "self"; "undefined" != typeof c["x-resolved-from"] && (p = c["x-resolved-from"][0]); for (var h in c)if (l.hasOwnProperty(h))if ("properties" === h) { var f = c[h]; for (r in f) { l.properties[r] = i.cloneDeep(f[r]); var d = f[r]["x-resolved-from"]; "undefined" != typeof d && "self" !== d || (d = p), l.properties[r]["x-resolved-from"] = d } } else if ("required" === h) { for (var m = l.required.concat(c[h]), y = 0; y < m.length; ++y)for (var g = y + 1; g < m.length; ++g)m[y] === m[g] && m.splice(g--, 1); l.required = m } else"x-resolved-from" === h && l["x-resolved-from"].push(p); else if (l[h] = i.cloneDeep(c[h]), "properties" === h)for (r in l[h])l[h][r]["x-resolved-from"] = p } t[a] = l } } } } }, { "./http": 5, "lodash-compat/lang/cloneDeep": 139, "lodash-compat/lang/isArray": 141, "lodash-compat/lang/isObject": 145 }], 7: [function (e, t, n) { "use strict"; function r(e, t) { return '' + e + ":" + t + "" } function i(e, t) { var n; return "integer" === e && "int32" === t ? n = "integer" : "integer" === e && "int64" === t ? n = "long" : "integer" === e && "undefined" == typeof t ? n = "long" : "string" === e && "date-time" === t ? n = "date-time" : "string" === e && "date" === t ? n = "date" : "number" === e && "float" === t ? n = "float" : "number" === e && "double" === t ? n = "double" : "number" === e && "undefined" == typeof t ? n = "double" : "boolean" === e ? n = "boolean" : "string" === e && (n = "string"), n } function a(e, t) { var n = ""; return "undefined" != typeof e.$ref ? n += l.simpleRef(e.$ref) : "undefined" == typeof e.type ? n += "object" : "array" === e.type ? t ? n += a(e.items || e.$ref || {}) : (n += "Array[", n += a(e.items || e.$ref || {}), n += "]") : n += "integer" === e.type && "int32" === e.format ? "integer" : "integer" === e.type && "int64" === e.format ? "long" : "integer" === e.type && "undefined" == typeof e.format ? "long" : "string" === e.type && "date-time" === e.format ? "date-time" : "string" === e.type && "date" === e.format ? "date" : "string" === e.type && "undefined" == typeof e.format ? "string" : "number" === e.type && "float" === e.format ? "float" : "number" === e.type && "double" === e.format ? "double" : "number" === e.type && "undefined" == typeof e.format ? "double" : "boolean" === e.type ? "boolean" : e.$ref ? l.simpleRef(e.$ref) : e.type, n } function o(e, t, n, r) { e = l.resolveSchema(e), "function" != typeof r && (r = function (e) { return (e || {})["default"] }), n = n || {}; var i, a, s = e.type || "object", c = e.format; return u.isUndefined(e.example) ? u.isUndefined(e.items) && u.isArray(e["enum"]) && (a = e["enum"][0]) : a = e.example, u.isUndefined(a) && (e.$ref ? (i = t[l.simpleRef(e.$ref)], u.isUndefined(i) || (u.isUndefined(n[i.name]) ? (n[i.name] = i, a = o(i.definition, t, n, r), delete n[i.name]) : a = "array" === i.type ? [] : {})) : u.isUndefined(e["default"]) ? "string" === s ? a = "date-time" === c ? (new Date).toISOString() : "date" === c ? (new Date).toISOString().split("T")[0] : "string" : "integer" === s ? a = 0 : "number" === s ? a = 0 : "boolean" === s ? a = !0 : "object" === s ? (a = {}, u.forEach(e.properties, function (e, i) { var s = u.cloneDeep(e); s["default"] = r(e), a[i] = o(s, t, n, r) })) : "array" === s && (a = [], u.isArray(e.items) ? u.forEach(e.items, function (e) { a.push(o(e, t, n, r)) }) : u.isPlainObject(e.items) ? a.push(o(e.items, t, n, r)) : u.isUndefined(e.items) ? a.push({}) : l.log("Array type's 'items' property is not an array or an object, cannot process")) : a = e["default"]), a } function s(e, t, n, i) { function a(e, t, r) { var i, a = t; return e.$ref ? (a = e.title || l.simpleRef(e.$ref), i = n[a]) : u.isUndefined(t) && (a = e.title || "Inline Model " + ++m, i = {definition: e}), r !== !0 && (f[a] = u.isUndefined(i) ? {} : i.definition), a } function o(e) { var t = '', n = e.type || "object"; return e.$ref ? t += a(e, l.simpleRef(e.$ref)) : "object" === n ? t += u.isUndefined(e.properties) ? "object" : a(e) : "array" === n ? (t += "Array[", u.isArray(e.items) ? t += u.map(e.items, a).join(",") : u.isPlainObject(e.items) ? t += u.isUndefined(e.items.$ref) ? u.isUndefined(e.items.type) || -1 !== u.indexOf(["array", "object"], e.items.type) ? a(e.items) : e.items.type : a(e.items, l.simpleRef(e.items.$ref)) : (l.log("Array type's 'items' schema is not an array or an object, cannot process"), t += "object"), t += "]") : t += e.type, t += "" } function s(e, t) { var n = "", i = e.type || "object", a = "array" === i; switch (a && (i = u.isPlainObject(e.items) && !u.isUndefined(e.items.type) ? e.items.type : "object"), u.isUndefined(e["default"]) || (n += r("Default", e["default"])), i) { case"string": e.minLength && (n += r("Min. Length", e.minLength)), e.maxLength && (n += r("Max. Length", e.maxLength)), e.pattern && (n += r("Reg. Exp.", e.pattern)); break; case"integer": case"number": e.minimum && (n += r("Min. Value", e.minimum)), e.exclusiveMinimum && (n += r("Exclusive Min.", "true")), e.maximum && (n += r("Max. Value", e.maximum)), e.exclusiveMaximum && (n += r("Exclusive Max.", "true")), e.multipleOf && (n += r("Multiple Of", e.multipleOf)) } if (a && (e.minItems && (n += r("Min. Items", e.minItems)), e.maxItems && (n += r("Max. Items", e.maxItems)), e.uniqueItems && (n += r("Unique Items", "true")), e.collectionFormat && (n += r("Coll. Format", e.collectionFormat))), u.isUndefined(e.items) && u.isArray(e["enum"])) { var o; o = "number" === i || "integer" === i ? e["enum"].join(", ") : '"' + e["enum"].join('", "') + '"', n += r("Enum", o) } return n.length > 0 && (t = '' + t + '" + n + "
    ' + i + "
    "), t } function c(e, t) { var r = e.type || "object", c = "array" === e.type, f = p + t + " " + (c ? "[" : "{") + h; if (t && d.push(t), c)u.isArray(e.items) ? f += "
    " + u.map(e.items, function (e) { var t = e.type || "object"; return u.isUndefined(e.$ref) ? u.indexOf(["array", "object"], t) > -1 ? "object" === t && u.isUndefined(e.properties) ? "object" : a(e) : s(e, t) : a(e, l.simpleRef(e.$ref)) }).join(",
    ") : u.isPlainObject(e.items) ? f += u.isUndefined(e.items.$ref) ? u.indexOf(["array", "object"], e.items.type || "object") > -1 ? (u.isUndefined(e.items.type) || "object" === e.items.type) && u.isUndefined(e.items.properties) ? "
    object
    " : "
    " + a(e.items) + "
    " : "
    " + s(e.items, e.items.type) + "
    " : "
    " + a(e.items, l.simpleRef(e.items.$ref)) + "
    " : (l.log("Array type's 'items' property is not an array or an object, cannot process"), f += "
    object
    "); else if (e.$ref)f += "
    " + a(e, t) + "
    "; else if ("object" === r) { if (u.isPlainObject(e.properties)) { var m = u.map(e.properties, function (t, r) { var a, c, p = u.indexOf(e.required, r) >= 0, h = u.cloneDeep(t), f = p ? "required" : "", d = '' + r + " ("; return h["default"] = i(h), h = l.resolveSchema(h), c = t.description || h.description, u.isUndefined(h.$ref) || (a = n[l.simpleRef(h.$ref)], u.isUndefined(a) || -1 !== u.indexOf([void 0, "array", "object"], a.definition.type) || (h = l.resolveSchema(a.definition))), d += o(h), p || (d += ', optional'), t.readOnly && (d += ', read only'), d += ")", u.isUndefined(c) || (d += ': ' + c + ""), h["enum"] && (d += ' = [\'' + h["enum"].join("', '") + "']"), "" + s(h, d) }).join(",
    "); m && (f += m + "
    ") } } else f += "
    " + s(e, r) + "
    "; return f + p + (c ? "]" : "}") + h } var p = '', h = ""; if (u.isObject(arguments[0]) && (e = void 0, t = arguments[0], n = arguments[1], i = arguments[2]), n = n || {}, t = l.resolveSchema(t), u.isEmpty(t))return p + "Empty" + h; if ("string" == typeof t.$ref && (e = l.simpleRef(t.$ref), t = n[e], "undefined" == typeof t))return p + e + " is not defined!" + h; "string" != typeof e && (e = t.title || "Inline Model"), t.definition && (t = t.definition), "function" != typeof i && (i = function (e) { return (e || {})["default"] }); for (var f = {}, d = [], m = 0, y = c(t, e); u.keys(f).length > 0;)u.forEach(f, function (e, t) { var n = u.indexOf(d, t) > -1; delete f[t], n || (d.push(t), y += "
    " + c(e, t)) }); return y } var l = e("./helpers"), u = { isPlainObject: e("lodash-compat/lang/isPlainObject"), isUndefined: e("lodash-compat/lang/isUndefined"), isArray: e("lodash-compat/lang/isArray"), isObject: e("lodash-compat/lang/isObject"), isEmpty: e("lodash-compat/lang/isEmpty"), map: e("lodash-compat/collection/map"), indexOf: e("lodash-compat/array/indexOf"), cloneDeep: e("lodash-compat/lang/cloneDeep"), keys: e("lodash-compat/object/keys"), forEach: e("lodash-compat/collection/forEach") }; t.exports.optionHtml = r, t.exports.typeFromJsonSchema = i, t.exports.getStringSignature = a, t.exports.schemaToHTML = s, t.exports.schemaToJSON = o }, { "./helpers": 4, "lodash-compat/array/indexOf": 50, "lodash-compat/collection/forEach": 55, "lodash-compat/collection/map": 57, "lodash-compat/lang/cloneDeep": 139, "lodash-compat/lang/isArray": 141, "lodash-compat/lang/isEmpty": 142, "lodash-compat/lang/isObject": 145, "lodash-compat/lang/isPlainObject": 146, "lodash-compat/lang/isUndefined": 149, "lodash-compat/object/keys": 150 }], 8: [function (e, t, n) { "use strict"; var r = e("./http"), i = {isObject: e("lodash-compat/lang/isObject")}, a = t.exports = function () { this.errors = [], this.warnings = [], this.modelMap = {} }; a.prototype.setDocumentationLocation = function (e) { this.docLocation = e }, a.prototype.convert = function (e, t, n, r) { if (!e || !Array.isArray(e.apis))return this.finish(r, null); this.clientAuthorizations = t; var i = {swagger: "2.0"}; i.originalVersion = e.swaggerVersion, this.apiInfo(e, i), this.securityDefinitions(e, i), e.basePath && this.setDocumentationLocation(e.basePath); var a, o = !1; for (a = 0; a < e.apis.length; a++) { var s = e.apis[a]; Array.isArray(s.operations) && (o = !0) } o ? (this.declaration(e, i), this.finish(r, i)) : this.resourceListing(e, i, n, r) }, a.prototype.declaration = function (e, t) { var n, r, a, o; if (e.apis) { 0 === e.basePath.indexOf("http://") ? (a = e.basePath.substring("http://".length), o = a.indexOf("/"), o > 0 ? (t.host = a.substring(0, o), t.basePath = a.substring(o)) : (t.host = a, t.basePath = "/")) : 0 === e.basePath.indexOf("https://") ? (a = e.basePath.substring("https://".length), o = a.indexOf("/"), o > 0 ? (t.host = a.substring(0, o), t.basePath = a.substring(o)) : (t.host = a, t.basePath = "/")) : t.basePath = e.basePath; var s; if (e.authorizations && (s = e.authorizations), e.consumes && (t.consumes = e.consumes), e.produces && (t.produces = e.produces), i.isObject(e))for (n in e.models) { var l = e.models[n], u = l.id || n; this.modelMap[u] = n } for (r = 0; r < e.apis.length; r++) { var c = e.apis[r], p = c.path, h = c.operations; this.operations(p, e.resourcePath, h, s, t) } var f = e.models || {}; this.models(f, t) } }, a.prototype.models = function (e, t) { if (i.isObject(e)) { var n; t.definitions = t.definitions || {}; for (n in e) { var r, a = e[n], o = [], s = {properties: {}}; for (r in a.properties) { var l = a.properties[r], u = {}; this.dataType(l, u), l.description && (u.description = l.description), l["enum"] && (u["enum"] = l["enum"]), "boolean" == typeof l.required && l.required === !0 && o.push(r), "string" == typeof l.required && "true" === l.required && o.push(r), s.properties[r] = u } o.length > 0 ? s.required = o : s.required = a.required, t.definitions[n] = s } } }, a.prototype.extractTag = function (e) { var t = e || "default"; return 0 !== t.indexOf("http:") && 0 !== t.indexOf("https:") || (t = t.split(["/"]), t = t[t.length - 1].substring()), t.endsWith(".json") && (t = t.substring(0, t.length - ".json".length)), t.replace("/", "") }, a.prototype.operations = function (e, t, n, r, i) { if (Array.isArray(n)) { var a; i.paths || (i.paths = {}); var o = i.paths[e] || {}, s = this.extractTag(t); i.tags = i.tags || []; var l = !1; for (a = 0; a < i.tags.length; a++) { var u = i.tags[a]; u.name === s && (l = !0) } for (l || i.tags.push({name: s}), a = 0; a < n.length; a++) { var c = n[a], p = (c.method || c.httpMethod).toLowerCase(), h = {tags: [s]}, f = c.authorizations; if (f && 0 === Object.keys(f).length && (f = r), "undefined" != typeof f) { var d; for (var m in f) { h.security = h.security || []; var y = f[m]; if (y) { var g = []; for (var v in y)g.push(y[v].scope); d = {}, d[m] = g, h.security.push(d) } else d = {}, d[m] = [], h.security.push(d) } } c.consumes ? h.consumes = c.consumes : i.consumes && (h.consumes = i.consumes), c.produces ? h.produces = c.produces : i.produces && (h.produces = i.produces), c.summary && (h.summary = c.summary), c.notes && (h.description = c.notes), c.nickname && (h.operationId = c.nickname), c.deprecated && (h.deprecated = c.deprecated), this.authorizations(f, i), this.parameters(h, c.parameters, i), this.responseMessages(h, c, i), o[p] = h } i.paths[e] = o } }, a.prototype.responseMessages = function (e, t) { if (i.isObject(t)) { var n = {}; this.dataType(t, n), !n.schema && n.type && (n = {schema: n}), e.responses = e.responses || {}; var r = !1; if (Array.isArray(t.responseMessages)) { var a, o = t.responseMessages; for (a = 0; a < o.length; a++) { var s = o[a], l = {description: s.message}; 200 === s.code && (r = !0), s.responseModel && (l.schema = {$ref: "#/definitions/" + s.responseModel}), e.responses["" + s.code] = l } } r ? e.responses["default"] = n : e.responses[200] = n } }, a.prototype.authorizations = function (e) { !i.isObject(e) }, a.prototype.parameters = function (e, t) { if (Array.isArray(t)) { var n; for (n = 0; n < t.length; n++) { var r = t[n], i = {}; if (i.name = r.name, i.description = r.description, i.required = r.required, i["in"] = r.paramType, "body" === i["in"] && (i.name = "body"), "form" === i["in"] && (i["in"] = "formData"), r["enum"] && (i["enum"] = r["enum"]), r.allowMultiple === !0 || "true" === r.allowMultiple) { var a = {}; if (this.dataType(r, a), i.type = "array", i.items = a, r.allowableValues) { var o = r.allowableValues; "LIST" === o.valueType && (i["enum"] = o.values) } } else this.dataType(r, i); "undefined" != typeof r.defaultValue && (i["default"] = r.defaultValue), e.parameters = e.parameters || [], e.parameters.push(i) } } }, a.prototype.dataType = function (e, t) { if (i.isObject(e)) { e.minimum && (t.minimum = e.minimum), e.maximum && (t.maximum = e.maximum), e.format && (t.format = e.format), "undefined" != typeof e.defaultValue && (t["default"] = e.defaultValue); var n = this.toJsonSchema(e); n && (t = t || {}, n.type && (t.type = n.type), n.format && (t.format = n.format), n.$ref && (t.schema = {$ref: n.$ref}), n.items && (t.items = n.items)) } }, a.prototype.toJsonSchema = function (e) { if (!e)return "object"; var t = e.type || e.dataType || e.responseClass || "", n = t.toLowerCase(), r = (e.format || "").toLowerCase(); if (0 === n.indexOf("list[")) { var i = t.substring(5, t.length - 1), a = this.toJsonSchema({type: i}); return {type: "array", items: a} } if ("int" === n || "integer" === n && "int32" === r)return {type: "integer", format: "int32"}; if ("long" === n || "integer" === n && "int64" === r)return {type: "integer", format: "int64"}; if ("integer" === n)return {type: "integer", format: "int64"}; if ("float" === n || "number" === n && "float" === r)return {type: "number", format: "float"}; if ("double" === n || "number" === n && "double" === r)return {type: "number", format: "double"}; if ("string" === n && "date-time" === r || "date" === n)return { type: "string", format: "date-time" }; if ("string" === n)return {type: "string"}; if ("file" === n)return {type: "file"}; if ("boolean" === n)return {type: "boolean"}; if ("boolean" === n)return {type: "boolean"}; if ("array" === n || "list" === n) { if (e.items) { var o = this.toJsonSchema(e.items); return {type: "array", items: o} } return {type: "array", items: {type: "object"}} } return e.$ref ? {$ref: this.modelMap[e.$ref] ? "#/definitions/" + this.modelMap[e.$ref] : e.$ref} : "void" === n || "" === n ? {} : this.modelMap[e.type] ? {$ref: "#/definitions/" + this.modelMap[e.type]} : {type: e.type} }, a.prototype.resourceListing = function (e, t, n, i) { var a, o = 0, s = this, l = e.apis.length, u = t, c = {}; for (n && n.requestInterceptor && (c.requestInterceptor = n.requestInterceptor), n && n.responseInterceptor && (c.responseInterceptor = n.responseInterceptor), 0 === l && this.finish(i, t), a = 0; l > a; a++) { var p = e.apis[a], h = p.path, f = this.getAbsolutePath(e.swaggerVersion, this.docLocation, h); p.description && (t.tags = t.tags || [], t.tags.push({ name: this.extractTag(p.path), description: p.description || "" })); var d = {url: f, headers: {accept: "application/json"}, on: {}, method: "get"}; d.on.response = function (e) { o += 1; var t = e.obj; t && s.declaration(t, u), o === l && s.finish(i, u) }, d.on.error = function (e) { console.error(e), o += 1, o === l && s.finish(i, u) }, this.clientAuthorizations && "function" == typeof this.clientAuthorizations.apply && this.clientAuthorizations.apply(d), (new r).execute(d, c) } }, a.prototype.getAbsolutePath = function (e, t, n) { if ("1.0" === e && t.endsWith(".json")) { var r = t.lastIndexOf("/"); r > 0 && (t = t.substring(0, r)) } var i = t; return 0 === n.indexOf("http://") || 0 === n.indexOf("https://") ? i = n : (t.endsWith("/") && (i = t.substring(0, t.length - 1)), i += n), i = i.replace("{format}", "json") }, a.prototype.securityDefinitions = function (e, t) { if (e.authorizations) { var n; for (n in e.authorizations) { var r = !1, i = {}, a = e.authorizations[n]; if ("apiKey" === a.type)i.type = "apiKey", i["in"] = a.passAs, i.name = a.keyname || n, r = !0; else if ("basicAuth" === a.type)i.type = "basicAuth", r = !0; else if ("oauth2" === a.type) { var o, s = a.scopes || [], l = {}; for (o in s) { var u = s[o]; l[u.scope] = u.description } if (i.type = "oauth2", o > 0 && (i.scopes = l), a.grantTypes) { if (a.grantTypes.implicit) { var c = a.grantTypes.implicit; i.flow = "implicit", i.authorizationUrl = c.loginEndpoint, r = !0 } if (a.grantTypes.authorization_code && !i.flow) { var p = a.grantTypes.authorization_code; i.flow = "accessCode", i.authorizationUrl = p.tokenRequestEndpoint.url, i.tokenUrl = p.tokenEndpoint.url, r = !0 } } } r && (t.securityDefinitions = t.securityDefinitions || {}, t.securityDefinitions[n] = i) } } }, a.prototype.apiInfo = function (e, t) { if (e.info) { var n = e.info; t.info = {}, n.contact && (t.info.contact = {}, t.info.contact.email = n.contact), n.description && (t.info.description = n.description), n.title && (t.info.title = n.title), n.termsOfServiceUrl && (t.info.termsOfService = n.termsOfServiceUrl), (n.license || n.licenseUrl) && (t.license = {}, n.license && (t.license.name = n.license), n.licenseUrl && (t.license.url = n.licenseUrl)) } else this.warnings.push("missing info section") }, a.prototype.finish = function (e, t) { e(t) } }, {"./http": 5, "lodash-compat/lang/isObject": 145}], 9: [function (e, t, n) { "use strict"; var r = (e("../helpers").log, { isPlainObject: e("lodash-compat/lang/isPlainObject"), isString: e("lodash-compat/lang/isString") }), i = e("../schema-markup.js"), a = e("js-yaml"), o = t.exports = function (e, t, n, r) { return this.definition = t || {}, this.isArray = "array" === t.type, this.models = n || {}, this.name = t.title || e || "Inline Model", this.modelPropertyMacro = r || function (e) { return e["default"] }, this }; o.prototype.createJSONSample = o.prototype.getSampleValue = function (e) { return e = e || {}, e[this.name] = this, this.examples && r.isPlainObject(this.examples) && this.examples["application/json"] ? (this.definition.example = this.examples["application/json"], r.isString(this.definition.example) && (this.definition.example = a.safeLoad(this.definition.example))) : this.definition.example || (this.definition.example = this.examples), i.schemaToJSON(this.definition, this.models, e, this.modelPropertyMacro) }, o.prototype.getMockSignature = function () { return i.schemaToHTML(this.name, this.definition, this.models, this.modelPropertyMacro) } }, { "../helpers": 4, "../schema-markup.js": 7, "js-yaml": 20, "lodash-compat/lang/isPlainObject": 146, "lodash-compat/lang/isString": 147 }], 10: [function (e, t, n) { "use strict"; function r(e, t) { if (i.isEmpty(t))return e[0]; for (var n = 0, r = t.length; r > n; n++)if (e.indexOf(t[n]) > -1)return t[n]; return e[0] } var i = { cloneDeep: e("lodash-compat/lang/cloneDeep"), isUndefined: e("lodash-compat/lang/isUndefined"), isEmpty: e("lodash-compat/lang/isEmpty"), isObject: e("lodash-compat/lang/isObject") }, a = e("../helpers"), o = e("./model"), s = e("../http"), l = e("q"), u = t.exports = function (e, t, n, r, i, a, s, l, u) { var c = []; if (e = e || {}, a = a || {}, e && e.options && (this.client = e.options.client || null, this.requestInterceptor = e.options.requestInterceptor || null, this.responseInterceptor = e.options.responseInterceptor || null), this.authorizations = a.security, this.basePath = e.basePath || "/", this.clientAuthorizations = u, this.consumes = a.consumes || e.consumes || ["application/json"], this.produces = a.produces || e.produces || ["application/json"], this.deprecated = a.deprecated, this.description = a.description, this.host = e.host || "localhost", this.method = r || c.push("Operation " + n + " is missing method."), this.models = l || {}, this.nickname = n || c.push("Operations must have a nickname."), this.operation = a, this.operations = {}, this.parameters = null !== a ? a.parameters || [] : {}, this.parent = e, this.path = i || c.push("Operation " + this.nickname + " is missing path."), this.responses = a.responses || {}, this.scheme = t || e.scheme || "http", this.schemes = a.schemes || e.schemes, this.security = a.security, this.summary = a.summary || "", this.type = null, this.useJQuery = e.useJQuery, this.enableCookies = e.enableCookies, this.parameterMacro = e.parameterMacro || function (e, t) { return t["default"] }, this.inlineModels = [], "string" == typeof this.deprecated)switch (this.deprecated.toLowerCase()) { case"true": case"yes": case"1": this.deprecated = !0; break; case"false": case"no": case"0": case null: this.deprecated = !1; break; default: this.deprecated = Boolean(this.deprecated) } var p, h; if (s) { var f; for (f in s)h = new o(f, s[f], this.models, e.modelPropertyMacro), h && (this.models[f] = h) } else s = {}; for (p = 0; p < this.parameters.length; p++) { var d = this.parameters[p]; d["default"] = this.parameterMacro(this, d), "array" === d.type && (d.isList = !0, d.allowMultiple = !0); var m = this.getType(d); if (m && "boolean" === m.toString().toLowerCase() && (d.allowableValues = {}, d.isList = !0, d["enum"] = [!0, !1]), "undefined" != typeof d["x-example"]) { var y = d["x-example"]; d["default"] = y } if (d["x-examples"]) { var y = d["x-examples"]["default"]; "undefined" != typeof y && (d["default"] = y) } if ("undefined" != typeof d["enum"]) { var g; for (d.allowableValues = {}, d.allowableValues.values = [], d.allowableValues.descriptiveValues = [], g = 0; g < d["enum"].length; g++) { var v = d["enum"][g], b = v === d["default"] || v + "" === d["default"]; d.allowableValues.values.push(v), d.allowableValues.descriptiveValues.push({ value: v + "", isDefault: b }) } } "array" === d.type && (m = [m], "undefined" == typeof d.allowableValues && (delete d.isList, delete d.allowMultiple)), d.modelSignature = { type: m, definitions: this.models }, d.signature = this.getModelSignature(m, this.models).toString(), d.sampleJSON = this.getModelSampleJSON(m, this.models), d.responseClassSignature = d.signature } var w, x, j = this.responses; if (j[200] ? (x = j[200], w = "200") : j[201] ? (x = j[201], w = "201") : j[202] ? (x = j[202], w = "202") : j[203] ? (x = j[203], w = "203") : j[204] ? (x = j[204], w = "204") : j[205] ? (x = j[205], w = "205") : j[206] ? (x = j[206], w = "206") : j["default"] && (x = j["default"], w = "default"), x && x.schema) { var A, O = this.resolveModel(x.schema, s); delete j[w], O ? (this.successResponse = {}, A = this.successResponse[w] = O) : x.schema.type && "object" !== x.schema.type && "array" !== x.schema.type ? (this.successResponse = {}, A = this.successResponse[w] = x.schema) : (this.successResponse = {}, A = this.successResponse[w] = new o(void 0, x.schema || {}, this.models, e.modelPropertyMacro)), A && (x.description && (A.description = x.description), x.examples && (A.examples = x.examples), x.headers && (A.headers = x.headers)), this.type = x } return c.length > 0 && this.resource && this.resource.api && this.resource.api.fail && this.resource.api.fail(c), this }; u.prototype.isDefaultArrayItemValue = function (e, t) { return t["default"] && Array.isArray(t["default"]) ? -1 !== t["default"].indexOf(e) : e === t["default"] }, u.prototype.getType = function (e) { var t, n = e.type, r = e.format, i = !1; "integer" === n && "int32" === r ? t = "integer" : "integer" === n && "int64" === r ? t = "long" : "integer" === n ? t = "integer" : "string" === n ? t = "date-time" === r ? "date-time" : "date" === r ? "date" : "string" : "number" === n && "float" === r ? t = "float" : "number" === n && "double" === r ? t = "double" : "number" === n ? t = "double" : "boolean" === n ? t = "boolean" : "array" === n ? (i = !0, e.items && (t = this.getType(e.items))) : "file" === n && (t = "file"), e.$ref && (t = a.simpleRef(e.$ref)); var o = e.schema; if (o) { var s = o.$ref; return s ? (s = a.simpleRef(s), i ? [s] : s) : "object" === o.type ? this.addInlineModel(o) : this.getType(o) } return i ? [t] : t }, u.prototype.addInlineModel = function (e) { var t = this.inlineModels.length, n = this.resolveModel(e, {}); return n ? (this.inlineModels.push(n), "Inline Model " + t) : null }, u.prototype.getInlineModel = function (e) { if (/^Inline Model \d+$/.test(e)) { var t = parseInt(e.substr("Inline Model".length).trim(), 10), n = this.inlineModels[t]; return n } return null }, u.prototype.resolveModel = function (e, t) { if ("undefined" != typeof e.$ref) { var n = e.$ref; if (0 === n.indexOf("#/definitions/") && (n = n.substring("#/definitions/".length)), t[n])return new o(n, t[n], this.models, this.parent.modelPropertyMacro) } else if (e && "object" == typeof e && ("object" === e.type || i.isUndefined(e.type)))return new o(void 0, e, this.models, this.parent.modelPropertyMacro); return null }, u.prototype.help = function (e) { for (var t = this.nickname + ": " + this.summary + "\n", n = 0; n < this.parameters.length; n++) { var r = this.parameters[n], i = r.signature; t += "\n * " + r.name + " (" + i + "): " + r.description } return "undefined" == typeof e && a.log(t), t }, u.prototype.getModelSignature = function (e, t) { var n, r; return e instanceof Array && (r = !0, e = e[0]), "undefined" == typeof e ? (e = "undefined", n = !0) : t[e] ? (e = t[e], n = !1) : this.getInlineModel(e) ? (e = this.getInlineModel(e), n = !1) : n = !0, n ? r ? "Array[" + e + "]" : e.toString() : r ? "Array[" + e.getMockSignature() + "]" : e.getMockSignature() }, u.prototype.supportHeaderParams = function () { return !0 }, u.prototype.supportedSubmitMethods = function () { return this.parent.supportedSubmitMethods }, u.prototype.getHeaderParams = function (e) { for (var t = this.setContentTypes(e, {}), n = 0; n < this.parameters.length; n++) { var r = this.parameters[n]; if ("undefined" != typeof e[r.name] && "header" === r["in"]) { var i = e[r.name]; Array.isArray(i) && (i = i.toString()), t[r.name] = i } } return t }, u.prototype.urlify = function (e) { for (var t = {}, n = this.path, r = "", i = 0; i < this.parameters.length; i++) { var a = this.parameters[i]; if ("undefined" != typeof e[a.name])if ("path" === a["in"]) { var o = new RegExp("{" + a.name + "}", "gi"), s = e[a.name]; s = Array.isArray(s) ? this.encodePathCollection(a.collectionFormat, a.name, s) : this.encodePathParam(s), n = n.replace(o, s) } else if ("query" === a["in"] && "undefined" != typeof e[a.name])if (r += "" === r ? "?" : "&", "undefined" != typeof a.collectionFormat) { var l = e[a.name]; r += Array.isArray(l) ? this.encodeQueryCollection(a.collectionFormat, a.name, l) : this.encodeQueryParam(a.name) + "=" + this.encodeQueryParam(e[a.name]) } else r += this.encodeQueryParam(a.name) + "=" + this.encodeQueryParam(e[a.name]); else"formData" === a["in"] && (t[a.name] = e[a.name]) } var u = this.scheme + "://" + this.host; return "/" !== this.basePath && (u += this.basePath), u + n + r }, u.prototype.getMissingParams = function (e) { var t, n = []; for (t = 0; t < this.parameters.length; t++) { var r = this.parameters[t]; r.required === !0 && "undefined" == typeof e[r.name] && (n = r.name) } return n }, u.prototype.getBody = function (e, t, n) { for (var r, i, a, o, s = {}, l = !1, u = 0; u < this.parameters.length; u++) { var c = this.parameters[u]; "undefined" != typeof t[c.name] ? "body" === c["in"] ? i = t[c.name] : "formData" === c["in"] && (s[c.name] = t[c.name], r = !0) : "body" === c["in"] && (l = !0) } if (l && "undefined" == typeof i) { var p = e["Content-Type"]; p && 0 === p.indexOf("application/json") && (i = "{}") } var h = !1; if (e["Content-Type"] && e["Content-Type"].indexOf("multipart/form-data") >= 0 && (h = !0), r && !h) { var f = ""; for (a in s)o = s[a], "undefined" != typeof o && ("" !== f && (f += "&"), f += encodeURIComponent(a) + "=" + encodeURIComponent(o)); i = f } else if (h && n.useJQuery) { var d = new FormData; d.type = "formData"; for (a in s)o = t[a], "undefined" != typeof o && ("file" === o.type && o.value ? (delete e["Content-Type"], d.append(a, o.value)) : d.append(a, o)); i = d } return i }, u.prototype.getModelSampleJSON = function (e, t) { var n, r, a; if (t = t || {}, n = e instanceof Array, a = n ? e[0] : e, t[a] ? r = t[a].createJSONSample() : this.getInlineModel(a) && (r = this.getInlineModel(a).createJSONSample()), r) { if (r = n ? [r] : r, "string" == typeof r)return r; if (i.isObject(r)) { var o = r; if (r instanceof Array && r.length > 0 && (o = r[0]), o.nodeName && "Node" == typeof o) { var s = (new XMLSerializer).serializeToString(o); return this.formatXml(s) } return JSON.stringify(r, null, 2) } return r } }, u.prototype["do"] = function (e, t, n, r, i) { return this.execute(e, t, n, r, i) }, u.prototype.execute = function (e, t, n, r, o) { var u, c, p, h = e || {}, f = {}; i.isObject(t) && (f = t, u = n, c = r), this.client && (f.client = this.client), !f.requestInterceptor && this.requestInterceptor && (f.requestInterceptor = this.requestInterceptor), !f.responseInterceptor && this.responseInterceptor && (f.responseInterceptor = this.responseInterceptor), "function" == typeof t && (u = t, c = n), this.parent.usePromise ? p = l.defer() : (u = u || this.parent.defaultSuccessCallback || a.log, c = c || this.parent.defaultErrorCallback || a.log), "undefined" == typeof f.useJQuery && (f.useJQuery = this.useJQuery), "undefined" == typeof f.enableCookies && (f.enableCookies = this.enableCookies); var d = this.getMissingParams(h); if (d.length > 0) { var m = "missing required params: " + d; return a.fail(m), this.parent.usePromise ? (p.reject(m), p.promise) : (c(m, o), {}) } var y, g = this.getHeaderParams(h), v = this.setContentTypes(h, f), b = {}; for (y in g)b[y] = g[y]; for (y in v)b[y] = v[y]; var w = this.getBody(v, h, f), x = this.urlify(h); if (x.indexOf(".{format}") > 0 && b) { var j = b.Accept || b.accept; j && j.indexOf("json") > 0 ? x = x.replace(".{format}", ".json") : j && j.indexOf("xml") > 0 && (x = x.replace(".{format}", ".xml")) } var A = { url: x, method: this.method.toUpperCase(), body: w, enableCookies: f.enableCookies, useJQuery: f.useJQuery, deferred: p, headers: b, on: { response: function (e) { return p ? (p.resolve(e), p.promise) : u(e, o) }, error: function (e) { return p ? (p.reject(e), p.promise) : c(e, o) } } }; return this.clientAuthorizations.apply(A, this.operation.security), f.mock === !0 ? A : (new s).execute(A, f) }, u.prototype.setContentTypes = function (e, t) { var n, i, o = this.parameters, s = e.parameterContentType || r(this.consumes, ["application/json", "application/yaml"]), l = t.responseContentType || r(this.produces, ["application/json", "application/yaml"]), u = [], c = [], p = {}; for (i = 0; i < o.length; i++) { var h = o[i]; if ("formData" === h["in"])"file" === h.type ? u.push(h) : c.push(h); else if ("header" === h["in"] && t) { var f = h.name, d = t[h.name]; "undefined" != typeof t[h.name] && (p[f] = d) } else"body" === h["in"] && "undefined" != typeof e[h.name] && (n = e[h.name]) } return "post" === this.method || "put" === this.method || "patch" === this.method || ("delete" === this.method || "get" === this.method) && n ? (t.requestContentType && (s = t.requestContentType), c.length > 0 && (s = t.requestContentType ? t.requestContentType : u.length > 0 ? "multipart/form-data" : "application/x-www-form-urlencoded")) : s = null, s && this.consumes && -1 === this.consumes.indexOf(s) && a.log("server doesn't consume " + s + ", try " + JSON.stringify(this.consumes)), this.matchesAccept(l) || a.log("server can't produce " + l), (s && "" !== n || "application/x-www-form-urlencoded" === s) && (p["Content-Type"] = s), l && (p.Accept = l), p }, u.prototype.matchesAccept = function (e) { return e && this.produces ? -1 !== this.produces.indexOf(e) || -1 !== this.produces.indexOf("*/*") : !0 }, u.prototype.asCurl = function (e, t) { var n = {mock: !0}; if ("object" == typeof t)for (var r in t)n[r] = t[r]; var a = this.execute(e, n); this.clientAuthorizations.apply(a, this.operation.security); var o = []; if (o.push("-X " + this.method.toUpperCase()), "undefined" != typeof a.headers) { var s; for (s in a.headers) { var l = a.headers[s]; "string" == typeof l && (l = l.replace(/\'/g, "\\u0027")), o.push("--header '" + s + ": " + l + "'") } } if (a.body) { var u; u = i.isObject(a.body) ? JSON.stringify(a.body) : a.body, o.push("-d '" + u.replace(/\'/g, "\\u0027") + "'") } return "curl " + o.join(" ") + " '" + a.url + "'" }, u.prototype.encodePathCollection = function (e, t, n) { var r, i = "", a = ""; for (a = "ssv" === e ? "%20" : "tsv" === e ? "\\t" : "pipes" === e ? "|" : ",", r = 0; r < n.length; r++)0 === r ? i = this.encodeQueryParam(n[r]) : i += a + this.encodeQueryParam(n[r]); return i }, u.prototype.encodeQueryCollection = function (e, t, n) { var r, i = ""; if ("default" === e || "multi" === e)for (r = 0; r < n.length; r++)r > 0 && (i += "&"), i += this.encodeQueryParam(t) + "=" + this.encodeQueryParam(n[r]); else { var a = ""; if ("csv" === e)a = ","; else if ("ssv" === e)a = "%20"; else if ("tsv" === e)a = "\\t"; else if ("pipes" === e)a = "|"; else if ("brackets" === e)for (r = 0; r < n.length; r++)0 !== r && (i += "&"), i += this.encodeQueryParam(t) + "[]=" + this.encodeQueryParam(n[r]); if ("" !== a)for (r = 0; r < n.length; r++)0 === r ? i = this.encodeQueryParam(t) + "=" + this.encodeQueryParam(n[r]) : i += a + this.encodeQueryParam(n[r]) } return i }, u.prototype.encodeQueryParam = function (e) { return encodeURIComponent(e) }, u.prototype.encodePathParam = function (e) { return encodeURIComponent(e) } }, { "../helpers": 4, "../http": 5, "./model": 9, "lodash-compat/lang/cloneDeep": 139, "lodash-compat/lang/isEmpty": 142, "lodash-compat/lang/isObject": 145, "lodash-compat/lang/isUndefined": 149, q: 158 }], 11: [function (e, t, n) { "use strict"; var r = t.exports = function (e, t, n, r) { this.description = t, this.externalDocs = n, this.name = e, this.operation = r, this.operationsArray = [], this.path = e, this.tag = e }; r.prototype.sort = function () { } }, {}], 12: [function (e, t, n) { }, {}], 13: [function (e, t, n) { function r() { if (!s) { s = !0; for (var e, t = o.length; t;) { e = o, o = []; for (var n = -1; ++n < t;)e[n](); t = o.length } s = !1 } } function i() { } var a = t.exports = {}, o = [], s = !1; a.nextTick = function (e) { o.push(e), s || setTimeout(r, 0) }, a.title = "browser", a.browser = !0, a.env = {}, a.argv = [], a.version = "", a.versions = {}, a.on = i, a.addListener = i, a.once = i, a.off = i, a.removeListener = i, a.removeAllListeners = i, a.emit = i, a.binding = function (e) { throw new Error("process.binding is not supported") }, a.cwd = function () { return "/" }, a.chdir = function (e) { throw new Error("process.chdir is not supported") }, a.umask = function () { return 0 } }, {}], 14: [function (e, t, n) { (function (e) { !function () { "use strict"; function n(t) { var n; return n = t instanceof e ? t : new e(t.toString(), "binary"), n.toString("base64") } t.exports = n }() }).call(this, e("buffer").Buffer) }, {buffer: 15}], 15: [function (e, t, n) { function r() { return i.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823 } function i(e) { return this instanceof i ? (this.length = 0, this.parent = void 0, "number" == typeof e ? a(this, e) : "string" == typeof e ? o(this, e, arguments.length > 1 ? arguments[1] : "utf8") : s(this, e)) : arguments.length > 1 ? new i(e, arguments[1]) : new i(e) } function a(e, t) { if (e = d(e, 0 > t ? 0 : 0 | m(t)), !i.TYPED_ARRAY_SUPPORT)for (var n = 0; t > n; n++)e[n] = 0; return e } function o(e, t, n) { "string" == typeof n && "" !== n || (n = "utf8"); var r = 0 | g(t, n); return e = d(e, r), e.write(t, n), e } function s(e, t) { if (i.isBuffer(t))return l(e, t); if (W(t))return u(e, t); if (null == t)throw new TypeError("must start with number, buffer, array or string"); if ("undefined" != typeof ArrayBuffer) { if (t.buffer instanceof ArrayBuffer)return c(e, t); if (t instanceof ArrayBuffer)return p(e, t) } return t.length ? h(e, t) : f(e, t) } function l(e, t) { var n = 0 | m(t.length); return e = d(e, n), t.copy(e, 0, 0, n), e } function u(e, t) { var n = 0 | m(t.length); e = d(e, n); for (var r = 0; n > r; r += 1)e[r] = 255 & t[r]; return e } function c(e, t) { var n = 0 | m(t.length); e = d(e, n); for (var r = 0; n > r; r += 1)e[r] = 255 & t[r]; return e } function p(e, t) { return i.TYPED_ARRAY_SUPPORT ? (t.byteLength, e = i._augment(new Uint8Array(t))) : e = c(e, new Uint8Array(t)), e } function h(e, t) { var n = 0 | m(t.length); e = d(e, n); for (var r = 0; n > r; r += 1)e[r] = 255 & t[r]; return e } function f(e, t) { var n, r = 0; "Buffer" === t.type && W(t.data) && (n = t.data, r = 0 | m(n.length)), e = d(e, r); for (var i = 0; r > i; i += 1)e[i] = 255 & n[i]; return e } function d(e, t) { i.TYPED_ARRAY_SUPPORT ? e = i._augment(new Uint8Array(t)) : (e.length = t, e._isBuffer = !0); var n = 0 !== t && t <= i.poolSize >>> 1; return n && (e.parent = K), e } function m(e) { if (e >= r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r().toString(16) + " bytes"); return 0 | e } function y(e, t) { if (!(this instanceof y))return new y(e, t); var n = new i(e, t); return delete n.parent, n } function g(e, t) { "string" != typeof e && (e = "" + e); var n = e.length; if (0 === n)return 0; for (var r = !1; ;)switch (t) { case"ascii": case"binary": case"raw": case"raws": return n; case"utf8": case"utf-8": return q(e).length; case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return 2 * n; case"hex": return n >>> 1; case"base64": return z(e).length; default: if (r)return q(e).length; t = ("" + t).toLowerCase(), r = !0 } } function v(e, t, n) { var r = !1; if (t = 0 | t, n = void 0 === n || n === 1 / 0 ? this.length : 0 | n, e || (e = "utf8"), 0 > t && (t = 0), n > this.length && (n = this.length), t >= n)return ""; for (; ;)switch (e) { case"hex": return I(this, t, n); case"utf8": case"utf-8": return S(this, t, n); case"ascii": return E(this, t, n); case"binary": return C(this, t, n); case"base64": return _(this, t, n); case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return T(this, t, n); default: if (r)throw new TypeError("Unknown encoding: " + e); e = (e + "").toLowerCase(), r = !0 } } function b(e, t, n, r) { n = Number(n) || 0; var i = e.length - n; r ? (r = Number(r), r > i && (r = i)) : r = i; var a = t.length; if (a % 2 !== 0)throw new Error("Invalid hex string"); r > a / 2 && (r = a / 2); for (var o = 0; r > o; o++) { var s = parseInt(t.substr(2 * o, 2), 16); if (isNaN(s))throw new Error("Invalid hex string"); e[n + o] = s } return o } function w(e, t, n, r) { return J(q(t, e.length - n), e, n, r) } function x(e, t, n, r) { return J(H(t), e, n, r) } function j(e, t, n, r) { return x(e, t, n, r) } function A(e, t, n, r) { return J(z(t), e, n, r) } function O(e, t, n, r) { return J(V(t, e.length - n), e, n, r) } function _(e, t, n) { return 0 === t && n === e.length ? Y.fromByteArray(e) : Y.fromByteArray(e.slice(t, n)) } function S(e, t, n) { n = Math.min(e.length, n); for (var r = [], i = t; n > i;) { var a = e[i], o = null, s = a > 239 ? 4 : a > 223 ? 3 : a > 191 ? 2 : 1; if (n >= i + s) { var l, u, c, p; switch (s) { case 1: 128 > a && (o = a); break; case 2: l = e[i + 1], 128 === (192 & l) && (p = (31 & a) << 6 | 63 & l, p > 127 && (o = p)); break; case 3: l = e[i + 1], u = e[i + 2], 128 === (192 & l) && 128 === (192 & u) && (p = (15 & a) << 12 | (63 & l) << 6 | 63 & u, p > 2047 && (55296 > p || p > 57343) && (o = p)); break; case 4: l = e[i + 1], u = e[i + 2], c = e[i + 3], 128 === (192 & l) && 128 === (192 & u) && 128 === (192 & c) && (p = (15 & a) << 18 | (63 & l) << 12 | (63 & u) << 6 | 63 & c, p > 65535 && 1114112 > p && (o = p)) } } null === o ? (o = 65533, s = 1) : o > 65535 && (o -= 65536, r.push(o >>> 10 & 1023 | 55296), o = 56320 | 1023 & o), r.push(o), i += s } return k(r) } function k(e) { var t = e.length; if (X >= t)return String.fromCharCode.apply(String, e); for (var n = "", r = 0; t > r;)n += String.fromCharCode.apply(String, e.slice(r, r += X)); return n } function E(e, t, n) { var r = ""; n = Math.min(e.length, n); for (var i = t; n > i; i++)r += String.fromCharCode(127 & e[i]); return r } function C(e, t, n) { var r = ""; n = Math.min(e.length, n); for (var i = t; n > i; i++)r += String.fromCharCode(e[i]); return r } function I(e, t, n) { var r = e.length; (!t || 0 > t) && (t = 0), (!n || 0 > n || n > r) && (n = r); for (var i = "", a = t; n > a; a++)i += B(e[a]); return i } function T(e, t, n) { for (var r = e.slice(t, n), i = "", a = 0; a < r.length; a += 2)i += String.fromCharCode(r[a] + 256 * r[a + 1]); return i } function $(e, t, n) { if (e % 1 !== 0 || 0 > e)throw new RangeError("offset is not uint"); if (e + t > n)throw new RangeError("Trying to access beyond buffer length") } function M(e, t, n, r, a, o) { if (!i.isBuffer(e))throw new TypeError("buffer must be a Buffer instance"); if (t > a || o > t)throw new RangeError("value is out of bounds"); if (n + r > e.length)throw new RangeError("index out of range") } function P(e, t, n, r) { 0 > t && (t = 65535 + t + 1); for (var i = 0, a = Math.min(e.length - n, 2); a > i; i++)e[n + i] = (t & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i) } function U(e, t, n, r) { 0 > t && (t = 4294967295 + t + 1); for (var i = 0, a = Math.min(e.length - n, 4); a > i; i++)e[n + i] = t >>> 8 * (r ? i : 3 - i) & 255 } function L(e, t, n, r, i, a) { if (t > i || a > t)throw new RangeError("value is out of bounds"); if (n + r > e.length)throw new RangeError("index out of range"); if (0 > n)throw new RangeError("index out of range") } function D(e, t, n, r, i) { return i || L(e, t, n, 4, 3.4028234663852886e38, -3.4028234663852886e38), Q.write(e, t, n, r, 23, 4), n + 4 } function R(e, t, n, r, i) { return i || L(e, t, n, 8, 1.7976931348623157e308, -1.7976931348623157e308), Q.write(e, t, n, r, 52, 8), n + 8 } function N(e) { if (e = F(e).replace(Z, ""), e.length < 2)return ""; for (; e.length % 4 !== 0;)e += "="; return e } function F(e) { return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "") } function B(e) { return 16 > e ? "0" + e.toString(16) : e.toString(16) } function q(e, t) { t = t || 1 / 0; for (var n, r = e.length, i = null, a = [], o = 0; r > o; o++) { if (n = e.charCodeAt(o), n > 55295 && 57344 > n) { if (!i) { if (n > 56319) { (t -= 3) > -1 && a.push(239, 191, 189); continue } if (o + 1 === r) { (t -= 3) > -1 && a.push(239, 191, 189); continue } i = n; continue } if (56320 > n) { (t -= 3) > -1 && a.push(239, 191, 189), i = n; continue } n = i - 55296 << 10 | n - 56320 | 65536 } else i && (t -= 3) > -1 && a.push(239, 191, 189); if (i = null, 128 > n) { if ((t -= 1) < 0)break; a.push(n) } else if (2048 > n) { if ((t -= 2) < 0)break; a.push(n >> 6 | 192, 63 & n | 128) } else if (65536 > n) { if ((t -= 3) < 0)break; a.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128) } else { if (!(1114112 > n))throw new Error("Invalid code point"); if ((t -= 4) < 0)break; a.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128) } } return a } function H(e) { for (var t = [], n = 0; n < e.length; n++)t.push(255 & e.charCodeAt(n)); return t } function V(e, t) { for (var n, r, i, a = [], o = 0; o < e.length && !((t -= 2) < 0); o++)n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r); return a } function z(e) { return Y.toByteArray(N(e)) } function J(e, t, n, r) { for (var i = 0; r > i && !(i + n >= t.length || i >= e.length); i++)t[i + n] = e[i]; return i } var Y = e("base64-js"), Q = e("ieee754"), W = e("is-array"); n.Buffer = i, n.SlowBuffer = y, n.INSPECT_MAX_BYTES = 50, i.poolSize = 8192; var K = {}; i.TYPED_ARRAY_SUPPORT = function () { function e() { } try { var t = new Uint8Array(1); return t.foo = function () { return 42 }, t.constructor = e, 42 === t.foo() && t.constructor === e && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength } catch (n) { return !1 } }(), i.isBuffer = function (e) { return !(null == e || !e._isBuffer) }, i.compare = function (e, t) { if (!i.isBuffer(e) || !i.isBuffer(t))throw new TypeError("Arguments must be Buffers"); if (e === t)return 0; for (var n = e.length, r = t.length, a = 0, o = Math.min(n, r); o > a && e[a] === t[a];)++a; return a !== o && (n = e[a], r = t[a]), r > n ? -1 : n > r ? 1 : 0 }, i.isEncoding = function (e) { switch (String(e).toLowerCase()) { case"hex": case"utf8": case"utf-8": case"ascii": case"binary": case"base64": case"raw": case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return !0; default: return !1 } }, i.concat = function (e, t) { if (!W(e))throw new TypeError("list argument must be an Array of Buffers."); if (0 === e.length)return new i(0); var n; if (void 0 === t)for (t = 0, n = 0; n < e.length; n++)t += e[n].length; var r = new i(t), a = 0; for (n = 0; n < e.length; n++) { var o = e[n]; o.copy(r, a), a += o.length } return r }, i.byteLength = g, i.prototype.length = void 0, i.prototype.parent = void 0, i.prototype.toString = function () { var e = 0 | this.length; return 0 === e ? "" : 0 === arguments.length ? S(this, 0, e) : v.apply(this, arguments) }, i.prototype.equals = function (e) { if (!i.isBuffer(e))throw new TypeError("Argument must be a Buffer"); return this === e ? !0 : 0 === i.compare(this, e) }, i.prototype.inspect = function () { var e = "", t = n.INSPECT_MAX_BYTES; return this.length > 0 && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), this.length > t && (e += " ... ")), "" }, i.prototype.compare = function (e) { if (!i.isBuffer(e))throw new TypeError("Argument must be a Buffer"); return this === e ? 0 : i.compare(this, e) }, i.prototype.indexOf = function (e, t) { function n(e, t, n) { for (var r = -1, i = 0; n + i < e.length; i++)if (e[n + i] === t[-1 === r ? 0 : i - r]) { if (-1 === r && (r = i), i - r + 1 === t.length)return n + r } else r = -1; return -1 } if (t > 2147483647 ? t = 2147483647 : -2147483648 > t && (t = -2147483648), t >>= 0, 0 === this.length)return -1; if (t >= this.length)return -1; if (0 > t && (t = Math.max(this.length + t, 0)), "string" == typeof e)return 0 === e.length ? -1 : String.prototype.indexOf.call(this, e, t); if (i.isBuffer(e))return n(this, e, t); if ("number" == typeof e)return i.TYPED_ARRAY_SUPPORT && "function" === Uint8Array.prototype.indexOf ? Uint8Array.prototype.indexOf.call(this, e, t) : n(this, [e], t); throw new TypeError("val must be string, number or Buffer") }, i.prototype.get = function (e) { return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(e) }, i.prototype.set = function (e, t) { return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(e, t) }, i.prototype.write = function (e, t, n, r) { if (void 0 === t)r = "utf8", n = this.length, t = 0; else if (void 0 === n && "string" == typeof t)r = t, n = this.length, t = 0; else if (isFinite(t))t = 0 | t, isFinite(n) ? (n = 0 | n, void 0 === r && (r = "utf8")) : (r = n, n = void 0); else { var i = r; r = t, t = 0 | n, n = i } var a = this.length - t; if ((void 0 === n || n > a) && (n = a), e.length > 0 && (0 > n || 0 > t) || t > this.length)throw new RangeError("attempt to write outside buffer bounds"); r || (r = "utf8"); for (var o = !1; ;)switch (r) { case"hex": return b(this, e, t, n); case"utf8": case"utf-8": return w(this, e, t, n); case"ascii": return x(this, e, t, n); case"binary": return j(this, e, t, n); case"base64": return A(this, e, t, n); case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return O(this, e, t, n); default: if (o)throw new TypeError("Unknown encoding: " + r); r = ("" + r).toLowerCase(), o = !0 } }, i.prototype.toJSON = function () { return {type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0)} }; var X = 4096; i.prototype.slice = function (e, t) { var n = this.length; e = ~~e, t = void 0 === t ? n : ~~t, 0 > e ? (e += n, 0 > e && (e = 0)) : e > n && (e = n), 0 > t ? (t += n, 0 > t && (t = 0)) : t > n && (t = n), e > t && (t = e); var r; if (i.TYPED_ARRAY_SUPPORT)r = i._augment(this.subarray(e, t)); else { var a = t - e; r = new i(a, void 0); for (var o = 0; a > o; o++)r[o] = this[o + e] } return r.length && (r.parent = this.parent || this), r }, i.prototype.readUIntLE = function (e, t, n) { e = 0 | e, t = 0 | t, n || $(e, t, this.length); for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);)r += this[e + a] * i; return r }, i.prototype.readUIntBE = function (e, t, n) { e = 0 | e, t = 0 | t, n || $(e, t, this.length); for (var r = this[e + --t], i = 1; t > 0 && (i *= 256);)r += this[e + --t] * i; return r }, i.prototype.readUInt8 = function (e, t) { return t || $(e, 1, this.length), this[e] }, i.prototype.readUInt16LE = function (e, t) { return t || $(e, 2, this.length), this[e] | this[e + 1] << 8 }, i.prototype.readUInt16BE = function (e, t) { return t || $(e, 2, this.length), this[e] << 8 | this[e + 1] }, i.prototype.readUInt32LE = function (e, t) { return t || $(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3] }, i.prototype.readUInt32BE = function (e, t) { return t || $(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]) }, i.prototype.readIntLE = function (e, t, n) { e = 0 | e, t = 0 | t, n || $(e, t, this.length); for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);)r += this[e + a] * i; return i *= 128, r >= i && (r -= Math.pow(2, 8 * t)), r }, i.prototype.readIntBE = function (e, t, n) { e = 0 | e, t = 0 | t, n || $(e, t, this.length); for (var r = t, i = 1, a = this[e + --r]; r > 0 && (i *= 256);)a += this[e + --r] * i; return i *= 128, a >= i && (a -= Math.pow(2, 8 * t)), a }, i.prototype.readInt8 = function (e, t) { return t || $(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] }, i.prototype.readInt16LE = function (e, t) { t || $(e, 2, this.length); var n = this[e] | this[e + 1] << 8; return 32768 & n ? 4294901760 | n : n }, i.prototype.readInt16BE = function (e, t) { t || $(e, 2, this.length); var n = this[e + 1] | this[e] << 8; return 32768 & n ? 4294901760 | n : n }, i.prototype.readInt32LE = function (e, t) { return t || $(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24 }, i.prototype.readInt32BE = function (e, t) { return t || $(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3] }, i.prototype.readFloatLE = function (e, t) { return t || $(e, 4, this.length), Q.read(this, e, !0, 23, 4) }, i.prototype.readFloatBE = function (e, t) { return t || $(e, 4, this.length), Q.read(this, e, !1, 23, 4) }, i.prototype.readDoubleLE = function (e, t) { return t || $(e, 8, this.length), Q.read(this, e, !0, 52, 8) }, i.prototype.readDoubleBE = function (e, t) { return t || $(e, 8, this.length), Q.read(this, e, !1, 52, 8) }, i.prototype.writeUIntLE = function (e, t, n, r) { e = +e, t = 0 | t, n = 0 | n, r || M(this, e, t, n, Math.pow(2, 8 * n), 0); var i = 1, a = 0; for (this[t] = 255 & e; ++a < n && (i *= 256);)this[t + a] = e / i & 255; return t + n }, i.prototype.writeUIntBE = function (e, t, n, r) { e = +e, t = 0 | t, n = 0 | n, r || M(this, e, t, n, Math.pow(2, 8 * n), 0); var i = n - 1, a = 1; for (this[t + i] = 255 & e; --i >= 0 && (a *= 256);)this[t + i] = e / a & 255; return t + n }, i.prototype.writeUInt8 = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 1, 255, 0), i.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = e, t + 1 }, i.prototype.writeUInt16LE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 2, 65535, 0), i.TYPED_ARRAY_SUPPORT ? (this[t] = e, this[t + 1] = e >>> 8) : P(this, e, t, !0), t + 2 }, i.prototype.writeUInt16BE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 2, 65535, 0), i.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = e) : P(this, e, t, !1), t + 2 }, i.prototype.writeUInt32LE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 4, 4294967295, 0), i.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e) : U(this, e, t, !0), t + 4 }, i.prototype.writeUInt32BE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 4, 4294967295, 0), i.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e) : U(this, e, t, !1), t + 4 }, i.prototype.writeIntLE = function (e, t, n, r) { if (e = +e, t = 0 | t, !r) { var i = Math.pow(2, 8 * n - 1); M(this, e, t, n, i - 1, -i) } var a = 0, o = 1, s = 0 > e ? 1 : 0; for (this[t] = 255 & e; ++a < n && (o *= 256);)this[t + a] = (e / o >> 0) - s & 255; return t + n }, i.prototype.writeIntBE = function (e, t, n, r) { if (e = +e, t = 0 | t, !r) { var i = Math.pow(2, 8 * n - 1); M(this, e, t, n, i - 1, -i) } var a = n - 1, o = 1, s = 0 > e ? 1 : 0; for (this[t + a] = 255 & e; --a >= 0 && (o *= 256);)this[t + a] = (e / o >> 0) - s & 255; return t + n }, i.prototype.writeInt8 = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 1, 127, -128), i.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), 0 > e && (e = 255 + e + 1), this[t] = e, t + 1 }, i.prototype.writeInt16LE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 2, 32767, -32768), i.TYPED_ARRAY_SUPPORT ? (this[t] = e, this[t + 1] = e >>> 8) : P(this, e, t, !0), t + 2 }, i.prototype.writeInt16BE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 2, 32767, -32768), i.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = e) : P(this, e, t, !1), t + 2 }, i.prototype.writeInt32LE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 4, 2147483647, -2147483648), i.TYPED_ARRAY_SUPPORT ? (this[t] = e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : U(this, e, t, !0), t + 4 }, i.prototype.writeInt32BE = function (e, t, n) { return e = +e, t = 0 | t, n || M(this, e, t, 4, 2147483647, -2147483648), 0 > e && (e = 4294967295 + e + 1), i.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e) : U(this, e, t, !1), t + 4 }, i.prototype.writeFloatLE = function (e, t, n) { return D(this, e, t, !0, n) }, i.prototype.writeFloatBE = function (e, t, n) { return D(this, e, t, !1, n) }, i.prototype.writeDoubleLE = function (e, t, n) { return R(this, e, t, !0, n) }, i.prototype.writeDoubleBE = function (e, t, n) { return R(this, e, t, !1, n) }, i.prototype.copy = function (e, t, n, r) { if (n || (n = 0), r || 0 === r || (r = this.length), t >= e.length && (t = e.length), t || (t = 0), r > 0 && n > r && (r = n), r === n)return 0; if (0 === e.length || 0 === this.length)return 0; if (0 > t)throw new RangeError("targetStart out of bounds"); if (0 > n || n >= this.length)throw new RangeError("sourceStart out of bounds"); if (0 > r)throw new RangeError("sourceEnd out of bounds"); r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n); var a, o = r - n; if (this === e && t > n && r > t)for (a = o - 1; a >= 0; a--)e[a + t] = this[a + n]; else if (1e3 > o || !i.TYPED_ARRAY_SUPPORT)for (a = 0; o > a; a++)e[a + t] = this[a + n]; else e._set(this.subarray(n, n + o), t); return o }, i.prototype.fill = function (e, t, n) { if (e || (e = 0), t || (t = 0), n || (n = this.length), t > n)throw new RangeError("end < start"); if (n !== t && 0 !== this.length) { if (0 > t || t >= this.length)throw new RangeError("start out of bounds"); if (0 > n || n > this.length)throw new RangeError("end out of bounds"); var r; if ("number" == typeof e)for (r = t; n > r; r++)this[r] = e; else { var i = q(e.toString()), a = i.length; for (r = t; n > r; r++)this[r] = i[r % a] } return this } }, i.prototype.toArrayBuffer = function () { if ("undefined" != typeof Uint8Array) { if (i.TYPED_ARRAY_SUPPORT)return new i(this).buffer; for (var e = new Uint8Array(this.length), t = 0, n = e.length; n > t; t += 1)e[t] = this[t]; return e.buffer } throw new TypeError("Buffer.toArrayBuffer not supported in this browser") }; var G = i.prototype; i._augment = function (e) { return e.constructor = i, e._isBuffer = !0, e._set = e.set, e.get = G.get, e.set = G.set, e.write = G.write, e.toString = G.toString, e.toLocaleString = G.toString, e.toJSON = G.toJSON, e.equals = G.equals, e.compare = G.compare, e.indexOf = G.indexOf, e.copy = G.copy, e.slice = G.slice, e.readUIntLE = G.readUIntLE, e.readUIntBE = G.readUIntBE, e.readUInt8 = G.readUInt8, e.readUInt16LE = G.readUInt16LE, e.readUInt16BE = G.readUInt16BE, e.readUInt32LE = G.readUInt32LE, e.readUInt32BE = G.readUInt32BE, e.readIntLE = G.readIntLE, e.readIntBE = G.readIntBE, e.readInt8 = G.readInt8, e.readInt16LE = G.readInt16LE, e.readInt16BE = G.readInt16BE, e.readInt32LE = G.readInt32LE, e.readInt32BE = G.readInt32BE, e.readFloatLE = G.readFloatLE, e.readFloatBE = G.readFloatBE, e.readDoubleLE = G.readDoubleLE, e.readDoubleBE = G.readDoubleBE, e.writeUInt8 = G.writeUInt8, e.writeUIntLE = G.writeUIntLE, e.writeUIntBE = G.writeUIntBE, e.writeUInt16LE = G.writeUInt16LE, e.writeUInt16BE = G.writeUInt16BE, e.writeUInt32LE = G.writeUInt32LE, e.writeUInt32BE = G.writeUInt32BE, e.writeIntLE = G.writeIntLE, e.writeIntBE = G.writeIntBE, e.writeInt8 = G.writeInt8, e.writeInt16LE = G.writeInt16LE, e.writeInt16BE = G.writeInt16BE, e.writeInt32LE = G.writeInt32LE, e.writeInt32BE = G.writeInt32BE, e.writeFloatLE = G.writeFloatLE, e.writeFloatBE = G.writeFloatBE, e.writeDoubleLE = G.writeDoubleLE, e.writeDoubleBE = G.writeDoubleBE, e.fill = G.fill, e.inspect = G.inspect, e.toArrayBuffer = G.toArrayBuffer, e }; var Z = /[^+\/0-9A-Za-z-_]/g }, {"base64-js": 16, ieee754: 17, "is-array": 18}], 16: [function (e, t, n) { var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; !function (e) { "use strict"; function t(e) { var t = e.charCodeAt(0); return t === o || t === p ? 62 : t === s || t === h ? 63 : l > t ? -1 : l + 10 > t ? t - l + 26 + 26 : c + 26 > t ? t - c : u + 26 > t ? t - u + 26 : void 0 } function n(e) { function n(e) { u[p++] = e } var r, i, o, s, l, u; if (e.length % 4 > 0)throw new Error("Invalid string. Length must be a multiple of 4"); var c = e.length; l = "=" === e.charAt(c - 2) ? 2 : "=" === e.charAt(c - 1) ? 1 : 0, u = new a(3 * e.length / 4 - l), o = l > 0 ? e.length - 4 : e.length; var p = 0; for (r = 0, i = 0; o > r; r += 4, i += 3)s = t(e.charAt(r)) << 18 | t(e.charAt(r + 1)) << 12 | t(e.charAt(r + 2)) << 6 | t(e.charAt(r + 3)), n((16711680 & s) >> 16), n((65280 & s) >> 8), n(255 & s); return 2 === l ? (s = t(e.charAt(r)) << 2 | t(e.charAt(r + 1)) >> 4, n(255 & s)) : 1 === l && (s = t(e.charAt(r)) << 10 | t(e.charAt(r + 1)) << 4 | t(e.charAt(r + 2)) >> 2, n(s >> 8 & 255), n(255 & s)), u } function i(e) { function t(e) { return r.charAt(e) } function n(e) { return t(e >> 18 & 63) + t(e >> 12 & 63) + t(e >> 6 & 63) + t(63 & e) } var i, a, o, s = e.length % 3, l = ""; for (i = 0, o = e.length - s; o > i; i += 3)a = (e[i] << 16) + (e[i + 1] << 8) + e[i + 2], l += n(a); switch (s) { case 1: a = e[e.length - 1], l += t(a >> 2), l += t(a << 4 & 63), l += "=="; break; case 2: a = (e[e.length - 2] << 8) + e[e.length - 1], l += t(a >> 10), l += t(a >> 4 & 63), l += t(a << 2 & 63), l += "=" } return l } var a = "undefined" != typeof Uint8Array ? Uint8Array : Array, o = "+".charCodeAt(0), s = "/".charCodeAt(0), l = "0".charCodeAt(0), u = "a".charCodeAt(0), c = "A".charCodeAt(0), p = "-".charCodeAt(0), h = "_".charCodeAt(0); e.toByteArray = n, e.fromByteArray = i }("undefined" == typeof n ? this.base64js = {} : n) }, {}], 17: [function (e, t, n) { n.read = function (e, t, n, r, i) { var a, o, s = 8 * i - r - 1, l = (1 << s) - 1, u = l >> 1, c = -7, p = n ? i - 1 : 0, h = n ? -1 : 1, f = e[t + p]; for (p += h, a = f & (1 << -c) - 1, f >>= -c, c += s; c > 0; a = 256 * a + e[t + p], p += h, c -= 8); for (o = a & (1 << -c) - 1, a >>= -c, c += r; c > 0; o = 256 * o + e[t + p], p += h, c -= 8); if (0 === a)a = 1 - u; else { if (a === l)return o ? NaN : (f ? -1 : 1) * (1 / 0); o += Math.pow(2, r), a -= u } return (f ? -1 : 1) * o * Math.pow(2, a - r) }, n.write = function (e, t, n, r, i, a) { var o, s, l, u = 8 * a - i - 1, c = (1 << u) - 1, p = c >> 1, h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f = r ? 0 : a - 1, d = r ? 1 : -1, m = 0 > t || 0 === t && 0 > 1 / t ? 1 : 0; for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, o = c) : (o = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), t += o + p >= 1 ? h / l : h * Math.pow(2, 1 - p), t * l >= 2 && (o++, l /= 2), o + p >= c ? (s = 0, o = c) : o + p >= 1 ? (s = (t * l - 1) * Math.pow(2, i), o += p) : (s = t * Math.pow(2, p - 1) * Math.pow(2, i), o = 0)); i >= 8; e[n + f] = 255 & s, f += d, s /= 256, i -= 8); for (o = o << i | s, u += i; u > 0; e[n + f] = 255 & o, f += d, o /= 256, u -= 8); e[n + f - d] |= 128 * m } }, {}], 18: [function (e, t, n) { var r = Array.isArray, i = Object.prototype.toString; t.exports = r || function (e) { return !!e && "[object Array]" == i.call(e) } }, {}], 19: [function (e, t, n) { !function () { "use strict"; function e(t, n, r, i) { return this instanceof e ? (this.domain = t || void 0, this.path = n || "/", this.secure = !!r, this.script = !!i, this) : new e(t, n, r, i) } function t(e, n, r) { return e instanceof t ? e : this instanceof t ? (this.name = null, this.value = null, this.expiration_date = 1 / 0, this.path = String(r || "/"), this.explicit_path = !1, this.domain = n || null, this.explicit_domain = !1, this.secure = !1, this.noscript = !1, e && this.parse(e, n, r), this) : new t(e, n, r) } function r() { var e, n, i; return this instanceof r ? (e = Object.create(null), this.setCookie = function (r, a, o) { var s, l; if (r = new t(r, a, o), s = r.expiration_date <= Date.now(), void 0 !== e[r.name]) { for (n = e[r.name], l = 0; l < n.length; l += 1)if (i = n[l], i.collidesWith(r))return s ? (n.splice(l, 1), 0 === n.length && delete e[r.name], !1) : (n[l] = r, r); return s ? !1 : (n.push(r), r) } return s ? !1 : (e[r.name] = [r], e[r.name]) }, this.getCookie = function (t, r) { var i, a; if (n = e[t])for (a = 0; a < n.length; a += 1)if (i = n[a], i.expiration_date <= Date.now())0 === n.length && delete e[i.name]; else if (i.matches(r))return i }, this.getCookies = function (t) { var n, r, i = []; for (n in e)r = this.getCookie(n, t), r && i.push(r); return i.toString = function () { return i.join(":") }, i.toValueString = function () { return i.map(function (e) { return e.toValueString() }).join(";") }, i }, this) : new r } n.CookieAccessInfo = e, n.Cookie = t, t.prototype.toString = function () { var e = [this.name + "=" + this.value]; return this.expiration_date !== 1 / 0 && e.push("expires=" + new Date(this.expiration_date).toGMTString()), this.domain && e.push("domain=" + this.domain), this.path && e.push("path=" + this.path), this.secure && e.push("secure"), this.noscript && e.push("httponly"), e.join("; ") }, t.prototype.toValueString = function () { return this.name + "=" + this.value }; var i = /[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g; t.prototype.parse = function (e, n, r) { if (this instanceof t) { var i, a = e.split(";").filter(function (e) { return !!e }), o = a[0].match(/([^=]+)=([\s\S]*)/), s = o[1], l = o[2]; for (this.name = s, this.value = l, i = 1; i < a.length; i += 1)switch (o = a[i].match(/([^=]+)(?:=([\s\S]*))?/), s = o[1].trim().toLowerCase(), l = o[2], s) { case"httponly": this.noscript = !0; break; case"expires": this.expiration_date = l ? Number(Date.parse(l)) : 1 / 0; break; case"path": this.path = l ? l.trim() : "", this.explicit_path = !0; break; case"domain": this.domain = l ? l.trim() : "", this.explicit_domain = !!this.domain; break; case"secure": this.secure = !0 } return this.explicit_path || (this.path = r || "/"), this.explicit_domain || (this.domain = n), this } return (new t).parse(e, n, r) }, t.prototype.matches = function (e) { return !(this.noscript && e.script || this.secure && !e.secure) && this.collidesWith(e) }, t.prototype.collidesWith = function (e) { if (this.path && !e.path || this.domain && !e.domain)return !1; if (this.path && 0 !== e.path.indexOf(this.path))return !1; if (this.explicit_path && 0 !== e.path.indexOf(this.path))return !1; var t = e.domain && e.domain.replace(/^[\.]/, ""), n = this.domain && this.domain.replace(/^[\.]/, ""); if (n === t)return !0; if (n) { if (!this.explicit_domain)return !1; var r = t.indexOf(n); return -1 !== r && r === t.length - n.length } return !0 }, n.CookieJar = r, r.prototype.setCookies = function (e, n, r) { e = Array.isArray(e) ? e : e.split(i); var a, o, s = []; for (e = e.map(function (e) { return new t(e, n, r) }), a = 0; a < e.length; a += 1)o = e[a], this.setCookie(o, n, r) && s.push(o); return s } }() }, {}], 20: [function (e, t, n) { "use strict"; var r = e("./lib/js-yaml.js"); t.exports = r }, {"./lib/js-yaml.js": 21}], 21: [function (e, t, n) { "use strict"; function r(e) { return function () { throw new Error("Function " + e + " is deprecated and cannot be used.") } } var i = e("./js-yaml/loader"), a = e("./js-yaml/dumper"); t.exports.Type = e("./js-yaml/type"), t.exports.Schema = e("./js-yaml/schema"), t.exports.FAILSAFE_SCHEMA = e("./js-yaml/schema/failsafe"), t.exports.JSON_SCHEMA = e("./js-yaml/schema/json"), t.exports.CORE_SCHEMA = e("./js-yaml/schema/core"), t.exports.DEFAULT_SAFE_SCHEMA = e("./js-yaml/schema/default_safe"), t.exports.DEFAULT_FULL_SCHEMA = e("./js-yaml/schema/default_full"), t.exports.load = i.load, t.exports.loadAll = i.loadAll, t.exports.safeLoad = i.safeLoad, t.exports.safeLoadAll = i.safeLoadAll, t.exports.dump = a.dump, t.exports.safeDump = a.safeDump, t.exports.YAMLException = e("./js-yaml/exception"), t.exports.MINIMAL_SCHEMA = e("./js-yaml/schema/failsafe"), t.exports.SAFE_SCHEMA = e("./js-yaml/schema/default_safe"), t.exports.DEFAULT_SCHEMA = e("./js-yaml/schema/default_full"), t.exports.scan = r("scan"), t.exports.parse = r("parse"), t.exports.compose = r("compose"), t.exports.addConstructor = r("addConstructor") }, { "./js-yaml/dumper": 23, "./js-yaml/exception": 24, "./js-yaml/loader": 25, "./js-yaml/schema": 27, "./js-yaml/schema/core": 28, "./js-yaml/schema/default_full": 29, "./js-yaml/schema/default_safe": 30, "./js-yaml/schema/failsafe": 31, "./js-yaml/schema/json": 32, "./js-yaml/type": 33 }], 22: [function (e, t, n) { "use strict"; function r(e) { return "undefined" == typeof e || null === e } function i(e) { return "object" == typeof e && null !== e } function a(e) { return Array.isArray(e) ? e : r(e) ? [] : [e] } function o(e, t) { var n, r, i, a; if (t)for (a = Object.keys(t), n = 0, r = a.length; r > n; n += 1)i = a[n], e[i] = t[i]; return e } function s(e, t) { var n, r = ""; for (n = 0; t > n; n += 1)r += e; return r } function l(e) { return 0 === e && Number.NEGATIVE_INFINITY === 1 / e } t.exports.isNothing = r, t.exports.isObject = i, t.exports.toArray = a, t.exports.repeat = s, t.exports.isNegativeZero = l, t.exports.extend = o }, {}], 23: [function (e, t, n) { "use strict"; function r(e, t) { var n, r, i, a, o, s, l; if (null === t)return {}; for (n = {}, r = Object.keys(t), i = 0, a = r.length; a > i; i += 1)o = r[i], s = String(t[o]), "!!" === o.slice(0, 2) && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap[o], l && I.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[o] = s; return n } function i(e) { var t, n, r; if (t = e.toString(16).toUpperCase(), 255 >= e)n = "x", r = 2; else if (65535 >= e)n = "u", r = 4; else { if (!(4294967295 >= e))throw new S("code point within a string may not be greater than 0xFFFFFFFF"); n = "U", r = 8 } return "\\" + n + _.repeat("0", r - t.length) + t } function a(e) { this.schema = e.schema || k, this.indent = Math.max(1, e.indent || 2), this.skipInvalid = e.skipInvalid || !1, this.flowLevel = _.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = r(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null } function o(e, t) { for (var n, r = _.repeat(" ", t), i = 0, a = -1, o = "", s = e.length; s > i;)a = e.indexOf("\n", i), -1 === a ? (n = e.slice(i), i = s) : (n = e.slice(i, a + 1), i = a + 1), n.length && "\n" !== n && (o += r), o += n; return o } function s(e, t) { return "\n" + _.repeat(" ", e.indent * t) } function l(e, t) { var n, r, i; for (n = 0, r = e.implicitTypes.length; r > n; n += 1)if (i = e.implicitTypes[n], i.resolve(t))return !0; return !1 } function u(e) { this.source = e, this.result = "", this.checkpoint = 0 } function c(e, t, n, r) { var i, a, s, c, h, m, y, g, v, b, w, x, j, A, O, _, S, k, E, C, I; if (0 === t.length)return void(e.dump = "''"); if (-1 !== te.indexOf(t))return void(e.dump = "'" + t + "'"); for (i = !0, a = t.length ? t.charCodeAt(0) : 0, s = P === a || P === t.charCodeAt(t.length - 1), H !== a && J !== a && Y !== a && K !== a || (i = !1), s || e.flowLevel > -1 && e.flowLevel <= n ? (s && (i = !1), c = !1, h = !1) : (c = !r, h = !r), m = !0, y = new u(t), g = !1, v = 0, b = 0, w = e.indent * n, x = e.lineWidth, -1 === x && (x = 9007199254740991), 40 > w ? x -= w : x = 40, A = 0; A < t.length; A++) { if (j = t.charCodeAt(A), i) { if (f(j))continue; i = !1 } m && j === F && (m = !1), O = ee[j], _ = d(j), (O || _) && (j !== $ && j !== L && j !== F ? (c = !1, h = !1) : j === $ && (g = !0, m = !1, A > 0 && (S = t.charCodeAt(A - 1), S === P && (h = !1, c = !1)), c && (k = A - v, v = A, k > b && (b = k))), j !== L && (m = !1), y.takeUpTo(A), y.escapeChar()) } if (i && l(e, t) && (i = !1), E = "", (c || h) && (C = 0, t.charCodeAt(t.length - 1) === $ && (C += 1, t.charCodeAt(t.length - 2) === $ && (C += 1)), 0 === C ? E = "-" : 2 === C && (E = "+")), (h && x > b || null !== e.tag) && (c = !1), g || (h = !1), i)e.dump = t; else if (m)e.dump = "'" + t + "'"; else if (c)I = p(t, x), e.dump = ">" + E + "\n" + o(I, w); else if (h)E || (t = t.replace(/\n$/, "")), e.dump = "|" + E + "\n" + o(t, w); else { if (!y)throw new Error("Failed to dump scalar value"); y.finish(), e.dump = '"' + y.result + '"' } } function p(e, t) { var n, r = "", i = 0, a = e.length, o = /\n+$/.exec(e); for (o && (a = o.index + 1); a > i;)n = e.indexOf("\n", i), n > a || -1 === n ? (r && (r += "\n\n"), r += h(e.slice(i, a), t), i = a) : (r && (r += "\n\n"), r += h(e.slice(i, n), t), i = n + 1); return o && "\n" !== o[0] && (r += o[0]), r } function h(e, t) { if ("" === e)return e; for (var n, r, i, a = /[^\s] [^\s]/g, o = "", s = 0, l = 0, u = a.exec(e); u;)n = u.index, n - l > t && (r = s !== l ? s : n, o && (o += "\n"), i = e.slice(l, r), o += i, l = r + 1), s = n + 1, u = a.exec(e); return o && (o += "\n"), o += l !== s && e.length - l > t ? e.slice(l, s) + "\n" + e.slice(s + 1) : e.slice(l) } function f(e) { return T !== e && $ !== e && M !== e && q !== e && Q !== e && W !== e && X !== e && Z !== e && D !== e && N !== e && B !== e && U !== e && G !== e && z !== e && F !== e && L !== e && R !== e && V !== e && !ee[e] && !d(e) } function d(e) { return !(e >= 32 && 126 >= e || 133 === e || e >= 160 && 55295 >= e || e >= 57344 && 65533 >= e || e >= 65536 && 1114111 >= e) } function m(e, t, n) { var r, i, a = "", o = e.tag; for (r = 0, i = n.length; i > r; r += 1)w(e, t, n[r], !1, !1) && (0 !== r && (a += ", "), a += e.dump); e.tag = o, e.dump = "[" + a + "]" } function y(e, t, n, r) { var i, a, o = "", l = e.tag; for (i = 0, a = n.length; a > i; i += 1)w(e, t + 1, n[i], !0, !0) && (r && 0 === i || (o += s(e, t)), o += "- " + e.dump); e.tag = l, e.dump = o || "[]" } function g(e, t, n) { var r, i, a, o, s, l = "", u = e.tag, c = Object.keys(n); for (r = 0, i = c.length; i > r; r += 1)s = "", 0 !== r && (s += ", "), a = c[r], o = n[a], w(e, t, a, !1, !1) && (e.dump.length > 1024 && (s += "? "), s += e.dump + ": ", w(e, t, o, !1, !1) && (s += e.dump, l += s)); e.tag = u, e.dump = "{" + l + "}" } function v(e, t, n, r) { var i, a, o, l, u, c, p = "", h = e.tag, f = Object.keys(n); if (e.sortKeys === !0)f.sort(); else if ("function" == typeof e.sortKeys)f.sort(e.sortKeys); else if (e.sortKeys)throw new S("sortKeys must be a boolean or a function"); for (i = 0, a = f.length; a > i; i += 1)c = "", r && 0 === i || (c += s(e, t)), o = f[i], l = n[o], w(e, t + 1, o, !0, !0, !0) && (u = null !== e.tag && "?" !== e.tag || e.dump && e.dump.length > 1024, u && (c += e.dump && $ === e.dump.charCodeAt(0) ? "?" : "? "), c += e.dump, u && (c += s(e, t)), w(e, t + 1, l, !0, u) && (c += e.dump && $ === e.dump.charCodeAt(0) ? ":" : ": ", c += e.dump, p += c)); e.tag = h, e.dump = p || "{}" } function b(e, t, n) { var r, i, a, o, s, l; for (i = n ? e.explicitTypes : e.implicitTypes, a = 0, o = i.length; o > a; a += 1)if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || "object" == typeof t && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) { if (e.tag = n ? s.tag : "?", s.represent) { if (l = e.styleMap[s.tag] || s.defaultStyle, "[object Function]" === C.call(s.represent))r = s.represent(t, l); else { if (!I.call(s.represent, l))throw new S("!<" + s.tag + '> tag resolver accepts not "' + l + '" style'); r = s.represent[l](t, l) } e.dump = r } return !0 } return !1 } function w(e, t, n, r, i, a) { e.tag = null, e.dump = n, b(e, n, !1) || b(e, n, !0); var o = C.call(e.dump); r && (r = e.flowLevel < 0 || e.flowLevel > t); var s, l, u = "[object Object]" === o || "[object Array]" === o; if (u && (s = e.duplicates.indexOf(n), l = -1 !== s), (null !== e.tag && "?" !== e.tag || l || 2 !== e.indent && t > 0) && (i = !1), l && e.usedDuplicates[s])e.dump = "*ref_" + s; else { if (u && l && !e.usedDuplicates[s] && (e.usedDuplicates[s] = !0), "[object Object]" === o)r && 0 !== Object.keys(e.dump).length ? (v(e, t, e.dump, i), l && (e.dump = "&ref_" + s + e.dump)) : (g(e, t, e.dump), l && (e.dump = "&ref_" + s + " " + e.dump)); else if ("[object Array]" === o)r && 0 !== e.dump.length ? (y(e, t, e.dump, i), l && (e.dump = "&ref_" + s + e.dump)) : (m(e, t, e.dump), l && (e.dump = "&ref_" + s + " " + e.dump)); else { if ("[object String]" !== o) { if (e.skipInvalid)return !1; throw new S("unacceptable kind of an object to dump " + o) } "?" !== e.tag && c(e, e.dump, t, a) } null !== e.tag && "?" !== e.tag && (e.dump = "!<" + e.tag + "> " + e.dump) } return !0 } function x(e, t) { var n, r, i = [], a = []; for (j(e, i, a), n = 0, r = a.length; r > n; n += 1)t.duplicates.push(i[a[n]]); t.usedDuplicates = new Array(r) } function j(e, t, n) { var r, i, a; if (null !== e && "object" == typeof e)if (i = t.indexOf(e), -1 !== i)-1 === n.indexOf(i) && n.push(i); else if (t.push(e), Array.isArray(e))for (i = 0, a = e.length; a > i; i += 1)j(e[i], t, n); else for (r = Object.keys(e), i = 0, a = r.length; a > i; i += 1)j(e[r[i]], t, n) } function A(e, t) { t = t || {}; var n = new a(t); return n.noRefs || x(e, n), w(n, 0, e, !0, !0) ? n.dump + "\n" : "" } function O(e, t) { return A(e, _.extend({schema: E}, t)) } var _ = e("./common"), S = e("./exception"), k = e("./schema/default_full"), E = e("./schema/default_safe"), C = Object.prototype.toString, I = Object.prototype.hasOwnProperty, T = 9, $ = 10, M = 13, P = 32, U = 33, L = 34, D = 35, R = 37, N = 38, F = 39, B = 42, q = 44, H = 45, V = 58, z = 62, J = 63, Y = 64, Q = 91, W = 93, K = 96, X = 123, G = 124, Z = 125, ee = {}; ee[0] = "\\0", ee[7] = "\\a", ee[8] = "\\b", ee[9] = "\\t", ee[10] = "\\n", ee[11] = "\\v", ee[12] = "\\f", ee[13] = "\\r", ee[27] = "\\e", ee[34] = '\\"', ee[92] = "\\\\", ee[133] = "\\N", ee[160] = "\\_", ee[8232] = "\\L", ee[8233] = "\\P"; var te = ["y", "Y", "yes", "Yes", "YES", "on", "On", "ON", "n", "N", "no", "No", "NO", "off", "Off", "OFF"]; u.prototype.takeUpTo = function (e) { var t; if (e < this.checkpoint)throw t = new Error("position should be > checkpoint"), t.position = e, t.checkpoint = this.checkpoint, t; return this.result += this.source.slice(this.checkpoint, e), this.checkpoint = e, this }, u.prototype.escapeChar = function () { var e, t; return e = this.source.charCodeAt(this.checkpoint), t = ee[e] || i(e), this.result += t, this.checkpoint += 1, this }, u.prototype.finish = function () { this.source.length > this.checkpoint && this.takeUpTo(this.source.length) }, t.exports.dump = A, t.exports.safeDump = O }, {"./common": 22, "./exception": 24, "./schema/default_full": 29, "./schema/default_safe": 30}], 24: [function (e, t, n) { "use strict"; function r(e, t) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (new Error).stack || "", this.name = "YAMLException", this.reason = e, this.mark = t, this.message = (this.reason || "(unknown reason)") + (this.mark ? " " + this.mark.toString() : "") } r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r.prototype.toString = function (e) { var t = this.name + ": "; return t += this.reason || "(unknown reason)", !e && this.mark && (t += " " + this.mark.toString()), t }, t.exports = r }, {}], 25: [function (e, t, n) { "use strict"; function r(e) { return 10 === e || 13 === e } function i(e) { return 9 === e || 32 === e } function a(e) { return 9 === e || 32 === e || 10 === e || 13 === e } function o(e) { return 44 === e || 91 === e || 93 === e || 123 === e || 125 === e } function s(e) { var t; return e >= 48 && 57 >= e ? e - 48 : (t = 32 | e, t >= 97 && 102 >= t ? t - 97 + 10 : -1) } function l(e) { return 120 === e ? 2 : 117 === e ? 4 : 85 === e ? 8 : 0 } function u(e) { return e >= 48 && 57 >= e ? e - 48 : -1 } function c(e) { return 48 === e ? "\x00" : 97 === e ? "" : 98 === e ? "\b" : 116 === e ? " " : 9 === e ? " " : 110 === e ? "\n" : 118 === e ? "\x0B" : 102 === e ? "\f" : 114 === e ? "\r" : 101 === e ? "" : 32 === e ? " " : 34 === e ? '"' : 47 === e ? "/" : 92 === e ? "\\" : 78 === e ? "…" : 95 === e ? " " : 76 === e ? "\u2028" : 80 === e ? "\u2029" : "" } function p(e) { return 65535 >= e ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320) } function h(e, t) { this.input = e, this.filename = t.filename || null, this.schema = t.schema || V, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.documents = [] } function f(e, t) { return new B(t, new q(e.filename, e.input, e.position, e.line, e.position - e.lineStart)) } function d(e, t) { throw f(e, t) } function m(e, t) { e.onWarning && e.onWarning.call(null, f(e, t)) } function y(e, t, n, r) { var i, a, o, s; if (n > t) { if (s = e.input.slice(t, n), r)for (i = 0, a = s.length; a > i; i += 1)o = s.charCodeAt(i), 9 === o || o >= 32 && 1114111 >= o || d(e, "expected valid JSON character"); else Z.test(s) && d(e, "the stream contains non-printable characters"); e.result += s } } function g(e, t, n, r) { var i, a, o, s; for (F.isObject(n) || d(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; s > o; o += 1)a = i[o], z.call(t, a) || (t[a] = n[a], r[a] = !0) } function v(e, t, n, r, i, a) { var o, s; if (i = String(i), null === t && (t = {}), "tag:yaml.org,2002:merge" === r)if (Array.isArray(a))for (o = 0, s = a.length; s > o; o += 1)g(e, t, a[o], n); else g(e, t, a, n); else e.json || z.call(n, i) || !z.call(t, i) || d(e, "duplicated mapping key"), t[i] = a, delete n[i]; return t } function b(e) { var t; t = e.input.charCodeAt(e.position), 10 === t ? e.position++ : 13 === t ? (e.position++, 10 === e.input.charCodeAt(e.position) && e.position++) : d(e, "a line break is expected"), e.line += 1, e.lineStart = e.position } function w(e, t, n) { for (var a = 0, o = e.input.charCodeAt(e.position); 0 !== o;) { for (; i(o);)o = e.input.charCodeAt(++e.position); if (t && 35 === o)do o = e.input.charCodeAt(++e.position); while (10 !== o && 13 !== o && 0 !== o); if (!r(o))break; for (b(e), o = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; 32 === o;)e.lineIndent++, o = e.input.charCodeAt(++e.position) } return -1 !== n && 0 !== a && e.lineIndent < n && m(e, "deficient indentation"), a } function x(e) { var t, n = e.position; return t = e.input.charCodeAt(n), (45 === t || 46 === t) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), 0 === t || a(t)) } function j(e, t) { 1 === t ? e.result += " " : t > 1 && (e.result += F.repeat("\n", t - 1)) } function A(e, t, n) { var s, l, u, c, p, h, f, d, m, g = e.kind, v = e.result; if (m = e.input.charCodeAt(e.position), a(m) || o(m) || 35 === m || 38 === m || 42 === m || 33 === m || 124 === m || 62 === m || 39 === m || 34 === m || 37 === m || 64 === m || 96 === m)return !1; if ((63 === m || 45 === m) && (l = e.input.charCodeAt(e.position + 1), a(l) || n && o(l)))return !1; for (e.kind = "scalar", e.result = "", u = c = e.position, p = !1; 0 !== m;) { if (58 === m) { if (l = e.input.charCodeAt(e.position + 1), a(l) || n && o(l))break } else if (35 === m) { if (s = e.input.charCodeAt(e.position - 1), a(s))break } else { if (e.position === e.lineStart && x(e) || n && o(m))break; if (r(m)) { if (h = e.line, f = e.lineStart, d = e.lineIndent, w(e, !1, -1), e.lineIndent >= t) { p = !0, m = e.input.charCodeAt(e.position); continue } e.position = c, e.line = h, e.lineStart = f, e.lineIndent = d; break } } p && (y(e, u, c, !1), j(e, e.line - h), u = c = e.position, p = !1), i(m) || (c = e.position + 1), m = e.input.charCodeAt(++e.position) } return y(e, u, c, !1), e.result ? !0 : (e.kind = g, e.result = v, !1) } function O(e, t) { var n, i, a; if (n = e.input.charCodeAt(e.position), 39 !== n)return !1; for (e.kind = "scalar", e.result = "", e.position++, i = a = e.position; 0 !== (n = e.input.charCodeAt(e.position));)if (39 === n) { if (y(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), 39 !== n)return !0; i = a = e.position, e.position++ } else r(n) ? (y(e, i, a, !0), j(e, w(e, !1, t)), i = a = e.position) : e.position === e.lineStart && x(e) ? d(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position); d(e, "unexpected end of the stream within a single quoted scalar") } function _(e, t) { var n, i, a, o, u, c; if (c = e.input.charCodeAt(e.position), 34 !== c)return !1; for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; 0 !== (c = e.input.charCodeAt(e.position));) { if (34 === c)return y(e, n, e.position, !0), e.position++, !0; if (92 === c) { if (y(e, n, e.position, !0), c = e.input.charCodeAt(++e.position), r(c))w(e, !1, t); else if (256 > c && ie[c])e.result += ae[c], e.position++; else if ((u = l(c)) > 0) { for (a = u, o = 0; a > 0; a--)c = e.input.charCodeAt(++e.position), (u = s(c)) >= 0 ? o = (o << 4) + u : d(e, "expected hexadecimal character"); e.result += p(o), e.position++ } else d(e, "unknown escape sequence"); n = i = e.position } else r(c) ? (y(e, n, i, !0), j(e, w(e, !1, t)), n = i = e.position) : e.position === e.lineStart && x(e) ? d(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position) } d(e, "unexpected end of the stream within a double quoted scalar") } function S(e, t) { var n, r, i, o, s, l, u, c, p, h, f, m = !0, y = e.tag, g = e.anchor, b = {}; if (f = e.input.charCodeAt(e.position), 91 === f)o = 93, u = !1, r = []; else { if (123 !== f)return !1; o = 125, u = !0, r = {} } for (null !== e.anchor && (e.anchorMap[e.anchor] = r), f = e.input.charCodeAt(++e.position); 0 !== f;) { if (w(e, !0, t), f = e.input.charCodeAt(e.position), f === o)return e.position++, e.tag = y, e.anchor = g, e.kind = u ? "mapping" : "sequence", e.result = r, !0; m || d(e, "missed comma between flow collection entries"), p = c = h = null, s = l = !1, 63 === f && (i = e.input.charCodeAt(e.position + 1), a(i) && (s = l = !0, e.position++, w(e, !0, t))), n = e.line, M(e, t, J, !1, !0), p = e.tag, c = e.result, w(e, !0, t), f = e.input.charCodeAt(e.position), !l && e.line !== n || 58 !== f || (s = !0, f = e.input.charCodeAt(++e.position), w(e, !0, t), M(e, t, J, !1, !0), h = e.result), u ? v(e, r, b, p, c, h) : s ? r.push(v(e, null, b, p, c, h)) : r.push(c), w(e, !0, t), f = e.input.charCodeAt(e.position), 44 === f ? (m = !0, f = e.input.charCodeAt(++e.position)) : m = !1 } d(e, "unexpected end of the stream within a flow collection") } function k(e, t) { var n, a, o, s, l = K, c = !1, p = t, h = 0, f = !1; if (s = e.input.charCodeAt(e.position), 124 === s)a = !1; else { if (62 !== s)return !1; a = !0 } for (e.kind = "scalar", e.result = ""; 0 !== s;)if (s = e.input.charCodeAt(++e.position), 43 === s || 45 === s)K === l ? l = 43 === s ? G : X : d(e, "repeat of a chomping mode identifier"); else { if (!((o = u(s)) >= 0))break; 0 === o ? d(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : c ? d(e, "repeat of an indentation width identifier") : (p = t + o - 1, c = !0) } if (i(s)) { do s = e.input.charCodeAt(++e.position); while (i(s)); if (35 === s)do s = e.input.charCodeAt(++e.position); while (!r(s) && 0 !== s) } for (; 0 !== s;) { for (b(e), e.lineIndent = 0, s = e.input.charCodeAt(e.position); (!c || e.lineIndent < p) && 32 === s;)e.lineIndent++, s = e.input.charCodeAt(++e.position); if (!c && e.lineIndent > p && (p = e.lineIndent), r(s))h++; else { if (e.lineIndent < p) { l === G ? e.result += F.repeat("\n", h) : l === K && c && (e.result += "\n"); break } for (a ? i(s) ? (f = !0, e.result += F.repeat("\n", h + 1)) : f ? (f = !1, e.result += F.repeat("\n", h + 1)) : 0 === h ? c && (e.result += " ") : e.result += F.repeat("\n", h) : c ? e.result += F.repeat("\n", h + 1) : e.result += F.repeat("\n", h), c = !0, h = 0, n = e.position; !r(s) && 0 !== s;)s = e.input.charCodeAt(++e.position); y(e, n, e.position, !1) } } return !0 } function E(e, t) { var n, r, i, o = e.tag, s = e.anchor, l = [], u = !1; for (null !== e.anchor && (e.anchorMap[e.anchor] = l), i = e.input.charCodeAt(e.position); 0 !== i && 45 === i && (r = e.input.charCodeAt(e.position + 1), a(r));)if (u = !0, e.position++, w(e, !0, -1) && e.lineIndent <= t)l.push(null), i = e.input.charCodeAt(e.position); else if (n = e.line, M(e, t, Q, !1, !0), l.push(e.result), w(e, !0, -1), i = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && 0 !== i)d(e, "bad indentation of a sequence entry"); else if (e.lineIndent < t)break; return u ? (e.tag = o, e.anchor = s, e.kind = "sequence", e.result = l, !0) : !1 } function C(e, t, n) { var r, o, s, l, u = e.tag, c = e.anchor, p = {}, h = {}, f = null, m = null, y = null, g = !1, b = !1; for (null !== e.anchor && (e.anchorMap[e.anchor] = p), l = e.input.charCodeAt(e.position); 0 !== l;) { if (r = e.input.charCodeAt(e.position + 1), s = e.line, 63 !== l && 58 !== l || !a(r)) { if (!M(e, n, Y, !1, !0))break; if (e.line === s) { for (l = e.input.charCodeAt(e.position); i(l);)l = e.input.charCodeAt(++e.position); if (58 === l)l = e.input.charCodeAt(++e.position), a(l) || d(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (v(e, p, h, f, m, null), f = m = y = null), b = !0, g = !1, o = !1, f = e.tag, m = e.result; else { if (!b)return e.tag = u, e.anchor = c, !0; d(e, "can not read an implicit mapping pair; a colon is missed") } } else { if (!b)return e.tag = u, e.anchor = c, !0; d(e, "can not read a block mapping entry; a multiline key may not be an implicit key") } } else 63 === l ? (g && (v(e, p, h, f, m, null), f = m = y = null), b = !0, g = !0, o = !0) : g ? (g = !1, o = !0) : d(e, "incomplete explicit mapping pair; a key node is missed"), e.position += 1, l = r; if ((e.line === s || e.lineIndent > t) && (M(e, t, W, !0, o) && (g ? m = e.result : y = e.result), g || (v(e, p, h, f, m, y), f = m = y = null), w(e, !0, -1), l = e.input.charCodeAt(e.position)), e.lineIndent > t && 0 !== l)d(e, "bad indentation of a mapping entry"); else if (e.lineIndent < t)break } return g && v(e, p, h, f, m, null), b && (e.tag = u, e.anchor = c, e.kind = "mapping", e.result = p), b } function I(e) { var t, n, r, i, o = !1, s = !1; if (i = e.input.charCodeAt(e.position), 33 !== i)return !1; if (null !== e.tag && d(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), 60 === i ? (o = !0, i = e.input.charCodeAt(++e.position)) : 33 === i ? (s = !0, n = "!!", i = e.input.charCodeAt(++e.position)) : n = "!", t = e.position, o) { do i = e.input.charCodeAt(++e.position); while (0 !== i && 62 !== i); e.position < e.length ? (r = e.input.slice(t, e.position), i = e.input.charCodeAt(++e.position)) : d(e, "unexpected end of the stream within a verbatim tag") } else { for (; 0 !== i && !a(i);)33 === i && (s ? d(e, "tag suffix cannot contain exclamation marks") : (n = e.input.slice(t - 1, e.position + 1), ne.test(n) || d(e, "named tag handle cannot contain such characters"), s = !0, t = e.position + 1)), i = e.input.charCodeAt(++e.position); r = e.input.slice(t, e.position), te.test(r) && d(e, "tag suffix cannot contain flow indicator characters") } return r && !re.test(r) && d(e, "tag name cannot contain such characters: " + r), o ? e.tag = r : z.call(e.tagMap, n) ? e.tag = e.tagMap[n] + r : "!" === n ? e.tag = "!" + r : "!!" === n ? e.tag = "tag:yaml.org,2002:" + r : d(e, 'undeclared tag handle "' + n + '"'), !0 } function T(e) { var t, n; if (n = e.input.charCodeAt(e.position), 38 !== n)return !1; for (null !== e.anchor && d(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; 0 !== n && !a(n) && !o(n);)n = e.input.charCodeAt(++e.position); return e.position === t && d(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0 } function $(e) { var t, n, r; if (r = e.input.charCodeAt(e.position), 42 !== r)return !1; for (r = e.input.charCodeAt(++e.position), t = e.position; 0 !== r && !a(r) && !o(r);)r = e.input.charCodeAt(++e.position); return e.position === t && d(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), e.anchorMap.hasOwnProperty(n) || d(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], w(e, !0, -1), !0 } function M(e, t, n, r, i) { var a, o, s, l, u, c, p, h, f = 1, m = !1, y = !1; if (null !== e.listener && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = W === n || Q === n, r && w(e, !0, -1) && (m = !0, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)), 1 === f)for (; I(e) || T(e);)w(e, !0, -1) ? (m = !0, s = a, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)) : s = !1; if (s && (s = m || i), 1 !== f && W !== n || (p = J === n || Y === n ? t : t + 1, h = e.position - e.lineStart, 1 === f ? s && (E(e, h) || C(e, h, p)) || S(e, p) ? y = !0 : (o && k(e, p) || O(e, p) || _(e, p) ? y = !0 : $(e) ? (y = !0, null === e.tag && null === e.anchor || d(e, "alias node should not have any properties")) : A(e, p, J === n) && (y = !0, null === e.tag && (e.tag = "?")), null !== e.anchor && (e.anchorMap[e.anchor] = e.result)) : 0 === f && (y = s && E(e, h))), null !== e.tag && "!" !== e.tag)if ("?" === e.tag) { for (l = 0, u = e.implicitTypes.length; u > l; l += 1)if (c = e.implicitTypes[l], c.resolve(e.result)) { e.result = c.construct(e.result), e.tag = c.tag, null !== e.anchor && (e.anchorMap[e.anchor] = e.result); break } } else z.call(e.typeMap, e.tag) ? (c = e.typeMap[e.tag], null !== e.result && c.kind !== e.kind && d(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + c.kind + '", not "' + e.kind + '"'), c.resolve(e.result) ? (e.result = c.construct(e.result), null !== e.anchor && (e.anchorMap[e.anchor] = e.result)) : d(e, "cannot resolve a node with !<" + e.tag + "> explicit tag")) : d(e, "unknown tag !<" + e.tag + ">"); return null !== e.listener && e.listener("close", e), null !== e.tag || null !== e.anchor || y } function P(e) { var t, n, o, s, l = e.position, u = !1; for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = {}, e.anchorMap = {}; 0 !== (s = e.input.charCodeAt(e.position)) && (w(e, !0, -1), s = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || 37 !== s));) { for (u = !0, s = e.input.charCodeAt(++e.position), t = e.position; 0 !== s && !a(s);)s = e.input.charCodeAt(++e.position); for (n = e.input.slice(t, e.position), o = [], n.length < 1 && d(e, "directive name must not be less than one character in length"); 0 !== s;) { for (; i(s);)s = e.input.charCodeAt(++e.position); if (35 === s) { do s = e.input.charCodeAt(++e.position); while (0 !== s && !r(s)); break } if (r(s))break; for (t = e.position; 0 !== s && !a(s);)s = e.input.charCodeAt(++e.position); o.push(e.input.slice(t, e.position)) } 0 !== s && b(e), z.call(se, n) ? se[n](e, n, o) : m(e, 'unknown document directive "' + n + '"') } return w(e, !0, -1), 0 === e.lineIndent && 45 === e.input.charCodeAt(e.position) && 45 === e.input.charCodeAt(e.position + 1) && 45 === e.input.charCodeAt(e.position + 2) ? (e.position += 3, w(e, !0, -1)) : u && d(e, "directives end mark is expected"), M(e, e.lineIndent - 1, W, !1, !0), w(e, !0, -1), e.checkLineBreaks && ee.test(e.input.slice(l, e.position)) && m(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && x(e) ? void(46 === e.input.charCodeAt(e.position) && (e.position += 3, w(e, !0, -1))) : void(e.position < e.length - 1 && d(e, "end of the stream or a document separator is expected")) } function U(e, t) { e = String(e), t = t || {}, 0 !== e.length && (10 !== e.charCodeAt(e.length - 1) && 13 !== e.charCodeAt(e.length - 1) && (e += "\n"), 65279 === e.charCodeAt(0) && (e = e.slice(1))); var n = new h(e, t); for (n.input += "\x00"; 32 === n.input.charCodeAt(n.position);)n.lineIndent += 1, n.position += 1; for (; n.position < n.length - 1;)P(n); return n.documents } function L(e, t, n) { var r, i, a = U(e, n); for (r = 0, i = a.length; i > r; r += 1)t(a[r]) } function D(e, t) { var n = U(e, t); if (0 !== n.length) { if (1 === n.length)return n[0]; throw new B("expected a single document in the stream, but found more") } } function R(e, t, n) { L(e, t, F.extend({schema: H}, n)) } function N(e, t) { return D(e, F.extend({schema: H}, t)) } for (var F = e("./common"), B = e("./exception"), q = e("./mark"), H = e("./schema/default_safe"), V = e("./schema/default_full"), z = Object.prototype.hasOwnProperty, J = 1, Y = 2, Q = 3, W = 4, K = 1, X = 2, G = 3, Z = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ee = /[\x85\u2028\u2029]/, te = /[,\[\]\{\}]/, ne = /^(?:!|!!|![a-z\-]+!)$/i, re = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i, ie = new Array(256), ae = new Array(256), oe = 0; 256 > oe; oe++)ie[oe] = c(oe) ? 1 : 0, ae[oe] = c(oe); var se = { YAML: function (e, t, n) { var r, i, a; null !== e.version && d(e, "duplication of %YAML directive"), 1 !== n.length && d(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), null === r && d(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), 1 !== i && d(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = 2 > a, 1 !== a && 2 !== a && m(e, "unsupported YAML version of the document") }, TAG: function (e, t, n) { var r, i; 2 !== n.length && d(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], ne.test(r) || d(e, "ill-formed tag handle (first argument) of the TAG directive"), z.call(e.tagMap, r) && d(e, 'there is a previously declared suffix for "' + r + '" tag handle'), re.test(i) || d(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagMap[r] = i } }; t.exports.loadAll = L, t.exports.load = D, t.exports.safeLoadAll = R, t.exports.safeLoad = N }, { "./common": 22, "./exception": 24, "./mark": 26, "./schema/default_full": 29, "./schema/default_safe": 30 }], 26: [function (e, t, n) { "use strict"; function r(e, t, n, r, i) { this.name = e, this.buffer = t, this.position = n, this.line = r, this.column = i } var i = e("./common"); r.prototype.getSnippet = function (e, t) { var n, r, a, o, s; if (!this.buffer)return null; for (e = e || 4, t = t || 75, n = "", r = this.position; r > 0 && -1 === "\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(r - 1));)if (r -= 1, this.position - r > t / 2 - 1) { n = " ... ", r += 5; break } for (a = "", o = this.position; o < this.buffer.length && -1 === "\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o));)if (o += 1, o - this.position > t / 2 - 1) { a = " ... ", o -= 5; break } return s = this.buffer.slice(r, o), i.repeat(" ", e) + n + s + a + "\n" + i.repeat(" ", e + this.position - r + n.length) + "^" }, r.prototype.toString = function (e) { var t, n = ""; return this.name && (n += 'in "' + this.name + '" '), n += "at line " + (this.line + 1) + ", column " + (this.column + 1), e || (t = this.getSnippet(), t && (n += ":\n" + t)), n }, t.exports = r }, {"./common": 22}], 27: [function (e, t, n) { "use strict"; function r(e, t, n) { var i = []; return e.include.forEach(function (e) { n = r(e, t, n) }), e[t].forEach(function (e) { n.forEach(function (t, n) { t.tag === e.tag && i.push(n) }), n.push(e) }), n.filter(function (e, t) { return -1 === i.indexOf(t) }) } function i() { function e(e) { r[e.tag] = e } var t, n, r = {}; for (t = 0, n = arguments.length; n > t; t += 1)arguments[t].forEach(e); return r } function a(e) { this.include = e.include || [], this.implicit = e.implicit || [], this.explicit = e.explicit || [], this.implicit.forEach(function (e) { if (e.loadKind && "scalar" !== e.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.") }), this.compiledImplicit = r(this, "implicit", []), this.compiledExplicit = r(this, "explicit", []), this.compiledTypeMap = i(this.compiledImplicit, this.compiledExplicit) } var o = e("./common"), s = e("./exception"), l = e("./type"); a.DEFAULT = null, a.create = function () { var e, t; switch (arguments.length) { case 1: e = a.DEFAULT, t = arguments[0]; break; case 2: e = arguments[0], t = arguments[1]; break; default: throw new s("Wrong number of arguments for Schema.create function") } if (e = o.toArray(e), t = o.toArray(t), !e.every(function (e) { return e instanceof a }))throw new s("Specified list of super schemas (or a single Schema object) contains a non-Schema object."); if (!t.every(function (e) { return e instanceof l }))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object."); return new a({include: e, explicit: t}) }, t.exports = a }, {"./common": 22, "./exception": 24, "./type": 33}], 28: [function (e, t, n) { "use strict"; var r = e("../schema"); t.exports = new r({include: [e("./json")]}) }, {"../schema": 27, "./json": 32}], 29: [function (e, t, n) { "use strict"; var r = e("../schema"); t.exports = r.DEFAULT = new r({ include: [e("./default_safe")], explicit: [e("../type/js/undefined"), e("../type/js/regexp"), e("../type/js/function")] }) }, { "../schema": 27, "../type/js/function": 38, "../type/js/regexp": 39, "../type/js/undefined": 40, "./default_safe": 30 }], 30: [function (e, t, n) { "use strict"; var r = e("../schema"); t.exports = new r({ include: [e("./core")], implicit: [e("../type/timestamp"), e("../type/merge")], explicit: [e("../type/binary"), e("../type/omap"), e("../type/pairs"), e("../type/set")] }) }, { "../schema": 27, "../type/binary": 34, "../type/merge": 42, "../type/omap": 44, "../type/pairs": 45, "../type/set": 47, "../type/timestamp": 49, "./core": 28 }], 31: [function (e, t, n) { "use strict"; var r = e("../schema"); t.exports = new r({explicit: [e("../type/str"), e("../type/seq"), e("../type/map")]}) }, {"../schema": 27, "../type/map": 41, "../type/seq": 46, "../type/str": 48}], 32: [function (e, t, n) { "use strict"; var r = e("../schema"); t.exports = new r({ include: [e("./failsafe")], implicit: [e("../type/null"), e("../type/bool"), e("../type/int"), e("../type/float")] }) }, { "../schema": 27, "../type/bool": 35, "../type/float": 36, "../type/int": 37, "../type/null": 43, "./failsafe": 31 }], 33: [function (e, t, n) { "use strict"; function r(e) { var t = {}; return null !== e && Object.keys(e).forEach(function (n) { e[n].forEach(function (e) { t[String(e)] = n }) }), t } function i(e, t) { if (t = t || {}, Object.keys(t).forEach(function (t) { if (-1 === o.indexOf(t))throw new a('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.') }), this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function () { return !0 }, this.construct = t.construct || function (e) { return e }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.defaultStyle = t.defaultStyle || null, this.styleAliases = r(t.styleAliases || null), -1 === s.indexOf(this.kind))throw new a('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.') } var a = e("./exception"), o = ["kind", "resolve", "construct", "instanceOf", "predicate", "represent", "defaultStyle", "styleAliases"], s = ["scalar", "sequence", "mapping"]; t.exports = i }, {"./exception": 24}], 34: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !1; var t, n, r = 0, i = e.length, a = u; for (n = 0; i > n; n++)if (t = a.indexOf(e.charAt(n)), !(t > 64)) { if (0 > t)return !1; r += 6 } return r % 8 === 0 } function i(e) { var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = u, o = 0, l = []; for (t = 0; i > t; t++)t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(255 & o)), o = o << 6 | a.indexOf(r.charAt(t)); return n = i % 4 * 6, 0 === n ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(255 & o)) : 18 === n ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : 12 === n && l.push(o >> 4 & 255), s ? new s(l) : l } function a(e) { var t, n, r = "", i = 0, a = e.length, o = u; for (t = 0; a > t; t++)t % 3 === 0 && t && (r += o[i >> 18 & 63], r += o[i >> 12 & 63], r += o[i >> 6 & 63], r += o[63 & i]), i = (i << 8) + e[t]; return n = a % 3, 0 === n ? (r += o[i >> 18 & 63], r += o[i >> 12 & 63], r += o[i >> 6 & 63], r += o[63 & i]) : 2 === n ? (r += o[i >> 10 & 63], r += o[i >> 4 & 63], r += o[i << 2 & 63], r += o[64]) : 1 === n && (r += o[i >> 2 & 63], r += o[i << 4 & 63], r += o[64], r += o[64]), r } function o(e) { return s && s.isBuffer(e) } var s = e("buffer").Buffer, l = e("../type"), u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"; t.exports = new l("tag:yaml.org,2002:binary", { kind: "scalar", resolve: r, construct: i, predicate: o, represent: a }) }, {"../type": 33, buffer: 12}], 35: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !1; var t = e.length; return 4 === t && ("true" === e || "True" === e || "TRUE" === e) || 5 === t && ("false" === e || "False" === e || "FALSE" === e) } function i(e) { return "true" === e || "True" === e || "TRUE" === e } function a(e) { return "[object Boolean]" === Object.prototype.toString.call(e) } var o = e("../type"); t.exports = new o("tag:yaml.org,2002:bool", { kind: "scalar", resolve: r, construct: i, predicate: a, represent: { lowercase: function (e) { return e ? "true" : "false" }, uppercase: function (e) { return e ? "TRUE" : "FALSE" }, camelcase: function (e) { return e ? "True" : "False" } }, defaultStyle: "lowercase" }) }, {"../type": 33}], 36: [function (e, t, n) { "use strict"; function r(e) { return null === e ? !1 : !!u.test(e) } function i(e) { var t, n, r, i; return t = e.replace(/_/g, "").toLowerCase(), n = "-" === t[0] ? -1 : 1, i = [], "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), ".inf" === t ? 1 === n ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : ".nan" === t ? NaN : t.indexOf(":") >= 0 ? (t.split(":").forEach(function (e) { i.unshift(parseFloat(e, 10)) }), t = 0, r = 1, i.forEach(function (e) { t += e * r, r *= 60 }), n * t) : n * parseFloat(t, 10) } function a(e, t) { var n; if (isNaN(e))switch (t) { case"lowercase": return ".nan"; case"uppercase": return ".NAN"; case"camelcase": return ".NaN" } else if (Number.POSITIVE_INFINITY === e)switch (t) { case"lowercase": return ".inf"; case"uppercase": return ".INF"; case"camelcase": return ".Inf" } else if (Number.NEGATIVE_INFINITY === e)switch (t) { case"lowercase": return "-.inf"; case"uppercase": return "-.INF"; case"camelcase": return "-.Inf" } else if (s.isNegativeZero(e))return "-0.0"; return n = e.toString(10), c.test(n) ? n.replace("e", ".e") : n } function o(e) { return "[object Number]" === Object.prototype.toString.call(e) && (e % 1 !== 0 || s.isNegativeZero(e)) } var s = e("../common"), l = e("../type"), u = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), c = /^[-+]?[0-9]+e/; t.exports = new l("tag:yaml.org,2002:float", { kind: "scalar", resolve: r, construct: i, predicate: o, represent: a, defaultStyle: "lowercase" }) }, { "../common": 22, "../type": 33 }], 37: [function (e, t, n) { "use strict"; function r(e) { return e >= 48 && 57 >= e || e >= 65 && 70 >= e || e >= 97 && 102 >= e } function i(e) { return e >= 48 && 55 >= e } function a(e) { return e >= 48 && 57 >= e } function o(e) { if (null === e)return !1; var t, n = e.length, o = 0, s = !1; if (!n)return !1; if (t = e[o], "-" !== t && "+" !== t || (t = e[++o]), "0" === t) { if (o + 1 === n)return !0; if (t = e[++o], "b" === t) { for (o++; n > o; o++)if (t = e[o], "_" !== t) { if ("0" !== t && "1" !== t)return !1; s = !0 } return s } if ("x" === t) { for (o++; n > o; o++)if (t = e[o], "_" !== t) { if (!r(e.charCodeAt(o)))return !1; s = !0 } return s } for (; n > o; o++)if (t = e[o], "_" !== t) { if (!i(e.charCodeAt(o)))return !1; s = !0 } return s } for (; n > o; o++)if (t = e[o], "_" !== t) { if (":" === t)break; if (!a(e.charCodeAt(o)))return !1; s = !0 } return s ? ":" !== t ? !0 : /^(:[0-5]?[0-9])+$/.test(e.slice(o)) : !1 } function s(e) { var t, n, r = e, i = 1, a = []; return -1 !== r.indexOf("_") && (r = r.replace(/_/g, "")), t = r[0], "-" !== t && "+" !== t || ("-" === t && (i = -1), r = r.slice(1), t = r[0]), "0" === r ? 0 : "0" === t ? "b" === r[1] ? i * parseInt(r.slice(2), 2) : "x" === r[1] ? i * parseInt(r, 16) : i * parseInt(r, 8) : -1 !== r.indexOf(":") ? (r.split(":").forEach(function (e) { a.unshift(parseInt(e, 10)) }), r = 0, n = 1, a.forEach(function (e) { r += e * n, n *= 60 }), i * r) : i * parseInt(r, 10) } function l(e) { return "[object Number]" === Object.prototype.toString.call(e) && e % 1 === 0 && !u.isNegativeZero(e) } var u = e("../common"), c = e("../type"); t.exports = new c("tag:yaml.org,2002:int", { kind: "scalar", resolve: o, construct: s, predicate: l, represent: { binary: function (e) { return "0b" + e.toString(2) }, octal: function (e) { return "0" + e.toString(8) }, decimal: function (e) { return e.toString(10) }, hexadecimal: function (e) { return "0x" + e.toString(16).toUpperCase() } }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } }) }, {"../common": 22, "../type": 33}], 38: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !1; try { var t = "(" + e + ")", n = s.parse(t, {range: !0}); return "Program" === n.type && 1 === n.body.length && "ExpressionStatement" === n.body[0].type && "FunctionExpression" === n.body[0].expression.type } catch (r) { return !1 } } function i(e) { var t, n = "(" + e + ")", r = s.parse(n, {range: !0}), i = []; if ("Program" !== r.type || 1 !== r.body.length || "ExpressionStatement" !== r.body[0].type || "FunctionExpression" !== r.body[0].expression.type)throw new Error("Failed to resolve function"); return r.body[0].expression.params.forEach(function (e) { i.push(e.name) }), t = r.body[0].expression.body.range, new Function(i, n.slice(t[0] + 1, t[1] - 1)) } function a(e) { return e.toString() } function o(e) { return "[object Function]" === Object.prototype.toString.call(e) } var s; try { var l = e; s = l("esprima") } catch (u) { "undefined" != typeof window && (s = window.esprima) } var c = e("../../type"); t.exports = new c("tag:yaml.org,2002:js/function", { kind: "scalar", resolve: r, construct: i, predicate: o, represent: a }) }, {"../../type": 33}], 39: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !1; if (0 === e.length)return !1; var t = e, n = /\/([gim]*)$/.exec(e), r = ""; if ("/" === t[0]) { if (n && (r = n[1]), r.length > 3)return !1; if ("/" !== t[t.length - r.length - 1])return !1 } return !0 } function i(e) { var t = e, n = /\/([gim]*)$/.exec(e), r = ""; return "/" === t[0] && (n && (r = n[1]), t = t.slice(1, t.length - r.length - 1)), new RegExp(t, r) } function a(e) { var t = "/" + e.source + "/"; return e.global && (t += "g"), e.multiline && (t += "m"), e.ignoreCase && (t += "i"), t } function o(e) { return "[object RegExp]" === Object.prototype.toString.call(e) } var s = e("../../type"); t.exports = new s("tag:yaml.org,2002:js/regexp", { kind: "scalar", resolve: r, construct: i, predicate: o, represent: a }) }, {"../../type": 33}], 40: [function (e, t, n) { "use strict"; function r() { return !0 } function i() { } function a() { return "" } function o(e) { return "undefined" == typeof e } var s = e("../../type"); t.exports = new s("tag:yaml.org,2002:js/undefined", { kind: "scalar", resolve: r, construct: i, predicate: o, represent: a }) }, {"../../type": 33}], 41: [function (e, t, n) { "use strict"; var r = e("../type"); t.exports = new r("tag:yaml.org,2002:map", { kind: "mapping", construct: function (e) { return null !== e ? e : {} } }) }, {"../type": 33}], 42: [function (e, t, n) { "use strict"; function r(e) { return "<<" === e || null === e } var i = e("../type"); t.exports = new i("tag:yaml.org,2002:merge", {kind: "scalar", resolve: r}) }, {"../type": 33}], 43: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !0; var t = e.length; return 1 === t && "~" === e || 4 === t && ("null" === e || "Null" === e || "NULL" === e) } function i() { return null } function a(e) { return null === e } var o = e("../type"); t.exports = new o("tag:yaml.org,2002:null", { kind: "scalar", resolve: r, construct: i, predicate: a, represent: { canonical: function () { return "~" }, lowercase: function () { return "null" }, uppercase: function () { return "NULL" }, camelcase: function () { return "Null" } }, defaultStyle: "lowercase" }) }, {"../type": 33}], 44: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !0; var t, n, r, i, a, l = [], u = e; for (t = 0, n = u.length; n > t; t += 1) { if (r = u[t], a = !1, "[object Object]" !== s.call(r))return !1; for (i in r)if (o.call(r, i)) { if (a)return !1; a = !0 } if (!a)return !1; if (-1 !== l.indexOf(i))return !1; l.push(i) } return !0 } function i(e) { return null !== e ? e : [] } var a = e("../type"), o = Object.prototype.hasOwnProperty, s = Object.prototype.toString; t.exports = new a("tag:yaml.org,2002:omap", {kind: "sequence", resolve: r, construct: i}) }, {"../type": 33}], 45: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !0; var t, n, r, i, a, s = e; for (a = new Array(s.length), t = 0, n = s.length; n > t; t += 1) { if (r = s[t], "[object Object]" !== o.call(r))return !1; if (i = Object.keys(r), 1 !== i.length)return !1; a[t] = [i[0], r[i[0]]] } return !0 } function i(e) { if (null === e)return []; var t, n, r, i, a, o = e; for (a = new Array(o.length), t = 0, n = o.length; n > t; t += 1)r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]]; return a } var a = e("../type"), o = Object.prototype.toString; t.exports = new a("tag:yaml.org,2002:pairs", {kind: "sequence", resolve: r, construct: i}) }, {"../type": 33}], 46: [function (e, t, n) { "use strict"; var r = e("../type"); t.exports = new r("tag:yaml.org,2002:seq", { kind: "sequence", construct: function (e) { return null !== e ? e : [] } }) }, {"../type": 33}], 47: [function (e, t, n) { "use strict"; function r(e) { if (null === e)return !0; var t, n = e; for (t in n)if (o.call(n, t) && null !== n[t])return !1; return !0 } function i(e) { return null !== e ? e : {} } var a = e("../type"), o = Object.prototype.hasOwnProperty; t.exports = new a("tag:yaml.org,2002:set", {kind: "mapping", resolve: r, construct: i}) }, {"../type": 33}], 48: [function (e, t, n) { "use strict"; var r = e("../type"); t.exports = new r("tag:yaml.org,2002:str", { kind: "scalar", construct: function (e) { return null !== e ? e : "" } }) }, {"../type": 33}], 49: [function (e, t, n) { "use strict"; function r(e) { return null === e ? !1 : null !== s.exec(e) } function i(e) { var t, n, r, i, a, o, l, u, c, p, h = 0, f = null; if (t = s.exec(e), null === t)throw new Error("Date resolve error"); if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])return new Date(Date.UTC(n, r, i)); if (a = +t[4], o = +t[5], l = +t[6], t[7]) { for (h = t[7].slice(0, 3); h.length < 3;)h += "0"; h = +h } return t[9] && (u = +t[10], c = +(t[11] || 0), f = 6e4 * (60 * u + c), "-" === t[9] && (f = -f)), p = new Date(Date.UTC(n, r, i, a, o, l, h)), f && p.setTime(p.getTime() - f), p } function a(e) { return e.toISOString() } var o = e("../type"), s = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$"); t.exports = new o("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: r, construct: i, instanceOf: Date, represent: a }) }, {"../type": 33}], 50: [function (e, t, n) { function r(e, t, n) { var r = e ? e.length : 0; if (!r)return -1; if ("number" == typeof n)n = 0 > n ? o(r + n, 0) : n; else if (n) { var s = a(e, t); return r > s && (t === t ? t === e[s] : e[s] !== e[s]) ? s : -1 } return i(e, t, n || 0) } var i = e("../internal/baseIndexOf"), a = e("../internal/binaryIndex"), o = Math.max; t.exports = r }, {"../internal/baseIndexOf": 79, "../internal/binaryIndex": 93}], 51: [function (e, t, n) { function r(e) { var t = e ? e.length : 0; return t ? e[t - 1] : void 0 } t.exports = r }, {}], 52: [function (e, t, n) { function r(e) { if (l(e) && !s(e) && !(e instanceof i)) { if (e instanceof a)return e; if (p.call(e, "__chain__") && p.call(e, "__wrapped__"))return u(e) } return new a(e) } var i = e("../internal/LazyWrapper"), a = e("../internal/LodashWrapper"), o = e("../internal/baseLodash"), s = e("../lang/isArray"), l = e("../internal/isObjectLike"), u = e("../internal/wrapperClone"), c = Object.prototype, p = c.hasOwnProperty; r.prototype = o.prototype, t.exports = r }, { "../internal/LazyWrapper": 61, "../internal/LodashWrapper": 62, "../internal/baseLodash": 83, "../internal/isObjectLike": 127, "../internal/wrapperClone": 138, "../lang/isArray": 141 }], 53: [function (e, t, n) { t.exports = e("./forEach") }, {"./forEach": 55}], 54: [function (e, t, n) { var r = e("../internal/baseEach"), i = e("../internal/createFind"), a = i(r); t.exports = a }, {"../internal/baseEach": 72, "../internal/createFind": 103}], 55: [function (e, t, n) { var r = e("../internal/arrayEach"), i = e("../internal/baseEach"), a = e("../internal/createForEach"), o = a(r, i); t.exports = o }, {"../internal/arrayEach": 64, "../internal/baseEach": 72, "../internal/createForEach": 104}], 56: [function (e, t, n) { function r(e, t, n, r) { var h = e ? a(e) : 0; return l(h) || (e = c(e), h = e.length), n = "number" != typeof n || r && s(t, n, r) ? 0 : 0 > n ? p(h + n, 0) : n || 0, "string" == typeof e || !o(e) && u(e) ? h >= n && e.indexOf(t, n) > -1 : !!h && i(e, t, n) > -1 } var i = e("../internal/baseIndexOf"), a = e("../internal/getLength"), o = e("../lang/isArray"), s = e("../internal/isIterateeCall"), l = e("../internal/isLength"), u = e("../lang/isString"), c = e("../object/values"), p = Math.max; t.exports = r }, { "../internal/baseIndexOf": 79, "../internal/getLength": 113, "../internal/isIterateeCall": 123, "../internal/isLength": 126, "../lang/isArray": 141, "../lang/isString": 147, "../object/values": 153 }], 57: [function (e, t, n) { function r(e, t, n) { var r = s(e) ? i : o; return t = a(t, n, 3), r(e, t) } var i = e("../internal/arrayMap"), a = e("../internal/baseCallback"), o = e("../internal/baseMap"), s = e("../lang/isArray"); t.exports = r }, { "../internal/arrayMap": 65, "../internal/baseCallback": 68, "../internal/baseMap": 84, "../lang/isArray": 141 }], 58: [function (e, t, n) { var r = e("../internal/getNative"), i = r(Date, "now"), a = i || function () { return (new Date).getTime() }; t.exports = a }, {"../internal/getNative": 115}], 59: [function (e, t, n) { var r = e("../internal/createWrapper"), i = e("../internal/replaceHolders"), a = e("./restParam"), o = 1, s = 32, l = a(function (e, t, n) { var a = o; if (n.length) { var u = i(n, l.placeholder); a |= s } return r(e, a, t, n, u) }); l.placeholder = {}, t.exports = l }, {"../internal/createWrapper": 107, "../internal/replaceHolders": 133, "./restParam": 60}], 60: [function (e, t, n) { function r(e, t) { if ("function" != typeof e)throw new TypeError(i); return t = a(void 0 === t ? e.length - 1 : +t || 0, 0), function () { for (var n = arguments, r = -1, i = a(n.length - t, 0), o = Array(i); ++r < i;)o[r] = n[t + r]; switch (t) { case 0: return e.call(this, o); case 1: return e.call(this, n[0], o); case 2: return e.call(this, n[0], n[1], o) } var s = Array(t + 1); for (r = -1; ++r < t;)s[r] = n[r]; return s[t] = o, e.apply(this, s) } } var i = "Expected a function", a = Math.max; t.exports = r }, {}], 61: [function (e, t, n) { function r(e) { this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = o, this.__views__ = [] } var i = e("./baseCreate"), a = e("./baseLodash"), o = Number.POSITIVE_INFINITY; r.prototype = i(a.prototype), r.prototype.constructor = r, t.exports = r }, {"./baseCreate": 71, "./baseLodash": 83}], 62: [function (e, t, n) { function r(e, t, n) { this.__wrapped__ = e, this.__actions__ = n || [], this.__chain__ = !!t } var i = e("./baseCreate"), a = e("./baseLodash"); r.prototype = i(a.prototype), r.prototype.constructor = r, t.exports = r }, {"./baseCreate": 71, "./baseLodash": 83}], 63: [function (e, t, n) { function r(e, t) { var n = -1, r = e.length; for (t || (t = Array(r)); ++n < r;)t[n] = e[n]; return t } t.exports = r }, {}], 64: [function (e, t, n) { function r(e, t) { for (var n = -1, r = e.length; ++n < r && t(e[n], n, e) !== !1;); return e } t.exports = r }, {}], 65: [function (e, t, n) { function r(e, t) { for (var n = -1, r = e.length, i = Array(r); ++n < r;)i[n] = t(e[n], n, e); return i } t.exports = r }, {}], 66: [function (e, t, n) { function r(e, t) { for (var n = -1, r = e.length; ++n < r;)if (t(e[n], n, e))return !0; return !1 } t.exports = r }, {}], 67: [function (e, t, n) { function r(e, t) { return null == t ? e : i(t, a(t), e) } var i = e("./baseCopy"), a = e("../object/keys"); t.exports = r }, {"../object/keys": 150, "./baseCopy": 70}], 68: [function (e, t, n) { function r(e, t, n) { var r = typeof e; return "function" == r ? void 0 === t ? e : o(e, t, n) : null == e ? s : "object" == r ? i(e) : void 0 === t ? l(e) : a(e, t) } var i = e("./baseMatches"), a = e("./baseMatchesProperty"), o = e("./bindCallback"), s = e("../utility/identity"), l = e("../utility/property"); t.exports = r }, { "../utility/identity": 155, "../utility/property": 157, "./baseMatches": 85, "./baseMatchesProperty": 86, "./bindCallback": 95 }], 69: [function (e, t, n) { function r(e, t, n, m, y, g, v) { var w; if (n && (w = y ? n(e, m, y) : n(e)), void 0 !== w)return w; if (!f(e))return e; var x = p(e); if (x) { if (w = l(e), !t)return i(e, w) } else { var A = N.call(e), O = A == b; if (A != j && A != d && (!O || y))return D[A] ? u(e, A, t) : y ? e : {}; if (h(e))return y ? e : {}; if (w = c(O ? {} : e), !t)return o(w, e) } g || (g = []), v || (v = []); for (var _ = g.length; _--;)if (g[_] == e)return v[_]; return g.push(e), v.push(w), (x ? a : s)(e, function (i, a) { w[a] = r(i, t, n, a, e, g, v) }), w } var i = e("./arrayCopy"), a = e("./arrayEach"), o = e("./baseAssign"), s = e("./baseForOwn"), l = e("./initCloneArray"), u = e("./initCloneByTag"), c = e("./initCloneObject"), p = e("../lang/isArray"), h = e("./isHostObject"), f = e("../lang/isObject"), d = "[object Arguments]", m = "[object Array]", y = "[object Boolean]", g = "[object Date]", v = "[object Error]", b = "[object Function]", w = "[object Map]", x = "[object Number]", j = "[object Object]", A = "[object RegExp]", O = "[object Set]", _ = "[object String]", S = "[object WeakMap]", k = "[object ArrayBuffer]", E = "[object Float32Array]", C = "[object Float64Array]", I = "[object Int8Array]", T = "[object Int16Array]", $ = "[object Int32Array]", M = "[object Uint8Array]", P = "[object Uint8ClampedArray]", U = "[object Uint16Array]", L = "[object Uint32Array]", D = {}; D[d] = D[m] = D[k] = D[y] = D[g] = D[E] = D[C] = D[I] = D[T] = D[$] = D[x] = D[j] = D[A] = D[_] = D[M] = D[P] = D[U] = D[L] = !0, D[v] = D[b] = D[w] = D[O] = D[S] = !1; var R = Object.prototype, N = R.toString; t.exports = r }, { "../lang/isArray": 141, "../lang/isObject": 145, "./arrayCopy": 63, "./arrayEach": 64, "./baseAssign": 67, "./baseForOwn": 77, "./initCloneArray": 117, "./initCloneByTag": 118, "./initCloneObject": 119, "./isHostObject": 121 }], 70: [function (e, t, n) { function r(e, t, n) { n || (n = {}); for (var r = -1, i = t.length; ++r < i;) { var a = t[r]; n[a] = e[a] } return n } t.exports = r }, {}], 71: [function (e, t, n) { var r = e("../lang/isObject"), i = function () { function e() { } return function (t) { if (r(t)) { e.prototype = t; var n = new e; e.prototype = void 0 } return n || {} } }(); t.exports = i }, {"../lang/isObject": 145}], 72: [function (e, t, n) { var r = e("./baseForOwn"), i = e("./createBaseEach"), a = i(r); t.exports = a }, {"./baseForOwn": 77, "./createBaseEach": 99}], 73: [function (e, t, n) { function r(e, t, n, r) { var i; return n(e, function (e, n, a) { return t(e, n, a) ? (i = r ? n : e, !1) : void 0 }), i } t.exports = r }, {}], 74: [function (e, t, n) { function r(e, t, n) { for (var r = e.length, i = n ? r : -1; n ? i-- : ++i < r;)if (t(e[i], i, e))return i; return -1 } t.exports = r }, {}], 75: [function (e, t, n) { var r = e("./createBaseFor"), i = r(); t.exports = i }, {"./createBaseFor": 100}], 76: [function (e, t, n) { function r(e, t) { return i(e, t, a) } var i = e("./baseFor"), a = e("../object/keysIn"); t.exports = r }, {"../object/keysIn": 151, "./baseFor": 75}], 77: [function (e, t, n) { function r(e, t) { return i(e, t, a) } var i = e("./baseFor"), a = e("../object/keys"); t.exports = r }, {"../object/keys": 150, "./baseFor": 75}], 78: [function (e, t, n) { function r(e, t, n) { if (null != e) { e = i(e), void 0 !== n && n in e && (t = [n]); for (var r = 0, a = t.length; null != e && a > r;)e = i(e)[t[r++]]; return r && r == a ? e : void 0 } } var i = e("./toObject"); t.exports = r }, {"./toObject": 136}], 79: [function (e, t, n) { function r(e, t, n) { if (t !== t)return i(e, n); for (var r = n - 1, a = e.length; ++r < a;)if (e[r] === t)return r; return -1 } var i = e("./indexOfNaN"); t.exports = r }, {"./indexOfNaN": 116}], 80: [function (e, t, n) { function r(e, t, n, s, l, u) { return e === t ? !0 : null == e || null == t || !a(e) && !o(t) ? e !== e && t !== t : i(e, t, r, n, s, l, u) } var i = e("./baseIsEqualDeep"), a = e("../lang/isObject"), o = e("./isObjectLike"); t.exports = r }, {"../lang/isObject": 145, "./baseIsEqualDeep": 81, "./isObjectLike": 127}], 81: [function (e, t, n) { function r(e, t, n, r, f, y, g) { var v = s(e), b = s(t), w = p, x = p; v || (w = m.call(e), w == c ? w = h : w != h && (v = u(e))), b || (x = m.call(t), x == c ? x = h : x != h && (b = u(t))); var j = w == h && !l(e), A = x == h && !l(t), O = w == x; if (O && !v && !j)return a(e, t, w); if (!f) { var _ = j && d.call(e, "__wrapped__"), S = A && d.call(t, "__wrapped__"); if (_ || S)return n(_ ? e.value() : e, S ? t.value() : t, r, f, y, g) } if (!O)return !1; y || (y = []), g || (g = []); for (var k = y.length; k--;)if (y[k] == e)return g[k] == t; y.push(e), g.push(t); var E = (v ? i : o)(e, t, n, r, f, y, g); return y.pop(), g.pop(), E } var i = e("./equalArrays"), a = e("./equalByTag"), o = e("./equalObjects"), s = e("../lang/isArray"), l = e("./isHostObject"), u = e("../lang/isTypedArray"), c = "[object Arguments]", p = "[object Array]", h = "[object Object]", f = Object.prototype, d = f.hasOwnProperty, m = f.toString; t.exports = r }, { "../lang/isArray": 141, "../lang/isTypedArray": 148, "./equalArrays": 108, "./equalByTag": 109, "./equalObjects": 110, "./isHostObject": 121 }], 82: [function (e, t, n) { function r(e, t, n) { var r = t.length, o = r, s = !n; if (null == e)return !o; for (e = a(e); r--;) { var l = t[r]; if (s && l[2] ? l[1] !== e[l[0]] : !(l[0] in e))return !1 } for (; ++r < o;) { l = t[r]; var u = l[0], c = e[u], p = l[1]; if (s && l[2]) { if (void 0 === c && !(u in e))return !1 } else { var h = n ? n(c, p, u) : void 0; if (!(void 0 === h ? i(p, c, n, !0) : h))return !1 } } return !0 } var i = e("./baseIsEqual"), a = e("./toObject"); t.exports = r }, {"./baseIsEqual": 80, "./toObject": 136}], 83: [function (e, t, n) { function r() { } t.exports = r }, {}], 84: [function (e, t, n) { function r(e, t) { var n = -1, r = a(e) ? Array(e.length) : []; return i(e, function (e, i, a) { r[++n] = t(e, i, a) }), r } var i = e("./baseEach"), a = e("./isArrayLike"); t.exports = r }, {"./baseEach": 72, "./isArrayLike": 120}], 85: [function (e, t, n) { function r(e) { var t = a(e); if (1 == t.length && t[0][2]) { var n = t[0][0], r = t[0][1]; return function (e) { return null == e ? !1 : (e = o(e), e[n] === r && (void 0 !== r || n in e)) } } return function (e) { return i(e, t) } } var i = e("./baseIsMatch"), a = e("./getMatchData"), o = e("./toObject"); t.exports = r }, {"./baseIsMatch": 82, "./getMatchData": 114, "./toObject": 136}], 86: [function (e, t, n) { function r(e, t) { var n = s(e), r = l(e) && u(t), f = e + ""; return e = h(e), function (s) { if (null == s)return !1; var l = f; if (s = p(s), (n || !r) && !(l in s)) { if (s = 1 == e.length ? s : i(s, o(e, 0, -1)), null == s)return !1; l = c(e), s = p(s) } return s[l] === t ? void 0 !== t || l in s : a(t, s[l], void 0, !0) } } var i = e("./baseGet"), a = e("./baseIsEqual"), o = e("./baseSlice"), s = e("../lang/isArray"), l = e("./isKey"), u = e("./isStrictComparable"), c = e("../array/last"), p = e("./toObject"), h = e("./toPath"); t.exports = r }, { "../array/last": 51, "../lang/isArray": 141, "./baseGet": 78, "./baseIsEqual": 80, "./baseSlice": 90, "./isKey": 124, "./isStrictComparable": 128, "./toObject": 136, "./toPath": 137 }], 87: [function (e, t, n) { function r(e) { return function (t) { return null == t ? void 0 : i(t)[e] } } var i = e("./toObject"); t.exports = r }, {"./toObject": 136}], 88: [function (e, t, n) { function r(e) { var t = e + ""; return e = a(e), function (n) { return i(n, e, t) } } var i = e("./baseGet"), a = e("./toPath"); t.exports = r }, {"./baseGet": 78, "./toPath": 137}], 89: [function (e, t, n) { var r = e("../utility/identity"), i = e("./metaMap"), a = i ? function (e, t) { return i.set(e, t), e } : r; t.exports = a }, {"../utility/identity": 155, "./metaMap": 130}], 90: [function (e, t, n) { function r(e, t, n) { var r = -1, i = e.length; t = null == t ? 0 : +t || 0, 0 > t && (t = -t > i ? 0 : i + t), n = void 0 === n || n > i ? i : +n || 0, 0 > n && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0; for (var a = Array(i); ++r < i;)a[r] = e[r + t]; return a } t.exports = r }, {}], 91: [function (e, t, n) { function r(e) { return null == e ? "" : e + "" } t.exports = r }, {}], 92: [function (e, t, n) { function r(e, t) { for (var n = -1, r = t.length, i = Array(r); ++n < r;)i[n] = e[t[n]]; return i } t.exports = r }, {}], 93: [function (e, t, n) { function r(e, t, n) { var r = 0, o = e ? e.length : r; if ("number" == typeof t && t === t && s >= o) { for (; o > r;) { var l = r + o >>> 1, u = e[l]; (n ? t >= u : t > u) && null !== u ? r = l + 1 : o = l } return o } return i(e, t, a, n) } var i = e("./binaryIndexBy"), a = e("../utility/identity"), o = 4294967295, s = o >>> 1; t.exports = r }, {"../utility/identity": 155, "./binaryIndexBy": 94}], 94: [function (e, t, n) { function r(e, t, n, r) { t = n(t); for (var o = 0, l = e ? e.length : 0, u = t !== t, c = null === t, p = void 0 === t; l > o;) { var h = i((o + l) / 2), f = n(e[h]), d = void 0 !== f, m = f === f; if (u)var y = m || r; else y = c ? m && d && (r || null != f) : p ? m && (r || d) : null == f ? !1 : r ? t >= f : t > f; y ? o = h + 1 : l = h } return a(l, s) } var i = Math.floor, a = Math.min, o = 4294967295, s = o - 1; t.exports = r }, {}], 95: [function (e, t, n) { function r(e, t, n) { if ("function" != typeof e)return i; if (void 0 === t)return e; switch (n) { case 1: return function (n) { return e.call(t, n) }; case 3: return function (n, r, i) { return e.call(t, n, r, i) }; case 4: return function (n, r, i, a) { return e.call(t, n, r, i, a) }; case 5: return function (n, r, i, a, o) { return e.call(t, n, r, i, a, o) } } return function () { return e.apply(t, arguments) } } var i = e("../utility/identity"); t.exports = r }, {"../utility/identity": 155}], 96: [function (e, t, n) { (function (e) { function n(e) { var t = new r(e.byteLength), n = new i(t); return n.set(new i(e)), t } var r = e.ArrayBuffer, i = e.Uint8Array; t.exports = n }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, {}], 97: [function (e, t, n) { function r(e, t, n) { for (var r = n.length, a = -1, o = i(e.length - r, 0), s = -1, l = t.length, u = Array(l + o); ++s < l;)u[s] = t[s]; for (; ++a < r;)u[n[a]] = e[a]; for (; o--;)u[s++] = e[a++]; return u } var i = Math.max; t.exports = r }, {}], 98: [function (e, t, n) { function r(e, t, n) { for (var r = -1, a = n.length, o = -1, s = i(e.length - a, 0), l = -1, u = t.length, c = Array(s + u); ++o < s;)c[o] = e[o]; for (var p = o; ++l < u;)c[p + l] = t[l]; for (; ++r < a;)c[p + n[r]] = e[o++]; return c } var i = Math.max; t.exports = r }, {}], 99: [function (e, t, n) { function r(e, t) { return function (n, r) { var s = n ? i(n) : 0; if (!a(s))return e(n, r); for (var l = t ? s : -1, u = o(n); (t ? l-- : ++l < s) && r(u[l], l, u) !== !1;); return n } } var i = e("./getLength"), a = e("./isLength"), o = e("./toObject"); t.exports = r }, {"./getLength": 113, "./isLength": 126, "./toObject": 136}], 100: [function (e, t, n) { function r(e) { return function (t, n, r) { for (var a = i(t), o = r(t), s = o.length, l = e ? s : -1; e ? l-- : ++l < s;) { var u = o[l]; if (n(a[u], u, a) === !1)break } return t } } var i = e("./toObject"); t.exports = r }, {"./toObject": 136}], 101: [function (e, t, n) { (function (n) { function r(e, t) { function r() { var i = this && this !== n && this instanceof r ? a : e; return i.apply(t, arguments) } var a = i(e); return r } var i = e("./createCtorWrapper"); t.exports = r }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, {"./createCtorWrapper": 102}], 102: [function (e, t, n) { function r(e) { return function () { var t = arguments; switch (t.length) { case 0: return new e; case 1: return new e(t[0]); case 2: return new e(t[0], t[1]); case 3: return new e(t[0], t[1], t[2]); case 4: return new e(t[0], t[1], t[2], t[3]); case 5: return new e(t[0], t[1], t[2], t[3], t[4]); case 6: return new e(t[0], t[1], t[2], t[3], t[4], t[5]); case 7: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]) } var n = i(e.prototype), r = e.apply(n, t); return a(r) ? r : n } } var i = e("./baseCreate"), a = e("../lang/isObject"); t.exports = r }, {"../lang/isObject": 145, "./baseCreate": 71}], 103: [function (e, t, n) { function r(e, t) { return function (n, r, l) { if (r = i(r, l, 3), s(n)) { var u = o(n, r, t); return u > -1 ? n[u] : void 0 } return a(n, r, e) } } var i = e("./baseCallback"), a = e("./baseFind"), o = e("./baseFindIndex"), s = e("../lang/isArray"); t.exports = r }, {"../lang/isArray": 141, "./baseCallback": 68, "./baseFind": 73, "./baseFindIndex": 74}], 104: [function (e, t, n) { function r(e, t) { return function (n, r, o) { return "function" == typeof r && void 0 === o && a(n) ? e(n, r) : t(n, i(r, o, 3)) } } var i = e("./bindCallback"), a = e("../lang/isArray"); t.exports = r }, {"../lang/isArray": 141, "./bindCallback": 95}], 105: [function (e, t, n) { (function (n) { function r(e, t, x, j, A, O, _, S, k, E) { function C() { for (var d = arguments.length, m = d, y = Array(d); m--;)y[m] = arguments[m]; if (j && (y = a(y, j, A)), O && (y = o(y, O, _)), M || U) { var b = C.placeholder, D = c(y, b); if (d -= D.length, E > d) { var R = S ? i(S) : void 0, N = w(E - d, 0), F = M ? D : void 0, B = M ? void 0 : D, q = M ? y : void 0, H = M ? void 0 : y; t |= M ? g : v, t &= ~(M ? v : g), P || (t &= ~(h | f)); var V = [e, t, x, q, F, H, B, R, k, N], z = r.apply(void 0, V); return l(e) && p(z, V), z.placeholder = b, z } } var J = T ? x : this, Y = $ ? J[e] : e; return S && (y = u(y, S)), I && k < y.length && (y.length = k), this && this !== n && this instanceof C && (Y = L || s(e)), Y.apply(J, y) } var I = t & b, T = t & h, $ = t & f, M = t & m, P = t & d, U = t & y, L = $ ? void 0 : s(e); return C } var i = e("./arrayCopy"), a = e("./composeArgs"), o = e("./composeArgsRight"), s = e("./createCtorWrapper"), l = e("./isLaziable"), u = e("./reorder"), c = e("./replaceHolders"), p = e("./setData"), h = 1, f = 2, d = 4, m = 8, y = 16, g = 32, v = 64, b = 128, w = Math.max; t.exports = r }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, { "./arrayCopy": 63, "./composeArgs": 97, "./composeArgsRight": 98, "./createCtorWrapper": 102, "./isLaziable": 125, "./reorder": 132, "./replaceHolders": 133, "./setData": 134 }], 106: [function (e, t, n) { (function (n) { function r(e, t, r, o) { function s() { for (var t = -1, i = arguments.length, a = -1, c = o.length, p = Array(c + i); ++a < c;)p[a] = o[a]; for (; i--;)p[a++] = arguments[++t]; var h = this && this !== n && this instanceof s ? u : e; return h.apply(l ? r : this, p) } var l = t & a, u = i(e); return s } var i = e("./createCtorWrapper"), a = 1; t.exports = r }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, {"./createCtorWrapper": 102}], 107: [function (e, t, n) { function r(e, t, n, r, g, v, b, w) { var x = t & h; if (!x && "function" != typeof e)throw new TypeError(m); var j = r ? r.length : 0; if (j || (t &= ~(f | d), r = g = void 0), j -= g ? g.length : 0, t & d) { var A = r, O = g; r = g = void 0 } var _ = x ? void 0 : l(e), S = [e, t, n, r, g, A, O, v, b, w]; if (_ && (u(S, _), t = S[1], w = S[9]), S[9] = null == w ? x ? 0 : e.length : y(w - j, 0) || 0, t == p)var k = a(S[0], S[2]); else k = t != f && t != (p | f) || S[4].length ? o.apply(void 0, S) : s.apply(void 0, S); var E = _ ? i : c; return E(k, S) } var i = e("./baseSetData"), a = e("./createBindWrapper"), o = e("./createHybridWrapper"), s = e("./createPartialWrapper"), l = e("./getData"), u = e("./mergeData"), c = e("./setData"), p = 1, h = 2, f = 32, d = 64, m = "Expected a function", y = Math.max; t.exports = r }, { "./baseSetData": 89, "./createBindWrapper": 101, "./createHybridWrapper": 105, "./createPartialWrapper": 106, "./getData": 111, "./mergeData": 129, "./setData": 134 }], 108: [function (e, t, n) { function r(e, t, n, r, a, o, s) { var l = -1, u = e.length, c = t.length; if (u != c && !(a && c > u))return !1; for (; ++l < u;) { var p = e[l], h = t[l], f = r ? r(a ? h : p, a ? p : h, l) : void 0; if (void 0 !== f) { if (f)continue; return !1 } if (a) { if (!i(t, function (e) { return p === e || n(p, e, r, a, o, s) }))return !1 } else if (p !== h && !n(p, h, r, a, o, s))return !1 } return !0 } var i = e("./arraySome"); t.exports = r }, {"./arraySome": 66}], 109: [function (e, t, n) { function r(e, t, n) { switch (n) { case i: case a: return +e == +t; case o: return e.name == t.name && e.message == t.message; case s: return e != +e ? t != +t : e == +t; case l: case u: return e == t + "" } return !1 } var i = "[object Boolean]", a = "[object Date]", o = "[object Error]", s = "[object Number]", l = "[object RegExp]", u = "[object String]"; t.exports = r }, {}], 110: [function (e, t, n) { function r(e, t, n, r, a, s, l) { var u = i(e), c = u.length, p = i(t), h = p.length; if (c != h && !a)return !1; for (var f = c; f--;) { var d = u[f]; if (!(a ? d in t : o.call(t, d)))return !1 } for (var m = a; ++f < c;) { d = u[f]; var y = e[d], g = t[d], v = r ? r(a ? g : y, a ? y : g, d) : void 0; if (!(void 0 === v ? n(y, g, r, a, s, l) : v))return !1; m || (m = "constructor" == d) } if (!m) { var b = e.constructor, w = t.constructor; if (b != w && "constructor" in e && "constructor" in t && !("function" == typeof b && b instanceof b && "function" == typeof w && w instanceof w))return !1 } return !0 } var i = e("../object/keys"), a = Object.prototype, o = a.hasOwnProperty; t.exports = r }, {"../object/keys": 150}], 111: [function (e, t, n) { var r = e("./metaMap"), i = e("../utility/noop"), a = r ? function (e) { return r.get(e) } : i; t.exports = a }, {"../utility/noop": 156, "./metaMap": 130}], 112: [function (e, t, n) { function r(e) { for (var t = e.name + "", n = i[t], r = n ? n.length : 0; r--;) { var a = n[r], o = a.func; if (null == o || o == e)return a.name } return t } var i = e("./realNames"); t.exports = r }, {"./realNames": 131}], 113: [function (e, t, n) { var r = e("./baseProperty"), i = r("length"); t.exports = i }, {"./baseProperty": 87}], 114: [function (e, t, n) { function r(e) { for (var t = a(e), n = t.length; n--;)t[n][2] = i(t[n][1]); return t } var i = e("./isStrictComparable"), a = e("../object/pairs"); t.exports = r }, {"../object/pairs": 152, "./isStrictComparable": 128}], 115: [function (e, t, n) { function r(e, t) { var n = null == e ? void 0 : e[t]; return i(n) ? n : void 0 } var i = e("../lang/isNative"); t.exports = r }, {"../lang/isNative": 144}], 116: [function (e, t, n) { function r(e, t, n) { for (var r = e.length, i = t + (n ? 0 : -1); n ? i-- : ++i < r;) { var a = e[i]; if (a !== a)return i } return -1 } t.exports = r }, {}], 117: [function (e, t, n) { function r(e) { var t = e.length, n = new e.constructor(t); return t && "string" == typeof e[0] && a.call(e, "index") && (n.index = e.index, n.input = e.input), n } var i = Object.prototype, a = i.hasOwnProperty; t.exports = r }, {}], 118: [function (e, t, n) { (function (n) { function r(e, t, n) { var r = e.constructor; switch (t) { case c: return i(e); case a: case o: return new r(+e); case p: case h: case f: case d: case m: case y: case g: case v: case b: r instanceof r && (r = j[t]); var x = e.buffer; return new r(n ? i(x) : x, e.byteOffset, e.length); case s: case u: return new r(e); case l: var A = new r(e.source, w.exec(e)); A.lastIndex = e.lastIndex } return A } var i = e("./bufferClone"), a = "[object Boolean]", o = "[object Date]", s = "[object Number]", l = "[object RegExp]", u = "[object String]", c = "[object ArrayBuffer]", p = "[object Float32Array]", h = "[object Float64Array]", f = "[object Int8Array]", d = "[object Int16Array]", m = "[object Int32Array]", y = "[object Uint8Array]", g = "[object Uint8ClampedArray]", v = "[object Uint16Array]", b = "[object Uint32Array]", w = /\w*$/, x = n.Uint8Array, j = {}; j[p] = n.Float32Array, j[h] = n.Float64Array, j[f] = n.Int8Array, j[d] = n.Int16Array, j[m] = n.Int32Array, j[y] = x, j[g] = n.Uint8ClampedArray, j[v] = n.Uint16Array, j[b] = n.Uint32Array, t.exports = r }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, {"./bufferClone": 96}], 119: [function (e, t, n) { function r(e) { var t = e.constructor; return "function" == typeof t && t instanceof t || (t = Object), new t } t.exports = r }, {}], 120: [function (e, t, n) { function r(e) { return null != e && a(i(e)) } var i = e("./getLength"), a = e("./isLength"); t.exports = r }, {"./getLength": 113, "./isLength": 126}], 121: [function (e, t, n) { var r = function () { try { Object({toString: 0} + "") } catch (e) { return function () { return !1 } } return function (e) { return "function" != typeof e.toString && "string" == typeof(e + "") } }(); t.exports = r }, {}], 122: [function (e, t, n) { function r(e, t) { return e = "number" == typeof e || i.test(e) ? +e : -1, t = null == t ? a : t, e > -1 && e % 1 == 0 && t > e } var i = /^\d+$/, a = 9007199254740991; t.exports = r }, {}], 123: [function (e, t, n) { function r(e, t, n) { if (!o(n))return !1; var r = typeof t; if ("number" == r ? i(n) && a(t, n.length) : "string" == r && t in n) { var s = n[t]; return e === e ? e === s : s !== s } return !1 } var i = e("./isArrayLike"), a = e("./isIndex"), o = e("../lang/isObject"); t.exports = r }, {"../lang/isObject": 145, "./isArrayLike": 120, "./isIndex": 122}], 124: [function (e, t, n) { function r(e, t) { var n = typeof e; if ("string" == n && s.test(e) || "number" == n)return !0; if (i(e))return !1; var r = !o.test(e); return r || null != t && e in a(t) } var i = e("../lang/isArray"), a = e("./toObject"), o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/, s = /^\w*$/; t.exports = r }, {"../lang/isArray": 141, "./toObject": 136}], 125: [function (e, t, n) { function r(e) { var t = o(e), n = s[t]; if ("function" != typeof n || !(t in i.prototype))return !1; if (e === n)return !0; var r = a(n); return !!r && e === r[0] } var i = e("./LazyWrapper"), a = e("./getData"), o = e("./getFuncName"), s = e("../chain/lodash"); t.exports = r }, {"../chain/lodash": 52, "./LazyWrapper": 61, "./getData": 111, "./getFuncName": 112}], 126: [function (e, t, n) { function r(e) { return "number" == typeof e && e > -1 && e % 1 == 0 && i >= e } var i = 9007199254740991; t.exports = r }, {}], 127: [function (e, t, n) { function r(e) { return !!e && "object" == typeof e } t.exports = r }, {}], 128: [function (e, t, n) { function r(e) { return e === e && !i(e) } var i = e("../lang/isObject"); t.exports = r }, {"../lang/isObject": 145}], 129: [function (e, t, n) { function r(e, t) { var n = e[1], r = t[1], m = n | r, y = p > m, g = r == p && n == c || r == p && n == h && e[7].length <= t[8] || r == (p | h) && n == c; if (!y && !g)return e; r & l && (e[2] = t[2], m |= n & l ? 0 : u); var v = t[3]; if (v) { var b = e[3]; e[3] = b ? a(b, v, t[4]) : i(v), e[4] = b ? s(e[3], f) : i(t[4]) } return v = t[5], v && (b = e[5], e[5] = b ? o(b, v, t[6]) : i(v), e[6] = b ? s(e[5], f) : i(t[6])), v = t[7], v && (e[7] = i(v)), r & p && (e[8] = null == e[8] ? t[8] : d(e[8], t[8])), null == e[9] && (e[9] = t[9]), e[0] = t[0], e[1] = m, e } var i = e("./arrayCopy"), a = e("./composeArgs"), o = e("./composeArgsRight"), s = e("./replaceHolders"), l = 1, u = 4, c = 8, p = 128, h = 256, f = "__lodash_placeholder__", d = Math.min; t.exports = r }, {"./arrayCopy": 63, "./composeArgs": 97, "./composeArgsRight": 98, "./replaceHolders": 133}], 130: [function (e, t, n) { (function (n) { var r = e("./getNative"), i = r(n, "WeakMap"), a = i && new i; t.exports = a }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}) }, {"./getNative": 115}], 131: [function (e, t, n) { var r = {}; t.exports = r }, {}], 132: [function (e, t, n) { function r(e, t) { for (var n = e.length, r = o(t.length, n), s = i(e); r--;) { var l = t[r]; e[r] = a(l, n) ? s[l] : void 0 } return e } var i = e("./arrayCopy"), a = e("./isIndex"), o = Math.min; t.exports = r }, {"./arrayCopy": 63, "./isIndex": 122}], 133: [function (e, t, n) { function r(e, t) { for (var n = -1, r = e.length, a = -1, o = []; ++n < r;)e[n] === t && (e[n] = i, o[++a] = n); return o } var i = "__lodash_placeholder__"; t.exports = r }, {}], 134: [function (e, t, n) { var r = e("./baseSetData"), i = e("../date/now"), a = 150, o = 16, s = function () { var e = 0, t = 0; return function (n, s) { var l = i(), u = o - (l - t); if (t = l, u > 0) { if (++e >= a)return n } else e = 0; return r(n, s) } }(); t.exports = s }, {"../date/now": 58, "./baseSetData": 89}], 135: [function (e, t, n) { function r(e) { for (var t = u(e), n = t.length, r = n && e.length, c = !!r && s(r) && (a(e) || i(e) || l(e)), h = -1, f = []; ++h < n;) { var d = t[h]; (c && o(d, r) || p.call(e, d)) && f.push(d) } return f } var i = e("../lang/isArguments"), a = e("../lang/isArray"), o = e("./isIndex"), s = e("./isLength"), l = e("../lang/isString"), u = e("../object/keysIn"), c = Object.prototype, p = c.hasOwnProperty; t.exports = r }, { "../lang/isArguments": 140, "../lang/isArray": 141, "../lang/isString": 147, "../object/keysIn": 151, "./isIndex": 122, "./isLength": 126 }], 136: [function (e, t, n) { function r(e) { if (o.unindexedChars && a(e)) { for (var t = -1, n = e.length, r = Object(e); ++t < n;)r[t] = e.charAt(t); return r } return i(e) ? e : Object(e) } var i = e("../lang/isObject"), a = e("../lang/isString"), o = e("../support"); t.exports = r }, {"../lang/isObject": 145, "../lang/isString": 147, "../support": 154}], 137: [function (e, t, n) { function r(e) { if (a(e))return e; var t = []; return i(e).replace(o, function (e, n, r, i) { t.push(r ? i.replace(s, "$1") : n || e) }), t } var i = e("./baseToString"), a = e("../lang/isArray"), o = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g, s = /\\(\\)?/g; t.exports = r }, {"../lang/isArray": 141, "./baseToString": 91}], 138: [function (e, t, n) { function r(e) { return e instanceof i ? e.clone() : new a(e.__wrapped__, e.__chain__, o(e.__actions__)) } var i = e("./LazyWrapper"), a = e("./LodashWrapper"), o = e("./arrayCopy"); t.exports = r }, {"./LazyWrapper": 61, "./LodashWrapper": 62, "./arrayCopy": 63}], 139: [function (e, t, n) { function r(e, t, n) { return "function" == typeof t ? i(e, !0, a(t, n, 3)) : i(e, !0) } var i = e("../internal/baseClone"), a = e("../internal/bindCallback"); t.exports = r }, {"../internal/baseClone": 69, "../internal/bindCallback": 95}], 140: [function (e, t, n) { function r(e) { return a(e) && i(e) && s.call(e, "callee") && !l.call(e, "callee") } var i = e("../internal/isArrayLike"), a = e("../internal/isObjectLike"), o = Object.prototype, s = o.hasOwnProperty, l = o.propertyIsEnumerable; t.exports = r }, {"../internal/isArrayLike": 120, "../internal/isObjectLike": 127}], 141: [function (e, t, n) { var r = e("../internal/getNative"), i = e("../internal/isLength"), a = e("../internal/isObjectLike"), o = "[object Array]", s = Object.prototype, l = s.toString, u = r(Array, "isArray"), c = u || function (e) { return a(e) && i(e.length) && l.call(e) == o }; t.exports = c }, {"../internal/getNative": 115, "../internal/isLength": 126, "../internal/isObjectLike": 127}], 142: [function (e, t, n) { function r(e) { return null == e ? !0 : o(e) && (a(e) || u(e) || i(e) || l(e) && s(e.splice)) ? !e.length : !c(e).length } var i = e("./isArguments"), a = e("./isArray"), o = e("../internal/isArrayLike"), s = e("./isFunction"), l = e("../internal/isObjectLike"), u = e("./isString"), c = e("../object/keys"); t.exports = r }, { "../internal/isArrayLike": 120, "../internal/isObjectLike": 127, "../object/keys": 150, "./isArguments": 140, "./isArray": 141, "./isFunction": 143, "./isString": 147 }], 143: [function (e, t, n) { function r(e) { return i(e) && s.call(e) == a } var i = e("./isObject"), a = "[object Function]", o = Object.prototype, s = o.toString; t.exports = r }, {"./isObject": 145}], 144: [function (e, t, n) { function r(e) { return null == e ? !1 : i(e) ? p.test(u.call(e)) : o(e) && (a(e) ? p : s).test(e) } var i = e("./isFunction"), a = e("../internal/isHostObject"), o = e("../internal/isObjectLike"), s = /^\[object .+?Constructor\]$/, l = Object.prototype, u = Function.prototype.toString, c = l.hasOwnProperty, p = RegExp("^" + u.call(c).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); t.exports = r }, {"../internal/isHostObject": 121, "../internal/isObjectLike": 127, "./isFunction": 143}], 145: [function (e, t, n) { function r(e) { var t = typeof e; return !!e && ("object" == t || "function" == t) } t.exports = r }, {}], 146: [function (e, t, n) { function r(e) { var t; if (!s(e) || h.call(e) != u || o(e) || a(e) || !p.call(e, "constructor") && (t = e.constructor, "function" == typeof t && !(t instanceof t)))return !1; var n; return l.ownLast ? (i(e, function (e, t, r) { return n = p.call(r, t), !1 }), n !== !1) : (i(e, function (e, t) { n = t }), void 0 === n || p.call(e, n)) } var i = e("../internal/baseForIn"), a = e("./isArguments"), o = e("../internal/isHostObject"), s = e("../internal/isObjectLike"), l = e("../support"), u = "[object Object]", c = Object.prototype, p = c.hasOwnProperty, h = c.toString; t.exports = r }, { "../internal/baseForIn": 76, "../internal/isHostObject": 121, "../internal/isObjectLike": 127, "../support": 154, "./isArguments": 140 }], 147: [function (e, t, n) { function r(e) { return "string" == typeof e || i(e) && s.call(e) == a } var i = e("../internal/isObjectLike"), a = "[object String]", o = Object.prototype, s = o.toString; t.exports = r }, {"../internal/isObjectLike": 127}], 148: [function (e, t, n) { function r(e) { return a(e) && i(e.length) && !!C[T.call(e)] } var i = e("../internal/isLength"), a = e("../internal/isObjectLike"), o = "[object Arguments]", s = "[object Array]", l = "[object Boolean]", u = "[object Date]", c = "[object Error]", p = "[object Function]", h = "[object Map]", f = "[object Number]", d = "[object Object]", m = "[object RegExp]", y = "[object Set]", g = "[object String]", v = "[object WeakMap]", b = "[object ArrayBuffer]", w = "[object Float32Array]", x = "[object Float64Array]", j = "[object Int8Array]", A = "[object Int16Array]", O = "[object Int32Array]", _ = "[object Uint8Array]", S = "[object Uint8ClampedArray]", k = "[object Uint16Array]", E = "[object Uint32Array]", C = {}; C[w] = C[x] = C[j] = C[A] = C[O] = C[_] = C[S] = C[k] = C[E] = !0, C[o] = C[s] = C[b] = C[l] = C[u] = C[c] = C[p] = C[h] = C[f] = C[d] = C[m] = C[y] = C[g] = C[v] = !1; var I = Object.prototype, T = I.toString; t.exports = r }, {"../internal/isLength": 126, "../internal/isObjectLike": 127}], 149: [function (e, t, n) { function r(e) { return void 0 === e } t.exports = r }, {}], 150: [function (e, t, n) { var r = e("../internal/getNative"), i = e("../internal/isArrayLike"), a = e("../lang/isObject"), o = e("../internal/shimKeys"), s = e("../support"), l = r(Object, "keys"), u = l ? function (e) { var t = null == e ? void 0 : e.constructor; return "function" == typeof t && t.prototype === e || ("function" == typeof e ? s.enumPrototypes : i(e)) ? o(e) : a(e) ? l(e) : [] } : o; t.exports = u }, { "../internal/getNative": 115, "../internal/isArrayLike": 120, "../internal/shimKeys": 135, "../lang/isObject": 145, "../support": 154 }], 151: [function (e, t, n) { function r(e) { if (null == e)return []; c(e) || (e = Object(e)); var t = e.length; t = t && u(t) && (o(e) || a(e) || p(e)) && t || 0; for (var n = e.constructor, r = -1, i = s(n) && n.prototype || O, f = i === e, d = Array(t), m = t > 0, g = h.enumErrorProps && (e === A || e instanceof Error), v = h.enumPrototypes && s(e); ++r < t;)d[r] = r + ""; for (var w in e)v && "prototype" == w || g && ("message" == w || "name" == w) || m && l(w, t) || "constructor" == w && (f || !S.call(e, w)) || d.push(w); if (h.nonEnumShadows && e !== O) { var C = e === _ ? x : e === A ? y : k.call(e), I = E[C] || E[b]; for (C == b && (i = O), t = j.length; t--;) { w = j[t]; var T = I[w]; f && T || (T ? !S.call(e, w) : e[w] === i[w]) || d.push(w) } } return d } var i = e("../internal/arrayEach"), a = e("../lang/isArguments"), o = e("../lang/isArray"), s = e("../lang/isFunction"), l = e("../internal/isIndex"), u = e("../internal/isLength"), c = e("../lang/isObject"), p = e("../lang/isString"), h = e("../support"), f = "[object Array]", d = "[object Boolean]", m = "[object Date]", y = "[object Error]", g = "[object Function]", v = "[object Number]", b = "[object Object]", w = "[object RegExp]", x = "[object String]", j = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], A = Error.prototype, O = Object.prototype, _ = String.prototype, S = O.hasOwnProperty, k = O.toString, E = {}; E[f] = E[m] = E[v] = { constructor: !0, toLocaleString: !0, toString: !0, valueOf: !0 }, E[d] = E[x] = {constructor: !0, toString: !0, valueOf: !0}, E[y] = E[g] = E[w] = { constructor: !0, toString: !0 }, E[b] = {constructor: !0}, i(j, function (e) { for (var t in E)if (S.call(E, t)) { var n = E[t]; n[e] = S.call(n, e) } }), t.exports = r }, { "../internal/arrayEach": 64, "../internal/isIndex": 122, "../internal/isLength": 126, "../lang/isArguments": 140, "../lang/isArray": 141, "../lang/isFunction": 143, "../lang/isObject": 145, "../lang/isString": 147, "../support": 154 }], 152: [function (e, t, n) { function r(e) { e = a(e); for (var t = -1, n = i(e), r = n.length, o = Array(r); ++t < r;) { var s = n[t]; o[t] = [s, e[s]] } return o } var i = e("./keys"), a = e("../internal/toObject"); t.exports = r }, {"../internal/toObject": 136, "./keys": 150}], 153: [function (e, t, n) { function r(e) { return i(e, a(e)) } var i = e("../internal/baseValues"), a = e("./keys"); t.exports = r }, {"../internal/baseValues": 92, "./keys": 150}], 154: [function (e, t, n) { var r = Array.prototype, i = Error.prototype, a = Object.prototype, o = a.propertyIsEnumerable, s = r.splice, l = {}; !function (e) { var t = function () { this.x = e }, n = {0: e, length: e}, r = []; t.prototype = {valueOf: e, y: e}; for (var a in new t)r.push(a); l.enumErrorProps = o.call(i, "message") || o.call(i, "name"), l.enumPrototypes = o.call(t, "prototype"), l.nonEnumShadows = !/valueOf/.test(r), l.ownLast = "x" != r[0], l.spliceObjects = (s.call(n, 0, 1), !n[0]), l.unindexedChars = "x"[0] + Object("x")[0] != "xx" }(1, 0), t.exports = l }, {}], 155: [function (e, t, n) { function r(e) { return e } t.exports = r }, {}], 156: [function (e, t, n) { function r() { } t.exports = r }, {}], 157: [function (e, t, n) { function r(e) { return o(e) ? i(e) : a(e) } var i = e("../internal/baseProperty"), a = e("../internal/basePropertyDeep"), o = e("../internal/isKey"); t.exports = r }, {"../internal/baseProperty": 87, "../internal/basePropertyDeep": 88, "../internal/isKey": 124}], 158: [function (e, n, r) { (function (e) { !function (e) { "use strict"; if ("function" == typeof bootstrap)bootstrap("promise", e); else if ("object" == typeof r && "object" == typeof n)n.exports = e(); else if ("function" == typeof t && t.amd)t(e); else if ("undefined" != typeof ses) { if (!ses.ok())return; ses.makeQ = e } else { if ("undefined" == typeof window && "undefined" == typeof self)throw new Error("This environment was not anticipated by Q. Please file a bug."); var i = "undefined" != typeof window ? window : self, a = i.Q; i.Q = e(), i.Q.noConflict = function () { return i.Q = a, this } } }(function () { "use strict"; function t(e) { return function () { return W.apply(e, arguments) } } function n(e) { return e === Object(e) } function r(e) { return "[object StopIteration]" === re(e) || e instanceof z } function i(e, t) { if (q && t.stack && "object" == typeof e && null !== e && e.stack && -1 === e.stack.indexOf(ie)) { for (var n = [], r = t; r; r = r.source)r.stack && n.unshift(r.stack); n.unshift(e.stack); var i = n.join("\n" + ie + "\n"); e.stack = a(i) } } function a(e) { for (var t = e.split("\n"), n = [], r = 0; r < t.length; ++r) { var i = t[r]; l(i) || o(i) || !i || n.push(i) } return n.join("\n") } function o(e) { return -1 !== e.indexOf("(module.js:") || -1 !== e.indexOf("(node.js:") } function s(e) { var t = /at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e); if (t)return [t[1], Number(t[2])]; var n = /at ([^ ]+):(\d+):(?:\d+)$/.exec(e); if (n)return [n[1], Number(n[2])]; var r = /.*@(.+):(\d+)$/.exec(e); return r ? [r[1], Number(r[2])] : void 0 } function l(e) { var t = s(e); if (!t)return !1; var n = t[0], r = t[1]; return n === V && r >= J && ue >= r } function u() { if (q)try { throw new Error } catch (e) { var t = e.stack.split("\n"), n = t[0].indexOf("@") > 0 ? t[1] : t[2], r = s(n); if (!r)return; return V = r[0], r[1] } } function c(e, t, n) { return function () { return "undefined" != typeof console && "function" == typeof console.warn && console.warn(t + " is deprecated, use " + n + " instead.", new Error("").stack), e.apply(e, arguments) } } function p(e) { return e instanceof m ? e : b(e) ? E(e) : k(e) } function h() { function e(e) { t = e, a.source = e, X(n, function (t, n) { p.nextTick(function () { e.promiseDispatch.apply(e, n) }) }, void 0), n = void 0, r = void 0 } var t, n = [], r = [], i = ee(h.prototype), a = ee(m.prototype); if (a.promiseDispatch = function (e, i, a) { var o = K(arguments); n ? (n.push(o), "when" === i && a[1] && r.push(a[1])) : p.nextTick(function () { t.promiseDispatch.apply(t, o) }) }, a.valueOf = function () { if (n)return a; var e = g(t); return v(e) && (t = e), e }, a.inspect = function () { return t ? t.inspect() : {state: "pending"} }, p.longStackSupport && q)try { throw new Error } catch (o) { a.stack = o.stack.substring(o.stack.indexOf("\n") + 1) } return i.promise = a, i.resolve = function (n) { t || e(p(n)) }, i.fulfill = function (n) { t || e(k(n)) }, i.reject = function (n) { t || e(S(n)) }, i.notify = function (e) { t || X(r, function (t, n) { p.nextTick(function () { n(e) }) }, void 0) }, i } function f(e) { if ("function" != typeof e)throw new TypeError("resolver must be a function."); var t = h(); try { e(t.resolve, t.reject, t.notify) } catch (n) { t.reject(n) } return t.promise } function d(e) { return f(function (t, n) { for (var r = 0, i = e.length; i > r; r++)p(e[r]).then(t, n) }) } function m(e, t, n) { void 0 === t && (t = function (e) { return S(new Error("Promise does not support operation: " + e)) }), void 0 === n && (n = function () { return {state: "unknown"} }); var r = ee(m.prototype); if (r.promiseDispatch = function (n, i, a) { var o; try { o = e[i] ? e[i].apply(r, a) : t.call(r, i, a) } catch (s) { o = S(s) } n && n(o) }, r.inspect = n, n) { var i = n(); "rejected" === i.state && (r.exception = i.reason), r.valueOf = function () { var e = n(); return "pending" === e.state || "rejected" === e.state ? r : e.value } } return r } function y(e, t, n, r) { return p(e).then(t, n, r) } function g(e) { if (v(e)) { var t = e.inspect(); if ("fulfilled" === t.state)return t.value } return e } function v(e) { return e instanceof m } function b(e) { return n(e) && "function" == typeof e.then } function w(e) { return v(e) && "pending" === e.inspect().state } function x(e) { return !v(e) || "fulfilled" === e.inspect().state } function j(e) { return v(e) && "rejected" === e.inspect().state } function A() { ae.length = 0, oe.length = 0, le || (le = !0) } function O(t, n) { le && ("object" == typeof e && "function" == typeof e.emit && p.nextTick.runAfter(function () { -1 !== G(oe, t) && (e.emit("unhandledRejection", n, t), se.push(t)) }), oe.push(t), n && "undefined" != typeof n.stack ? ae.push(n.stack) : ae.push("(no stack) " + n)) } function _(t) { if (le) { var n = G(oe, t); -1 !== n && ("object" == typeof e && "function" == typeof e.emit && p.nextTick.runAfter(function () { var r = G(se, t); -1 !== r && (e.emit("rejectionHandled", ae[n], t), se.splice(r, 1)) }), oe.splice(n, 1), ae.splice(n, 1)) } } function S(e) { var t = m({ when: function (t) { return t && _(this), t ? t(e) : this } }, function () { return this }, function () { return {state: "rejected", reason: e} }); return O(t, e), t } function k(e) { return m({ when: function () { return e }, get: function (t) { return e[t] }, set: function (t, n) { e[t] = n }, "delete": function (t) { delete e[t] }, post: function (t, n) { return null === t || void 0 === t ? e.apply(void 0, n) : e[t].apply(e, n) }, apply: function (t, n) { return e.apply(t, n) }, keys: function () { return ne(e) } }, void 0, function () { return {state: "fulfilled", value: e} }) } function E(e) { var t = h(); return p.nextTick(function () { try { e.then(t.resolve, t.reject, t.notify) } catch (n) { t.reject(n) } }), t.promise } function C(e) { return m({ isDef: function () { } }, function (t, n) { return U(e, t, n) }, function () { return p(e).inspect() }) } function I(e, t, n) { return p(e).spread(t, n) } function T(e) { return function () { function t(e, t) { var o; if ("undefined" == typeof StopIteration) { try { o = n[e](t) } catch (s) { return S(s) } return o.done ? p(o.value) : y(o.value, i, a) } try { o = n[e](t) } catch (s) { return r(s) ? p(s.value) : S(s) } return y(o, i, a) } var n = e.apply(this, arguments), i = t.bind(t, "next"), a = t.bind(t, "throw"); return i() } } function $(e) { p.done(p.async(e)()) } function M(e) { throw new z(e) } function P(e) { return function () { return I([this, L(arguments)], function (t, n) { return e.apply(t, n) }) } } function U(e, t, n) { return p(e).dispatch(t, n) } function L(e) { return y(e, function (e) { var t = 0, n = h(); return X(e, function (r, i, a) { var o; v(i) && "fulfilled" === (o = i.inspect()).state ? e[a] = o.value : (++t, y(i, function (r) { e[a] = r, 0 === --t && n.resolve(e) }, n.reject, function (e) { n.notify({index: a, value: e}) })) }, void 0), 0 === t && n.resolve(e), n.promise }) } function D(e) { if (0 === e.length)return p.resolve(); var t = p.defer(), n = 0; return X(e, function (r, i, a) { function o(e) { t.resolve(e) } function s() { n--, 0 === n && t.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected.")) } function l(e) { t.notify({index: a, value: e}) } var u = e[a]; n++, y(u, o, s, l) }, void 0), t.promise } function R(e) { return y(e, function (e) { return e = Z(e, p), y(L(Z(e, function (e) { return y(e, Y, Y) })), function () { return e }) }) } function N(e) { return p(e).allSettled() } function F(e, t) { return p(e).then(void 0, void 0, t) } function B(e, t) { return p(e).nodeify(t) } var q = !1; try { throw new Error } catch (H) { q = !!H.stack } var V, z, J = u(), Y = function () { }, Q = function () { function t() { for (var e, t; r.next;)r = r.next, e = r.task, r.task = void 0, t = r.domain, t && (r.domain = void 0, t.enter()), n(e, t); for (; l.length;)e = l.pop(), n(e); a = !1 } function n(e, n) { try { e() } catch (r) { if (s)throw n && n.exit(), setTimeout(t, 0), n && n.enter(), r; setTimeout(function () { throw r }, 0) } n && n.exit() } var r = {task: void 0, next: null}, i = r, a = !1, o = void 0, s = !1, l = []; if (Q = function (t) { i = i.next = {task: t, domain: s && e.domain, next: null}, a || (a = !0, o()) }, "object" == typeof e && "[object process]" === e.toString() && e.nextTick)s = !0, o = function () { e.nextTick(t) }; else if ("function" == typeof setImmediate)o = "undefined" != typeof window ? setImmediate.bind(window, t) : function () { setImmediate(t) }; else if ("undefined" != typeof MessageChannel) { var u = new MessageChannel; u.port1.onmessage = function () { o = c, u.port1.onmessage = t, t() }; var c = function () { u.port2.postMessage(0) }; o = function () { setTimeout(t, 0), c() } } else o = function () { setTimeout(t, 0) }; return Q.runAfter = function (e) { l.push(e), a || (a = !0, o()) }, Q }(), W = Function.call, K = t(Array.prototype.slice), X = t(Array.prototype.reduce || function (e, t) { var n = 0, r = this.length; if (1 === arguments.length)for (; ;) { if (n in this) { t = this[n++]; break } if (++n >= r)throw new TypeError } for (; r > n; n++)n in this && (t = e(t, this[n], n)); return t }), G = t(Array.prototype.indexOf || function (e) { for (var t = 0; t < this.length; t++)if (this[t] === e)return t; return -1 }), Z = t(Array.prototype.map || function (e, t) { var n = this, r = []; return X(n, function (i, a, o) { r.push(e.call(t, a, o, n)) }, void 0), r }), ee = Object.create || function (e) { function t() { } return t.prototype = e, new t }, te = t(Object.prototype.hasOwnProperty), ne = Object.keys || function (e) { var t = []; for (var n in e)te(e, n) && t.push(n); return t }, re = t(Object.prototype.toString); z = "undefined" != typeof ReturnValue ? ReturnValue : function (e) { this.value = e }; var ie = "From previous event:"; p.resolve = p, p.nextTick = Q, p.longStackSupport = !1, "object" == typeof e && e && e.env && e.env.Q_DEBUG && (p.longStackSupport = !0), p.defer = h, h.prototype.makeNodeResolver = function () { var e = this; return function (t, n) { t ? e.reject(t) : arguments.length > 2 ? e.resolve(K(arguments, 1)) : e.resolve(n) } }, p.Promise = f, p.promise = f, f.race = d, f.all = L, f.reject = S, f.resolve = p, p.passByCopy = function (e) { return e }, m.prototype.passByCopy = function () { return this }, p.join = function (e, t) { return p(e).join(t) }, m.prototype.join = function (e) { return p([this, e]).spread(function (e, t) { if (e === t)return e; throw new Error("Can't join: not the same: " + e + " " + t) }) }, p.race = d, m.prototype.race = function () { return this.then(p.race) }, p.makePromise = m, m.prototype.toString = function () { return "[object Promise]" }, m.prototype.then = function (e, t, n) { function r(t) { try { return "function" == typeof e ? e(t) : t } catch (n) { return S(n) } } function a(e) { if ("function" == typeof t) { i(e, s); try { return t(e) } catch (n) { return S(n) } } return S(e) } function o(e) { return "function" == typeof n ? n(e) : e } var s = this, l = h(), u = !1; return p.nextTick(function () { s.promiseDispatch(function (e) { u || (u = !0, l.resolve(r(e))) }, "when", [function (e) { u || (u = !0, l.resolve(a(e))) }]) }), s.promiseDispatch(void 0, "when", [void 0, function (e) { var t, n = !1; try { t = o(e) } catch (r) { if (n = !0, !p.onerror)throw r; p.onerror(r) } n || l.notify(t) }]), l.promise }, p.tap = function (e, t) { return p(e).tap(t) }, m.prototype.tap = function (e) { return e = p(e), this.then(function (t) { return e.fcall(t).thenResolve(t) }) }, p.when = y, m.prototype.thenResolve = function (e) { return this.then(function () { return e }) }, p.thenResolve = function (e, t) { return p(e).thenResolve(t) }, m.prototype.thenReject = function (e) { return this.then(function () { throw e }) }, p.thenReject = function (e, t) { return p(e).thenReject(t) }, p.nearer = g, p.isPromise = v, p.isPromiseAlike = b, p.isPending = w, m.prototype.isPending = function () { return "pending" === this.inspect().state }, p.isFulfilled = x, m.prototype.isFulfilled = function () { return "fulfilled" === this.inspect().state }, p.isRejected = j, m.prototype.isRejected = function () { return "rejected" === this.inspect().state }; var ae = [], oe = [], se = [], le = !0; p.resetUnhandledRejections = A, p.getUnhandledReasons = function () { return ae.slice() }, p.stopUnhandledRejectionTracking = function () { A(), le = !1 }, A(), p.reject = S, p.fulfill = k, p.master = C, p.spread = I, m.prototype.spread = function (e, t) { return this.all().then(function (t) { return e.apply(void 0, t) }, t) }, p.async = T, p.spawn = $, p["return"] = M, p.promised = P, p.dispatch = U, m.prototype.dispatch = function (e, t) { var n = this, r = h(); return p.nextTick(function () { n.promiseDispatch(r.resolve, e, t) }), r.promise }, p.get = function (e, t) { return p(e).dispatch("get", [t]) }, m.prototype.get = function (e) { return this.dispatch("get", [e]) }, p.set = function (e, t, n) { return p(e).dispatch("set", [t, n]) }, m.prototype.set = function (e, t) { return this.dispatch("set", [e, t]) }, p.del = p["delete"] = function (e, t) { return p(e).dispatch("delete", [t]) }, m.prototype.del = m.prototype["delete"] = function (e) { return this.dispatch("delete", [e]) }, p.mapply = p.post = function (e, t, n) { return p(e).dispatch("post", [t, n]) }, m.prototype.mapply = m.prototype.post = function (e, t) { return this.dispatch("post", [e, t]) }, p.send = p.mcall = p.invoke = function (e, t) { return p(e).dispatch("post", [t, K(arguments, 2)]) }, m.prototype.send = m.prototype.mcall = m.prototype.invoke = function (e) { return this.dispatch("post", [e, K(arguments, 1)]) }, p.fapply = function (e, t) { return p(e).dispatch("apply", [void 0, t]) }, m.prototype.fapply = function (e) { return this.dispatch("apply", [void 0, e]) }, p["try"] = p.fcall = function (e) { return p(e).dispatch("apply", [void 0, K(arguments, 1)]) }, m.prototype.fcall = function () { return this.dispatch("apply", [void 0, K(arguments)]) }, p.fbind = function (e) { var t = p(e), n = K(arguments, 1); return function () { return t.dispatch("apply", [this, n.concat(K(arguments))]) } }, m.prototype.fbind = function () { var e = this, t = K(arguments); return function () { return e.dispatch("apply", [this, t.concat(K(arguments))]) } }, p.keys = function (e) { return p(e).dispatch("keys", []) }, m.prototype.keys = function () { return this.dispatch("keys", []) }, p.all = L, m.prototype.all = function () { return L(this) }, p.any = D, m.prototype.any = function () { return D(this) }, p.allResolved = c(R, "allResolved", "allSettled"), m.prototype.allResolved = function () { return R(this) }, p.allSettled = N, m.prototype.allSettled = function () { return this.then(function (e) { return L(Z(e, function (e) { function t() { return e.inspect() } return e = p(e), e.then(t, t) })) }) }, p.fail = p["catch"] = function (e, t) { return p(e).then(void 0, t) }, m.prototype.fail = m.prototype["catch"] = function (e) { return this.then(void 0, e) }, p.progress = F, m.prototype.progress = function (e) { return this.then(void 0, void 0, e) }, p.fin = p["finally"] = function (e, t) { return p(e)["finally"](t) }, m.prototype.fin = m.prototype["finally"] = function (e) { return e = p(e), this.then(function (t) { return e.fcall().then(function () { return t }) }, function (t) { return e.fcall().then(function () { throw t }) }) }, p.done = function (e, t, n, r) { return p(e).done(t, n, r) }, m.prototype.done = function (t, n, r) { var a = function (e) { p.nextTick(function () { if (i(e, o), !p.onerror)throw e; p.onerror(e) }) }, o = t || n || r ? this.then(t, n, r) : this; "object" == typeof e && e && e.domain && (a = e.domain.bind(a)), o.then(void 0, a) }, p.timeout = function (e, t, n) { return p(e).timeout(t, n) }, m.prototype.timeout = function (e, t) { var n = h(), r = setTimeout(function () { t && "string" != typeof t || (t = new Error(t || "Timed out after " + e + " ms"), t.code = "ETIMEDOUT"), n.reject(t) }, e); return this.then(function (e) { clearTimeout(r), n.resolve(e) }, function (e) { clearTimeout(r), n.reject(e) }, n.notify), n.promise }, p.delay = function (e, t) { return void 0 === t && (t = e, e = void 0), p(e).delay(t) }, m.prototype.delay = function (e) { return this.then(function (t) { var n = h(); return setTimeout(function () { n.resolve(t) }, e), n.promise }) }, p.nfapply = function (e, t) { return p(e).nfapply(t) }, m.prototype.nfapply = function (e) { var t = h(), n = K(e); return n.push(t.makeNodeResolver()), this.fapply(n).fail(t.reject), t.promise }, p.nfcall = function (e) { var t = K(arguments, 1); return p(e).nfapply(t) }, m.prototype.nfcall = function () { var e = K(arguments), t = h(); return e.push(t.makeNodeResolver()), this.fapply(e).fail(t.reject), t.promise }, p.nfbind = p.denodeify = function (e) { var t = K(arguments, 1); return function () { var n = t.concat(K(arguments)), r = h(); return n.push(r.makeNodeResolver()), p(e).fapply(n).fail(r.reject), r.promise } }, m.prototype.nfbind = m.prototype.denodeify = function () { var e = K(arguments); return e.unshift(this), p.denodeify.apply(void 0, e) }, p.nbind = function (e, t) { var n = K(arguments, 2); return function () { function r() { return e.apply(t, arguments) } var i = n.concat(K(arguments)), a = h(); return i.push(a.makeNodeResolver()), p(r).fapply(i).fail(a.reject), a.promise } }, m.prototype.nbind = function () { var e = K(arguments, 0); return e.unshift(this), p.nbind.apply(void 0, e) }, p.nmapply = p.npost = function (e, t, n) { return p(e).npost(t, n) }, m.prototype.nmapply = m.prototype.npost = function (e, t) { var n = K(t || []), r = h(); return n.push(r.makeNodeResolver()), this.dispatch("post", [e, n]).fail(r.reject), r.promise }, p.nsend = p.nmcall = p.ninvoke = function (e, t) { var n = K(arguments, 2), r = h(); return n.push(r.makeNodeResolver()), p(e).dispatch("post", [t, n]).fail(r.reject), r.promise }, m.prototype.nsend = m.prototype.nmcall = m.prototype.ninvoke = function (e) { var t = K(arguments, 1), n = h(); return t.push(n.makeNodeResolver()), this.dispatch("post", [e, t]).fail(n.reject), n.promise }, p.nodeify = B, m.prototype.nodeify = function (e) { return e ? void this.then(function (t) { p.nextTick(function () { e(null, t) }) }, function (t) { p.nextTick(function () { e(t) }) }) : this }, p.noConflict = function () { throw new Error("Q.noConflict only works when Q is used as a global") }; var ue = u(); return p }) }).call(this, e("_process")) }, {_process: 13}], 159: [function (e, t, n) { function r() { } function i(e) { var t = {}.toString.call(e); switch (t) { case"[object File]": case"[object Blob]": case"[object FormData]": return !0; default: return !1 } } function a(e) { return e === Object(e) } function o(e) { if (!a(e))return e; var t = []; for (var n in e)null != e[n] && s(t, n, e[n]); return t.join("&") } function s(e, t, n) { return Array.isArray(n) ? n.forEach(function (n) { s(e, t, n) }) : void e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n)) } function l(e) { for (var t, n, r = {}, i = e.split("&"), a = 0, o = i.length; o > a; ++a)n = i[a], t = n.split("="), r[decodeURIComponent(t[0])] = decodeURIComponent(t[1]); return r } function u(e) { var t, n, r, i, a = e.split(/\r?\n/), o = {}; a.pop(); for (var s = 0, l = a.length; l > s; ++s)n = a[s], t = n.indexOf(":"), r = n.slice(0, t).toLowerCase(), i = w(n.slice(t + 1)), o[r] = i; return o } function c(e) { return /[\/+]json\b/.test(e) } function p(e) { return e.split(/ *; */).shift() } function h(e) { return b(e.split(/ *; */), function (e, t) { var n = t.split(/ *= */), r = n.shift(), i = n.shift(); return r && i && (e[r] = i), e }, {}) } function f(e, t) { t = t || {}, this.req = e, this.xhr = this.req.xhr, this.text = "HEAD" != this.req.method && ("" === this.xhr.responseType || "text" === this.xhr.responseType) || "undefined" == typeof this.xhr.responseType ? this.xhr.responseText : null, this.statusText = this.req.xhr.statusText, this.setStatusProperties(this.xhr.status), this.header = this.headers = u(this.xhr.getAllResponseHeaders()), this.header["content-type"] = this.xhr.getResponseHeader("content-type"), this.setHeaderProperties(this.header), this.body = "HEAD" != this.req.method ? this.parseBody(this.text ? this.text : this.xhr.response) : null } function d(e, t) { var n = this; v.call(this), this._query = this._query || [], this.method = e, this.url = t, this.header = {}, this._header = {}, this.on("end", function () { var e = null, t = null; try { t = new f(n) } catch (r) { return e = new Error("Parser is unable to parse the response"), e.parse = !0, e.original = r, e.rawResponse = n.xhr && n.xhr.responseText ? n.xhr.responseText : null, n.callback(e) } if (n.emit("response", t), e)return n.callback(e, t); if (t.status >= 200 && t.status < 300)return n.callback(e, t); var i = new Error(t.statusText || "Unsuccessful HTTP response"); i.original = e, i.response = t, i.status = t.status, n.callback(i, t) }) } function m(e, t) { return "function" == typeof t ? new d("GET", e).end(t) : 1 == arguments.length ? new d("GET", e) : new d(e, t) } function y(e, t) { var n = m("DELETE", e); return t && n.end(t), n } var g, v = e("emitter"), b = e("reduce"); g = "undefined" != typeof window ? window : "undefined" != typeof self ? self : this, m.getXHR = function () { if (!(!g.XMLHttpRequest || g.location && "file:" == g.location.protocol && g.ActiveXObject))return new XMLHttpRequest; try { return new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { } try { return new ActiveXObject("Msxml2.XMLHTTP.6.0") } catch (e) { } try { return new ActiveXObject("Msxml2.XMLHTTP.3.0") } catch (e) { } try { return new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { } return !1 }; var w = "".trim ? function (e) { return e.trim() } : function (e) { return e.replace(/(^\s*|\s*$)/g, "") }; m.serializeObject = o, m.parseString = l, m.types = { html: "text/html", json: "application/json", xml: "application/xml", urlencoded: "application/x-www-form-urlencoded", form: "application/x-www-form-urlencoded", "form-data": "application/x-www-form-urlencoded" }, m.serialize = { "application/x-www-form-urlencoded": o, "application/json": JSON.stringify }, m.parse = { "application/x-www-form-urlencoded": l, "application/json": JSON.parse }, f.prototype.get = function (e) { return this.header[e.toLowerCase()] }, f.prototype.setHeaderProperties = function (e) { var t = this.header["content-type"] || ""; this.type = p(t); var n = h(t); for (var r in n)this[r] = n[r] }, f.prototype.parseBody = function (e) { var t = m.parse[this.type]; return t && e && (e.length || e instanceof Object) ? t(e) : null }, f.prototype.setStatusProperties = function (e) { 1223 === e && (e = 204); var t = e / 100 | 0; this.status = this.statusCode = e, this.statusType = t, this.info = 1 == t, this.ok = 2 == t, this.clientError = 4 == t, this.serverError = 5 == t, this.error = 4 == t || 5 == t ? this.toError() : !1, this.accepted = 202 == e, this.noContent = 204 == e, this.badRequest = 400 == e, this.unauthorized = 401 == e, this.notAcceptable = 406 == e, this.notFound = 404 == e, this.forbidden = 403 == e }, f.prototype.toError = function () { var e = this.req, t = e.method, n = e.url, r = "cannot " + t + " " + n + " (" + this.status + ")", i = new Error(r); return i.status = this.status, i.method = t, i.url = n, i }, m.Response = f, v(d.prototype), d.prototype.use = function (e) { return e(this), this }, d.prototype.timeout = function (e) { return this._timeout = e, this }, d.prototype.clearTimeout = function () { return this._timeout = 0, clearTimeout(this._timer), this }, d.prototype.abort = function () { return this.aborted ? void 0 : (this.aborted = !0, this.xhr.abort(), this.clearTimeout(), this.emit("abort"), this) }, d.prototype.set = function (e, t) { if (a(e)) { for (var n in e)this.set(n, e[n]); return this } return this._header[e.toLowerCase()] = t, this.header[e] = t, this }, d.prototype.unset = function (e) { return delete this._header[e.toLowerCase()], delete this.header[e], this }, d.prototype.getHeader = function (e) { return this._header[e.toLowerCase()] }, d.prototype.type = function (e) { return this.set("Content-Type", m.types[e] || e), this }, d.prototype.parse = function (e) { return this._parser = e, this }, d.prototype.accept = function (e) { return this.set("Accept", m.types[e] || e), this }, d.prototype.auth = function (e, t) { var n = btoa(e + ":" + t); return this.set("Authorization", "Basic " + n), this }, d.prototype.query = function (e) { return "string" != typeof e && (e = o(e)), e && this._query.push(e), this }, d.prototype.field = function (e, t) { return this._formData || (this._formData = new g.FormData), this._formData.append(e, t), this }, d.prototype.attach = function (e, t, n) { return this._formData || (this._formData = new g.FormData), this._formData.append(e, t, n || t.name), this }, d.prototype.send = function (e) { var t = a(e), n = this.getHeader("Content-Type"); if (t && a(this._data))for (var r in e)this._data[r] = e[r]; else"string" == typeof e ? (n || this.type("form"), n = this.getHeader("Content-Type"), "application/x-www-form-urlencoded" == n ? this._data = this._data ? this._data + "&" + e : e : this._data = (this._data || "") + e) : this._data = e; return !t || i(e) ? this : (n || this.type("json"), this) }, d.prototype.callback = function (e, t) { var n = this._callback; this.clearTimeout(), n(e, t) }, d.prototype.crossDomainError = function () { var e = new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc."); e.crossDomain = !0, e.status = this.status, e.method = this.method, e.url = this.url, this.callback(e) }, d.prototype.timeoutError = function () { var e = this._timeout, t = new Error("timeout of " + e + "ms exceeded"); t.timeout = e, this.callback(t) }, d.prototype.withCredentials = function () { return this._withCredentials = !0, this }, d.prototype.end = function (e) { var t = this, n = this.xhr = m.getXHR(), a = this._query.join("&"), o = this._timeout, s = this._formData || this._data; this._callback = e || r, n.onreadystatechange = function () { if (4 == n.readyState) { var e; try { e = n.status } catch (r) { e = 0 } if (0 == e) { if (t.timedout)return t.timeoutError(); if (t.aborted)return; return t.crossDomainError() } t.emit("end") } }; var l = function (e) { e.total > 0 && (e.percent = e.loaded / e.total * 100), e.direction = "download", t.emit("progress", e) }; this.hasListeners("progress") && (n.onprogress = l); try { n.upload && this.hasListeners("progress") && (n.upload.onprogress = l) } catch (u) { } if (o && !this._timer && (this._timer = setTimeout(function () { t.timedout = !0, t.abort() }, o)), a && (a = m.serializeObject(a), this.url += ~this.url.indexOf("?") ? "&" + a : "?" + a), n.open(this.method, this.url, !0), this._withCredentials && (n.withCredentials = !0), "GET" != this.method && "HEAD" != this.method && "string" != typeof s && !i(s)) { var p = this.getHeader("Content-Type"), h = this._parser || m.serialize[p ? p.split(";")[0] : ""]; !h && c(p) && (h = m.serialize["application/json"]), h && (s = h(s)) } for (var f in this.header)null != this.header[f] && n.setRequestHeader(f, this.header[f]); return this.emit("request", this), n.send("undefined" != typeof s ? s : null), this }, d.prototype.then = function (e, t) { return this.end(function (n, r) { n ? t(n) : e(r) }) }, m.Request = d, m.get = function (e, t, n) { var r = m("GET", e); return "function" == typeof t && (n = t, t = null), t && r.query(t), n && r.end(n), r }, m.head = function (e, t, n) { var r = m("HEAD", e); return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r }, m.del = y, m["delete"] = y, m.patch = function (e, t, n) { var r = m("PATCH", e); return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r }, m.post = function (e, t, n) { var r = m("POST", e); return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r }, m.put = function (e, t, n) { var r = m("PUT", e); return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r }, t.exports = m }, {emitter: 160, reduce: 161}], 160: [function (e, t, n) { function r(e) { return e ? i(e) : void 0 } function i(e) { for (var t in r.prototype)e[t] = r.prototype[t]; return e } t.exports = r, r.prototype.on = r.prototype.addEventListener = function (e, t) { return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(t), this }, r.prototype.once = function (e, t) { function n() { this.off(e, n), t.apply(this, arguments) } return n.fn = t, this.on(e, n), this }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (e, t) { if (this._callbacks = this._callbacks || {}, 0 == arguments.length)return this._callbacks = {}, this; var n = this._callbacks["$" + e]; if (!n)return this; if (1 == arguments.length)return delete this._callbacks["$" + e], this; for (var r, i = 0; i < n.length; i++)if (r = n[i], r === t || r.fn === t) { n.splice(i, 1); break } return this }, r.prototype.emit = function (e) { this._callbacks = this._callbacks || {}; var t = [].slice.call(arguments, 1), n = this._callbacks["$" + e]; if (n) { n = n.slice(0); for (var r = 0, i = n.length; i > r; ++r)n[r].apply(this, t) } return this }, r.prototype.listeners = function (e) { return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [] }, r.prototype.hasListeners = function (e) { return !!this.listeners(e).length } }, {}], 161: [function (e, t, n) { t.exports = function (e, t, n) { for (var r = 0, i = e.length, a = 3 == arguments.length ? n : e[r++]; i > r;)a = t.call(null, a, e[r], ++r, e); return a } }, {}] }, {}, [1])(1) }), window.SwaggerUi = Backbone.Router.extend({ dom_id: "swagger_ui", options: null, api: null, headerView: null, mainView: null, initialize: function (e) { e = e || {}, "model" !== e.defaultModelRendering && (e.defaultModelRendering = "schema"), e.highlightSizeThreshold || (e.highlightSizeThreshold = 1e5), e.dom_id && (this.dom_id = e.dom_id, delete e.dom_id), e.supportedSubmitMethods || (e.supportedSubmitMethods = ["get", "put", "post", "delete", "head", "options", "patch"]), "string" == typeof e.oauth2RedirectUrl && (window.oAuthRedirectUrl = e.redirectUrl), $("#" + this.dom_id).length || $("body").append('
    '), this.options = e, marked.setOptions({gfm: !0}); var t = this; this.options.success = function () { return t.render() }, this.options.progress = function (e) { return t.showMessage(e) }, this.options.failure = function (e) { return t.onLoadFailure(e) }, this.headerView = new SwaggerUi.Views.HeaderView({el: $("#header")}), this.headerView.on("update-swagger-ui", function (e) { return t.updateSwaggerUi(e) }), JSONEditor.defaults.iconlibs.swagger = JSONEditor.AbstractIconLib.extend({ mapping: { collapse: "collapse", expand: "expand" }, icon_prefix: "swagger-" }) }, setOption: function (e, t) { this.options[e] = t }, getOption: function (e) { return this.options[e] }, updateSwaggerUi: function (e) { this.options.url = e.url, this.load() }, load: function () { this.mainView && this.mainView.clear(); var e = this.options.url; e && 0 !== e.indexOf("http") && (e = this.buildUrl(window.location.href.toString(), e)), this.api && (this.options.authorizations = this.api.clientAuthorizations.authz), this.options.url = e, this.headerView.update(e), this.api = new SwaggerClient(this.options) }, collapseAll: function () { Docs.collapseEndpointListForResource("") }, listAll: function () { Docs.collapseOperationsForResource("") }, expandAll: function () { Docs.expandOperationsForResource("") }, render: function () { switch (this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."), this.mainView = new SwaggerUi.Views.MainView({ model: this.api, el: $("#" + this.dom_id), swaggerOptions: this.options, router: this }).render(), this.showMessage(), this.options.docExpansion) { case"full": this.expandAll(); break; case"list": this.listAll() } this.renderGFM(), this.options.onComplete && this.options.onComplete(this.api, this), setTimeout(Docs.shebang.bind(this), 100) }, buildUrl: function (e, t) { if (0 === t.indexOf("/")) { var n = e.split("/"); return e = n[0] + "//" + n[2], e + t } var r = e.length; return e.indexOf("?") > -1 && (r = Math.min(r, e.indexOf("?"))), e.indexOf("#") > -1 && (r = Math.min(r, e.indexOf("#"))), e = e.substring(0, r), -1 !== e.indexOf("/", e.length - 1) ? e + t : e + "/" + t }, showMessage: function (e) { void 0 === e && (e = ""); var t = $("#message-bar"); t.removeClass("message-fail"), t.addClass("message-success"), t.text(e), window.SwaggerTranslator && window.SwaggerTranslator.translate(t) }, onLoadFailure: function (e) { void 0 === e && (e = ""), $("#message-bar").removeClass("message-success"), $("#message-bar").addClass("message-fail"); var t = $("#message-bar").text(e); return this.options.onFailure && this.options.onFailure(e), t }, renderGFM: function () { $(".markdown").each(function () { $(this).html(marked($(this).html())) }), $(".propDesc", ".model-signature .description").each(function () { $(this).html(marked($(this).html())).addClass("markdown") }) } }), window.SwaggerUi.Views = {}, window.SwaggerUi.partials = {}, function () { function e(e) { "console" in window && "function" == typeof window.console.warn && console.warn(e) } window.authorizations = { add: function () { if (e("Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add()."), "undefined" == typeof window.swaggerUi)throw new TypeError("window.swaggerUi is not defined"); window.swaggerUi instanceof SwaggerUi && window.swaggerUi.api.clientAuthorizations.add.apply(window.swaggerUi.api.clientAuthorizations, arguments) } }, window.ApiKeyAuthorization = function () { e("window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization."), SwaggerClient.ApiKeyAuthorization.apply(window, arguments) }, window.PasswordAuthorization = function () { e("window.PasswordAuthorization is deprecated. Please use SwaggerClient.PasswordAuthorization."), SwaggerClient.PasswordAuthorization.apply(window, arguments) } }(), function (e, t) { "function" == typeof define && define.amd ? define(["b"], function (n) { return e.SwaggerUi = t(n) }) : "object" == typeof exports ? module.exports = t(require("b")) : e.SwaggerUi = t(e.b) }(this, function () { return SwaggerUi }), SwaggerUi.Views.ApiKeyButton = Backbone.View.extend({ events: { "click #apikey_button": "toggleApiKeyContainer", "click #apply_api_key": "applyApiKey" }, initialize: function (e) { this.options = e || {}, this.router = this.options.router }, render: function () { var e = this.template(); return $(this.el).html(e(this.model)), this }, applyApiKey: function () { var e = new SwaggerClient.ApiKeyAuthorization(this.model.name, $("#input_apiKey_entry").val(), this.model["in"]); this.router.api.clientAuthorizations.add(this.model.name, e), this.router.load(), $("#apikey_container").show() }, toggleApiKeyContainer: function () { if ($("#apikey_container").length) { var e = $("#apikey_container").first(); e.is(":visible") ? e.hide() : ($(".auth_container").hide(), e.show()) } }, template: function () { return Handlebars.templates.apikey_button_view } }), SwaggerUi.Views.BasicAuthButton = Backbone.View.extend({ initialize: function (e) { this.options = e || {}, this.router = this.options.router }, render: function () { var e = this.template(); return $(this.el).html(e(this.model)), this }, events: {"click #basic_auth_button": "togglePasswordContainer", "click #apply_basic_auth": "applyPassword"}, applyPassword: function (e) { e.preventDefault(); var t = $("#input_username").val(), n = $("#input_password").val(), r = new SwaggerClient.PasswordAuthorization("basic", t, n); this.router.api.clientAuthorizations.add(this.model.type, r), this.router.load(), $("#basic_auth_container").hide() }, togglePasswordContainer: function () { if ($("#basic_auth_container").length) { var e = $("#basic_auth_container").show(); e.is(":visible") ? e.slideUp() : ($(".auth_container").hide(), e.show()) } }, template: function () { return Handlebars.templates.basic_auth_button_view } }), SwaggerUi.Views.ContentTypeView = Backbone.View.extend({ initialize: function () { }, render: function () { return this.model.contentTypeId = "ct" + Math.random(), $(this.el).html(Handlebars.templates.content_type(this.model)), this } }), SwaggerUi.Views.HeaderView = Backbone.View.extend({ events: { "click #show-pet-store-icon": "showPetStore", "click #explore": "showCustom", "keyup #input_baseUrl": "showCustomOnKeyup", "keyup #input_apiKey": "showCustomOnKeyup" }, initialize: function () { }, showPetStore: function () { this.trigger("update-swagger-ui", {url: "http://petstore.swagger.io/v2/swagger.json"}) }, showCustomOnKeyup: function (e) { 13 === e.keyCode && this.showCustom() }, showCustom: function (e) { e && e.preventDefault(), this.trigger("update-swagger-ui", { url: $("#input_baseUrl").val(), apiKey: $("#input_apiKey").val() }) }, update: function (e, t, n) { void 0 === n && (n = !1), $("#input_baseUrl").val(e), n && this.trigger("update-swagger-ui", {url: e}) } }), SwaggerUi.Views.MainView = Backbone.View.extend({ apisSorter: { alpha: function (e, t) { return e.name.localeCompare(t.name) } }, operationsSorters: { alpha: function (e, t) { return e.path.localeCompare(t.path) }, method: function (e, t) { return e.method.localeCompare(t.method) } }, initialize: function (e) { var t, n, r, i; if (e = e || {}, this.router = e.router, document.addEventListener("click", this.onLinkClick, !0), e.swaggerOptions.apisSorter && (t = e.swaggerOptions.apisSorter, n = _.isFunction(t) ? t : this.apisSorter[t], _.isFunction(n) && this.model.apisArray.sort(n)), e.swaggerOptions.operationsSorter && (t = e.swaggerOptions.operationsSorter, n = _.isFunction(t) ? t : this.operationsSorters[t], _.isFunction(n)))for (r in this.model.apisArray)this.model.apisArray[r].operationsArray.sort(n); this.model.auths = []; for (r in this.model.securityDefinitions)i = this.model.securityDefinitions[r], this.model.auths.push({ name: r, type: i.type, value: i }); "validatorUrl" in e.swaggerOptions ? this.model.validatorUrl = e.swaggerOptions.validatorUrl : this.model.url.indexOf("localhost") > 0 || this.model.url.indexOf("127.0.0.1") > 0 ? this.model.validatorUrl = null : "https:" === window.location.protocol ? this.model.validatorUrl = "https://online.swagger.io/validator" : this.model.validatorUrl = "http://online.swagger.io/validator"; var a; for (a in this.model.definitions)this.model.definitions[a].type || (this.model.definitions[a].type = "object") }, render: function () { if (this.model.securityDefinitions)for (var e in this.model.securityDefinitions) { var t, n = this.model.securityDefinitions[e]; "apiKey" === n.type && 0 === $("#apikey_button").length && (t = new SwaggerUi.Views.ApiKeyButton({ model: n, router: this.router }).render().el, $(".auth_main_container").append(t)), "basicAuth" === n.type && 0 === $("#basic_auth_button").length && (t = new SwaggerUi.Views.BasicAuthButton({ model: n, router: this.router }).render().el, $(".auth_main_container").append(t)) } $(this.el).html(Handlebars.templates.main(this.model)); for (var r = {}, i = 0, a = 0; a < this.model.apisArray.length; a++) { for (var o = this.model.apisArray[a], s = o.name; "undefined" != typeof r[s];)s = s + "_" + i, i += 1; o.id = s, r[s] = o, this.addResource(o, this.model.auths) } return $(".propWrap").hover(function () { $(".optionsWrapper", $(this)).show() }, function () { $(".optionsWrapper", $(this)).hide() }), this }, addResource: function (e, t) { e.id = e.id.replace(/\s/g, "_"), e.definitions = this.model.definitions; var n = new SwaggerUi.Views.ResourceView({ model: e, router: this.router, tagName: "li", id: "resource_" + e.id, className: "resource", auths: t, swaggerOptions: this.options.swaggerOptions }); $("#resources", this.el).append(n.render().el) }, clear: function () { $(this.el).html("") }, onLinkClick: function (e) { var t = e.target; "A" === t.tagName && (location.hostname === t.hostname && location.port === t.port || (e.preventDefault(), window.open(t.href, "_blank"))) } }), SwaggerUi.Views.OperationView = Backbone.View.extend({ invocationUrl: null, events: { "submit .sandbox": "submitOperation", "click .submit": "submitOperation", "click .response_hider": "hideResponse", "click .toggleOperation": "toggleOperationContent", "mouseenter .api-ic": "mouseEnter", "dblclick .curl": "selectText", "change [name=responseContentType]": "showSnippet" }, initialize: function (e) { return e = e || {}, this.router = e.router, this.auths = e.auths, this.parentId = this.model.parentId, this.nickname = this.model.nickname, this.model.encodedParentId = encodeURIComponent(this.parentId), e.swaggerOptions && (this.model.defaultRendering = e.swaggerOptions.defaultModelRendering, e.swaggerOptions.showRequestHeaders && (this.model.showRequestHeaders = !0)), this }, selectText: function (e) { var t, n, r = document, i = e.target.firstChild; r.body.createTextRange ? (t = document.body.createTextRange(), t.moveToElementText(i), t.select()) : window.getSelection && (n = window.getSelection(), t = document.createRange(), t.selectNodeContents(i), n.removeAllRanges(), n.addRange(t)) }, mouseEnter: function (e) { var t = $(this.el).find(".content"), n = e.pageX, r = e.pageY, i = $(window).scrollLeft(), a = $(window).scrollTop(), o = i + $(window).width(), s = a + $(window).height(), l = t.width(), u = t.height(); n + l > o && (n = o - l), i > n && (n = i), r + u > s && (r = s - u), a > r && (r = a); var c = {}; c.top = r, c.left = n, t.css(c) }, render: function () { var e, t, n, r, i, a, o, s, l, u, c, p, h, f, d, m, y, g, v, b, w, x, j, A, O, S, k, E, C, I, T, M, P, U, L, D, R, N, F, B, q; if (a = jQuery.inArray(this.model.method, this.model.supportedSubmitMethods()) >= 0, a || (this.model.isReadOnly = !0), this.model.description = this.model.description || this.model.notes, this.model.oauth = null, m = this.model.authorizations || this.model.security)if (Array.isArray(m))for (l = 0, u = m.length; u > l; l++) { n = m[l]; for (s in n)for (e in this.auths)if (t = this.auths[e], s === t.name && "oauth2" === t.type) { this.model.oauth = {}, this.model.oauth.scopes = [], j = t.value.scopes; for (o in j)R = j[o], M = n[s].indexOf(o), M >= 0 && (g = { scope: o, description: R }, this.model.oauth.scopes.push(g)) } } else for (o in m)if (R = m[o], "oauth2" === o)for (null === this.model.oauth && (this.model.oauth = {}), void 0 === this.model.oauth.scopes && (this.model.oauth.scopes = []), d = 0, c = R.length; c > d; d++)g = R[d], this.model.oauth.scopes.push(g); if ("undefined" != typeof this.model.responses) { this.model.responseMessages = [], A = this.model.responses; for (r in A)N = A[r], I = null, T = this.model.responses[r].schema, T && T.$ref && (I = T.$ref, -1 !== I.indexOf("#/definitions/") && (I = I.replace(/^.*#\/definitions\//, ""))), this.model.responseMessages.push({ code: r, message: N.description, responseModel: I, headers: N.headers, schema: T }) } if ("undefined" == typeof this.model.responseMessages && (this.model.responseMessages = []), P = null, F = this.model.produces, B = this.contains(F, "xml"), q = B ? this.contains(F, "json") : !0, this.model.successResponse) { L = this.model.successResponse; for (s in L)N = L[s], this.model.successCode = s, "object" == typeof N && "function" == typeof N.createJSONSample ? (this.model.successDescription = N.description, this.model.headers = this.parseResponseHeaders(N.headers), P = { sampleJSON: q ? JSON.stringify(SwaggerUi.partials.signature.createJSONSample(N), void 0, 2) : !1, isParam: !1, sampleXML: B ? SwaggerUi.partials.signature.createXMLSample(N.name, N.definition, N.models) : !1, signature: SwaggerUi.partials.signature.getModelSignature(N.name, N.definition, N.models, N.modelPropertyMacro) }) : P = {signature: SwaggerUi.partials.signature.getPrimitiveSignature(N)} } else this.model.responseClassSignature && "string" !== this.model.responseClassSignature && (P = { sampleJSON: this.model.responseSampleJSON, isParam: !1, signature: this.model.responseClassSignature }); for ($(this.el).html(Handlebars.templates.operation(this.model)), P ? (P.defaultRendering = this.model.defaultRendering, C = new SwaggerUi.Views.SignatureView({ model: P, router: this.router, tagName: "div" }), $(".model-signature", $(this.el)).append(C.render().el)) : (this.model.responseClassSignature = "string", $(".model-signature", $(this.el)).html(this.model.type)), i = {isParam: !1}, i.consumes = this.model.consumes, i.produces = this.model.produces, O = this.model.parameters, y = 0, p = O.length; p > y; y++)b = O[y], D = b.type || b.dataType || "", "undefined" == typeof D && (I = b.schema, I && I.$ref && (x = I.$ref, D = 0 === x.indexOf("#/definitions/") ? x.substring("#/definitions/".length) : x)), D && "file" === D.toLowerCase() && (i.consumes || (i.consumes = "multipart/form-data")), b.type = D; for (E = new SwaggerUi.Views.ResponseContentTypeView({ model: i, router: this.router }), $(".response-content-type", $(this.el)).append(E.render().el), S = this.model.parameters, v = 0, h = S.length; h > v; v++)b = S[v], this.addParameter(b, i.consumes); for (k = this.model.responseMessages, w = 0, f = k.length; f > w; w++)U = k[w], U.isXML = B, U.isJSON = q, _.isUndefined(U.headers) || (U.headers = this.parseHeadersType(U.headers)), this.addStatusCode(U); return this.showSnippet(), this }, parseHeadersType: function (e) { var t = {string: {"date-time": "dateTime", date: "date"}}; return _.forEach(e, function (e) { var n; e = e || {}, n = t[e.type] && t[e.type][e.format], _.isUndefined(n) || (e.type = n) }), e }, contains: function (e, t) { return e.filter(function (e) { return e.indexOf(t) > -1 ? !0 : void 0 }).length }, parseResponseHeaders: function (e) { var t = "; ", n = _.clone(e); return _.forEach(n, function (e) { var n = []; _.forEach(e, function (e, t) { var r = ["type", "description"]; -1 === r.indexOf(t.toLowerCase()) && n.push(t + ": " + e) }), n.join(t), e.other = n }), n }, addParameter: function (e, t) { e.consumes = t, e.defaultRendering = this.model.defaultRendering, e.schema && ($.extend(!0, e.schema, this.model.definitions[e.type]), e.schema.definitions = this.model.definitions, e.schema.type || (e.schema.type = "object"), e.schema.title || (e.schema.title = " ")); var n = new SwaggerUi.Views.ParameterView({ model: e, tagName: "tr", readOnly: this.model.isReadOnly, swaggerOptions: this.options.swaggerOptions }); $(".operation-params", $(this.el)).append(n.render().el) }, addStatusCode: function (e) { e.defaultRendering = this.model.defaultRendering; var t = new SwaggerUi.Views.StatusCodeView({model: e, tagName: "tr", router: this.router}); $(".operation-status", $(this.el)).append(t.render().el) }, submitOperation: function (e) { var t, n, r, i, a; if (null !== e && e.preventDefault(), n = $(".sandbox", $(this.el)), t = !0, n.find("input.required").each(function () { $(this).removeClass("error"), "" === jQuery.trim($(this).val()) && ($(this).addClass("error"), $(this).wiggle({ callback: function (e) { return function () { $(e).focus() } }(this) }), t = !1) }), n.find("textarea.required:visible").each(function () { $(this).removeClass("error"), "" === jQuery.trim($(this).val()) && ($(this).addClass("error"), $(this).wiggle({ callback: function (e) { return function () { return $(e).focus() } }(this) }), t = !1) }), n.find("select.required").each(function () { $(this).removeClass("error"), -1 === this.selectedIndex && ($(this).addClass("error"), $(this).wiggle({ callback: function (e) { return function () { $(e).focus() } }(this) }), t = !1) }), t) { if (i = this.getInputMap(n), r = this.isFileUpload(n), a = {parent: this}, this.options.swaggerOptions)for (var o in this.options.swaggerOptions)a[o] = this.options.swaggerOptions[o]; var s; for (s = 0; s < this.model.parameters.length; s++) { var l = this.model.parameters[s]; if (l.jsonEditor && l.jsonEditor.isEnabled()) { var u = l.jsonEditor.getValue(); i[l.name] = JSON.stringify(u) } } return a.responseContentType = $("div select[name=responseContentType]", $(this.el)).val(), a.requestContentType = $("div select[name=parameterContentType]", $(this.el)).val(), $(".response_throbber", $(this.el)).show(), r ? ($(".request_url", $(this.el)).html("
    "), $(".request_url pre", $(this.el)).text(this.invocationUrl), a.useJQuery = !0, i.parameterContentType = "multipart/form-data", this.map = i, this.model.execute(i, a, this.showCompleteStatus, this.showErrorStatus, this)) : (this.map = i, this.model.execute(i, a, this.showCompleteStatus, this.showErrorStatus, this))
                }
            },
            getInputMap: function (e) {
                var t, n, r, i, a, o, s, l, u, c, p, h;
                for (t = {}, n = e.find("input"), r = 0, i = n.length; i > r; r++)a = n[r], null !== a.value && jQuery.trim(a.value).length > 0 && (t[a.name] = a.value), "file" === a.type && (t[a.name] = a.files[0]);
                for (o = e.find("textarea"), s = 0, l = o.length; l > s; s++)a = o[s], u = this.getTextAreaValue(a), null !== u && jQuery.trim(u).length > 0 && (t[a.name] = u);
                for (c = e.find("select"), p = 0, h = c.length; h > p; p++)a = c[p], u = this.getSelectedValue(a), null !== u && jQuery.trim(u).length > 0 && (t[a.name] = u);
                return t
            },
            isFileUpload: function (e) {
                var t, n, r, i, a = !1;
                for (t = e.find("input"), n = 0, r = t.length; r > n; n++)i = t[n], "file" === i.type && (a = !0);
                return a
            },
            success: function (e, t) {
                t.showCompleteStatus(e)
            },
            wrap: function (e) {
                var t, n, r, i, a, o, s;
                for (r = {}, n = e.getAllResponseHeaders().split("\r"), a = 0, o = n.length; o > a; a++)i = n[a], t = i.match(/^([^:]*?):(.*)$/), t || (t = []), t.shift(), void 0 !== t[0] && void 0 !== t[1] && (r[t[0].trim()] = t[1].trim());
                return s = {}, s.content = {}, s.content.data = e.responseText, s.headers = r, s.request = {}, s.request.url = this.invocationUrl, s.status = e.status, s
            },
            getSelectedValue: function (e) {
                if (e.multiple) {
                    for (var t = [], n = 0, r = e.options.length; r > n; n++) {
                        var i = e.options[n];
                        i.selected && t.push(i.value)
                    }
                    return t.length > 0 ? t : null
                }
                return e.value
            },
            hideResponse: function (e) {
                e && e.preventDefault(), $(".response", $(this.el)).slideUp(), $(".response_hider", $(this.el)).fadeOut()
            },
            showResponse: function (e) {
                var t = JSON.stringify(e, null, "	").replace(/\n/g, "
    "); $(".response_body", $(this.el)).html(_.escape(t)) }, showErrorStatus: function (e, t) { t.showStatus(e) }, showCompleteStatus: function (e, t) { t.showStatus(e) }, formatXml: function (e) { var t, n, r, i, a, o, s, l, u, c, p, h, f; for (p = /(>)(<)(\/*)/g, f = /[ ]*(.*)[ ]+\n/g, t = /(<.+>)(.+\n)/g, e = e.replace(/\r\n/g, "\n").replace(p, "$1\n$2$3").replace(f, "$1\n").replace(t, "$1\n$2"), c = 0, r = "", l = e.split("\n"), i = 0, o = "other", h = { "single->single": 0, "single->closing": -1, "single->opening": 0, "single->other": 0, "closing->single": 0, "closing->closing": -1, "closing->opening": 0, "closing->other": 0, "opening->single": 1, "opening->closing": 0, "opening->opening": 1, "opening->other": 1, "other->single": 0, "other->closing": -1, "other->opening": 0, "other->other": 0 }, n = function (e) { var t, n, a, s, l, u, c; u = { single: Boolean(e.match(/<.+\/>/)), closing: Boolean(e.match(/<\/.+>/)), opening: Boolean(e.match(/<[^!?].*>/)) }, l = function () { var e; e = []; for (a in u)c = u[a], c && e.push(a); return e }()[0], l = void 0 === l ? "other" : l, t = o + "->" + l, o = l, s = "", i += h[t], s = function () { var e, t, r; for (r = [], n = e = 0, t = i; t >= 0 ? t > e : e > t; n = t >= 0 ? ++e : --e)r.push(" "); return r }().join(""), "opening->closing" === t ? r = r.substr(0, r.length - 1) + e + "\n" : r += s + e + "\n" }, a = 0, s = l.length; s > a; a++)u = l[a], n(u); return r }, showStatus: function (e) { var t, n; void 0 === e.content ? (n = e.data, t = e.url) : (n = e.content.data, t = e.request.url); var r = e.headers; n = jQuery.trim(n); var i = null; r && (i = r["Content-Type"] || r["content-type"], i && (i = i.split(";")[0].trim())), $(".response_body", $(this.el)).removeClass("json"), $(".response_body", $(this.el)).removeClass("xml"); var a, o, s = function (e) { var t = document.createElement("audio"); return !(!t.canPlayType || !t.canPlayType(e).replace(/no/, "")) }; if (n)if ("application/json" === i || /\+json$/.test(i)) { var l = null; try { l = JSON.stringify(JSON.parse(n), null, " ") } catch (u) { l = "can't parse JSON. Raw result:\n\n" + n } o = $("").text(l), a = $('
    ').append(o)
                } else if ("application/xml" === i || /\+xml$/.test(i))o = $("").text(this.formatXml(n)), a = $('
    ').append(o); else if ("text/html" === i)o = $("").html(_.escape(n)), a = $('
    ').append(o); else if (/text\/plain/.test(i))o = $("").text(n), a = $('
    ').append(o); else if (/^image\//.test(i))a = $("").attr("src", t); else if (/^audio\//.test(i) && s(i))a = $("