Advertisement
Guest User

nintendo-jssdk-client.2.0.0.js

a guest
Apr 20th, 2017
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Modules in this bundle
  3.  * @license
  4.  *
  5.  * nintendo-javascript-sdk:
  6.  *   version: 1.0.0
  7.  *
  8.  * babel-runtime:
  9.  *   license: MIT
  10.  *   author: Sebastian McKenzie <sebmck@gmail.com>
  11.  *   maintainers: sebmck <sebmck@gmail.com>
  12.  *   homepage: https://github.com/babel/babel#readme
  13.  *   version: 5.8.20
  14.  *
  15.  * core-js:
  16.  *   license: MIT
  17.  *   maintainers: zloirock <zloirock@zloirock.ru>
  18.  *   homepage: https://github.com/zloirock/core-js#readme
  19.  *   version: 1.1.3
  20.  *
  21.  * pct-encode:
  22.  *   license: BSD
  23.  *   maintainers: grncdr <glurgle@gmail.com>
  24.  *   contributors: Andrei Neculau <andrei.neculau@gmail.com>, Stephen Sugden <me@stephensugden.com>
  25.  *   homepage: https://github.com/grncdr/pct-encode#readme
  26.  *   version: 1.0.1
  27.  *
  28.  * punycode:
  29.  *   license: MIT
  30.  *   author: Mathias Bynens
  31.  *   contributors: Mathias Bynens, John-David Dalton
  32.  *   homepage: https://mths.be/punycode
  33.  *   version: 1.3.2
  34.  *
  35.  * querystring-es3:
  36.  *   licenses: MIT
  37.  *   author: Irakli Gozalishvili <rfobic@gmail.com>
  38.  *   homepage: https://github.com/mike-spainhower/querystring#readme
  39.  *   version: 0.2.1
  40.  *
  41.  * uri-template:
  42.  *   license: MIT
  43.  *   author: Stephen Sugden <me@stephensugden.com>
  44.  *   maintainers: grncdr <glurgle@gmail.com>, andreineculau <andrei.neculau@gmail.com>
  45.  *   contributors: Stephen Sugden <me@stephensugden.com>, Andrei Neculau <andrei.neculau@gmail.com>
  46.  *   homepage: https://github.com/grncdr/uri-template
  47.  *   version: 1.0.0
  48.  *
  49.  * url:
  50.  *   license: MIT
  51.  *   homepage: https://github.com/defunctzombie/node-url#readme
  52.  *   version: 0.10.3
  53.  *
  54.  * This header is generated by licensify (https://github.com/twada/licensify)
  55.  */
  56. ! function e(t, r, n) {
  57.     function o(i, a) {
  58.         if (!r[i]) {
  59.             if (!t[i]) {
  60.                 var u = "function" == typeof require && require;
  61.                 if (!a && u) return u(i, !0);
  62.                 if (s) return s(i, !0);
  63.                 var l = new Error("Cannot find module '" + i + "'");
  64.                 throw l.code = "MODULE_NOT_FOUND", l
  65.             }
  66.             var c = r[i] = {
  67.                 exports: {}
  68.             };
  69.             t[i][0].call(c.exports, function(e) {
  70.                 var r = t[i][1][e];
  71.                 return o(r ? r : e)
  72.             }, c, c.exports, e, t, r, n)
  73.         }
  74.         return r[i].exports
  75.     }
  76.     for (var s = "function" == typeof require && require, i = 0; i < n.length; i++) o(n[i]);
  77.     return o
  78. }({
  79.     1: [function(e, t, r) {
  80.         "use strict";
  81.         var n = e("babel-runtime/helpers/create-class")["default"],
  82.             o = e("babel-runtime/helpers/class-call-check")["default"],
  83.             s = e("babel-runtime/helpers/define-property")["default"],
  84.             i = e("babel-runtime/helpers/get")["default"],
  85.             a = e("babel-runtime/helpers/inherits")["default"],
  86.             u = e("babel-runtime/core-js/promise")["default"],
  87.             l = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  88.         Object.defineProperty(r, "__esModule", {
  89.             value: !0
  90.         });
  91.         var c = e("./util.js"),
  92.             f = l(c),
  93.             h = "notification",
  94.             p = "request",
  95.             d = "response",
  96.             m = {},
  97.             b = function() {
  98.                 function e(t) {
  99.                     var r;
  100.                     o(this, e), this.target = t, this.listeners = (r = {}, s(r, h, {}), s(r, p, {}), s(r, d, {}), r), this.channelId = f.origin() + ":" + f.sequence.next("channel"), m[this.channelId] = this
  101.                 }
  102.                 return n(e, [{
  103.                     key: "addRequestListener",
  104.                     value: function(e, t) {
  105.                         this.listeners[p][e] = t
  106.                     }
  107.                 }, {
  108.                     key: "removeRequestListener",
  109.                     value: function(e) {
  110.                         delete this.listeners[p][e]
  111.                     }
  112.                 }, {
  113.                     key: "addNotifyListener",
  114.                     value: function(e, t) {
  115.                         this.listeners[h][e] = t
  116.                     }
  117.                 }, {
  118.                     key: "removeNotifyListener",
  119.                     value: function(e) {
  120.                         delete this.listeners[h][e]
  121.                     }
  122.                 }, {
  123.                     key: "notify",
  124.                     value: function(e, t) {
  125.                         this.postMessage({
  126.                             type: h,
  127.                             topic: e,
  128.                             extra: t
  129.                         })
  130.                     }
  131.                 }, {
  132.                     key: "request",
  133.                     value: function(e, t, r) {
  134.                         var n = f.sequence.next("channel:" + this.channelId);
  135.                         this.listeners[d][n] = r, this.postMessage({
  136.                             type: p,
  137.                             topic: e,
  138.                             id: n,
  139.                             parameters: t
  140.                         })
  141.                     }
  142.                 }, {
  143.                     key: "response",
  144.                     value: function(e, t, r) {
  145.                         this.postMessage({
  146.                             type: d,
  147.                             topic: e,
  148.                             id: t,
  149.                             result: r
  150.                         })
  151.                     }
  152.                 }, {
  153.                     key: "dispatch",
  154.                     value: function(e) {
  155.                         var t = e.data,
  156.                             r = t.topic,
  157.                             n = !1;
  158.                         t.type === h && this.listeners[h][r] ? (this.listeners[h][r](t), n = !0) : t.type === p && this.listeners[p][r] ? (this.listeners[p][r](t), n = !0) : t.type === d && this.listeners[d][t.id] && (this.listeners[d][t.id](t), delete this.listeners[d][t.id], n = !0), n && "function" == typeof e.stopImmediatePropagation && e.stopImmediatePropagation()
  159.                     }
  160.                 }]), e
  161.             }(),
  162.             g = function(e) {
  163.                 function t(e, r, n) {
  164.                     o(this, t), i(Object.getPrototypeOf(t.prototype), "constructor", this).call(this, e), this.targetOrigin = r, this.sourceWindow = n, n.addEventListener("message", this)
  165.                 }
  166.                 return a(t, e), n(t, [{
  167.                     key: "dispose",
  168.                     value: function() {
  169.                         this.sourceWindow.removeEventListener("message", this), this.target = null, delete m[this.channelId]
  170.                     }
  171.                 }, {
  172.                     key: "handleEvent",
  173.                     value: function(e) {
  174.                         e.origin === this.targetOrigin && this.dispatch(e)
  175.                     }
  176.                 }, {
  177.                     key: "postMessage",
  178.                     value: function(e) {
  179.                         this.target ? "undefined" == typeof this.target.postMessage ? f.log.debug("WindowChannel.postMessage: called with non channel object ", this.target) : this.target.postMessage(e, this.targetOrigin) : f.log.debug("WindowChannel.postMessage: cannot called with disposed channel ", this)
  180.                     }
  181.                 }]), t
  182.             }(b);
  183.         r.WindowChannel = g;
  184.         var y = function(e) {
  185.             function t(e) {
  186.                 o(this, t), i(Object.getPrototypeOf(t.prototype), "constructor", this).call(this), e.addEventListener("message", this)
  187.             }
  188.             return a(t, e), n(t, [{
  189.                 key: "dispose",
  190.                 value: function() {
  191.                     this.target.removeEventListener("message", this), this.target = null, delete m[this.channelId]
  192.                 }
  193.             }, {
  194.                 key: "handleEvent",
  195.                 value: function(e) {
  196.                     this.dispatch(e)
  197.                 }
  198.             }, {
  199.                 key: "postMessage",
  200.                 value: function(e) {
  201.                     this.target.postMessage(e)
  202.                 }
  203.             }]), t
  204.         }(b);
  205.         r.WorkerChannel = y;
  206.         var v = function() {
  207.             function e() {
  208.                 var t = arguments.length <= 0 || void 0 === arguments[0] ? [] : arguments[0];
  209.                 o(this, e), this.channels = t
  210.             }
  211.             return n(e, [{
  212.                 key: "add",
  213.                 value: function(e) {
  214.                     this.channels.push(e)
  215.                 }
  216.             }, {
  217.                 key: "firstResolved",
  218.                 value: function(e, t, r) {
  219.                     return u.all(this.channels.map(function(n) {
  220.                         return new u(function(o, s) {
  221.                             n.request("can_handle", {
  222.                                 type: e,
  223.                                 topic: t,
  224.                                 object: r
  225.                             }, function(e) {
  226.                                 e.result.error ? o(e) : s(n)
  227.                             })
  228.                         })
  229.                     })).then(function(e) {
  230.                         return u.reject("no frames can handle this request")
  231.                     }, function(e) {
  232.                         return e
  233.                     })
  234.                 }
  235.             }, {
  236.                 key: "notifyFirst",
  237.                 value: function(e, t) {
  238.                     return this.firstResolved(h, e, {
  239.                         extra: t
  240.                     }).then(function(r) {
  241.                         r.notify(e, t)
  242.                     })
  243.                 }
  244.             }, {
  245.                 key: "requestFirst",
  246.                 value: function(e, t, r) {
  247.                     return this.firstResolved(p, e, {
  248.                         parameters: t
  249.                     }).then(function(n) {
  250.                         n.request(e, t, r)
  251.                     })
  252.                 }
  253.             }, {
  254.                 key: "notifyAll",
  255.                 value: function(e, t) {
  256.                     this.channels.forEach(function(r) {
  257.                         r.notify(e, t)
  258.                     })
  259.                 }
  260.             }, {
  261.                 key: "requestAll",
  262.                 value: function(e, t, r) {
  263.                     return u.all(this.channels.map(function(r) {
  264.                         return new u(function(n, o) {
  265.                             r.request(e, t, function(e, t) {
  266.                                 e ? o(e) : n(t)
  267.                             })
  268.                         })
  269.                     })).then(function(e) {
  270.                         return r(null, e)
  271.                     }, function(e) {
  272.                         return r(e, null)
  273.                     })
  274.                 }
  275.             }]), e
  276.         }();
  277.         r.Channels = v
  278.     }, {
  279.         "./util.js": 24,
  280.         "babel-runtime/core-js/promise": 37,
  281.         "babel-runtime/helpers/class-call-check": 41,
  282.         "babel-runtime/helpers/create-class": 42,
  283.         "babel-runtime/helpers/define-property": 43,
  284.         "babel-runtime/helpers/get": 44,
  285.         "babel-runtime/helpers/inherits": 45,
  286.         "babel-runtime/helpers/interop-require-wildcard": 47
  287.     }],
  288.     2: [function(e, t, r) {
  289.         "use strict";
  290.         var n = e("babel-runtime/helpers/create-class")["default"],
  291.             o = e("babel-runtime/helpers/class-call-check")["default"],
  292.             s = e("babel-runtime/core-js/object/keys")["default"];
  293.         Object.defineProperty(r, "__esModule", {
  294.             value: !0
  295.         });
  296.         var i = function() {
  297.             function e() {
  298.                 o(this, e), this.modalIframeOpen = !1
  299.             }
  300.             return n(e, [{
  301.                 key: "createIframe",
  302.                 value: function(e, t) {
  303.                     var r = e.url;
  304.                     t = t || function() {};
  305.                     var n = document.createElement("iframe");
  306.                     return e.id && (n.name = e.id), t.done = !1, t && (n.onload = function() {
  307.                         n.onload = null, t.done || (t.done = !0, t(n))
  308.                     }), n.src = r, n
  309.                 }
  310.             }, {
  311.                 key: "createInvisibleIframe",
  312.                 value: function(e, t) {
  313.                     var r = this.createIframe(e, t);
  314.                     return this.css(r, {
  315.                         display: "none",
  316.                         width: 0,
  317.                         height: 0
  318.                     }), document.body.appendChild(r), {
  319.                         window: r.contentWindow,
  320.                         iframe: r,
  321.                         dispose: function() {
  322.                             document.body.removeChild(r), r = null
  323.                         }
  324.                     }
  325.                 }
  326.             }, {
  327.                 key: "createWindow",
  328.                 value: function(e) {
  329.                     e.windowFeatures = e.windowFeatures || "";
  330.                     var t = window.open(e.url, e.id, e.windowFeatures);
  331.                     return {
  332.                         window: t,
  333.                         dispose: function() {
  334.                             t && (t.close(), t = null)
  335.                         }
  336.                     }
  337.                 }
  338.             }, {
  339.                 key: "adjust",
  340.                 value: function(e, t) {
  341.                     t = t || {}, this.css(e, {
  342.                         "margin-top": "-" + (e.offsetHeight / 2 + (t.y || 0)) + "px",
  343.                         "margin-left": "-" + (e.offsetWidth / 2 + (t.x || 0)) + "px"
  344.                     })
  345.                 }
  346.             }, {
  347.                 key: "css",
  348.                 value: function(e, t) {
  349.                     var r = " ";
  350.                     s(t).forEach(function(e) {
  351.                         r += e + ": " + String(t[e]) + ";"
  352.                     }), e.style.cssText += r
  353.                 }
  354.             }, {
  355.                 key: "addClass",
  356.                 value: function(e, t) {
  357.                     "" === e.className ? e.className = t : e.className += " " + t
  358.                 }
  359.             }]), e
  360.         }();
  361.         r["default"] = new i, t.exports = r["default"]
  362.     }, {
  363.         "babel-runtime/core-js/object/keys": 35,
  364.         "babel-runtime/helpers/class-call-check": 41,
  365.         "babel-runtime/helpers/create-class": 42
  366.     }],
  367.     3: [function(e, t, r) {
  368.         "use strict";
  369.         var n = e("babel-runtime/helpers/get")["default"],
  370.             o = e("babel-runtime/helpers/inherits")["default"],
  371.             s = e("babel-runtime/helpers/create-class")["default"],
  372.             i = e("babel-runtime/helpers/class-call-check")["default"],
  373.             a = e("babel-runtime/core-js/object/assign")["default"],
  374.             u = e("babel-runtime/core-js/reflect/construct")["default"],
  375.             l = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  376.         Object.defineProperty(r, "__esModule", {
  377.             value: !0
  378.         });
  379.         var c = e("./util.js"),
  380.             f = l(c),
  381.             h = "https://accounts.nintendo.com",
  382.             p = function(e) {
  383.                 function t(e) {
  384.                     if (i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).call(this), this.message = e, Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
  385.                     else {
  386.                         var r = new Error;
  387.                         r.stack && (this.stack = r.stack)
  388.                     }
  389.                     this.name = this.className
  390.                 }
  391.                 return o(t, e), s(t, [{
  392.                     key: "className",
  393.                     get: function() {
  394.                         return "ExtendableError"
  395.                     }
  396.                 }]), t
  397.             }(Error);
  398.         r.ExtendableError = p;
  399.         var d = function(e) {
  400.             function t() {
  401.                 i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  402.             }
  403.             return o(t, e), s(t, [{
  404.                 key: "className",
  405.                 get: function() {
  406.                     return "NintendoInitError"
  407.                 }
  408.             }]), t
  409.         }(p);
  410.         r.NintendoInitError = d;
  411.         var m = {
  412.                 300: "Multiple Choices",
  413.                 301: "Moved Parmanently",
  414.                 302: "Found",
  415.                 303: "See Other",
  416.                 304: "Not Modified",
  417.                 307: "Temporary Redirect",
  418.                 308: "Permanent Redirect",
  419.                 400: "Bad Request",
  420.                 401: "Unauthorized",
  421.                 403: "Forbidden",
  422.                 404: "Not Found",
  423.                 405: "Method Not Allowed",
  424.                 406: "Not Acceptable",
  425.                 408: "Request Timeout",
  426.                 409: "Conflict",
  427.                 413: "Payload Too Large",
  428.                 414: "URI Too Long",
  429.                 429: "Too Many Request",
  430.                 500: "Internal Server Error",
  431.                 502: "Bad Gateway",
  432.                 503: "Service Unavailable",
  433.                 504: "Gateway Timeout"
  434.             },
  435.             b = function(e) {
  436.                 function t() {
  437.                     var e = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0];
  438.                     i(this, t);
  439.                     var r = e.body || "";
  440.                     n(Object.getPrototypeOf(t.prototype), "constructor", this).call(this, r), this.status = e.status || this.defaultStatus, this.headers = e.headers || {}, this.body = r
  441.                 }
  442.                 return o(t, e), s(t, [{
  443.                     key: "className",
  444.                     get: function() {
  445.                         return "HTTPError"
  446.                     }
  447.                 }, {
  448.                     key: "defaultStatus",
  449.                     get: function() {
  450.                         return 500
  451.                     }
  452.                 }]), s(t, [{
  453.                     key: "toAPIError",
  454.                     value: function() {
  455.                         var e = new RegExp("^application/problem\\+json", "i");
  456.                         if (e.test(this.headers["Content-Type"] || this.headers["content-type"])) return new w("object" == typeof this.body ? this.body : {
  457.                             status: this.status,
  458.                             errorCode: "malformed_response",
  459.                             title: "Malformed Response",
  460.                             detail: this.body
  461.                         });
  462.                         var t = m[this.status] || "Unknwon Error";
  463.                         return new w({
  464.                             status: this.status,
  465.                             errorCode: f.decamelize(t),
  466.                             title: t,
  467.                             detail: this.body
  468.                         })
  469.                     }
  470.                 }]), t
  471.             }(p);
  472.         r.HTTPError = b;
  473.         var g = function(e) {
  474.             function t() {
  475.                 var e = arguments.length <= 0 || void 0 === arguments[0] ? "Request Timeout" : arguments[0];
  476.                 i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).call(this, {
  477.                     body: e
  478.                 })
  479.             }
  480.             return o(t, e), s(t, [{
  481.                 key: "className",
  482.                 get: function() {
  483.                     return "HTTPTimeoutError"
  484.                 }
  485.             }, {
  486.                 key: "defaultStatus",
  487.                 get: function() {
  488.                     return 503
  489.                 }
  490.             }]), t
  491.         }(b);
  492.         r.HTTPTimeoutError = g;
  493.         var y = function(e) {
  494.             function t() {
  495.                 i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  496.             }
  497.             return o(t, e), s(t, [{
  498.                 key: "className",
  499.                 get: function() {
  500.                     return "HTTPInternalError"
  501.                 }
  502.             }]), t
  503.         }(b);
  504.         r.HTTPInternalError = y;
  505.         var v = function(e) {
  506.             function t() {
  507.                 i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  508.             }
  509.             return o(t, e), s(t, [{
  510.                 key: "className",
  511.                 get: function() {
  512.                     return "HTTPResponseError"
  513.                 }
  514.             }]), t
  515.         }(b);
  516.         r.HTTPResponseError = v;
  517.         var j = void 0,
  518.             $ = function(e) {
  519.                 function t() {
  520.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  521.                 }
  522.                 return o(t, e), s(t, [{
  523.                     key: "toObject",
  524.                     value: function() {
  525.                         var e = a({}, this);
  526.                         return {
  527.                             className: this.className,
  528.                             properties: e
  529.                         }
  530.                     }
  531.                 }], [{
  532.                     key: "create",
  533.                     value: function(e) {
  534.                         var t = j[e.className];
  535.                         return u(t, [e.properties])
  536.                     }
  537.                 }]), t
  538.             }(p);
  539.         r.SerializableError = $;
  540.         var w = function(e) {
  541.             function t() {
  542.                 var e = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0];
  543.                 i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).call(this, e.title), this.type = e.type || h + "/errors/1.0.0/" + e.status + "/" + e.errorCode, this.status = e.status, this.errorCode = e.errorCode, this.title = e.title, this.detail = e.detail, this.instance = e.instance
  544.             }
  545.             return o(t, e), s(t, [{
  546.                 key: "toAPIError",
  547.                 value: function() {
  548.                     return this
  549.                 }
  550.             }, {
  551.                 key: "className",
  552.                 get: function() {
  553.                     return "APIError"
  554.                 }
  555.             }], [{
  556.                 key: "create",
  557.                 value: function(e) {
  558.                     return e.toAPIError ? e.toAPIError() : new t({
  559.                         status: 500,
  560.                         errorCode: e.name.toLowerCase(),
  561.                         title: e.name,
  562.                         detail: e.message,
  563.                         instance: "about:blank"
  564.                     })
  565.                 }
  566.             }, {
  567.                 key: "createFromOAuthResult",
  568.                 value: function(e) {
  569.                     return new t({
  570.                         status: 400,
  571.                         errorCode: e.response.error.toLowerCase(),
  572.                         title: e.response.error,
  573.                         detail: e.response.error_description,
  574.                         instance: "about:blank"
  575.                     })
  576.                 }
  577.             }]), t
  578.         }($);
  579.         r.APIError = w, j = {
  580.             APIError: w
  581.         }
  582.     }, {
  583.         "./util.js": 24,
  584.         "babel-runtime/core-js/object/assign": 30,
  585.         "babel-runtime/core-js/reflect/construct": 38,
  586.         "babel-runtime/helpers/class-call-check": 41,
  587.         "babel-runtime/helpers/create-class": 42,
  588.         "babel-runtime/helpers/get": 44,
  589.         "babel-runtime/helpers/inherits": 45,
  590.         "babel-runtime/helpers/interop-require-wildcard": 47
  591.     }],
  592.     4: [function(e, t, r) {
  593.         "use strict";
  594.         var n = e("babel-runtime/helpers/interop-require-default")["default"],
  595.             o = e("./nintendo.js"),
  596.             s = n(o);
  597.         window.ninAcc = s["default"]
  598.     }, {
  599.         "./nintendo.js": 5,
  600.         "babel-runtime/helpers/interop-require-default": 46
  601.     }],
  602.     5: [function(e, t, r) {
  603.         "use strict";
  604.  
  605.         function n() {
  606.             var e = "nintendoReady",
  607.                 t = void 0;
  608.             "function" == typeof CustomEvent ? t = new CustomEvent(e, {}) : (t = document.createEvent("Event"), t.initEvent(e, !0, !0)), document.dispatchEvent(t)
  609.         }
  610.         var o = e("babel-runtime/helpers/create-class")["default"],
  611.             s = e("babel-runtime/helpers/class-call-check")["default"],
  612.             i = e("babel-runtime/core-js/promise")["default"],
  613.             a = e("babel-runtime/helpers/interop-require-default")["default"],
  614.             u = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  615.         Object.defineProperty(r, "__esModule", {
  616.             value: !0
  617.         });
  618.         var l = e("./nintendo/oauth.js"),
  619.             c = a(l),
  620.             f = e("./nintendo/event.js"),
  621.             h = a(f),
  622.             p = e("./nintendo/api.js"),
  623.             d = a(p),
  624.             m = e("./nintendo/client.js"),
  625.             b = a(m),
  626.             g = e("./nintendo/error.js"),
  627.             y = a(g),
  628.             v = e("url"),
  629.             j = a(v),
  630.             $ = e("./util.js"),
  631.             w = u($),
  632.             k = e("./chrome.js"),
  633.             _ = a(k),
  634.             x = e("./polyfill/deferred.js"),
  635.             A = a(x),
  636.             O = function() {
  637.                 function e() {
  638.                     s(this, e), this._readyState = new A["default"], this.client = new b["default"], this.oauth = new c["default"](this), this.event = new h["default"](this), this.api = new d["default"](this), this.error = new y["default"](this)
  639.                 }
  640.                 return o(e, [{
  641.                     key: "version",
  642.                     get: function() {
  643.                         return "2.0.0"
  644.                     }
  645.                 }, {
  646.                     key: "name",
  647.                     get: function() {
  648.                         return "nintendo-jssdk"
  649.                     }
  650.                 }]), o(e, [{
  651.                     key: "init",
  652.                     value: function(e) {
  653.                         var t = this;
  654.                         return i.resolve().then(function() {
  655.                             return w.log.debug("client initialization process start:", e), t.client.init(e), i.all([t.oauth.init(e), t.api.init(e)])
  656.                         }).then(function(e) {
  657.                             return w.log.debug("successfully finished client initialization process:", e), n(), t._readyState.resolve(t)
  658.                         }, function(e) {
  659.                             return w.log.error("catch exception on client initialization process:", e), t.ready
  660.                         })
  661.                     }
  662.                 }, {
  663.                     key: "_loadFrame",
  664.                     value: function(e, t) {
  665.                         return new i(function(r, n) {
  666.                             e && t ? ! function() {
  667.                                 var n = j["default"].parse(t);
  668.                                 _["default"].createInvisibleIframe({
  669.                                     url: t,
  670.                                     id: e
  671.                                 }, function(t) {
  672.                                     return r({
  673.                                         name: e,
  674.                                         origin: n.protocol + "//" + n.host,
  675.                                         frame: t.contentWindow
  676.                                     })
  677.                                 })
  678.                             }() : n(e + " is not loaded")
  679.                         })
  680.                     }
  681.                 }, {
  682.                     key: "clearStorage",
  683.                     value: function() {
  684.                         w.log.debug("clear all storage data"), this.api.removeToken(), this.oauth.clearSessionState()
  685.                     }
  686.                 }, {
  687.                     key: "ready",
  688.                     get: function() {
  689.                         return this._readyState.promise
  690.                     }
  691.                 }]), e
  692.             }();
  693.         r["default"] = new O, t.exports = r["default"]
  694.     }, {
  695.         "./chrome.js": 2,
  696.         "./nintendo/api.js": 6,
  697.         "./nintendo/client.js": 13,
  698.         "./nintendo/error.js": 14,
  699.         "./nintendo/event.js": 15,
  700.         "./nintendo/oauth.js": 17,
  701.         "./polyfill/deferred.js": 18,
  702.         "./util.js": 24,
  703.         "babel-runtime/core-js/promise": 37,
  704.         "babel-runtime/helpers/class-call-check": 41,
  705.         "babel-runtime/helpers/create-class": 42,
  706.         "babel-runtime/helpers/interop-require-default": 46,
  707.         "babel-runtime/helpers/interop-require-wildcard": 47,
  708.         url: 142
  709.     }],
  710.     6: [function(e, t, r) {
  711.         "use strict";
  712.         var n = e("babel-runtime/helpers/create-class")["default"],
  713.             o = e("babel-runtime/helpers/class-call-check")["default"],
  714.             s = e("babel-runtime/core-js/promise")["default"],
  715.             i = e("babel-runtime/core-js/object/keys")["default"],
  716.             a = e("babel-runtime/helpers/interop-require-default")["default"],
  717.             u = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  718.         Object.defineProperty(r, "__esModule", {
  719.             value: !0
  720.         });
  721.         var l = e("url"),
  722.             c = a(l),
  723.             f = e("../util.js"),
  724.             h = u(f),
  725.             p = e("../channel.js"),
  726.             d = e("../error.js"),
  727.             m = e("../storage.js"),
  728.             b = u(m),
  729.             g = e("./api/pointWallet.js"),
  730.             y = a(g),
  731.             v = e("./api/missionStatus.js"),
  732.             j = a(v),
  733.             $ = e("./api/user.js"),
  734.             w = a($),
  735.             k = e("./api/userNotification.js"),
  736.             _ = a(k),
  737.             x = e("./api/eshopPrice.js"),
  738.             A = a(x),
  739.             O = {
  740.                 path: "/static/jssdk/xdframe.2.0.0.html",
  741.                 name: "proxy-frame",
  742.                 methods: {
  743.                     user: w["default"],
  744.                     userNotification: _["default"],
  745.                     pointWallet: y["default"],
  746.                     missionStatus: j["default"]
  747.                 }
  748.             },
  749.             q = {
  750.                 path: "/static/jssdk/eshopframe.2.0.0.html",
  751.                 name: "eshop-frame",
  752.                 methods: {
  753.                     eshopPrice: A["default"]
  754.                 }
  755.             },
  756.             P = function() {
  757.                 function e(t) {
  758.                     o(this, e), this.ninAcc = t, this.apiChannels = new p.Channels
  759.                 }
  760.                 return n(e, [{
  761.                     key: "init",
  762.                     value: function(e) {
  763.                         var t = this,
  764.                             r = e.apiOrigin,
  765.                             n = e.eshopOrigin,
  766.                             o = e.connectOrigin,
  767.                             a = "#parent_origin=" + h.origin() + "&connect_origin=" + o,
  768.                             u = [this.ninAcc._loadFrame(O.name, r + O.path + a)];
  769.                         return n && u.push(this.ninAcc._loadFrame(q.name, n + q.path + a)), s.all(u).then(function(e) {
  770.                             e.forEach(function(e) {
  771.                                 var r = e.origin,
  772.                                     n = e.name,
  773.                                     o = e.frame,
  774.                                     s = void 0;
  775.                                 switch (n) {
  776.                                     case O.name:
  777.                                         s = O.methods;
  778.                                         break;
  779.                                     case q.name:
  780.                                         s = q.methods
  781.                                 }
  782.                                 s && (t.apiChannels.add(new p.WindowChannel(o, r, window.self)), i(s).forEach(function(e) {
  783.                                     t[e] = new s[e](r)
  784.                                 }), h.log.debug("[ninAcc.api] " + n + " is loaded"))
  785.                             })
  786.                         })
  787.                     }
  788.                 }, {
  789.                     key: "sendRequest",
  790.                     value: function(e) {
  791.                         var t = this,
  792.                             r = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  793.                         r = r || function() {}, this.sendRequestNoRetry(e)["catch"](function(r) {
  794.                             if (r && r instanceof d.APIError && 401 == r.status) return t.refreshToken().then(function() {
  795.                                 return t.sendRequestNoRetry(e)
  796.                             });
  797.                             throw r
  798.                         }).then(function(e) {
  799.                             r(null, e)
  800.                         }, function(e) {
  801.                             r(e, null)
  802.                         })
  803.                     }
  804.                 }, {
  805.                     key: "sendRequestNoRetry",
  806.                     value: function(e) {
  807.                         var t = this;
  808.                         return new s(function(r, n) {
  809.                             var o = e.origin + c["default"].format({
  810.                                     pathname: e.path,
  811.                                     query: e.query || {}
  812.                                 }),
  813.                                 s = {
  814.                                     method: e.method,
  815.                                     url: o,
  816.                                     headers: e.headers,
  817.                                     body: e.body,
  818.                                     options: {
  819.                                         noAuth: e.noAuth || !1,
  820.                                         storage_suffix: b.sessionState.get(t.ninAcc.client.clientId)
  821.                                     }
  822.                                 };
  823.                             t.apiChannels.requestFirst("api_request", s, function(e) {
  824.                                 var t = e.result;
  825.                                 if (t.error) {
  826.                                     var s = d.SerializableError.create(t.error);
  827.                                     s instanceof d.APIError && (s.instance = o), n(s)
  828.                                 } else r(t.data)
  829.                             })["catch"](function(e) {
  830.                                 return n(new d.APIError({
  831.                                     status: 400,
  832.                                     errorCode: "unsupportedRequest",
  833.                                     title: "unsupported request",
  834.                                     detail: e
  835.                                 }))
  836.                             })
  837.                         })
  838.                     }
  839.                 }, {
  840.                     key: "refreshToken",
  841.                     value: function() {
  842.                         var e = this,
  843.                             t = this._tokenState;
  844.                         return this._tokenState || (t = this._tokenState = new s(function(t, r) {
  845.                             var n = b.sessionState.get(e.ninAcc.client.clientId);
  846.                             e.ninAcc.oauth.retryAuthorization({
  847.                                 sessionState: n
  848.                             }, function(n, o) {
  849.                                 if (n) {
  850.                                     var s = d.APIError.createFromOAuthResult(n);
  851.                                     r(s)
  852.                                 } else t();
  853.                                 e._tokenState = null
  854.                             })
  855.                         })), t
  856.                     }
  857.                 }, {
  858.                     key: "removeToken",
  859.                     value: function() {
  860.                         var e = b.sessionState.get(this.ninAcc.client.clientId);
  861.                         this.apiChannels.notifyAll("remove_token", {
  862.                             storage_suffix: e
  863.                         })
  864.                     }
  865.                 }]), e
  866.             }();
  867.         r["default"] = P, t.exports = r["default"]
  868.     }, {
  869.         "../channel.js": 1,
  870.         "../error.js": 3,
  871.         "../storage.js": 19,
  872.         "../util.js": 24,
  873.         "./api/eshopPrice.js": 8,
  874.         "./api/missionStatus.js": 9,
  875.         "./api/pointWallet.js": 10,
  876.         "./api/user.js": 11,
  877.         "./api/userNotification.js": 12,
  878.         "babel-runtime/core-js/object/keys": 35,
  879.         "babel-runtime/core-js/promise": 37,
  880.         "babel-runtime/helpers/class-call-check": 41,
  881.         "babel-runtime/helpers/create-class": 42,
  882.         "babel-runtime/helpers/interop-require-default": 46,
  883.         "babel-runtime/helpers/interop-require-wildcard": 47,
  884.         url: 142
  885.     }],
  886.     7: [function(e, t, r) {
  887.         "use strict";
  888.         var n = e("babel-runtime/helpers/create-class")["default"],
  889.             o = e("babel-runtime/helpers/class-call-check")["default"],
  890.             s = e("babel-runtime/helpers/to-consumable-array")["default"],
  891.             i = e("babel-runtime/core-js/object/assign")["default"],
  892.             a = e("babel-runtime/core-js/get-iterator")["default"],
  893.             u = e("babel-runtime/core-js/set")["default"],
  894.             l = e("babel-runtime/core-js/object/keys")["default"],
  895.             c = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  896.         Object.defineProperty(r, "__esModule", {
  897.             value: !0
  898.         });
  899.         var f = e("uri-template"),
  900.             h = c(f),
  901.             p = e("../../util.js"),
  902.             d = c(p),
  903.             m = e("../../error.js"),
  904.             b = function() {
  905.                 function e(t) {
  906.                     o(this, e), this.origin = t, this.templates = {}
  907.                 }
  908.                 return n(e, [{
  909.                     key: "create",
  910.                     value: function() {
  911.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  912.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  913.                         try {
  914.                             e = e || {};
  915.                             var r = this.getEndpointFragment("create"),
  916.                                 n = this.expandUriTemplate(r, e),
  917.                                 o = e.queryParams,
  918.                                 s = this.getRestParams(r, e);
  919.                             this.request({
  920.                                 method: "POST",
  921.                                 path: n,
  922.                                 query: o,
  923.                                 body: s
  924.                             }, t)
  925.                         } catch (i) {
  926.                             t(i, null)
  927.                         }
  928.                     }
  929.                 }, {
  930.                     key: "get",
  931.                     value: function() {
  932.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  933.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1],
  934.                             r = arguments.length <= 2 || void 0 === arguments[2] ? !1 : arguments[2];
  935.                         try {
  936.                             e = e || {};
  937.                             var n = this.getEndpointFragment("get"),
  938.                                 o = this.expandUriTemplate(n, e),
  939.                                 s = e.queryParams,
  940.                                 i = this.extractAcceptableHeaders("get", e.headers);
  941.                             this.request({
  942.                                 method: "GET",
  943.                                 path: o,
  944.                                 query: s,
  945.                                 headers: i
  946.                             }, t, r)
  947.                         } catch (a) {
  948.                             t(a, null)
  949.                         }
  950.                     }
  951.                 }, {
  952.                     key: "getAll",
  953.                     value: function() {
  954.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  955.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1],
  956.                             r = arguments.length <= 2 || void 0 === arguments[2] ? !1 : arguments[2];
  957.                         try {
  958.                             e = e || {};
  959.                             var n = this.getEndpointFragment("getAll"),
  960.                                 o = this.expandUriTemplate(n, e),
  961.                                 s = e.queryParams,
  962.                                 i = this.extractAcceptableHeaders("getAll", e.headers);
  963.                             this.request({
  964.                                 method: "GET",
  965.                                 path: o,
  966.                                 query: s,
  967.                                 headers: i
  968.                             }, t, r)
  969.                         } catch (a) {
  970.                             t(a, null)
  971.                         }
  972.                     }
  973.                 }, {
  974.                     key: "update",
  975.                     value: function() {
  976.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  977.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  978.                         try {
  979.                             e = e || {};
  980.                             var r = this.getEndpointFragment("update"),
  981.                                 n = this.expandUriTemplate(r, e),
  982.                                 o = this.getRestParams(r, e),
  983.                                 s = e.queryParams;
  984.                             this.request({
  985.                                 method: "PUT",
  986.                                 path: n,
  987.                                 query: s,
  988.                                 body: o
  989.                             }, t)
  990.                         } catch (i) {
  991.                             t(i, null)
  992.                         }
  993.                     }
  994.                 }, {
  995.                     key: "patch",
  996.                     value: function() {
  997.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  998.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1],
  999.                             r = arguments.length <= 2 || void 0 === arguments[2] ? null : arguments[2];
  1000.                         try {
  1001.                             e = e || {}, t = t || [];
  1002.                             var n = this.getEndpointFragment("patch"),
  1003.                                 o = this.expandUriTemplate(n, e),
  1004.                                 s = e.queryParams,
  1005.                                 a = this.extractAcceptableHeaders("getAll", e.headers);
  1006.                             this.request({
  1007.                                 method: "PATCH",
  1008.                                 path: o,
  1009.                                 query: s,
  1010.                                 body: t,
  1011.                                 headers: i({
  1012.                                     "Content-Type": "application/json-patch+json"
  1013.                                 }, a)
  1014.                             }, r)
  1015.                         } catch (u) {
  1016.                             r(u, null)
  1017.                         }
  1018.                     }
  1019.                 }, {
  1020.                     key: "delete",
  1021.                     value: function() {
  1022.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  1023.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  1024.                         try {
  1025.                             e = e || {};
  1026.                             var r = this.getEndpointFragment("delete"),
  1027.                                 n = this.expandUriTemplate(r, e),
  1028.                                 o = e.queryParams;
  1029.                             this.request({
  1030.                                 method: "DELETE",
  1031.                                 path: n,
  1032.                                 query: o
  1033.                             }, t)
  1034.                         } catch (s) {
  1035.                             t(s, null)
  1036.                         }
  1037.                     }
  1038.                 }, {
  1039.                     key: "getEndpointFragment",
  1040.                     value: function(e) {
  1041.                         return this.endpointFragments[e] || this.endpointFragments["default"]
  1042.                     }
  1043.                 }, {
  1044.                     key: "expandUriTemplate",
  1045.                     value: function(e, t) {
  1046.                         var r = this.templates[e.template];
  1047.                         r || (r = this.templates[e.template] = h.parse(e.template));
  1048.                         var n = (e.parameters || []).filter(function(e) {
  1049.                             return !(e in t)
  1050.                         });
  1051.                         if (n.length > 0) throw new m.APIError({
  1052.                             status: 400,
  1053.                             errorCode: "invalid_params",
  1054.                             title: "Invalid Params",
  1055.                             detail: "Missing required parameter(s): " + n,
  1056.                             instance: "about:blank"
  1057.                         });
  1058.                         return r.expand(t)
  1059.                     }
  1060.                 }, {
  1061.                     key: "getRestParams",
  1062.                     value: function(e, t) {
  1063.                         var r = i({}, t),
  1064.                             n = !0,
  1065.                             o = !1,
  1066.                             s = void 0;
  1067.                         try {
  1068.                             for (var u, l = a(e.parameters || []); !(n = (u = l.next()).done); n = !0) {
  1069.                                 var c = u.value;
  1070.                                 delete r[c]
  1071.                             }
  1072.                         } catch (f) {
  1073.                             o = !0, s = f
  1074.                         } finally {
  1075.                             try {
  1076.                                 !n && l["return"] && l["return"]()
  1077.                             } finally {
  1078.                                 if (o) throw s
  1079.                             }
  1080.                         }
  1081.                         var h = !0,
  1082.                             p = !1,
  1083.                             d = void 0;
  1084.                         try {
  1085.                             for (var m, b = a(e.optionalParameters || []); !(h = (m = b.next()).done); h = !0) {
  1086.                                 var c = m.value;
  1087.                                 delete r[c]
  1088.                             }
  1089.                         } catch (f) {
  1090.                             p = !0, d = f
  1091.                         } finally {
  1092.                             try {
  1093.                                 !h && b["return"] && b["return"]()
  1094.                             } finally {
  1095.                                 if (p) throw d
  1096.                             }
  1097.                         }
  1098.                         return delete r.queryParams, r
  1099.                     }
  1100.                 }, {
  1101.                     key: "getAcceptableHeaderKeySet",
  1102.                     value: function(e) {
  1103.                         var t = new u(this.acceptableHeaders["default"] || []);
  1104.                         return (this.acceptableHeaders[e] || []).forEach(function(e) {
  1105.                             return t.add(e)
  1106.                         }), t
  1107.                     }
  1108.                 }, {
  1109.                     key: "extractAcceptableHeaders",
  1110.                     value: function(e, t) {
  1111.                         if (!t) return {};
  1112.                         var r = this.getAcceptableHeaderKeySet(e),
  1113.                             n = new u,
  1114.                             o = l(t).reduce(function(e, o) {
  1115.                                 return r.has(o) ? e[o] = t[o] : n.add(o), e
  1116.                             }, {});
  1117.                         return n.size > 0 && d.log.warn("ignore headers [ " + [].concat(s(n)) + " ]. the header white list is [ " + [].concat(s(r)) + " ]."), o
  1118.                     }
  1119.                 }, {
  1120.                     key: "request",
  1121.                     value: function(e, t) {
  1122.                         var r = arguments.length <= 2 || void 0 === arguments[2] ? !1 : arguments[2],
  1123.                             n = {
  1124.                                 origin: this.origin,
  1125.                                 method: e.method,
  1126.                                 path: e.path,
  1127.                                 query: e.query,
  1128.                                 headers: i({
  1129.                                     "Content-Type": "application/json"
  1130.                                 }, e.headers || {}),
  1131.                                 body: e.body,
  1132.                                 noAuth: r
  1133.                             };
  1134.                         ninAcc.api.sendRequest(n, t)
  1135.                     }
  1136.                 }, {
  1137.                     key: "acceptableHeaders",
  1138.                     get: function() {
  1139.                         return {
  1140.                             "default": []
  1141.                         }
  1142.                     }
  1143.                 }, {
  1144.                     key: "endpointFragments",
  1145.                     get: function() {}
  1146.                 }]), e
  1147.             }();
  1148.         r["default"] = b, t.exports = r["default"]
  1149.     }, {
  1150.         "../../error.js": 3,
  1151.         "../../util.js": 24,
  1152.         "babel-runtime/core-js/get-iterator": 28,
  1153.         "babel-runtime/core-js/object/assign": 30,
  1154.         "babel-runtime/core-js/object/keys": 35,
  1155.         "babel-runtime/core-js/set": 39,
  1156.         "babel-runtime/helpers/class-call-check": 41,
  1157.         "babel-runtime/helpers/create-class": 42,
  1158.         "babel-runtime/helpers/interop-require-wildcard": 47,
  1159.         "babel-runtime/helpers/to-consumable-array": 50,
  1160.         "uri-template": 143
  1161.     }],
  1162.     8: [function(e, t, r) {
  1163.         "use strict";
  1164.         var n = e("babel-runtime/helpers/get")["default"],
  1165.             o = e("babel-runtime/helpers/inherits")["default"],
  1166.             s = e("babel-runtime/helpers/create-class")["default"],
  1167.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1168.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1169.         Object.defineProperty(r, "__esModule", {
  1170.             value: !0
  1171.         });
  1172.         var u = e("./base.js"),
  1173.             l = a(u),
  1174.             c = e("../../error.js"),
  1175.             f = function(e) {
  1176.                 function t() {
  1177.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1178.                 }
  1179.                 return o(t, e), s(t, [{
  1180.                     key: "get",
  1181.                     value: function() {
  1182.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  1183.                             r = arguments.length <= 1 || void 0 === arguments[1] ? function(e) {
  1184.                                 return e && console.warn(e)
  1185.                             } : arguments[1];
  1186.                         e = e || {};
  1187.                         var o = e.personalized === !0 ? !1 : !0;
  1188.                         return "undefined" != typeof e.country && "undefined" != typeof e.lang && e.ids instanceof Array ? void n(Object.getPrototypeOf(t.prototype), "get", this).call(this, {
  1189.                             id: e.id,
  1190.                             queryParams: {
  1191.                                 country: e.country,
  1192.                                 lang: e.lang,
  1193.                                 ids: e.ids.join(",")
  1194.                             }
  1195.                         }, r, o) : void r(new c.APIError({
  1196.                             status: 400,
  1197.                             errorCode: "invalid_params",
  1198.                             title: "Invalid Params",
  1199.                             detail: "Missing required parameter(s)",
  1200.                             instance: "about:blank"
  1201.                         }), null)
  1202.                     }
  1203.                 }, {
  1204.                     key: "endpointFragments",
  1205.                     get: function() {
  1206.                         return {
  1207.                             "default": {
  1208.                                 template: "/v1/price"
  1209.                             }
  1210.                         }
  1211.                     }
  1212.                 }]), t
  1213.             }(l["default"]);
  1214.         r["default"] = f, t.exports = r["default"]
  1215.     }, {
  1216.         "../../error.js": 3,
  1217.         "./base.js": 7,
  1218.         "babel-runtime/helpers/class-call-check": 41,
  1219.         "babel-runtime/helpers/create-class": 42,
  1220.         "babel-runtime/helpers/get": 44,
  1221.         "babel-runtime/helpers/inherits": 45,
  1222.         "babel-runtime/helpers/interop-require-default": 46
  1223.     }],
  1224.     9: [function(e, t, r) {
  1225.         "use strict";
  1226.         var n = e("babel-runtime/helpers/get")["default"],
  1227.             o = e("babel-runtime/helpers/inherits")["default"],
  1228.             s = e("babel-runtime/helpers/create-class")["default"],
  1229.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1230.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1231.         Object.defineProperty(r, "__esModule", {
  1232.             value: !0
  1233.         });
  1234.         var u = e("./base.js"),
  1235.             l = a(u),
  1236.             c = function(e) {
  1237.                 function t() {
  1238.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1239.                 }
  1240.                 return o(t, e), s(t, [{
  1241.                     key: "progress",
  1242.                     value: function() {
  1243.                         var e = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0],
  1244.                             t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  1245.                         e = e || {};
  1246.                         var r = this.getEndpointFragment("progress"),
  1247.                             n = this.expandUriTemplate(r, e),
  1248.                             o = e.queryParams,
  1249.                             s = this.getRestParams(r, e);
  1250.                         this.request({
  1251.                             method: "POST",
  1252.                             path: n,
  1253.                             query: o,
  1254.                             body: s
  1255.                         }, t)
  1256.                     }
  1257.                 }, {
  1258.                     key: "endpointFragments",
  1259.                     get: function() {
  1260.                         return {
  1261.                             "default": {
  1262.                                 template: "/1.0.0/users/{userId}/mission_statuses/{missionId}",
  1263.                                 parameters: ["userId", "missionId"]
  1264.                             },
  1265.                             progress: {
  1266.                                 template: "/1.0.0/users/{userId}/mission_statuses/{missionId}/progress",
  1267.                                 parameters: ["userId", "missionId"]
  1268.                             }
  1269.                         }
  1270.                     }
  1271.                 }]), t
  1272.             }(l["default"]);
  1273.         r["default"] = c, t.exports = r["default"]
  1274.     }, {
  1275.         "./base.js": 7,
  1276.         "babel-runtime/helpers/class-call-check": 41,
  1277.         "babel-runtime/helpers/create-class": 42,
  1278.         "babel-runtime/helpers/get": 44,
  1279.         "babel-runtime/helpers/inherits": 45,
  1280.         "babel-runtime/helpers/interop-require-default": 46
  1281.     }],
  1282.     10: [function(e, t, r) {
  1283.         "use strict";
  1284.         var n = e("babel-runtime/helpers/get")["default"],
  1285.             o = e("babel-runtime/helpers/inherits")["default"],
  1286.             s = e("babel-runtime/helpers/create-class")["default"],
  1287.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1288.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1289.         Object.defineProperty(r, "__esModule", {
  1290.             value: !0
  1291.         });
  1292.         var u = e("./base.js"),
  1293.             l = a(u),
  1294.             c = function(e) {
  1295.                 function t() {
  1296.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1297.                 }
  1298.                 return o(t, e), s(t, [{
  1299.                     key: "endpointFragments",
  1300.                     get: function() {
  1301.                         return {
  1302.                             "default": {
  1303.                                 template: "/1.0.0/users/{userId}/point_wallet",
  1304.                                 parameters: ["userId"]
  1305.                             }
  1306.                         }
  1307.                     }
  1308.                 }]), t
  1309.             }(l["default"]);
  1310.         r["default"] = c, t.exports = r["default"]
  1311.     }, {
  1312.         "./base.js": 7,
  1313.         "babel-runtime/helpers/class-call-check": 41,
  1314.         "babel-runtime/helpers/create-class": 42,
  1315.         "babel-runtime/helpers/get": 44,
  1316.         "babel-runtime/helpers/inherits": 45,
  1317.         "babel-runtime/helpers/interop-require-default": 46
  1318.     }],
  1319.     11: [function(e, t, r) {
  1320.         "use strict";
  1321.         var n = e("babel-runtime/helpers/get")["default"],
  1322.             o = e("babel-runtime/helpers/inherits")["default"],
  1323.             s = e("babel-runtime/helpers/create-class")["default"],
  1324.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1325.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1326.         Object.defineProperty(r, "__esModule", {
  1327.             value: !0
  1328.         });
  1329.         var u = e("./base.js"),
  1330.             l = a(u),
  1331.             c = function(e) {
  1332.                 function t() {
  1333.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1334.                 }
  1335.                 return o(t, e), s(t, [{
  1336.                     key: "endpointFragments",
  1337.                     get: function() {
  1338.                         return {
  1339.                             "default": {
  1340.                                 template: "/2.0.0/users{/id}",
  1341.                                 parameters: ["id"]
  1342.                             }
  1343.                         }
  1344.                     }
  1345.                 }]), t
  1346.             }(l["default"]);
  1347.         r["default"] = c, t.exports = r["default"]
  1348.     }, {
  1349.         "./base.js": 7,
  1350.         "babel-runtime/helpers/class-call-check": 41,
  1351.         "babel-runtime/helpers/create-class": 42,
  1352.         "babel-runtime/helpers/get": 44,
  1353.         "babel-runtime/helpers/inherits": 45,
  1354.         "babel-runtime/helpers/interop-require-default": 46
  1355.     }],
  1356.     12: [function(e, t, r) {
  1357.         "use strict";
  1358.         var n = e("babel-runtime/helpers/get")["default"],
  1359.             o = e("babel-runtime/helpers/inherits")["default"],
  1360.             s = e("babel-runtime/helpers/create-class")["default"],
  1361.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1362.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1363.         Object.defineProperty(r, "__esModule", {
  1364.             value: !0
  1365.         });
  1366.         var u = e("./base.js"),
  1367.             l = a(u),
  1368.             c = (e("../../error.js"), function(e) {
  1369.                 function t() {
  1370.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1371.                 }
  1372.                 return o(t, e), s(t, [{
  1373.                     key: "endpointFragments",
  1374.                     get: function() {
  1375.                         return {
  1376.                             getAll: {
  1377.                                 template: "/1.0.0/users{/userId}/notifications",
  1378.                                 parameters: ["userId"]
  1379.                             },
  1380.                             "default": {
  1381.                                 template: "/1.0.0/users{/userId}/notifications{/notificationId}",
  1382.                                 parameters: ["userId", "notificationId"]
  1383.                             }
  1384.                         }
  1385.                     }
  1386.                 }, {
  1387.                     key: "acceptableHeaders",
  1388.                     get: function() {
  1389.                         return {
  1390.                             "default": ["If-Match", "If-None-Match"]
  1391.                         }
  1392.                     }
  1393.                 }]), t
  1394.             }(l["default"]));
  1395.         r["default"] = c, t.exports = r["default"]
  1396.     }, {
  1397.         "../../error.js": 3,
  1398.         "./base.js": 7,
  1399.         "babel-runtime/helpers/class-call-check": 41,
  1400.         "babel-runtime/helpers/create-class": 42,
  1401.         "babel-runtime/helpers/get": 44,
  1402.         "babel-runtime/helpers/inherits": 45,
  1403.         "babel-runtime/helpers/interop-require-default": 46
  1404.     }],
  1405.     13: [function(e, t, r) {
  1406.         "use strict";
  1407.         var n = e("babel-runtime/helpers/create-class")["default"],
  1408.             o = e("babel-runtime/helpers/class-call-check")["default"],
  1409.             s = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  1410.         Object.defineProperty(r, "__esModule", {
  1411.             value: !0
  1412.         });
  1413.         var i = e("../util.js"),
  1414.             a = s(i),
  1415.             u = function() {
  1416.                 function e(t) {
  1417.                     o(this, e), this.ninAcc = t
  1418.                 }
  1419.                 return n(e, [{
  1420.                     key: "init",
  1421.                     value: function(e) {
  1422.                         var t = e.connectOrigin,
  1423.                             r = e.apiOrigin,
  1424.                             n = e.eshopOrigin,
  1425.                             o = e.clientId,
  1426.                             s = e.clientOrigin,
  1427.                             i = e.scope,
  1428.                             u = e.responseType,
  1429.                             l = e.webMessageTarget,
  1430.                             c = e.webMessageUri;
  1431.                         return "undefined" == typeof t || "string" != typeof t ? void a.log.error("connectOrigin should be string") : "undefined" == typeof r || "string" != typeof r ? void a.log.error("apiOrigin should be string") : "undefined" == typeof o || "string" != typeof o ? void a.log.error("clientId should be string") : "undefined" == typeof s || "string" != typeof s ? void a.log.error("clientOrigin should be string") : n && "string" != typeof n ? void a.log.error("eshopOrigin should be string") : i && !i instanceof Array ? void a.log.error("scope should be Array.<string>") : u && !u instanceof Array ? void a.log.error("responseType should be Array.<string>") : c && "string" != typeof c ? void a.log.errro("webMessageUri should be string") : l && "string" != typeof l ? void a.log.error("webMessageTarget should be string") : (this.clientId = o, this.clientOrigin = s, this.connectOrigin = t, this.apiOrigin = r, this.eshopOrigin = n, this.scope = i || ["openid"], this.responseType = u || ["code", "token", "id_token"], this.webMessageTarget = l || "op-frame", this.webMessageUri = c || "http://localhost:8080/cb", this)
  1432.                     }
  1433.                 }]), e
  1434.             }();
  1435.         r["default"] = u, t.exports = r["default"]
  1436.     }, {
  1437.         "../util.js": 24,
  1438.         "babel-runtime/helpers/class-call-check": 41,
  1439.         "babel-runtime/helpers/create-class": 42,
  1440.         "babel-runtime/helpers/interop-require-wildcard": 47
  1441.     }],
  1442.     14: [function(e, t, r) {
  1443.         "use strict";
  1444.         var n = e("babel-runtime/helpers/class-call-check")["default"];
  1445.         Object.defineProperty(r, "__esModule", {
  1446.             value: !0
  1447.         });
  1448.         var o = e("../error.js"),
  1449.             s = function i(e) {
  1450.                 n(this, i), this.APIError = o.APIError
  1451.             };
  1452.         r["default"] = s, t.exports = r["default"]
  1453.     }, {
  1454.         "../error.js": 3,
  1455.         "babel-runtime/helpers/class-call-check": 41
  1456.     }],
  1457.     15: [function(e, t, r) {
  1458.         "use strict";
  1459.         var n = e("babel-runtime/helpers/create-class")["default"],
  1460.             o = e("babel-runtime/helpers/class-call-check")["default"],
  1461.             s = e("babel-runtime/helpers/sliced-to-array")["default"],
  1462.             i = e("babel-runtime/helpers/interop-require-wildcard")["default"],
  1463.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1464.         Object.defineProperty(r, "__esModule", {
  1465.             value: !0
  1466.         });
  1467.         var u = e("../util.js"),
  1468.             l = i(u),
  1469.             c = e("./event/oauth.js"),
  1470.             f = a(c),
  1471.             h = function() {
  1472.                 function e(t) {
  1473.                     o(this, e), this.ninAcc = t, this.sessionStateChangeCallbacks = {}, this.registeredEvents = {
  1474.                         "oauth.sessionStateChange": new f["default"](t)
  1475.                     }, this.listeners = {}
  1476.                 }
  1477.                 return n(e, [{
  1478.                     key: "subscribe",
  1479.                     value: function(e, t, r) {
  1480.                         if (!this.registeredEvents[e]) return l.log.crit("topic " + e + " is not registered"), null;
  1481.                         if (!t) return l.log.crit("params must be object"), null;
  1482.                         this.listeners[e] = this.listeners[e] || [];
  1483.                         var n = e + ":" + l.generateId(),
  1484.                             o = {
  1485.                                 id: n,
  1486.                                 topic: e,
  1487.                                 params: t,
  1488.                                 callback: r,
  1489.                                 data: {}
  1490.                             };
  1491.                         return this.listeners[e].push(o), this.registeredEvents[e].start(o), n
  1492.                     }
  1493.                 }, {
  1494.                     key: "unsubscribe",
  1495.                     value: function(e) {
  1496.                         var t = e.split(/:/, 2),
  1497.                             r = s(t, 1),
  1498.                             n = r[0],
  1499.                             o = this.getListener(e);
  1500.                         return o ? (this.registeredEvents[n].stop(o),
  1501.                             this.listeners[n] = this.listeners[n].filter(function(t) {
  1502.                                 return t.id !== e
  1503.                             }), !0) : !1
  1504.                     }
  1505.                 }, {
  1506.                     key: "getListener",
  1507.                     value: function(e) {
  1508.                         var t = e.split(/:/, 2),
  1509.                             r = s(t, 1),
  1510.                             n = r[0];
  1511.                         return (this.listeners[n] || []).filter(function(t) {
  1512.                             return t.id === e
  1513.                         })[0]
  1514.                     }
  1515.                 }, {
  1516.                     key: "emit",
  1517.                     value: function(e, t) {
  1518.                         var r = arguments.length <= 2 || void 0 === arguments[2] ? null : arguments[2];
  1519.                         (this.listeners[e] || []).forEach(function(e) {
  1520.                             return e.callback.call(null, r, t)
  1521.                         })
  1522.                     }
  1523.                 }, {
  1524.                     key: "emitError",
  1525.                     value: function(e, t) {
  1526.                         this.emit(e, null, t)
  1527.                     }
  1528.                 }]), e
  1529.             }();
  1530.         r["default"] = h, t.exports = r["default"]
  1531.     }, {
  1532.         "../util.js": 24,
  1533.         "./event/oauth.js": 16,
  1534.         "babel-runtime/helpers/class-call-check": 41,
  1535.         "babel-runtime/helpers/create-class": 42,
  1536.         "babel-runtime/helpers/interop-require-default": 46,
  1537.         "babel-runtime/helpers/interop-require-wildcard": 47,
  1538.         "babel-runtime/helpers/sliced-to-array": 49
  1539.     }],
  1540.     16: [function(e, t, r) {
  1541.         "use strict";
  1542.         var n = e("babel-runtime/helpers/create-class")["default"],
  1543.             o = e("babel-runtime/helpers/class-call-check")["default"];
  1544.         Object.defineProperty(r, "__esModule", {
  1545.             value: !0
  1546.         });
  1547.         var s = function() {
  1548.             function e(t) {
  1549.                 o(this, e), this.ninAcc = t
  1550.             }
  1551.             return n(e, [{
  1552.                 key: "start",
  1553.                 value: function(e) {
  1554.                     var t = this;
  1555.                     e.data.timerId = setInterval(function() {
  1556.                         t.ninAcc.oauth.checkSessionState(e.params.sessionState).then(function(r) {
  1557.                             "changed" == r.status && (t.ninAcc.event.emit(e.topic, r), t.ninAcc.event.unsubscribe(e.id))
  1558.                         })
  1559.                     }, 1e3)
  1560.                 }
  1561.             }, {
  1562.                 key: "stop",
  1563.                 value: function(e) {
  1564.                     clearInterval(e.data.timerId)
  1565.                 }
  1566.             }]), e
  1567.         }();
  1568.         r["default"] = s, t.exports = r["default"]
  1569.     }, {
  1570.         "babel-runtime/helpers/class-call-check": 41,
  1571.         "babel-runtime/helpers/create-class": 42
  1572.     }],
  1573.     17: [function(e, t, r) {
  1574.         "use strict";
  1575.         var n = e("babel-runtime/helpers/create-class")["default"],
  1576.             o = e("babel-runtime/helpers/class-call-check")["default"],
  1577.             s = e("babel-runtime/core-js/promise")["default"],
  1578.             i = e("babel-runtime/helpers/interop-require-wildcard")["default"],
  1579.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  1580.         Object.defineProperty(r, "__esModule", {
  1581.             value: !0
  1582.         });
  1583.         var u = e("../util.js"),
  1584.             l = i(u),
  1585.             c = e("../storage.js"),
  1586.             f = i(c),
  1587.             h = e("../chrome.js"),
  1588.             p = a(h),
  1589.             d = e("../channel.js"),
  1590.             m = e("url"),
  1591.             b = a(m),
  1592.             g = {
  1593.                 opframe: "/static/jssdk/opframe.2.0.0.html",
  1594.                 authorize: "/connect/1.0.0/authorize",
  1595.                 disconnect: "/connect/1.0.0/disconnect",
  1596.                 endSession: "/connect/1.0.0/end_session"
  1597.             },
  1598.             y = "op-frame",
  1599.             v = "op-immediate-login-frame",
  1600.             j = {
  1601.                 unauthenticatedWindow: "nintendo_account:unauthenticated_window",
  1602.                 logoutWindow: "nintendo_account:logout_window"
  1603.             },
  1604.             $ = l.invertKeyValues(j),
  1605.             w = function() {
  1606.                 function e(t) {
  1607.                     o(this, e), this.ninAcc = t, this.authzListeners = {}
  1608.                 }
  1609.                 return n(e, [{
  1610.                     key: "init",
  1611.                     value: function(e) {
  1612.                         var t = this,
  1613.                             r = e.connectOrigin,
  1614.                             n = e.apiOrigin,
  1615.                             o = e.eshopOrigin;
  1616.                         return $[window.name] && (window.name = ""), s.all([this.ninAcc._loadFrame(v, "about:blank"), this.ninAcc._loadFrame(y, r + b["default"].format({
  1617.                             pathname: g.opframe,
  1618.                             hash: l.encodeQuery({
  1619.                                 parent_origin: l.origin(),
  1620.                                 api_origin: n,
  1621.                                 eshop_origin: o
  1622.                             })
  1623.                         }))]).then(function(e) {
  1624.                             return e.forEach(function(e) {
  1625.                                 var n = e.name,
  1626.                                     o = e.frame;
  1627.                                 switch (n) {
  1628.                                     case v:
  1629.                                         t.immediateLoginFrame = o.frameElement, t.immediateLoginChannel = new d.WindowChannel(o, r, window.self);
  1630.                                         break;
  1631.                                     case y:
  1632.                                         t.opFrameChannel = new d.WindowChannel(o, r, window.self)
  1633.                                 }
  1634.                                 l.log.debug("[ninAcc.oauth] " + n + " is loaded")
  1635.                             }), s.resolve(e)
  1636.                         }).then(function() {
  1637.                             window.addEventListener("message", function(e) {
  1638.                                 e.data && "relay_request" === e.data.type && (l.log.debug("main frame receive 'relay_request'"), e.source.postMessage({
  1639.                                     type: "relay_response"
  1640.                                 }, r))
  1641.                             }), t.opFrameChannel.addNotifyListener("proxy_authorization_response", function(e) {
  1642.                                 l.log.debug("main frame receive 'proxy_authorization_response'", e);
  1643.                                 var r = e.extra,
  1644.                                     n = t.authzListeners[r.state];
  1645.                                 n || l.log.warn("unregistered authorization process", r), n(r)
  1646.                             })
  1647.                         })
  1648.                     }
  1649.                 }, {
  1650.                     key: "authorizationRequest",
  1651.                     value: function(e, t) {
  1652.                         var r = this;
  1653.                         return new s(function(t) {
  1654.                             r.authzListeners[e.state] = function(n) {
  1655.                                 delete r.authzListeners[e.state], t(r.processAuthorization(e, n))
  1656.                             }
  1657.                         })
  1658.                     }
  1659.                 }, {
  1660.                     key: "processAuthorization",
  1661.                     value: function(e, t) {
  1662.                         var r = !1,
  1663.                             n = !1,
  1664.                             o = {};
  1665.                         if (e.state !== t.state) l.log.warn("state is changed", e.state, t.state), o = {
  1666.                             error: "invalid_state",
  1667.                             error_description: "respond 'state' paramter does not match request"
  1668.                         };
  1669.                         else if (t.error) {
  1670.                             switch (t.error) {
  1671.                                 case "consent_required":
  1672.                                     r = !0;
  1673.                                     break;
  1674.                                 case "access_denied":
  1675.                                     r = !0
  1676.                             }
  1677.                             o = {
  1678.                                 error: t.error,
  1679.                                 error_description: t.error_description
  1680.                             }
  1681.                         } else r = !0, n = !0, t.session_state !== e.sessionState && l.log.debug("session_state is changed"), f.authorizeRequest.set(e.clientId, t.session_state, e), f.sessionState.set(e.clientId, t.session_state), t.id_token && (o.idToken = t.id_token), t.code && (o.code = t.code), t.token_type && (o.tokenType = t.token_type), t.expires_in && (o.expiresIn = t.expires_in), t.scope && (o.scope = t.scope.split(" ").sort());
  1682.                         return t.state && (o.state = t.state), t.session_state && (o.sessionState = t.session_state), {
  1683.                             login: r,
  1684.                             connected: n,
  1685.                             response: o
  1686.                         }
  1687.                     }
  1688.                 }, {
  1689.                     key: "getConnectedStatus",
  1690.                     value: function(e) {
  1691.                         var t = this,
  1692.                             r = arguments.length <= 1 || void 0 === arguments[1] ? function() {} : arguments[1];
  1693.                         l.log.debug("[ninAcc.oauth.getConnectedStatus] start");
  1694.                         var n = this.createRequest({
  1695.                             responseType: e.responseType || this.ninAcc.client.responseType,
  1696.                             scope: e.scope,
  1697.                             state: e.state,
  1698.                             prompt: "none",
  1699.                             display: "touch"
  1700.                         });
  1701.                         l.log.debug("[ninAcc.oauth.getConnectedStatus] send request", n), window.setTimeout(function() {
  1702.                             t.immediateLoginFrame.src = n.uri
  1703.                         }, 1), this.authorizationRequest(n, this.immediateLoginChannel.targetWindow).then(function(e) {
  1704.                             l.log.debug("[ninAcc.oauth.getConnectedStatus] done", e), e.response.error ? r(e) : r(null, e)
  1705.                         }, function(e) {
  1706.                             l.log.error("[ninAcc.oauth.getConnectedStatus] error", e)
  1707.                         })
  1708.                     }
  1709.                 }, {
  1710.                     key: "connect",
  1711.                     value: function(e) {
  1712.                         var t = arguments.length <= 1 || void 0 === arguments[1] ? function() {} : arguments[1];
  1713.                         l.log.debug("[ninAcc.oauth.connect] start");
  1714.                         var r = this.createRequest({
  1715.                             responseType: e.responseType || this.ninAcc.client.responseType,
  1716.                             scope: e.scope,
  1717.                             state: e.state,
  1718.                             prompt: "consent",
  1719.                             display: "touch"
  1720.                         });
  1721.                         l.log.debug("[ninAcc.oauth.connect] send request", r);
  1722.                         var n = p["default"].createWindow({
  1723.                             url: r.uri,
  1724.                             id: j.unauthenticatedWindow
  1725.                         });
  1726.                         this.authorizationRequest(r, n.window).then(function(e) {
  1727.                             l.log.debug("[ninAcc.oauth.connect] done", e), e.response.error ? t(e) : t(null, e)
  1728.                         }, function(e) {
  1729.                             l.log.error("[ninAcc.oauth.connect] error", e)
  1730.                         }).then(function() {
  1731.                             n.dispose()
  1732.                         })
  1733.                     }
  1734.                 }, {
  1735.                     key: "retryAuthorization",
  1736.                     value: function(e, t) {
  1737.                         var r = e.sessionState;
  1738.                         l.log.debug("[ninAcc.oauth.retryAuthorization] start");
  1739.                         var n = f.authorizeRequest.get(this.ninAcc.client.clientId, r);
  1740.                         n ? (l.log.debug("[ninAcc.oauth.retryAuthorization] reauthorize with last request params", n), this.getConnectedStatus({
  1741.                             responseType: n.responseType,
  1742.                             scope: n.scope
  1743.                         }, t)) : (l.log.info("retry authorization failed because last login history does not exist"), t({
  1744.                             response: {
  1745.                                 error: "unauthorized",
  1746.                                 error_description: "unauthorized"
  1747.                             }
  1748.                         }))
  1749.                     }
  1750.                 }, {
  1751.                     key: "disconnect",
  1752.                     value: function() {
  1753.                         l.log.debug("[ninAcc.oauth.disconnect] start")
  1754.                     }
  1755.                 }, {
  1756.                     key: "logout",
  1757.                     value: function() {
  1758.                         var e = this,
  1759.                             t = arguments.length <= 0 || void 0 === arguments[0] ? function() {} : arguments[0];
  1760.                         l.log.debug("[ninAcc.oauth.logout] start");
  1761.                         var r = this.ninAcc.client;
  1762.                         return new s(function(t) {
  1763.                             var n = p["default"].createWindow({
  1764.                                 url: "" + r.connectOrigin + g.endSession + "?" + l.encodeQuery({
  1765.                                     sdk_version: e.ninAcc.version,
  1766.                                     client_id: r.clientId,
  1767.                                     post_logout_redirect_uri: r.clientOrigin,
  1768.                                     response_mode: "web_message"
  1769.                                 }),
  1770.                                 id: j.logoutWindow
  1771.                             });
  1772.                             e.logoutChannel && e.logoutChannel.dispose();
  1773.                             var o = e.logoutChannel = new d.WindowChannel(n.window, r.connectOrigin, window.self);
  1774.                             o.addNotifyListener("logout_response", function(e) {
  1775.                                 l.log.debug("main frame receive 'logout_response' notification", e), n.dispose(), o.dispose(), t(e.extra)
  1776.                             })
  1777.                         }).then(function(r) {
  1778.                             r.error ? t(r) : (e.ninAcc.clearStorage(), t(null, r))
  1779.                         })
  1780.                     }
  1781.                 }, {
  1782.                     key: "checkSessionState",
  1783.                     value: function(e) {
  1784.                         var t = this;
  1785.                         return new s(function(r) {
  1786.                             t.opFrameChannel.request("session_state_change_request", {
  1787.                                 clientId: t.ninAcc.client.clientId,
  1788.                                 sessionState: e
  1789.                             }, function(e) {
  1790.                                 var n = e.result;
  1791.                                 "changed" === n.status && t.ninAcc.clearStorage(), r(n)
  1792.                             })
  1793.                         })
  1794.                     }
  1795.                 }, {
  1796.                     key: "clearSessionState",
  1797.                     value: function() {
  1798.                         f.sessionState.clear(this.ninAcc.client.clientId), f.authorizeRequest.clear(this.ninAcc.client.clientId)
  1799.                     }
  1800.                 }, {
  1801.                     key: "createRequest",
  1802.                     value: function(e) {
  1803.                         var t = {
  1804.                             clientId: e.clientId || this.ninAcc.client.clientId,
  1805.                             state: e.state || l.generateId(),
  1806.                             responseType: e.responseType || ["code", "token", "id_token"],
  1807.                             scope: e.scope || ["openid", "user"],
  1808.                             redirectUri: this.ninAcc.client.clientOrigin,
  1809.                             webMessageUri: this.opFrameChannel.targetOrigin,
  1810.                             webMessageTarget: y,
  1811.                             responseMode: "web_message",
  1812.                             prompt: e.prompt,
  1813.                             display: e.display
  1814.                         };
  1815.                         return t.uri = this.opFrameChannel.targetOrigin + g.authorize + "?" + l.encodeQuery({
  1816.                             client_id: t.clientId,
  1817.                             state: t.state,
  1818.                             response_type: t.responseType.sort().join(" "),
  1819.                             scope: t.scope.sort().join(" "),
  1820.                             redirect_uri: t.redirectUri,
  1821.                             web_message_uri: t.webMessageUri,
  1822.                             web_message_target: t.webMessageTarget,
  1823.                             response_mode: t.responseMode,
  1824.                             prompt: t.prompt,
  1825.                             display: t.display
  1826.                         }), t
  1827.                     }
  1828.                 }]), e
  1829.             }();
  1830.         r["default"] = w, t.exports = r["default"]
  1831.     }, {
  1832.         "../channel.js": 1,
  1833.         "../chrome.js": 2,
  1834.         "../storage.js": 19,
  1835.         "../util.js": 24,
  1836.         "babel-runtime/core-js/promise": 37,
  1837.         "babel-runtime/helpers/class-call-check": 41,
  1838.         "babel-runtime/helpers/create-class": 42,
  1839.         "babel-runtime/helpers/interop-require-default": 46,
  1840.         "babel-runtime/helpers/interop-require-wildcard": 47,
  1841.         url: 142
  1842.     }],
  1843.     18: [function(e, t, r) {
  1844.         "use strict";
  1845.  
  1846.         function n() {
  1847.             if ("undefined" != typeof o && o.defer) return o.defer();
  1848.             if ("undefined" != typeof PromiseUtils && PromiseUtils.defer) return PromiseUtils.defer();
  1849.             try {
  1850.                 this.resolve = null, this.reject = null, this.promise = new o(function(e, t) {
  1851.                     this.resolve = e, this.reject = t
  1852.                 }.bind(this)), s(this)
  1853.             } catch (e) {
  1854.                 throw new Error("Promise/Deferred is not available")
  1855.             }
  1856.         }
  1857.         var o = e("babel-runtime/core-js/promise")["default"],
  1858.             s = e("babel-runtime/core-js/object/freeze")["default"];
  1859.         Object.defineProperty(r, "__esModule", {
  1860.             value: !0
  1861.         }), r["default"] = n, t.exports = r["default"]
  1862.     }, {
  1863.         "babel-runtime/core-js/object/freeze": 33,
  1864.         "babel-runtime/core-js/promise": 37
  1865.     }],
  1866.     19: [function(e, t, r) {
  1867.         (function(t) {
  1868.             "use strict";
  1869.             var n = e("babel-runtime/helpers/create-class")["default"],
  1870.                 o = e("babel-runtime/helpers/class-call-check")["default"],
  1871.                 s = e("babel-runtime/helpers/interop-require-default")["default"],
  1872.                 i = e("babel-runtime/helpers/interop-require-wildcard")["default"],
  1873.                 a = e("babel-runtime/helpers/interop-require")["default"];
  1874.             Object.defineProperty(r, "__esModule", {
  1875.                 value: !0
  1876.             });
  1877.             var u = e("babel-runtime/core-js/string/starts-with"),
  1878.                 l = s(u),
  1879.                 c = e("./util.js"),
  1880.                 f = i(c),
  1881.                 h = function() {
  1882.                     function e() {
  1883.                         o(this, e), this.store = t.localStorage
  1884.                     }
  1885.                     return n(e, [{
  1886.                         key: "namespace",
  1887.                         get: function() {
  1888.                             throw Error("this is abstract method")
  1889.                         }
  1890.                     }]), n(e, [{
  1891.                         key: "prefix",
  1892.                         value: function() {
  1893.                             return this.namespace ? this.namespace + ":" : ""
  1894.                         }
  1895.                     }, {
  1896.                         key: "setItem",
  1897.                         value: function(e, t, r) {
  1898.                             var n = this.prefix() + e,
  1899.                                 o = {
  1900.                                     value: t
  1901.                                 };
  1902.                             if (r) {
  1903.                                 var s = f.unixtime() + r;
  1904.                                 o.expire = s
  1905.                             }
  1906.                             try {
  1907.                                 this.store.setItem(n, JSON.stringify(o))
  1908.                             } catch (i) {
  1909.                                 f.log.debug("Storage: setItem error = ", i)
  1910.                             }
  1911.                         }
  1912.                     }, {
  1913.                         key: "getItem",
  1914.                         value: function(e) {
  1915.                             var t = this.prefix() + e,
  1916.                                 r = void 0,
  1917.                                 n = this.store.getItem(t);
  1918.                             if (null === n) return null;
  1919.                             try {
  1920.                                 r = JSON.parse(n)
  1921.                             } catch (o) {
  1922.                                 return f.log.debug("nintendo.storage: JSON parse error: jsonItem = ", n), null
  1923.                             }
  1924.                             return r && (!r.expire || r.expire > f.unixtime()) ? r.value : (f.log.debug("nintendo.storage: getItem not found with k =", t), null)
  1925.                         }
  1926.                     }, {
  1927.                         key: "removeItem",
  1928.                         value: function(e) {
  1929.                             var t = this.prefix() + e;
  1930.                             this.store.removeItem(t)
  1931.                         }
  1932.                     }, {
  1933.                         key: "keys",
  1934.                         value: function() {
  1935.                             for (var e = [], t = this.prefix(), r = 0; r < this.store.length; r++) {
  1936.                                 var n = this.store.key(r);
  1937.                                 l["default"](n, t) && e.push(n.substring(t.length))
  1938.                             }
  1939.                             return e
  1940.                         }
  1941.                     }]), e
  1942.                 }();
  1943.             r["default"] = h;
  1944.             var p = e("./storage/authorizeRequest.js");
  1945.             r.authorizeRequest = a(p);
  1946.             var d = e("./storage/sessionState.js");
  1947.             r.sessionState = a(d);
  1948.             var m = e("./storage/status.js");
  1949.             r.status = a(m);
  1950.             var b = e("./storage/token.js");
  1951.             r.token = a(b)
  1952.         }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  1953.     }, {
  1954.         "./storage/authorizeRequest.js": 20,
  1955.         "./storage/sessionState.js": 21,
  1956.         "./storage/status.js": 22,
  1957.         "./storage/token.js": 23,
  1958.         "./util.js": 24,
  1959.         "babel-runtime/core-js/string/starts-with": 40,
  1960.         "babel-runtime/helpers/class-call-check": 41,
  1961.         "babel-runtime/helpers/create-class": 42,
  1962.         "babel-runtime/helpers/interop-require": 48,
  1963.         "babel-runtime/helpers/interop-require-default": 46,
  1964.         "babel-runtime/helpers/interop-require-wildcard": 47
  1965.     }],
  1966.     20: [function(e, t, r) {
  1967.         "use strict";
  1968.         var n = e("babel-runtime/helpers/get")["default"],
  1969.             o = e("babel-runtime/helpers/inherits")["default"],
  1970.             s = e("babel-runtime/helpers/create-class")["default"],
  1971.             i = e("babel-runtime/helpers/class-call-check")["default"],
  1972.             a = e("babel-runtime/core-js/get-iterator")["default"],
  1973.             u = e("babel-runtime/helpers/interop-require-default")["default"];
  1974.         Object.defineProperty(r, "__esModule", {
  1975.             value: !0
  1976.         });
  1977.         var l = e("../storage.js"),
  1978.             c = u(l),
  1979.             f = e("babel-runtime/core-js/string/starts-with"),
  1980.             h = u(f),
  1981.             p = function(e) {
  1982.                 function t() {
  1983.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  1984.                 }
  1985.                 return o(t, e), s(t, [{
  1986.                     key: "key",
  1987.                     value: function(e, t) {
  1988.                         return "authorize_params:" + e + ":" + t
  1989.                     }
  1990.                 }, {
  1991.                     key: "get",
  1992.                     value: function(e, t) {
  1993.                         return this.getItem(this.key(e, t))
  1994.                     }
  1995.                 }, {
  1996.                     key: "set",
  1997.                     value: function(e, t, r) {
  1998.                         this.setItem(this.key(e, t), r)
  1999.                     }
  2000.                 }, {
  2001.                     key: "clear",
  2002.                     value: function(e) {
  2003.                         var t = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1];
  2004.                         if (t) this.removeItem(this.key(e, t));
  2005.                         else {
  2006.                             var r = this.keys(),
  2007.                                 n = this.key(e, ""),
  2008.                                 o = !0,
  2009.                                 s = !1,
  2010.                                 i = void 0;
  2011.                             try {
  2012.                                 for (var u, l = a(r); !(o = (u = l.next()).done); o = !0) {
  2013.                                     var c = u.value;
  2014.                                     h["default"](c, n) && this.removeItem(c)
  2015.                                 }
  2016.                             } catch (f) {
  2017.                                 s = !0, i = f
  2018.                             } finally {
  2019.                                 try {
  2020.                                     !o && l["return"] && l["return"]()
  2021.                                 } finally {
  2022.                                     if (s) throw i
  2023.                                 }
  2024.                             }
  2025.                         }
  2026.                     }
  2027.                 }, {
  2028.                     key: "namespace",
  2029.                     get: function() {
  2030.                         return "npf"
  2031.                     }
  2032.                 }]), t
  2033.             }(c["default"]);
  2034.         r["default"] = new p, t.exports = r["default"]
  2035.     }, {
  2036.         "../storage.js": 19,
  2037.         "babel-runtime/core-js/get-iterator": 28,
  2038.         "babel-runtime/core-js/string/starts-with": 40,
  2039.         "babel-runtime/helpers/class-call-check": 41,
  2040.         "babel-runtime/helpers/create-class": 42,
  2041.         "babel-runtime/helpers/get": 44,
  2042.         "babel-runtime/helpers/inherits": 45,
  2043.         "babel-runtime/helpers/interop-require-default": 46
  2044.     }],
  2045.     21: [function(e, t, r) {
  2046.         "use strict";
  2047.         var n = e("babel-runtime/helpers/get")["default"],
  2048.             o = e("babel-runtime/helpers/inherits")["default"],
  2049.             s = e("babel-runtime/helpers/create-class")["default"],
  2050.             i = e("babel-runtime/helpers/class-call-check")["default"],
  2051.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  2052.         Object.defineProperty(r, "__esModule", {
  2053.             value: !0
  2054.         });
  2055.         var u = e("../storage.js"),
  2056.             l = a(u),
  2057.             c = function(e) {
  2058.                 function t() {
  2059.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  2060.                 }
  2061.                 return o(t, e), s(t, [{
  2062.                     key: "key",
  2063.                     value: function(e) {
  2064.                         return "session_state:" + e
  2065.                     }
  2066.                 }, {
  2067.                     key: "get",
  2068.                     value: function(e) {
  2069.                         return this.getItem(this.key(e))
  2070.                     }
  2071.                 }, {
  2072.                     key: "set",
  2073.                     value: function(e, t) {
  2074.                         this.setItem(this.key(e), t)
  2075.                     }
  2076.                 }, {
  2077.                     key: "clear",
  2078.                     value: function(e) {
  2079.                         this.removeItem(this.key(e))
  2080.                     }
  2081.                 }, {
  2082.                     key: "namespace",
  2083.                     get: function() {
  2084.                         return "npf"
  2085.                     }
  2086.                 }]), t
  2087.             }(l["default"]);
  2088.         r["default"] = new c, t.exports = r["default"]
  2089.     }, {
  2090.         "../storage.js": 19,
  2091.         "babel-runtime/helpers/class-call-check": 41,
  2092.         "babel-runtime/helpers/create-class": 42,
  2093.         "babel-runtime/helpers/get": 44,
  2094.         "babel-runtime/helpers/inherits": 45,
  2095.         "babel-runtime/helpers/interop-require-default": 46
  2096.     }],
  2097.     22: [function(e, t, r) {
  2098.         "use strict";
  2099.         var n = e("babel-runtime/helpers/get")["default"],
  2100.             o = e("babel-runtime/helpers/inherits")["default"],
  2101.             s = e("babel-runtime/helpers/create-class")["default"],
  2102.             i = e("babel-runtime/helpers/class-call-check")["default"],
  2103.             a = e("babel-runtime/helpers/interop-require-default")["default"];
  2104.         Object.defineProperty(r, "__esModule", {
  2105.             value: !0
  2106.         });
  2107.         var u = e("../storage.js"),
  2108.             l = a(u),
  2109.             c = function(e) {
  2110.                 function t() {
  2111.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  2112.                 }
  2113.                 return o(t, e), s(t, [{
  2114.                     key: "key",
  2115.                     value: function(e) {
  2116.                         return "status:" + e
  2117.                     }
  2118.                 }, {
  2119.                     key: "set",
  2120.                     value: function(e, t) {
  2121.                         var r = t.accessToken,
  2122.                             n = t.expiresIn,
  2123.                             o = t.scope;
  2124.                         this.setItem(this.key(e), {
  2125.                             access_token: r,
  2126.                             expires_in: n,
  2127.                             scope: o
  2128.                         })
  2129.                     }
  2130.                 }, {
  2131.                     key: "get",
  2132.                     value: function(e) {
  2133.                         return this.getItem(this.key(e))
  2134.                     }
  2135.                 }, {
  2136.                     key: "clear",
  2137.                     value: function(e) {
  2138.                         this.removeItem(this.key(e))
  2139.                     }
  2140.                 }, {
  2141.                     key: "namespace",
  2142.                     get: function() {
  2143.                         return "opframe"
  2144.                     }
  2145.                 }, {
  2146.                     key: "expire",
  2147.                     get: function() {
  2148.                         return 900
  2149.                     }
  2150.                 }]), t
  2151.             }(l["default"]);
  2152.         r["default"] = new c, t.exports = r["default"]
  2153.     }, {
  2154.         "../storage.js": 19,
  2155.         "babel-runtime/helpers/class-call-check": 41,
  2156.         "babel-runtime/helpers/create-class": 42,
  2157.         "babel-runtime/helpers/get": 44,
  2158.         "babel-runtime/helpers/inherits": 45,
  2159.         "babel-runtime/helpers/interop-require-default": 46
  2160.     }],
  2161.     23: [function(e, t, r) {
  2162.         "use strict";
  2163.         var n = e("babel-runtime/helpers/get")["default"],
  2164.             o = e("babel-runtime/helpers/inherits")["default"],
  2165.             s = e("babel-runtime/helpers/create-class")["default"],
  2166.             i = e("babel-runtime/helpers/class-call-check")["default"],
  2167.             a = e("babel-runtime/core-js/object/keys")["default"],
  2168.             u = e("babel-runtime/helpers/interop-require-default")["default"],
  2169.             l = e("babel-runtime/helpers/interop-require-wildcard")["default"];
  2170.         Object.defineProperty(r, "__esModule", {
  2171.             value: !0
  2172.         });
  2173.         var c = e("../storage.js"),
  2174.             f = u(c),
  2175.             h = e("../util.js"),
  2176.             p = l(h),
  2177.             d = function(e) {
  2178.                 function t() {
  2179.                     i(this, t), n(Object.getPrototypeOf(t.prototype), "constructor", this).apply(this, arguments)
  2180.                 }
  2181.                 return o(t, e), s(t, [{
  2182.                     key: "key",
  2183.                     value: function(e) {
  2184.                         var t = e.sessionState,
  2185.                             r = e.clientOrigin;
  2186.                         return "tokenData:" + r + ":" + t
  2187.                     }
  2188.                 }, {
  2189.                     key: "setTokens",
  2190.                     value: function(e) {
  2191.                         var t = parseInt(e.expires_in),
  2192.                             r = {};
  2193.                         e.scope && e.scope.forEach(function(e) {
  2194.                             r[e] = !0
  2195.                         });
  2196.                         var n = {
  2197.                             access_token: e.access_token,
  2198.                             scopes: r
  2199.                         };
  2200.                         p.log.debug("stored tokens to storage:", n), this.setItem(this.key(e.storage_suffix), n, t)
  2201.                     }
  2202.                 }, {
  2203.                     key: "getTokens",
  2204.                     value: function(e) {
  2205.                         var t = this.getItem(this.key(e.storage_suffix));
  2206.                         return t ? (p.log.debug("token not expired: tokenData = ", t), e.scope && e.scope.some(function(e) {
  2207.                             return !t.scopes[e]
  2208.                         }) ? (p.log.debug("claimed scopes are not fully authorized before: claimed =", e.scope, "authorized =", a(t.scopes)), null) : t) : (p.log.debug("token not found or expired: tokenData = ", t), null)
  2209.                     }
  2210.                 }, {
  2211.                     key: "removeTokens",
  2212.                     value: function(e) {
  2213.                         this.removeItem(this.key(e.storage_suffix))
  2214.                     }
  2215.                 }, {
  2216.                     key: "namespace",
  2217.                     get: function() {
  2218.                         return "xdframe"
  2219.                     }
  2220.                 }]), t
  2221.             }(f["default"]);
  2222.         r["default"] = new d, t.exports = r["default"]
  2223.     }, {
  2224.         "../storage.js": 19,
  2225.         "../util.js": 24,
  2226.         "babel-runtime/core-js/object/keys": 35,
  2227.         "babel-runtime/helpers/class-call-check": 41,
  2228.         "babel-runtime/helpers/create-class": 42,
  2229.         "babel-runtime/helpers/get": 44,
  2230.         "babel-runtime/helpers/inherits": 45,
  2231.         "babel-runtime/helpers/interop-require-default": 46,
  2232.         "babel-runtime/helpers/interop-require-wildcard": 47
  2233.     }],
  2234.     24: [function(e, t, r) {
  2235.         "use strict";
  2236.  
  2237.         function n() {
  2238.             return Date.now() / 1e3 | 0
  2239.         }
  2240.  
  2241.         function o() {
  2242.             return Math.floor(n())
  2243.         }
  2244.  
  2245.         function s(e) {
  2246.             return a(document.cookie, "; ")[e]
  2247.         }
  2248.  
  2249.         function i() {
  2250.             return Array.apply(null, Array(32)).map(function() {
  2251.                 return Math.floor(16 * Math.random()).toString(16)
  2252.             }).join("")
  2253.         }
  2254.  
  2255.         function a(e) {
  2256.             var t = arguments.length <= 1 || void 0 === arguments[1] ? "&" : arguments[1];
  2257.             return e.split(t).map(function(e) {
  2258.                 return e.split("=", 2)
  2259.             }).reduce(function(e, t) {
  2260.                 return t[0].length > 0 && (e[decodeURIComponent(t[0])] = decodeURIComponent(t[1])), e
  2261.             }, {})
  2262.         }
  2263.  
  2264.         function u(e) {
  2265.             var t = arguments.length <= 1 || void 0 === arguments[1] ? "&" : arguments[1];
  2266.             return v(e).map(function(t) {
  2267.                 return encodeURIComponent(t) + "=" + encodeURIComponent(e[t] || "")
  2268.             }).join(t)
  2269.         }
  2270.  
  2271.         function l() {
  2272.             var e = arguments.length <= 0 || void 0 === arguments[0] ? "" : arguments[0];
  2273.             return c(e).replace(/[A-Z]/g, function(e) {
  2274.                 return "_" + e.toLowerCase()
  2275.             })
  2276.         }
  2277.  
  2278.         function c(e) {
  2279.             return f(e).replace(/^./, function(e) {
  2280.                 return e.toLowerCase()
  2281.             })
  2282.         }
  2283.  
  2284.         function f() {
  2285.             var e = arguments.length <= 0 || void 0 === arguments[0] ? "" : arguments[0];
  2286.             return e.split(/[-_\s]+/).map(function(e) {
  2287.                 return e.slice(0, 1).toUpperCase() + e.slice(1)
  2288.             }).join("")
  2289.         }
  2290.  
  2291.         function h(e) {
  2292.             return e.split("\n").map(function(e) {
  2293.                 return (e || "").trim().split(":", 2)
  2294.             }).reduce(function(e, t) {
  2295.                 return t[0].length > 0 && (e[t[0]] = (t[1] || "").trim()), e
  2296.             }, {})
  2297.         }
  2298.  
  2299.         function p(e) {
  2300.             return new j(function(t) {
  2301.                 return window.setTimeout(t, e)
  2302.             })
  2303.         }
  2304.  
  2305.         function d(e) {
  2306.             return p(e).then(function() {
  2307.                 return j.reject()
  2308.             })
  2309.         }
  2310.  
  2311.         function m(e) {
  2312.             var t = document.createElement("a");
  2313.             return t.href = e, t.origin || t.protocol + "//" + t.hostname
  2314.         }
  2315.  
  2316.         function b() {
  2317.             var e = navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);
  2318.             return e ? parseInt(e[1]) : void 0
  2319.         }
  2320.  
  2321.         function g() {
  2322.             return window.location.origin || window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "")
  2323.         }
  2324.  
  2325.         function y(e) {
  2326.             var t = {};
  2327.             for (var r in e) e.hasOwnProperty(r) && (t[e[r]] = r);
  2328.             return t
  2329.         }
  2330.         var v = e("babel-runtime/core-js/object/keys")["default"],
  2331.             j = e("babel-runtime/core-js/promise")["default"];
  2332.         Object.defineProperty(r, "__esModule", {
  2333.             value: !0
  2334.         }), r.unixtime = n, r.unixtimeStamp = o, r.getCookie = s, r.generateId = i, r.decodeQuery = a, r.encodeQuery = u, r.decamelize = l, r.camelize = c, r.pascalize = f, r.parseHeaderText = h, r.delayPromise = p, r.timeoutPromise = d, r.parseOrigin = m, r.getIEVersion = b, r.origin = g, r.invertKeyValues = y;
  2335.         var $ = e("./util/log.js");
  2336.         Object.defineProperty(r, "log", {
  2337.             enumerable: !0,
  2338.             get: function() {
  2339.                 return $.log
  2340.             }
  2341.         });
  2342.         var w = e("./util/sequence.js");
  2343.         Object.defineProperty(r, "sequence", {
  2344.             enumerable: !0,
  2345.             get: function() {
  2346.                 return w.sequence
  2347.             }
  2348.         })
  2349.     }, {
  2350.         "./util/log.js": 25,
  2351.         "./util/sequence.js": 26,
  2352.         "babel-runtime/core-js/object/keys": 35,
  2353.         "babel-runtime/core-js/promise": 37
  2354.     }],
  2355.     25: [function(e, t, r) {
  2356.         "use strict";
  2357.         var n = e("babel-runtime/helpers/create-class")["default"],
  2358.             o = e("babel-runtime/helpers/class-call-check")["default"];
  2359.         Object.defineProperty(r, "__esModule", {
  2360.             value: !0
  2361.         });
  2362.         var s = 1,
  2363.             i = 2,
  2364.             a = 3,
  2365.             u = 4,
  2366.             l = {
  2367.                 debug: s,
  2368.                 info: i,
  2369.                 warn: a,
  2370.                 crit: u
  2371.             },
  2372.             c = function() {},
  2373.             f = function() {
  2374.                 function e(t) {
  2375.                     o(this, e), t || (t = "debug"), this.setLogLevel(t)
  2376.                 }
  2377.                 return n(e, [{
  2378.                     key: "setLogLevel",
  2379.                     value: function(e) {
  2380.                         this.logLevel = l[e], this.debug = this.logLevel <= s ? Function.prototype.bind.call(console.log, console) : c, this.info = this.logLevel <= i ? Function.prototype.bind.call(console.log, console) : c, this.warn = this.logLevel <= a ? Function.prototype.bind.call(console.warn, console) : c, this.crit = this.logLevel <= u ? Function.prototype.bind.call(console.error, console) : c, this.error = Function.prototype.bind.call(console.error, console)
  2381.                     }
  2382.                 }]), e
  2383.             }(),
  2384.             h = new f("warn");
  2385.         r.log = h
  2386.     }, {
  2387.         "babel-runtime/helpers/class-call-check": 41,
  2388.         "babel-runtime/helpers/create-class": 42
  2389.     }],
  2390.     26: [function(e, t, r) {
  2391.         "use strict";
  2392.         var n = e("babel-runtime/helpers/create-class")["default"],
  2393.             o = e("babel-runtime/helpers/class-call-check")["default"];
  2394.         Object.defineProperty(r, "__esModule", {
  2395.             value: !0
  2396.         });
  2397.         var s = Math.pow(2, 53),
  2398.             i = function() {
  2399.                 function e() {
  2400.                     o(this, e), this.sequences = {}
  2401.                 }
  2402.                 return n(e, [{
  2403.                     key: "next",
  2404.                     value: function(e) {
  2405.                         return this.sequences[e] || (this.sequences[e] = 0), ++this.sequences[e] === s && (this.sequences[e] = 1), this.sequences[e]
  2406.                     }
  2407.                 }, {
  2408.                     key: "reset",
  2409.                     value: function(e) {
  2410.                         this.sequences[e] = 0
  2411.                     }
  2412.                 }]), e
  2413.             }(),
  2414.             a = new i;
  2415.         r.sequence = a
  2416.     }, {
  2417.         "babel-runtime/helpers/class-call-check": 41,
  2418.         "babel-runtime/helpers/create-class": 42
  2419.     }],
  2420.     27: [function(e, t, r) {
  2421.         t.exports = {
  2422.             "default": e("core-js/library/fn/array/from"),
  2423.             __esModule: !0
  2424.         }
  2425.     }, {
  2426.         "core-js/library/fn/array/from": 51
  2427.     }],
  2428.     28: [function(e, t, r) {
  2429.         t.exports = {
  2430.             "default": e("core-js/library/fn/get-iterator"),
  2431.             __esModule: !0
  2432.         }
  2433.     }, {
  2434.         "core-js/library/fn/get-iterator": 52
  2435.     }],
  2436.     29: [function(e, t, r) {
  2437.         t.exports = {
  2438.             "default": e("core-js/library/fn/is-iterable"),
  2439.             __esModule: !0
  2440.         }
  2441.     }, {
  2442.         "core-js/library/fn/is-iterable": 53
  2443.     }],
  2444.     30: [function(e, t, r) {
  2445.         t.exports = {
  2446.             "default": e("core-js/library/fn/object/assign"),
  2447.             __esModule: !0
  2448.         }
  2449.     }, {
  2450.         "core-js/library/fn/object/assign": 54
  2451.     }],
  2452.     31: [function(e, t, r) {
  2453.         t.exports = {
  2454.             "default": e("core-js/library/fn/object/create"),
  2455.             __esModule: !0
  2456.         }
  2457.     }, {
  2458.         "core-js/library/fn/object/create": 55
  2459.     }],
  2460.     32: [function(e, t, r) {
  2461.         t.exports = {
  2462.             "default": e("core-js/library/fn/object/define-property"),
  2463.             __esModule: !0
  2464.         }
  2465.     }, {
  2466.         "core-js/library/fn/object/define-property": 56
  2467.     }],
  2468.     33: [function(e, t, r) {
  2469.         t.exports = {
  2470.             "default": e("core-js/library/fn/object/freeze"),
  2471.             __esModule: !0
  2472.         }
  2473.     }, {
  2474.         "core-js/library/fn/object/freeze": 57
  2475.     }],
  2476.     34: [function(e, t, r) {
  2477.         t.exports = {
  2478.             "default": e("core-js/library/fn/object/get-own-property-descriptor"),
  2479.             __esModule: !0
  2480.         }
  2481.     }, {
  2482.         "core-js/library/fn/object/get-own-property-descriptor": 58
  2483.     }],
  2484.     35: [function(e, t, r) {
  2485.         t.exports = {
  2486.             "default": e("core-js/library/fn/object/keys"),
  2487.             __esModule: !0
  2488.         }
  2489.     }, {
  2490.         "core-js/library/fn/object/keys": 59
  2491.     }],
  2492.     36: [function(e, t, r) {
  2493.         t.exports = {
  2494.             "default": e("core-js/library/fn/object/set-prototype-of"),
  2495.             __esModule: !0
  2496.         }
  2497.     }, {
  2498.         "core-js/library/fn/object/set-prototype-of": 60
  2499.     }],
  2500.     37: [function(e, t, r) {
  2501.         t.exports = {
  2502.             "default": e("core-js/library/fn/promise"),
  2503.             __esModule: !0
  2504.         }
  2505.     }, {
  2506.         "core-js/library/fn/promise": 61
  2507.     }],
  2508.     38: [function(e, t, r) {
  2509.         t.exports = {
  2510.             "default": e("core-js/library/fn/reflect/construct"),
  2511.             __esModule: !0
  2512.         }
  2513.     }, {
  2514.         "core-js/library/fn/reflect/construct": 62
  2515.     }],
  2516.     39: [function(e, t, r) {
  2517.         t.exports = {
  2518.             "default": e("core-js/library/fn/set"),
  2519.             __esModule: !0
  2520.         }
  2521.     }, {
  2522.         "core-js/library/fn/set": 63
  2523.     }],
  2524.     40: [function(e, t, r) {
  2525.         t.exports = {
  2526.             "default": e("core-js/library/fn/string/starts-with"),
  2527.             __esModule: !0
  2528.         }
  2529.     }, {
  2530.         "core-js/library/fn/string/starts-with": 64
  2531.     }],
  2532.     41: [function(e, t, r) {
  2533.         "use strict";
  2534.         r["default"] = function(e, t) {
  2535.             if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  2536.         }, r.__esModule = !0
  2537.     }, {}],
  2538.     42: [function(e, t, r) {
  2539.         "use strict";
  2540.         var n = e("babel-runtime/core-js/object/define-property")["default"];
  2541.         r["default"] = function() {
  2542.             function e(e, t) {
  2543.                 for (var r = 0; r < t.length; r++) {
  2544.                     var o = t[r];
  2545.                     o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), n(e, o.key, o)
  2546.                 }
  2547.             }
  2548.             return function(t, r, n) {
  2549.                 return r && e(t.prototype, r), n && e(t, n), t
  2550.             }
  2551.         }(), r.__esModule = !0
  2552.     }, {
  2553.         "babel-runtime/core-js/object/define-property": 32
  2554.     }],
  2555.     43: [function(e, t, r) {
  2556.         "use strict";
  2557.         var n = e("babel-runtime/core-js/object/define-property")["default"];
  2558.         r["default"] = function(e, t, r) {
  2559.             return t in e ? n(e, t, {
  2560.                 value: r,
  2561.                 enumerable: !0,
  2562.                 configurable: !0,
  2563.                 writable: !0
  2564.             }) : e[t] = r, e
  2565.         }, r.__esModule = !0
  2566.     }, {
  2567.         "babel-runtime/core-js/object/define-property": 32
  2568.     }],
  2569.     44: [function(e, t, r) {
  2570.         "use strict";
  2571.         var n = e("babel-runtime/core-js/object/get-own-property-descriptor")["default"];
  2572.         r["default"] = function(e, t, r) {
  2573.             for (var o = !0; o;) {
  2574.                 var s = e,
  2575.                     i = t,
  2576.                     a = r;
  2577.                 u = c = l = void 0, o = !1, null === s && (s = Function.prototype);
  2578.                 var u = n(s, i);
  2579.                 if (void 0 !== u) {
  2580.                     if ("value" in u) return u.value;
  2581.                     var l = u.get;
  2582.                     return void 0 === l ? void 0 : l.call(a)
  2583.                 }
  2584.                 var c = Object.getPrototypeOf(s);
  2585.                 if (null === c) return void 0;
  2586.                 e = c, t = i, r = a, o = !0
  2587.             }
  2588.         }, r.__esModule = !0
  2589.     }, {
  2590.         "babel-runtime/core-js/object/get-own-property-descriptor": 34
  2591.     }],
  2592.     45: [function(e, t, r) {
  2593.         "use strict";
  2594.         var n = e("babel-runtime/core-js/object/create")["default"],
  2595.             o = e("babel-runtime/core-js/object/set-prototype-of")["default"];
  2596.         r["default"] = function(e, t) {
  2597.             if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
  2598.             e.prototype = n(t && t.prototype, {
  2599.                 constructor: {
  2600.                     value: e,
  2601.                     enumerable: !1,
  2602.                     writable: !0,
  2603.                     configurable: !0
  2604.                 }
  2605.             }), t && (o ? o(e, t) : e.__proto__ = t)
  2606.         }, r.__esModule = !0
  2607.     }, {
  2608.         "babel-runtime/core-js/object/create": 31,
  2609.         "babel-runtime/core-js/object/set-prototype-of": 36
  2610.     }],
  2611.     46: [function(e, t, r) {
  2612.         "use strict";
  2613.         r["default"] = function(e) {
  2614.             return e && e.__esModule ? e : {
  2615.                 "default": e
  2616.             }
  2617.         }, r.__esModule = !0
  2618.     }, {}],
  2619.     47: [function(e, t, r) {
  2620.         "use strict";
  2621.         r["default"] = function(e) {
  2622.             if (e && e.__esModule) return e;
  2623.             var t = {};
  2624.             if (null != e)
  2625.                 for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
  2626.             return t["default"] = e, t
  2627.         }, r.__esModule = !0
  2628.     }, {}],
  2629.     48: [function(e, t, r) {
  2630.         "use strict";
  2631.         r["default"] = function(e) {
  2632.             return e && e.__esModule ? e["default"] : e
  2633.         }, r.__esModule = !0
  2634.     }, {}],
  2635.     49: [function(e, t, r) {
  2636.         "use strict";
  2637.         var n = e("babel-runtime/core-js/get-iterator")["default"],
  2638.             o = e("babel-runtime/core-js/is-iterable")["default"];
  2639.         r["default"] = function() {
  2640.             function e(e, t) {
  2641.                 var r = [],
  2642.                     o = !0,
  2643.                     s = !1,
  2644.                     i = void 0;
  2645.                 try {
  2646.                     for (var a, u = n(e); !(o = (a = u.next()).done) && (r.push(a.value), !t || r.length !== t); o = !0);
  2647.                 } catch (l) {
  2648.                     s = !0, i = l
  2649.                 } finally {
  2650.                     try {
  2651.                         !o && u["return"] && u["return"]()
  2652.                     } finally {
  2653.                         if (s) throw i
  2654.                     }
  2655.                 }
  2656.                 return r
  2657.             }
  2658.             return function(t, r) {
  2659.                 if (Array.isArray(t)) return t;
  2660.                 if (o(Object(t))) return e(t, r);
  2661.                 throw new TypeError("Invalid attempt to destructure non-iterable instance")
  2662.             }
  2663.         }(), r.__esModule = !0
  2664.     }, {
  2665.         "babel-runtime/core-js/get-iterator": 28,
  2666.         "babel-runtime/core-js/is-iterable": 29
  2667.     }],
  2668.     50: [function(e, t, r) {
  2669.         "use strict";
  2670.         var n = e("babel-runtime/core-js/array/from")["default"];
  2671.         r["default"] = function(e) {
  2672.             if (Array.isArray(e)) {
  2673.                 for (var t = 0, r = Array(e.length); t < e.length; t++) r[t] = e[t];
  2674.                 return r
  2675.             }
  2676.             return n(e)
  2677.         }, r.__esModule = !0
  2678.     }, {
  2679.         "babel-runtime/core-js/array/from": 27
  2680.     }],
  2681.     51: [function(e, t, r) {
  2682.         e("../../modules/es6.string.iterator"), e("../../modules/es6.array.from"), t.exports = e("../../modules/$.core").Array.from
  2683.     }, {
  2684.         "../../modules/$.core": 73,
  2685.         "../../modules/es6.array.from": 123,
  2686.         "../../modules/es6.string.iterator": 134
  2687.     }],
  2688.     52: [function(e, t, r) {
  2689.         e("../modules/web.dom.iterable"), e("../modules/es6.string.iterator"), t.exports = e("../modules/core.get-iterator")
  2690.     }, {
  2691.         "../modules/core.get-iterator": 121,
  2692.         "../modules/es6.string.iterator": 134,
  2693.         "../modules/web.dom.iterable": 137
  2694.     }],
  2695.     53: [function(e, t, r) {
  2696.         e("../modules/web.dom.iterable"), e("../modules/es6.string.iterator"), t.exports = e("../modules/core.is-iterable")
  2697.     }, {
  2698.         "../modules/core.is-iterable": 122,
  2699.         "../modules/es6.string.iterator": 134,
  2700.         "../modules/web.dom.iterable": 137
  2701.     }],
  2702.     54: [function(e, t, r) {
  2703.         e("../../modules/es6.object.assign"), t.exports = e("../../modules/$.core").Object.assign
  2704.     }, {
  2705.         "../../modules/$.core": 73,
  2706.         "../../modules/es6.object.assign": 125
  2707.     }],
  2708.     55: [function(e, t, r) {
  2709.         var n = e("../../modules/$");
  2710.         t.exports = function(e, t) {
  2711.             return n.create(e, t)
  2712.         }
  2713.     }, {
  2714.         "../../modules/$": 96
  2715.     }],
  2716.     56: [function(e, t, r) {
  2717.         var n = e("../../modules/$");
  2718.         t.exports = function(e, t, r) {
  2719.             return n.setDesc(e, t, r)
  2720.         }
  2721.     }, {
  2722.         "../../modules/$": 96
  2723.     }],
  2724.     57: [function(e, t, r) {
  2725.         e("../../modules/es6.object.freeze"), t.exports = e("../../modules/$.core").Object.freeze
  2726.     }, {
  2727.         "../../modules/$.core": 73,
  2728.         "../../modules/es6.object.freeze": 126
  2729.     }],
  2730.     58: [function(e, t, r) {
  2731.         var n = e("../../modules/$");
  2732.         e("../../modules/es6.object.get-own-property-descriptor"), t.exports = function(e, t) {
  2733.             return n.getDesc(e, t)
  2734.         }
  2735.     }, {
  2736.         "../../modules/$": 96,
  2737.         "../../modules/es6.object.get-own-property-descriptor": 127
  2738.     }],
  2739.     59: [function(e, t, r) {
  2740.         e("../../modules/es6.object.keys"), t.exports = e("../../modules/$.core").Object.keys
  2741.     }, {
  2742.         "../../modules/$.core": 73,
  2743.         "../../modules/es6.object.keys": 128
  2744.     }],
  2745.     60: [function(e, t, r) {
  2746.         e("../../modules/es6.object.set-prototype-of"), t.exports = e("../../modules/$.core").Object.setPrototypeOf
  2747.     }, {
  2748.         "../../modules/$.core": 73,
  2749.         "../../modules/es6.object.set-prototype-of": 129
  2750.     }],
  2751.     61: [function(e, t, r) {
  2752.         e("../modules/es6.object.to-string"), e("../modules/es6.string.iterator"), e("../modules/web.dom.iterable"), e("../modules/es6.promise"), t.exports = e("../modules/$.core").Promise
  2753.     }, {
  2754.         "../modules/$.core": 73,
  2755.         "../modules/es6.object.to-string": 130,
  2756.         "../modules/es6.promise": 131,
  2757.         "../modules/es6.string.iterator": 134,
  2758.         "../modules/web.dom.iterable": 137
  2759.     }],
  2760.     62: [function(e, t, r) {
  2761.         e("../../modules/es6.reflect.construct"), t.exports = e("../../modules/$.core").Reflect.construct
  2762.     }, {
  2763.         "../../modules/$.core": 73,
  2764.         "../../modules/es6.reflect.construct": 132
  2765.     }],
  2766.     63: [function(e, t, r) {
  2767.         e("../modules/es6.object.to-string"), e("../modules/es6.string.iterator"), e("../modules/web.dom.iterable"), e("../modules/es6.set"), e("../modules/es7.set.to-json"), t.exports = e("../modules/$.core").Set
  2768.     }, {
  2769.         "../modules/$.core": 73,
  2770.         "../modules/es6.object.to-string": 130,
  2771.         "../modules/es6.set": 133,
  2772.         "../modules/es6.string.iterator": 134,
  2773.         "../modules/es7.set.to-json": 136,
  2774.         "../modules/web.dom.iterable": 137
  2775.     }],
  2776.     64: [function(e, t, r) {
  2777.         e("../../modules/es6.string.starts-with"), t.exports = e("../../modules/$.core").String.startsWith
  2778.     }, {
  2779.         "../../modules/$.core": 73,
  2780.         "../../modules/es6.string.starts-with": 135
  2781.     }],
  2782.     65: [function(e, t, r) {
  2783.         t.exports = function(e) {
  2784.             if ("function" != typeof e) throw TypeError(e + " is not a function!");
  2785.             return e
  2786.         }
  2787.     }, {}],
  2788.     66: [function(e, t, r) {
  2789.         var n = e("./$.is-object");
  2790.         t.exports = function(e) {
  2791.             if (!n(e)) throw TypeError(e + " is not an object!");
  2792.             return e
  2793.         }
  2794.     }, {
  2795.         "./$.is-object": 88
  2796.     }],
  2797.     67: [function(e, t, r) {
  2798.         var n = e("./$.to-object"),
  2799.             o = e("./$.iobject"),
  2800.             s = e("./$.enum-keys");
  2801.         t.exports = Object.assign || function(e, t) {
  2802.             for (var r = n(e), i = arguments.length, a = 1; i > a;)
  2803.                 for (var u, l = o(arguments[a++]), c = s(l), f = c.length, h = 0; f > h;) r[u = c[h++]] = l[u];
  2804.             return r
  2805.         }
  2806.     }, {
  2807.         "./$.enum-keys": 78,
  2808.         "./$.iobject": 86,
  2809.         "./$.to-object": 116
  2810.     }],
  2811.     68: [function(e, t, r) {
  2812.         var n = e("./$.cof"),
  2813.             o = e("./$.wks")("toStringTag"),
  2814.             s = "Arguments" == n(function() {
  2815.                 return arguments
  2816.             }());
  2817.         t.exports = function(e) {
  2818.             var t, r, i;
  2819.             return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof(r = (t = Object(e))[o]) ? r : s ? n(t) : "Object" == (i = n(t)) && "function" == typeof t.callee ? "Arguments" : i
  2820.         }
  2821.     }, {
  2822.         "./$.cof": 69,
  2823.         "./$.wks": 119
  2824.     }],
  2825.     69: [function(e, t, r) {
  2826.         var n = {}.toString;
  2827.         t.exports = function(e) {
  2828.             return n.call(e).slice(8, -1)
  2829.         }
  2830.     }, {}],
  2831.     70: [function(e, t, r) {
  2832.         "use strict";
  2833.         var n = e("./$"),
  2834.             o = e("./$.hide"),
  2835.             s = e("./$.ctx"),
  2836.             i = e("./$.species"),
  2837.             a = e("./$.strict-new"),
  2838.             u = e("./$.defined"),
  2839.             l = e("./$.for-of"),
  2840.             c = e("./$.iter-step"),
  2841.             f = e("./$.uid")("id"),
  2842.             h = e("./$.has"),
  2843.             p = e("./$.is-object"),
  2844.             d = Object.isExtensible || p,
  2845.             m = e("./$.support-desc"),
  2846.             b = m ? "_s" : "size",
  2847.             g = 0,
  2848.             y = function(e, t) {
  2849.                 if (!p(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e;
  2850.                 if (!h(e, f)) {
  2851.                     if (!d(e)) return "F";
  2852.                     if (!t) return "E";
  2853.                     o(e, f, ++g)
  2854.                 }
  2855.                 return "O" + e[f]
  2856.             },
  2857.             v = function(e, t) {
  2858.                 var r, n = y(t);
  2859.                 if ("F" !== n) return e._i[n];
  2860.                 for (r = e._f; r; r = r.n)
  2861.                     if (r.k == t) return r
  2862.             };
  2863.         t.exports = {
  2864.             getConstructor: function(t, r, o, i) {
  2865.                 var c = t(function(e, t) {
  2866.                     a(e, c, r), e._i = n.create(null), e._f = void 0, e._l = void 0, e[b] = 0, void 0 != t && l(t, o, e[i], e)
  2867.                 });
  2868.                 return e("./$.mix")(c.prototype, {
  2869.                     clear: function() {
  2870.                         for (var e = this, t = e._i, r = e._f; r; r = r.n) r.r = !0, r.p && (r.p = r.p.n = void 0), delete t[r.i];
  2871.                         e._f = e._l = void 0, e[b] = 0
  2872.                     },
  2873.                     "delete": function(e) {
  2874.                         var t = this,
  2875.                             r = v(t, e);
  2876.                         if (r) {
  2877.                             var n = r.n,
  2878.                                 o = r.p;
  2879.                             delete t._i[r.i], r.r = !0, o && (o.n = n), n && (n.p = o), t._f == r && (t._f = n), t._l == r && (t._l = o), t[b]--
  2880.                         }
  2881.                         return !!r
  2882.                     },
  2883.                     forEach: function(e) {
  2884.                         for (var t, r = s(e, arguments[1], 3); t = t ? t.n : this._f;)
  2885.                             for (r(t.v, t.k, this); t && t.r;) t = t.p
  2886.                     },
  2887.                     has: function(e) {
  2888.                         return !!v(this, e)
  2889.                     }
  2890.                 }), m && n.setDesc(c.prototype, "size", {
  2891.                     get: function() {
  2892.                         return u(this[b])
  2893.                     }
  2894.                 }), c
  2895.             },
  2896.             def: function(e, t, r) {
  2897.                 var n, o, s = v(e, t);
  2898.                 return s ? s.v = r : (e._l = s = {
  2899.                     i: o = y(t, !0),
  2900.                     k: t,
  2901.                     v: r,
  2902.                     p: n = e._l,
  2903.                     n: void 0,
  2904.                     r: !1
  2905.                 }, e._f || (e._f = s), n && (n.n = s), e[b]++, "F" !== o && (e._i[o] = s)), e
  2906.             },
  2907.             getEntry: v,
  2908.             setStrong: function(t, r, n) {
  2909.                 e("./$.iter-define")(t, r, function(e, t) {
  2910.                     this._t = e, this._k = t, this._l = void 0
  2911.                 }, function() {
  2912.                     for (var e = this, t = e._k, r = e._l; r && r.r;) r = r.p;
  2913.                     return e._t && (e._l = r = r ? r.n : e._t._f) ? "keys" == t ? c(0, r.k) : "values" == t ? c(0, r.v) : c(0, [r.k, r.v]) : (e._t = void 0, c(1))
  2914.                 }, n ? "entries" : "values", !n, !0), i(t), i(e("./$.core")[r])
  2915.             }
  2916.         }
  2917.     }, {
  2918.         "./$": 96,
  2919.         "./$.core": 73,
  2920.         "./$.ctx": 74,
  2921.         "./$.defined": 76,
  2922.         "./$.for-of": 80,
  2923.         "./$.has": 82,
  2924.         "./$.hide": 83,
  2925.         "./$.is-object": 88,
  2926.         "./$.iter-define": 92,
  2927.         "./$.iter-step": 94,
  2928.         "./$.mix": 99,
  2929.         "./$.species": 106,
  2930.         "./$.strict-new": 107,
  2931.         "./$.support-desc": 110,
  2932.         "./$.uid": 117
  2933.     }],
  2934.     71: [function(e, t, r) {
  2935.         var n = e("./$.for-of"),
  2936.             o = e("./$.classof");
  2937.         t.exports = function(e) {
  2938.             return function() {
  2939.                 if (o(this) != e) throw TypeError(e + "#toJSON isn't generic");
  2940.                 var t = [];
  2941.                 return n(this, !1, t.push, t), t
  2942.             }
  2943.         }
  2944.     }, {
  2945.         "./$.classof": 68,
  2946.         "./$.for-of": 80
  2947.     }],
  2948.     72: [function(e, t, r) {
  2949.         "use strict";
  2950.         var n = e("./$"),
  2951.             o = e("./$.def"),
  2952.             s = e("./$.hide"),
  2953.             i = e("./$.iter-buggy"),
  2954.             a = e("./$.for-of"),
  2955.             u = e("./$.strict-new");
  2956.         t.exports = function(t, r, l, c, f, h) {
  2957.             var p = e("./$.global")[t],
  2958.                 d = p,
  2959.                 m = f ? "set" : "add",
  2960.                 b = d && d.prototype,
  2961.                 g = {};
  2962.             return e("./$.support-desc") && "function" == typeof d && (h || !i && b.forEach && b.entries) ? (d = r(function(e, r) {
  2963.                 u(e, d, t), e._c = new p, void 0 != r && a(r, f, e[m], e)
  2964.             }), n.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","), function(e) {
  2965.                 var t = "add" == e || "set" == e;
  2966.                 e in b && (!h || "clear" != e) && s(d.prototype, e, function(r, n) {
  2967.                     var o = this._c[e](0 === r ? 0 : r, n);
  2968.                     return t ? this : o
  2969.                 })
  2970.             }), "size" in b && n.setDesc(d.prototype, "size", {
  2971.                 get: function() {
  2972.                     return this._c.size
  2973.                 }
  2974.             })) : (d = c.getConstructor(r, t, f, m), e("./$.mix")(d.prototype, l)), e("./$.tag")(d, t), g[t] = d, o(o.G + o.W + o.F, g), h || c.setStrong(d, t, f), d
  2975.         }
  2976.     }, {
  2977.         "./$": 96,
  2978.         "./$.def": 75,
  2979.         "./$.for-of": 80,
  2980.         "./$.global": 81,
  2981.         "./$.hide": 83,
  2982.         "./$.iter-buggy": 89,
  2983.         "./$.mix": 99,
  2984.         "./$.strict-new": 107,
  2985.         "./$.support-desc": 110,
  2986.         "./$.tag": 111
  2987.     }],
  2988.     73: [function(e, t, r) {
  2989.         var n = t.exports = {};
  2990.         "number" == typeof __e && (__e = n)
  2991.     }, {}],
  2992.     74: [function(e, t, r) {
  2993.         var n = e("./$.a-function");
  2994.         t.exports = function(e, t, r) {
  2995.             if (n(e), void 0 === t) return e;
  2996.             switch (r) {
  2997.                 case 1:
  2998.                     return function(r) {
  2999.                         return e.call(t, r)
  3000.                     };
  3001.                 case 2:
  3002.                     return function(r, n) {
  3003.                         return e.call(t, r, n)
  3004.                     };
  3005.                 case 3:
  3006.                     return function(r, n, o) {
  3007.                         return e.call(t, r, n, o)
  3008.                     }
  3009.             }
  3010.             return function() {
  3011.                 return e.apply(t, arguments)
  3012.             }
  3013.         }
  3014.     }, {
  3015.         "./$.a-function": 65
  3016.     }],
  3017.     75: [function(e, t, r) {
  3018.         var n = e("./$.global"),
  3019.             o = e("./$.core"),
  3020.             s = "prototype",
  3021.             i = function(e, t) {
  3022.                 return function() {
  3023.                     return e.apply(t, arguments)
  3024.                 }
  3025.             },
  3026.             a = function(e, t, r) {
  3027.                 var u, l, c, f, h = e & a.G,
  3028.                     p = e & a.P,
  3029.                     d = h ? n : e & a.S ? n[t] : (n[t] || {})[s],
  3030.                     m = h ? o : o[t] || (o[t] = {});
  3031.                 h && (r = t);
  3032.                 for (u in r) l = !(e & a.F) && d && u in d, l && u in m || (c = l ? d[u] : r[u], h && "function" != typeof d[u] ? f = r[u] : e & a.B && l ? f = i(c, n) : e & a.W && d[u] == c ? ! function(e) {
  3033.                     f = function(t) {
  3034.                         return this instanceof e ? new e(t) : e(t)
  3035.                     }, f[s] = e[s]
  3036.                 }(c) : f = p && "function" == typeof c ? i(Function.call, c) : c, m[u] = f, p && ((m[s] || (m[s] = {}))[u] = c))
  3037.             };
  3038.         a.F = 1, a.G = 2, a.S = 4, a.P = 8, a.B = 16, a.W = 32, t.exports = a
  3039.     }, {
  3040.         "./$.core": 73,
  3041.         "./$.global": 81
  3042.     }],
  3043.     76: [function(e, t, r) {
  3044.         t.exports = function(e) {
  3045.             if (void 0 == e) throw TypeError("Can't call method on  " + e);
  3046.             return e
  3047.         }
  3048.     }, {}],
  3049.     77: [function(e, t, r) {
  3050.         var n = e("./$.is-object"),
  3051.             o = e("./$.global").document,
  3052.             s = n(o) && n(o.createElement);
  3053.         t.exports = function(e) {
  3054.             return s ? o.createElement(e) : {}
  3055.         }
  3056.     }, {
  3057.         "./$.global": 81,
  3058.         "./$.is-object": 88
  3059.     }],
  3060.     78: [function(e, t, r) {
  3061.         var n = e("./$");
  3062.         t.exports = function(e) {
  3063.             var t = n.getKeys(e),
  3064.                 r = n.getSymbols;
  3065.             if (r)
  3066.                 for (var o, s = r(e), i = n.isEnum, a = 0; s.length > a;) i.call(e, o = s[a++]) && t.push(o);
  3067.             return t
  3068.         }
  3069.     }, {
  3070.         "./$": 96
  3071.     }],
  3072.     79: [function(e, t, r) {
  3073.         t.exports = function(e) {
  3074.             try {
  3075.                 return !!e()
  3076.             } catch (t) {
  3077.                 return !0
  3078.             }
  3079.         }
  3080.     }, {}],
  3081.     80: [function(e, t, r) {
  3082.         var n = e("./$.ctx"),
  3083.             o = e("./$.iter-call"),
  3084.             s = e("./$.is-array-iter"),
  3085.             i = e("./$.an-object"),
  3086.             a = e("./$.to-length"),
  3087.             u = e("./core.get-iterator-method");
  3088.         t.exports = function(e, t, r, l) {
  3089.             var c, f, h, p = u(e),
  3090.                 d = n(r, l, t ? 2 : 1),
  3091.                 m = 0;
  3092.             if ("function" != typeof p) throw TypeError(e + " is not iterable!");
  3093.             if (s(p))
  3094.                 for (c = a(e.length); c > m; m++) t ? d(i(f = e[m])[0], f[1]) : d(e[m]);
  3095.             else
  3096.                 for (h = p.call(e); !(f = h.next()).done;) o(h, d, f.value, t)
  3097.         }
  3098.     }, {
  3099.         "./$.an-object": 66,
  3100.         "./$.ctx": 74,
  3101.         "./$.is-array-iter": 87,
  3102.         "./$.iter-call": 90,
  3103.         "./$.to-length": 115,
  3104.         "./core.get-iterator-method": 120
  3105.     }],
  3106.     81: [function(e, t, r) {
  3107.         var n = "undefined",
  3108.             o = t.exports = typeof window != n && window.Math == Math ? window : typeof self != n && self.Math == Math ? self : Function("return this")();
  3109.         "number" == typeof __g && (__g = o)
  3110.     }, {}],
  3111.     82: [function(e, t, r) {
  3112.         var n = {}.hasOwnProperty;
  3113.         t.exports = function(e, t) {
  3114.             return n.call(e, t)
  3115.         }
  3116.     }, {}],
  3117.     83: [function(e, t, r) {
  3118.         var n = e("./$"),
  3119.             o = e("./$.property-desc");
  3120.         t.exports = e("./$.support-desc") ? function(e, t, r) {
  3121.             return n.setDesc(e, t, o(1, r))
  3122.         } : function(e, t, r) {
  3123.             return e[t] = r, e
  3124.         }
  3125.     }, {
  3126.         "./$": 96,
  3127.         "./$.property-desc": 101,
  3128.         "./$.support-desc": 110
  3129.     }],
  3130.     84: [function(e, t, r) {
  3131.         t.exports = e("./$.global").document && document.documentElement
  3132.     }, {
  3133.         "./$.global": 81
  3134.     }],
  3135.     85: [function(e, t, r) {
  3136.         t.exports = function(e, t, r) {
  3137.             var n = void 0 === r;
  3138.             switch (t.length) {
  3139.                 case 0:
  3140.                     return n ? e() : e.call(r);
  3141.                 case 1:
  3142.                     return n ? e(t[0]) : e.call(r, t[0]);
  3143.                 case 2:
  3144.                     return n ? e(t[0], t[1]) : e.call(r, t[0], t[1]);
  3145.                 case 3:
  3146.                     return n ? e(t[0], t[1], t[2]) : e.call(r, t[0], t[1], t[2]);
  3147.                 case 4:
  3148.                     return n ? e(t[0], t[1], t[2], t[3]) : e.call(r, t[0], t[1], t[2], t[3])
  3149.             }
  3150.             return e.apply(r, t)
  3151.         }
  3152.     }, {}],
  3153.     86: [function(e, t, r) {
  3154.         var n = e("./$.cof");
  3155.         t.exports = 0 in Object("z") ? Object : function(e) {
  3156.             return "String" == n(e) ? e.split("") : Object(e)
  3157.         }
  3158.     }, {
  3159.         "./$.cof": 69
  3160.     }],
  3161.     87: [function(e, t, r) {
  3162.         var n = e("./$.iterators"),
  3163.             o = e("./$.wks")("iterator");
  3164.         t.exports = function(e) {
  3165.             return (n.Array || Array.prototype[o]) === e
  3166.         }
  3167.     }, {
  3168.         "./$.iterators": 95,
  3169.         "./$.wks": 119
  3170.     }],
  3171.     88: [function(e, t, r) {
  3172.         t.exports = function(e) {
  3173.             return null !== e && ("object" == typeof e || "function" == typeof e)
  3174.         }
  3175.     }, {}],
  3176.     89: [function(e, t, r) {
  3177.         t.exports = "keys" in [] && !("next" in [].keys())
  3178.     }, {}],
  3179.     90: [function(e, t, r) {
  3180.         var n = e("./$.an-object");
  3181.         t.exports = function(e, t, r, o) {
  3182.             try {
  3183.                 return o ? t(n(r)[0], r[1]) : t(r)
  3184.             } catch (s) {
  3185.                 var i = e["return"];
  3186.                 throw void 0 !== i && n(i.call(e)), s
  3187.             }
  3188.         }
  3189.     }, {
  3190.         "./$.an-object": 66
  3191.     }],
  3192.     91: [function(e, t, r) {
  3193.         "use strict";
  3194.         var n = e("./$"),
  3195.             o = {};
  3196.         e("./$.hide")(o, e("./$.wks")("iterator"), function() {
  3197.             return this
  3198.         }), t.exports = function(t, r, s) {
  3199.             t.prototype = n.create(o, {
  3200.                 next: e("./$.property-desc")(1, s)
  3201.             }), e("./$.tag")(t, r + " Iterator")
  3202.         }
  3203.     }, {
  3204.         "./$": 96,
  3205.         "./$.hide": 83,
  3206.         "./$.property-desc": 101,
  3207.         "./$.tag": 111,
  3208.         "./$.wks": 119
  3209.     }],
  3210.     92: [function(e, t, r) {
  3211.         "use strict";
  3212.         var n = e("./$.library"),
  3213.             o = e("./$.def"),
  3214.             s = e("./$.redef"),
  3215.             i = e("./$.hide"),
  3216.             a = e("./$.has"),
  3217.             u = e("./$.wks")("iterator"),
  3218.             l = e("./$.iterators"),
  3219.             c = "@@iterator",
  3220.             f = "keys",
  3221.             h = "values",
  3222.             p = function() {
  3223.                 return this
  3224.             };
  3225.         t.exports = function(t, r, d, m, b, g, y) {
  3226.             e("./$.iter-create")(d, r, m);
  3227.             var v, j, $ = function(e) {
  3228.                     switch (e) {
  3229.                         case f:
  3230.                             return function() {
  3231.                                 return new d(this, e)
  3232.                             };
  3233.                         case h:
  3234.                             return function() {
  3235.                                 return new d(this, e)
  3236.                             }
  3237.                     }
  3238.                     return function() {
  3239.                         return new d(this, e)
  3240.                     }
  3241.                 },
  3242.                 w = r + " Iterator",
  3243.                 k = t.prototype,
  3244.                 _ = k[u] || k[c] || b && k[b],
  3245.                 x = _ || $(b);
  3246.             if (_) {
  3247.                 var A = e("./$").getProto(x.call(new t));
  3248.                 e("./$.tag")(A, w, !0), !n && a(k, c) && i(A, u, p)
  3249.             }
  3250.             if ((!n || y) && i(k, u, x), l[r] = x, l[w] = p, b)
  3251.                 if (v = {
  3252.                         keys: g ? x : $(f),
  3253.                         values: b == h ? x : $(h),
  3254.                         entries: b != h ? x : $("entries")
  3255.                     }, y)
  3256.                     for (j in v) j in k || s(k, j, v[j]);
  3257.                 else o(o.P + o.F * e("./$.iter-buggy"), r, v)
  3258.         }
  3259.     }, {
  3260.         "./$": 96,
  3261.         "./$.def": 75,
  3262.         "./$.has": 82,
  3263.         "./$.hide": 83,
  3264.         "./$.iter-buggy": 89,
  3265.         "./$.iter-create": 91,
  3266.         "./$.iterators": 95,
  3267.         "./$.library": 97,
  3268.         "./$.redef": 102,
  3269.         "./$.tag": 111,
  3270.         "./$.wks": 119
  3271.     }],
  3272.     93: [function(e, t, r) {
  3273.         var n = e("./$.wks")("iterator"),
  3274.             o = !1;
  3275.         try {
  3276.             var s = [7][n]();
  3277.             s["return"] = function() {
  3278.                 o = !0
  3279.             }, Array.from(s, function() {
  3280.                 throw 2
  3281.             })
  3282.         } catch (i) {}
  3283.         t.exports = function(e) {
  3284.             if (!o) return !1;
  3285.             var t = !1;
  3286.             try {
  3287.                 var r = [7],
  3288.                     s = r[n]();
  3289.                 s.next = function() {
  3290.                     t = !0
  3291.                 }, r[n] = function() {
  3292.                     return s
  3293.                 }, e(r)
  3294.             } catch (i) {}
  3295.             return t
  3296.         }
  3297.     }, {
  3298.         "./$.wks": 119
  3299.     }],
  3300.     94: [function(e, t, r) {
  3301.         t.exports = function(e, t) {
  3302.             return {
  3303.                 value: t,
  3304.                 done: !!e
  3305.             }
  3306.         }
  3307.     }, {}],
  3308.     95: [function(e, t, r) {
  3309.         t.exports = {}
  3310.     }, {}],
  3311.     96: [function(e, t, r) {
  3312.         var n = Object;
  3313.         t.exports = {
  3314.             create: n.create,
  3315.             getProto: n.getPrototypeOf,
  3316.             isEnum: {}.propertyIsEnumerable,
  3317.             getDesc: n.getOwnPropertyDescriptor,
  3318.             setDesc: n.defineProperty,
  3319.             setDescs: n.defineProperties,
  3320.             getKeys: n.keys,
  3321.             getNames: n.getOwnPropertyNames,
  3322.             getSymbols: n.getOwnPropertySymbols,
  3323.             each: [].forEach
  3324.         }
  3325.     }, {}],
  3326.     97: [function(e, t, r) {
  3327.         t.exports = !0
  3328.     }, {}],
  3329.     98: [function(e, t, r) {
  3330.         var n, o, s, i = e("./$.global"),
  3331.             a = e("./$.task").set,
  3332.             u = i.MutationObserver || i.WebKitMutationObserver,
  3333.             l = i.process,
  3334.             c = "process" == e("./$.cof")(l),
  3335.             f = function() {
  3336.                 var e, t;
  3337.                 for (c && (e = l.domain) && (l.domain = null, e.exit()); n;) t = n.domain, t && t.enter(), n.fn.call(), t && t.exit(), n = n.next;
  3338.                 o = void 0, e && e.enter()
  3339.             };
  3340.         if (c) s = function() {
  3341.             l.nextTick(f)
  3342.         };
  3343.         else if (u) {
  3344.             var h = 1,
  3345.                 p = document.createTextNode("");
  3346.             new u(f).observe(p, {
  3347.                 characterData: !0
  3348.             }), s = function() {
  3349.                 p.data = h = -h
  3350.             }
  3351.         } else s = function() {
  3352.             a.call(i, f)
  3353.         };
  3354.         t.exports = function(e) {
  3355.             var t = {
  3356.                 fn: e,
  3357.                 next: void 0,
  3358.                 domain: c && l.domain
  3359.             };
  3360.             o && (o.next = t), n || (n = t, s()), o = t
  3361.         }
  3362.     }, {
  3363.         "./$.cof": 69,
  3364.         "./$.global": 81,
  3365.         "./$.task": 112
  3366.     }],
  3367.     99: [function(e, t, r) {
  3368.         var n = e("./$.redef");
  3369.         t.exports = function(e, t) {
  3370.             for (var r in t) n(e, r, t[r]);
  3371.             return e
  3372.         }
  3373.     }, {
  3374.         "./$.redef": 102
  3375.     }],
  3376.     100: [function(e, t, r) {
  3377.         t.exports = function(t, r) {
  3378.             var n = e("./$.def"),
  3379.                 o = (e("./$.core").Object || {})[t] || Object[t],
  3380.                 s = {};
  3381.             s[t] = r(o), n(n.S + n.F * e("./$.fails")(function() {
  3382.                 o(1)
  3383.             }), "Object", s)
  3384.         }
  3385.     }, {
  3386.         "./$.core": 73,
  3387.         "./$.def": 75,
  3388.         "./$.fails": 79
  3389.     }],
  3390.     101: [function(e, t, r) {
  3391.         t.exports = function(e, t) {
  3392.             return {
  3393.                 enumerable: !(1 & e),
  3394.                 configurable: !(2 & e),
  3395.                 writable: !(4 & e),
  3396.                 value: t
  3397.             }
  3398.         }
  3399.     }, {}],
  3400.     102: [function(e, t, r) {
  3401.         t.exports = e("./$.hide")
  3402.     }, {
  3403.         "./$.hide": 83
  3404.     }],
  3405.     103: [function(e, t, r) {
  3406.         t.exports = Object.is || function(e, t) {
  3407.             return e === t ? 0 !== e || 1 / e === 1 / t : e != e && t != t
  3408.         }
  3409.     }, {}],
  3410.     104: [function(e, t, r) {
  3411.         var n = e("./$").getDesc,
  3412.             o = e("./$.is-object"),
  3413.             s = e("./$.an-object"),
  3414.             i = function(e, t) {
  3415.                 if (s(e), !o(t) && null !== t) throw TypeError(t + ": can't set as prototype!")
  3416.             };
  3417.         t.exports = {
  3418.             set: Object.setPrototypeOf || ("__proto__" in {} ? function(t, r) {
  3419.                 try {
  3420.                     r = e("./$.ctx")(Function.call, n(Object.prototype, "__proto__").set, 2), r({}, [])
  3421.                 } catch (o) {
  3422.                     t = !0
  3423.                 }
  3424.                 return function(e, n) {
  3425.                     return i(e, n), t ? e.__proto__ = n : r(e, n), e
  3426.                 }
  3427.             }() : void 0),
  3428.             check: i
  3429.         }
  3430.     }, {
  3431.         "./$": 96,
  3432.         "./$.an-object": 66,
  3433.         "./$.ctx": 74,
  3434.         "./$.is-object": 88
  3435.     }],
  3436.     105: [function(e, t, r) {
  3437.         var n = e("./$.global"),
  3438.             o = "__core-js_shared__",
  3439.             s = n[o] || (n[o] = {});
  3440.         t.exports = function(e) {
  3441.             return s[e] || (s[e] = {})
  3442.         }
  3443.     }, {
  3444.         "./$.global": 81
  3445.     }],
  3446.     106: [function(e, t, r) {
  3447.         "use strict";
  3448.         var n = e("./$"),
  3449.             o = e("./$.wks")("species");
  3450.         t.exports = function(t) {
  3451.             !e("./$.support-desc") || o in t || n.setDesc(t, o, {
  3452.                 configurable: !0,
  3453.                 get: function() {
  3454.                     return this
  3455.                 }
  3456.             })
  3457.         }
  3458.     }, {
  3459.         "./$": 96,
  3460.         "./$.support-desc": 110,
  3461.         "./$.wks": 119
  3462.     }],
  3463.     107: [function(e, t, r) {
  3464.         t.exports = function(e, t, r) {
  3465.             if (!(e instanceof t)) throw TypeError(r + ": use the 'new' operator!");
  3466.             return e
  3467.         }
  3468.     }, {}],
  3469.     108: [function(e, t, r) {
  3470.         var n = e("./$.to-integer"),
  3471.             o = e("./$.defined");
  3472.         t.exports = function(e) {
  3473.             return function(t, r) {
  3474.                 var s, i, a = String(o(t)),
  3475.                     u = n(r),
  3476.                     l = a.length;
  3477.                 return 0 > u || u >= l ? e ? "" : void 0 : (s = a.charCodeAt(u), 55296 > s || s > 56319 || u + 1 === l || (i = a.charCodeAt(u + 1)) < 56320 || i > 57343 ? e ? a.charAt(u) : s : e ? a.slice(u, u + 2) : (s - 55296 << 10) + (i - 56320) + 65536)
  3478.             }
  3479.         }
  3480.     }, {
  3481.         "./$.defined": 76,
  3482.         "./$.to-integer": 113
  3483.     }],
  3484.     109: [function(e, t, r) {
  3485.         var n = e("./$.defined"),
  3486.             o = e("./$.cof");
  3487.         t.exports = function(e, t, r) {
  3488.             if ("RegExp" == o(t)) throw TypeError("String#" + r + " doesn't accept regex!");
  3489.             return String(n(e))
  3490.         }
  3491.     }, {
  3492.         "./$.cof": 69,
  3493.         "./$.defined": 76
  3494.     }],
  3495.     110: [function(e, t, r) {
  3496.         t.exports = !e("./$.fails")(function() {
  3497.             return 7 != Object.defineProperty({}, "a", {
  3498.                 get: function() {
  3499.                     return 7
  3500.                 }
  3501.             }).a
  3502.         })
  3503.     }, {
  3504.         "./$.fails": 79
  3505.     }],
  3506.     111: [function(e, t, r) {
  3507.         var n = e("./$.has"),
  3508.             o = e("./$.hide"),
  3509.             s = e("./$.wks")("toStringTag");
  3510.         t.exports = function(e, t, r) {
  3511.             e && !n(e = r ? e : e.prototype, s) && o(e, s, t)
  3512.         }
  3513.     }, {
  3514.         "./$.has": 82,
  3515.         "./$.hide": 83,
  3516.         "./$.wks": 119
  3517.     }],
  3518.     112: [function(e, t, r) {
  3519.         "use strict";
  3520.         var n, o, s, i = e("./$.ctx"),
  3521.             a = e("./$.invoke"),
  3522.             u = e("./$.html"),
  3523.             l = e("./$.dom-create"),
  3524.             c = e("./$.global"),
  3525.             f = c.process,
  3526.             h = c.setImmediate,
  3527.             p = c.clearImmediate,
  3528.             d = c.MessageChannel,
  3529.             m = 0,
  3530.             b = {},
  3531.             g = "onreadystatechange",
  3532.             y = function() {
  3533.                 var e = +this;
  3534.                 if (b.hasOwnProperty(e)) {
  3535.                     var t = b[e];
  3536.                     delete b[e], t()
  3537.                 }
  3538.             },
  3539.             v = function(e) {
  3540.                 y.call(e.data)
  3541.             };
  3542.         h && p || (h = function(e) {
  3543.             for (var t = [], r = 1; arguments.length > r;) t.push(arguments[r++]);
  3544.             return b[++m] = function() {
  3545.                 a("function" == typeof e ? e : Function(e), t)
  3546.             }, n(m), m
  3547.         }, p = function(e) {
  3548.             delete b[e]
  3549.         }, "process" == e("./$.cof")(f) ? n = function(e) {
  3550.             f.nextTick(i(y, e, 1))
  3551.         } : d ? (o = new d, s = o.port2, o.port1.onmessage = v, n = i(s.postMessage, s, 1)) : c.addEventListener && "function" == typeof postMessage && !c.importScript ? (n = function(e) {
  3552.             c.postMessage(e + "", "*")
  3553.         }, c.addEventListener("message", v, !1)) : n = g in l("script") ? function(e) {
  3554.             u.appendChild(l("script"))[g] = function() {
  3555.                 u.removeChild(this), y.call(e)
  3556.             }
  3557.         } : function(e) {
  3558.             setTimeout(i(y, e, 1), 0)
  3559.         }), t.exports = {
  3560.             set: h,
  3561.             clear: p
  3562.         }
  3563.     }, {
  3564.         "./$.cof": 69,
  3565.         "./$.ctx": 74,
  3566.         "./$.dom-create": 77,
  3567.         "./$.global": 81,
  3568.         "./$.html": 84,
  3569.         "./$.invoke": 85
  3570.     }],
  3571.     113: [function(e, t, r) {
  3572.         var n = Math.ceil,
  3573.             o = Math.floor;
  3574.         t.exports = function(e) {
  3575.             return isNaN(e = +e) ? 0 : (e > 0 ? o : n)(e)
  3576.         }
  3577.     }, {}],
  3578.     114: [function(e, t, r) {
  3579.         var n = e("./$.iobject"),
  3580.             o = e("./$.defined");
  3581.         t.exports = function(e) {
  3582.             return n(o(e))
  3583.         }
  3584.     }, {
  3585.         "./$.defined": 76,
  3586.         "./$.iobject": 86
  3587.     }],
  3588.     115: [function(e, t, r) {
  3589.         var n = e("./$.to-integer"),
  3590.             o = Math.min;
  3591.         t.exports = function(e) {
  3592.             return e > 0 ? o(n(e), 9007199254740991) : 0
  3593.         }
  3594.     }, {
  3595.         "./$.to-integer": 113
  3596.     }],
  3597.     116: [function(e, t, r) {
  3598.         var n = e("./$.defined");
  3599.         t.exports = function(e) {
  3600.             return Object(n(e))
  3601.         }
  3602.     }, {
  3603.         "./$.defined": 76
  3604.     }],
  3605.     117: [function(e, t, r) {
  3606.         var n = 0,
  3607.             o = Math.random();
  3608.         t.exports = function(e) {
  3609.             return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + o).toString(36))
  3610.         }
  3611.     }, {}],
  3612.     118: [function(e, t, r) {
  3613.         t.exports = function() {}
  3614.     }, {}],
  3615.     119: [function(e, t, r) {
  3616.         var n = e("./$.shared")("wks"),
  3617.             o = e("./$.global").Symbol;
  3618.         t.exports = function(t) {
  3619.             return n[t] || (n[t] = o && o[t] || (o || e("./$.uid"))("Symbol." + t))
  3620.         }
  3621.     }, {
  3622.         "./$.global": 81,
  3623.         "./$.shared": 105,
  3624.         "./$.uid": 117
  3625.     }],
  3626.     120: [function(e, t, r) {
  3627.         var n = e("./$.classof"),
  3628.             o = e("./$.wks")("iterator"),
  3629.             s = e("./$.iterators");
  3630.         t.exports = e("./$.core").getIteratorMethod = function(e) {
  3631.             return void 0 != e ? e[o] || e["@@iterator"] || s[n(e)] : void 0
  3632.         }
  3633.     }, {
  3634.         "./$.classof": 68,
  3635.         "./$.core": 73,
  3636.         "./$.iterators": 95,
  3637.         "./$.wks": 119
  3638.     }],
  3639.     121: [function(e, t, r) {
  3640.         var n = e("./$.an-object"),
  3641.             o = e("./core.get-iterator-method");
  3642.         t.exports = e("./$.core").getIterator = function(e) {
  3643.             var t = o(e);
  3644.             if ("function" != typeof t) throw TypeError(e + " is not iterable!");
  3645.             return n(t.call(e))
  3646.         }
  3647.     }, {
  3648.         "./$.an-object": 66,
  3649.         "./$.core": 73,
  3650.         "./core.get-iterator-method": 120
  3651.     }],
  3652.     122: [function(e, t, r) {
  3653.         var n = e("./$.classof"),
  3654.             o = e("./$.wks")("iterator"),
  3655.             s = e("./$.iterators");
  3656.         t.exports = e("./$.core").isIterable = function(e) {
  3657.             var t = Object(e);
  3658.             return o in t || "@@iterator" in t || s.hasOwnProperty(n(t))
  3659.         }
  3660.     }, {
  3661.         "./$.classof": 68,
  3662.         "./$.core": 73,
  3663.         "./$.iterators": 95,
  3664.         "./$.wks": 119
  3665.     }],
  3666.     123: [function(e, t, r) {
  3667.         "use strict";
  3668.         var n = e("./$.ctx"),
  3669.             o = e("./$.def"),
  3670.             s = e("./$.to-object"),
  3671.             i = e("./$.iter-call"),
  3672.             a = e("./$.is-array-iter"),
  3673.             u = e("./$.to-length"),
  3674.             l = e("./core.get-iterator-method");
  3675.         o(o.S + o.F * !e("./$.iter-detect")(function(e) {
  3676.             Array.from(e)
  3677.         }), "Array", {
  3678.             from: function(e) {
  3679.                 var t, r, o, c, f = s(e),
  3680.                     h = "function" == typeof this ? this : Array,
  3681.                     p = arguments[1],
  3682.                     d = void 0 !== p,
  3683.                     m = 0,
  3684.                     b = l(f);
  3685.                 if (d && (p = n(p, arguments[2], 2)), void 0 == b || h == Array && a(b))
  3686.                     for (r = new h(t = u(f.length)); t > m; m++) r[m] = d ? p(f[m], m) : f[m];
  3687.                 else
  3688.                     for (c = b.call(f), r = new h; !(o = c.next()).done; m++) r[m] = d ? i(c, p, [o.value, m], !0) : o.value;
  3689.                 return r.length = m, r
  3690.             }
  3691.         })
  3692.     }, {
  3693.         "./$.ctx": 74,
  3694.         "./$.def": 75,
  3695.         "./$.is-array-iter": 87,
  3696.         "./$.iter-call": 90,
  3697.         "./$.iter-detect": 93,
  3698.         "./$.to-length": 115,
  3699.         "./$.to-object": 116,
  3700.         "./core.get-iterator-method": 120
  3701.     }],
  3702.     124: [function(e, t, r) {
  3703.         "use strict";
  3704.         var n = e("./$.unscope"),
  3705.             o = e("./$.iter-step"),
  3706.             s = e("./$.iterators"),
  3707.             i = e("./$.to-iobject");
  3708.         e("./$.iter-define")(Array, "Array", function(e, t) {
  3709.             this._t = i(e), this._i = 0, this._k = t
  3710.         }, function() {
  3711.             var e = this._t,
  3712.                 t = this._k,
  3713.                 r = this._i++;
  3714.             return !e || r >= e.length ? (this._t = void 0, o(1)) : "keys" == t ? o(0, r) : "values" == t ? o(0, e[r]) : o(0, [r, e[r]])
  3715.         }, "values"), s.Arguments = s.Array, n("keys"), n("values"), n("entries")
  3716.     }, {
  3717.         "./$.iter-define": 92,
  3718.         "./$.iter-step": 94,
  3719.         "./$.iterators": 95,
  3720.         "./$.to-iobject": 114,
  3721.         "./$.unscope": 118
  3722.     }],
  3723.     125: [function(e, t, r) {
  3724.         var n = e("./$.def");
  3725.         n(n.S, "Object", {
  3726.             assign: e("./$.assign")
  3727.         })
  3728.     }, {
  3729.         "./$.assign": 67,
  3730.         "./$.def": 75
  3731.     }],
  3732.     126: [function(e, t, r) {
  3733.         var n = e("./$.is-object");
  3734.         e("./$.object-sap")("freeze", function(e) {
  3735.             return function(t) {
  3736.                 return e && n(t) ? e(t) : t
  3737.             }
  3738.         })
  3739.     }, {
  3740.         "./$.is-object": 88,
  3741.         "./$.object-sap": 100
  3742.     }],
  3743.     127: [function(e, t, r) {
  3744.         var n = e("./$.to-iobject");
  3745.         e("./$.object-sap")("getOwnPropertyDescriptor", function(e) {
  3746.             return function(t, r) {
  3747.                 return e(n(t), r)
  3748.             }
  3749.         })
  3750.     }, {
  3751.         "./$.object-sap": 100,
  3752.         "./$.to-iobject": 114
  3753.     }],
  3754.     128: [function(e, t, r) {
  3755.         var n = e("./$.to-object");
  3756.         e("./$.object-sap")("keys", function(e) {
  3757.             return function(t) {
  3758.                 return e(n(t))
  3759.             }
  3760.         })
  3761.     }, {
  3762.         "./$.object-sap": 100,
  3763.         "./$.to-object": 116
  3764.     }],
  3765.     129: [function(e, t, r) {
  3766.         var n = e("./$.def");
  3767.         n(n.S, "Object", {
  3768.             setPrototypeOf: e("./$.set-proto").set
  3769.         })
  3770.     }, {
  3771.         "./$.def": 75,
  3772.         "./$.set-proto": 104
  3773.     }],
  3774.     130: [function(e, t, r) {}, {}],
  3775.     131: [function(e, t, r) {
  3776.         "use strict";
  3777.         var n, o = e("./$"),
  3778.             s = e("./$.library"),
  3779.             i = e("./$.global"),
  3780.             a = e("./$.ctx"),
  3781.             u = e("./$.classof"),
  3782.             l = e("./$.def"),
  3783.             c = e("./$.is-object"),
  3784.             f = e("./$.an-object"),
  3785.             h = e("./$.a-function"),
  3786.             p = e("./$.strict-new"),
  3787.             d = e("./$.for-of"),
  3788.             m = e("./$.set-proto").set,
  3789.             b = e("./$.same"),
  3790.             g = e("./$.species"),
  3791.             y = e("./$.wks")("species"),
  3792.             v = e("./$.uid")("record"),
  3793.             j = e("./$.microtask"),
  3794.             $ = "Promise",
  3795.             w = i.process,
  3796.             k = "process" == u(w),
  3797.             _ = i[$],
  3798.             x = function(e) {
  3799.                 var t = new _(function() {});
  3800.                 return e && (t.constructor = Object), _.resolve(t) === t
  3801.             },
  3802.             A = function() {
  3803.                 function t(e) {
  3804.                     var r = new _(e);
  3805.                     return m(r, t.prototype), r
  3806.                 }
  3807.                 var r = !1;
  3808.                 try {
  3809.                     if (r = _ && _.resolve && x(), m(t, _), t.prototype = o.create(_.prototype, {
  3810.                             constructor: {
  3811.                                 value: t
  3812.                             }
  3813.                         }), t.resolve(5).then(function() {}) instanceof t || (r = !1), r && e("./$.support-desc")) {
  3814.                         var n = !1;
  3815.                         _.resolve(o.setDesc({}, "then", {
  3816.                             get: function() {
  3817.                                 n = !0
  3818.                             }
  3819.                         })), r = n
  3820.                     }
  3821.                 } catch (s) {
  3822.                     r = !1
  3823.                 }
  3824.                 return r
  3825.             }(),
  3826.             O = function(e) {
  3827.                 return c(e) && (A ? "Promise" == u(e) : v in e)
  3828.             },
  3829.             q = function(e, t) {
  3830.                 return s && e === _ && t === n ? !0 : b(e, t)
  3831.             },
  3832.             P = function(e) {
  3833.                 var t = f(e)[y];
  3834.                 return void 0 != t ? t : e
  3835.             },
  3836.             E = function(e) {
  3837.                 var t;
  3838.                 return c(e) && "function" == typeof(t = e.then) ? t : !1
  3839.             },
  3840.             S = function(e, t) {
  3841.                 if (!e.n) {
  3842.                     e.n = !0;
  3843.                     var r = e.c;
  3844.                     j(function() {
  3845.                         for (var n = e.v, o = 1 == e.s, s = 0, a = function(t) {
  3846.                                 var r, s, i = o ? t.ok : t.fail;
  3847.                                 try {
  3848.                                     i ? (o || (e.h = !0), r = i === !0 ? n : i(n), r === t.P ? t.rej(TypeError("Promise-chain cycle")) : (s = E(r)) ? s.call(r, t.res, t.rej) : t.res(r)) : t.rej(n)
  3849.                                 } catch (a) {
  3850.                                     t.rej(a)
  3851.                                 }
  3852.                             }; r.length > s;) a(r[s++]);
  3853.                         r.length = 0, e.n = !1, t && setTimeout(function() {
  3854.                             j(function() {
  3855.                                 I(e.p) && (k ? w.emit("unhandledRejection", n, e.p) : i.console && console.error && console.error("Unhandled promise rejection", n)), e.a = void 0
  3856.                             })
  3857.                         }, 1)
  3858.                     })
  3859.                 }
  3860.             },
  3861.             I = function(e) {
  3862.                 var t, r = e[v],
  3863.                     n = r.a || r.c,
  3864.                     o = 0;
  3865.                 if (r.h) return !1;
  3866.                 for (; n.length > o;)
  3867.                     if (t = n[o++], t.fail || !I(t.P)) return !1;
  3868.                 return !0
  3869.             },
  3870.             M = function(e) {
  3871.                 var t = this;
  3872.                 t.d || (t.d = !0, t = t.r || t, t.v = e, t.s = 2, t.a = t.c.slice(), S(t, !0))
  3873.             },
  3874.             C = function(e) {
  3875.                 var t, r = this;
  3876.                 if (!r.d) {
  3877.                     r.d = !0, r = r.r || r;
  3878.                     try {
  3879.                         (t = E(e)) ? j(function() {
  3880.                             var n = {
  3881.                                 r: r,
  3882.                                 d: !1
  3883.                             };
  3884.                             try {
  3885.                                 t.call(e, a(C, n, 1), a(M, n, 1))
  3886.                             } catch (o) {
  3887.                                 M.call(n, o)
  3888.                             }
  3889.                         }): (r.v = e, r.s = 1, S(r, !1))
  3890.                     } catch (n) {
  3891.                         M.call({
  3892.                             r: r,
  3893.                             d: !1
  3894.                         }, n)
  3895.                     }
  3896.                 }
  3897.             };
  3898.         A || (_ = function(e) {
  3899.             h(e);
  3900.             var t = {
  3901.                 p: p(this, _, $),
  3902.                 c: [],
  3903.                 a: void 0,
  3904.                 s: 0,
  3905.                 d: !1,
  3906.                 v: void 0,
  3907.                 h: !1,
  3908.                 n: !1
  3909.             };
  3910.             this[v] = t;
  3911.             try {
  3912.                 e(a(C, t, 1), a(M, t, 1))
  3913.             } catch (r) {
  3914.                 M.call(t, r)
  3915.             }
  3916.         }, e("./$.mix")(_.prototype, {
  3917.             then: function(e, t) {
  3918.                 var r = f(f(this).constructor)[y],
  3919.                     n = {
  3920.                         ok: "function" == typeof e ? e : !0,
  3921.                         fail: "function" == typeof t ? t : !1
  3922.                     },
  3923.                     o = n.P = new(void 0 != r ? r : _)(function(e, t) {
  3924.                         n.res = h(e), n.rej = h(t)
  3925.                     }),
  3926.                     s = this[v];
  3927.                 return s.c.push(n), s.a && s.a.push(n), s.s && S(s, !1), o
  3928.             },
  3929.             "catch": function(e) {
  3930.                 return this.then(void 0, e)
  3931.             }
  3932.         })), l(l.G + l.W + l.F * !A, {
  3933.             Promise: _
  3934.         }), e("./$.tag")(_, $), g(_), g(n = e("./$.core")[$]), l(l.S + l.F * !A, $, {
  3935.             reject: function(e) {
  3936.                 return new this(function(t, r) {
  3937.                     r(e)
  3938.                 })
  3939.             }
  3940.         }), l(l.S + l.F * (!A || x(!0)), $, {
  3941.             resolve: function(e) {
  3942.                 return O(e) && q(e.constructor, this) ? e : new this(function(t) {
  3943.                     t(e)
  3944.                 })
  3945.             }
  3946.         }), l(l.S + l.F * !(A && e("./$.iter-detect")(function(e) {
  3947.             _.all(e)["catch"](function() {})
  3948.         })), $, {
  3949.             all: function(e) {
  3950.                 var t = P(this),
  3951.                     r = [];
  3952.                 return new t(function(n, s) {
  3953.                     d(e, !1, r.push, r);
  3954.                     var i = r.length,
  3955.                         a = Array(i);
  3956.                     i ? o.each.call(r, function(e, r) {
  3957.                         t.resolve(e).then(function(e) {
  3958.                             a[r] = e, --i || n(a)
  3959.                         }, s)
  3960.                     }) : n(a)
  3961.                 })
  3962.             },
  3963.             race: function(e) {
  3964.                 var t = P(this);
  3965.                 return new t(function(r, n) {
  3966.                     d(e, !1, function(e) {
  3967.                         t.resolve(e).then(r, n)
  3968.                     })
  3969.                 })
  3970.             }
  3971.         })
  3972.     }, {
  3973.         "./$": 96,
  3974.         "./$.a-function": 65,
  3975.         "./$.an-object": 66,
  3976.         "./$.classof": 68,
  3977.         "./$.core": 73,
  3978.         "./$.ctx": 74,
  3979.         "./$.def": 75,
  3980.         "./$.for-of": 80,
  3981.         "./$.global": 81,
  3982.         "./$.is-object": 88,
  3983.         "./$.iter-detect": 93,
  3984.         "./$.library": 97,
  3985.         "./$.microtask": 98,
  3986.         "./$.mix": 99,
  3987.         "./$.same": 103,
  3988.         "./$.set-proto": 104,
  3989.         "./$.species": 106,
  3990.         "./$.strict-new": 107,
  3991.         "./$.support-desc": 110,
  3992.         "./$.tag": 111,
  3993.         "./$.uid": 117,
  3994.         "./$.wks": 119
  3995.     }],
  3996.     132: [function(e, t, r) {
  3997.         var n = e("./$"),
  3998.             o = e("./$.def"),
  3999.             s = e("./$.a-function"),
  4000.             i = e("./$.an-object"),
  4001.             a = e("./$.is-object"),
  4002.             u = Function.bind || e("./$.core").Function.prototype.bind;
  4003.         o(o.S + o.F * e("./$.fails")(function() {
  4004.             function e() {}
  4005.             return !(Reflect.construct(function() {}, [], e) instanceof e)
  4006.         }), "Reflect", {
  4007.             construct: function(e, t) {
  4008.                 if (s(e), arguments.length < 3) {
  4009.                     if (void 0 != t) switch (i(t).length) {
  4010.                         case 0:
  4011.                             return new e;
  4012.                         case 1:
  4013.                             return new e(t[0]);
  4014.                         case 2:
  4015.                             return new e(t[0], t[1]);
  4016.                         case 3:
  4017.                             return new e(t[0], t[1], t[2]);
  4018.                         case 4:
  4019.                             return new e(t[0], t[1], t[2], t[3])
  4020.                     }
  4021.                     var r = [null];
  4022.                     return r.push.apply(r, t), new(u.apply(e, r))
  4023.                 }
  4024.                 var o = s(arguments[2]).prototype,
  4025.                     l = n.create(a(o) ? o : Object.prototype),
  4026.                     c = Function.apply.call(e, l, t);
  4027.                 return a(c) ? c : l
  4028.             }
  4029.         })
  4030.     }, {
  4031.         "./$": 96,
  4032.         "./$.a-function": 65,
  4033.         "./$.an-object": 66,
  4034.         "./$.core": 73,
  4035.         "./$.def": 75,
  4036.         "./$.fails": 79,
  4037.         "./$.is-object": 88
  4038.     }],
  4039.     133: [function(e, t, r) {
  4040.         "use strict";
  4041.         var n = e("./$.collection-strong");
  4042.         e("./$.collection")("Set", function(e) {
  4043.             return function() {
  4044.                 return e(this, arguments[0])
  4045.             }
  4046.         }, {
  4047.             add: function(e) {
  4048.                 return n.def(this, e = 0 === e ? 0 : e, e)
  4049.             }
  4050.         }, n)
  4051.     }, {
  4052.         "./$.collection": 72,
  4053.         "./$.collection-strong": 70
  4054.     }],
  4055.     134: [function(e, t, r) {
  4056.         "use strict";
  4057.         var n = e("./$.string-at")(!0);
  4058.         e("./$.iter-define")(String, "String", function(e) {
  4059.             this._t = String(e), this._i = 0
  4060.         }, function() {
  4061.             var e, t = this._t,
  4062.                 r = this._i;
  4063.             return r >= t.length ? {
  4064.                 value: void 0,
  4065.                 done: !0
  4066.             } : (e = n(t, r), this._i += e.length, {
  4067.                 value: e,
  4068.                 done: !1
  4069.             })
  4070.         })
  4071.     }, {
  4072.         "./$.iter-define": 92,
  4073.         "./$.string-at": 108
  4074.     }],
  4075.     135: [function(e, t, r) {
  4076.         "use strict";
  4077.         var n = e("./$.def"),
  4078.             o = e("./$.to-length"),
  4079.             s = e("./$.string-context");
  4080.         n(n.P + n.F * !e("./$.fails")(function() {
  4081.             "q".startsWith(/./)
  4082.         }), "String", {
  4083.             startsWith: function(e) {
  4084.                 var t = s(this, e, "startsWith"),
  4085.                     r = o(Math.min(arguments[1], t.length)),
  4086.                     n = String(e);
  4087.                 return t.slice(r, r + n.length) === n
  4088.             }
  4089.         })
  4090.     }, {
  4091.         "./$.def": 75,
  4092.         "./$.fails": 79,
  4093.         "./$.string-context": 109,
  4094.         "./$.to-length": 115
  4095.     }],
  4096.     136: [function(e, t, r) {
  4097.         var n = e("./$.def");
  4098.         n(n.P, "Set", {
  4099.             toJSON: e("./$.collection-to-json")("Set")
  4100.         })
  4101.     }, {
  4102.         "./$.collection-to-json": 71,
  4103.         "./$.def": 75
  4104.     }],
  4105.     137: [function(e, t, r) {
  4106.         e("./es6.array.iterator");
  4107.         var n = e("./$.iterators");
  4108.         n.NodeList = n.HTMLCollection = n.Array
  4109.     }, {
  4110.         "./$.iterators": 95,
  4111.         "./es6.array.iterator": 124
  4112.     }],
  4113.     138: [function(e, t, r) {
  4114.         (function(e) {
  4115.             ! function(n) {
  4116.                 function o(e) {
  4117.                     throw RangeError(M[e])
  4118.                 }
  4119.  
  4120.                 function s(e, t) {
  4121.                     for (var r = e.length, n = []; r--;) n[r] = t(e[r]);
  4122.                     return n
  4123.                 }
  4124.  
  4125.                 function i(e, t) {
  4126.                     var r = e.split("@"),
  4127.                         n = "";
  4128.                     r.length > 1 && (n = r[0] + "@", e = r[1]), e = e.replace(I, ".");
  4129.                     var o = e.split("."),
  4130.                         i = s(o, t).join(".");
  4131.                     return n + i
  4132.                 }
  4133.  
  4134.                 function a(e) {
  4135.                     for (var t, r, n = [], o = 0, s = e.length; s > o;) t = e.charCodeAt(o++), t >= 55296 && 56319 >= t && s > o ? (r = e.charCodeAt(o++), 56320 == (64512 & r) ? n.push(((1023 & t) << 10) + (1023 & r) + 65536) : (n.push(t), o--)) : n.push(t);
  4136.                     return n
  4137.                 }
  4138.  
  4139.                 function u(e) {
  4140.                     return s(e, function(e) {
  4141.                         var t = "";
  4142.                         return e > 65535 && (e -= 65536, t += F(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t += F(e)
  4143.                     }).join("")
  4144.                 }
  4145.  
  4146.                 function l(e) {
  4147.                     return 10 > e - 48 ? e - 22 : 26 > e - 65 ? e - 65 : 26 > e - 97 ? e - 97 : w
  4148.                 }
  4149.  
  4150.                 function c(e, t) {
  4151.                     return e + 22 + 75 * (26 > e) - ((0 != t) << 5)
  4152.                 }
  4153.  
  4154.                 function f(e, t, r) {
  4155.                     var n = 0;
  4156.                     for (e = r ? T(e / A) : e >> 1, e += T(e / t); e > C * _ >> 1; n += w) e = T(e / C);
  4157.                     return T(n + (C + 1) * e / (e + x))
  4158.                 }
  4159.  
  4160.                 function h(e) {
  4161.                     var t, r, n, s, i, a, c, h, p, d, m = [],
  4162.                         b = e.length,
  4163.                         g = 0,
  4164.                         y = q,
  4165.                         v = O;
  4166.                     for (r = e.lastIndexOf(P), 0 > r && (r = 0), n = 0; r > n; ++n) e.charCodeAt(n) >= 128 && o("not-basic"), m.push(e.charCodeAt(n));
  4167.                     for (s = r > 0 ? r + 1 : 0; b > s;) {
  4168.                         for (i = g, a = 1, c = w; s >= b && o("invalid-input"), h = l(e.charCodeAt(s++)), (h >= w || h > T(($ - g) / a)) && o("overflow"), g += h * a, p = v >= c ? k : c >= v + _ ? _ : c - v, !(p > h); c += w) d = w - p, a > T($ / d) && o("overflow"), a *= d;
  4169.                         t = m.length + 1, v = f(g - i, t, 0 == i), T(g / t) > $ - y && o("overflow"), y += T(g / t), g %= t, m.splice(g++, 0, y)
  4170.                     }
  4171.                     return u(m)
  4172.                 }
  4173.  
  4174.                 function p(e) {
  4175.                     var t, r, n, s, i, u, l, h, p, d, m, b, g, y, v, j = [];
  4176.                     for (e = a(e), b = e.length, t = q, r = 0, i = O, u = 0; b > u; ++u) m = e[u], 128 > m && j.push(F(m));
  4177.                     for (n = s = j.length, s && j.push(P); b > n;) {
  4178.                         for (l = $, u = 0; b > u; ++u) m = e[u], m >= t && l > m && (l = m);
  4179.                         for (g = n + 1, l - t > T(($ - r) / g) && o("overflow"), r += (l - t) * g, t = l, u = 0; b > u; ++u)
  4180.                             if (m = e[u], t > m && ++r > $ && o("overflow"), m == t) {
  4181.                                 for (h = r, p = w; d = i >= p ? k : p >= i + _ ? _ : p - i, !(d > h); p += w) v = h - d, y = w - d, j.push(F(c(d + v % y, 0))), h = T(v / y);
  4182.                                 j.push(F(c(h, 0))), i = f(r, g, n == s), r = 0, ++n
  4183.                             }++r, ++t
  4184.                     }
  4185.                     return j.join("")
  4186.                 }
  4187.  
  4188.                 function d(e) {
  4189.                     return i(e, function(e) {
  4190.                         return E.test(e) ? h(e.slice(4).toLowerCase()) : e
  4191.                     })
  4192.                 }
  4193.  
  4194.                 function m(e) {
  4195.                     return i(e, function(e) {
  4196.                         return S.test(e) ? "xn--" + p(e) : e
  4197.                     })
  4198.                 }
  4199.                 var b = "object" == typeof r && r && !r.nodeType && r,
  4200.                     g = "object" == typeof t && t && !t.nodeType && t,
  4201.                     y = "object" == typeof e && e;
  4202.                 (y.global === y || y.window === y || y.self === y) && (n = y);
  4203.                 var v, j, $ = 2147483647,
  4204.                     w = 36,
  4205.                     k = 1,
  4206.                     _ = 26,
  4207.                     x = 38,
  4208.                     A = 700,
  4209.                     O = 72,
  4210.                     q = 128,
  4211.                     P = "-",
  4212.                     E = /^xn--/,
  4213.                     S = /[^\x20-\x7E]/,
  4214.                     I = /[\x2E\u3002\uFF0E\uFF61]/g,
  4215.                     M = {
  4216.                         overflow: "Overflow: input needs wider integers to process",
  4217.                         "not-basic": "Illegal input >= 0x80 (not a basic code point)",
  4218.                         "invalid-input": "Invalid input"
  4219.                     },
  4220.                     C = w - k,
  4221.                     T = Math.floor,
  4222.                     F = String.fromCharCode;
  4223.                 if (v = {
  4224.                         version: "1.3.2",
  4225.                         ucs2: {
  4226.                             decode: a,
  4227.                             encode: u
  4228.                         },
  4229.                         decode: h,
  4230.                         encode: p,
  4231.                         toASCII: m,
  4232.                         toUnicode: d
  4233.                     }, "function" == typeof define && "object" == typeof define.amd && define.amd) define("punycode", function() {
  4234.                     return v
  4235.                 });
  4236.                 else if (b && g)
  4237.                     if (t.exports == b) g.exports = v;
  4238.                     else
  4239.                         for (j in v) v.hasOwnProperty(j) && (b[j] = v[j]);
  4240.                 else n.punycode = v
  4241.             }(this)
  4242.         }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  4243.     }, {}],
  4244.     139: [function(e, t, r) {
  4245.         "use strict";
  4246.  
  4247.         function n(e, t) {
  4248.             return Object.prototype.hasOwnProperty.call(e, t)
  4249.         }
  4250.         t.exports = function(e, t, r, s) {
  4251.             t = t || "&", r = r || "=";
  4252.             var i = {};
  4253.             if ("string" != typeof e || 0 === e.length) return i;
  4254.             var a = /\+/g;
  4255.             e = e.split(t);
  4256.             var u = 1e3;
  4257.             s && "number" == typeof s.maxKeys && (u = s.maxKeys);
  4258.             var l = e.length;
  4259.             u > 0 && l > u && (l = u);
  4260.             for (var c = 0; l > c; ++c) {
  4261.                 var f, h, p, d, m = e[c].replace(a, "%20"),
  4262.                     b = m.indexOf(r);
  4263.                 b >= 0 ? (f = m.substr(0, b), h = m.substr(b + 1)) : (f = m, h = ""), p = decodeURIComponent(f), d = decodeURIComponent(h), n(i, p) ? o(i[p]) ? i[p].push(d) : i[p] = [i[p], d] : i[p] = d
  4264.             }
  4265.             return i
  4266.         };
  4267.         var o = Array.isArray || function(e) {
  4268.             return "[object Array]" === Object.prototype.toString.call(e)
  4269.         }
  4270.     }, {}],
  4271.     140: [function(e, t, r) {
  4272.         "use strict";
  4273.  
  4274.         function n(e, t) {
  4275.             if (e.map) return e.map(t);
  4276.             for (var r = [], n = 0; n < e.length; n++) r.push(t(e[n], n));
  4277.             return r
  4278.         }
  4279.         var o = function(e) {
  4280.             switch (typeof e) {
  4281.                 case "string":
  4282.                     return e;
  4283.                 case "boolean":
  4284.                     return e ? "true" : "false";
  4285.                 case "number":
  4286.                     return isFinite(e) ? e : "";
  4287.                 default:
  4288.                     return ""
  4289.             }
  4290.         };
  4291.         t.exports = function(e, t, r, a) {
  4292.             return t = t || "&", r = r || "=", null === e && (e = void 0), "object" == typeof e ? n(i(e), function(i) {
  4293.                 var a = encodeURIComponent(o(i)) + r;
  4294.                 return s(e[i]) ? n(e[i], function(e) {
  4295.                     return a + encodeURIComponent(o(e))
  4296.                 }).join(t) : a + encodeURIComponent(o(e[i]))
  4297.             }).join(t) : a ? encodeURIComponent(o(a)) + r + encodeURIComponent(o(e)) : ""
  4298.         };
  4299.         var s = Array.isArray || function(e) {
  4300.                 return "[object Array]" === Object.prototype.toString.call(e)
  4301.             },
  4302.             i = Object.keys || function(e) {
  4303.                 var t = [];
  4304.                 for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.push(r);
  4305.                 return t
  4306.             }
  4307.     }, {}],
  4308.     141: [function(e, t, r) {
  4309.         "use strict";
  4310.         r.decode = r.parse = e("./decode"), r.encode = r.stringify = e("./encode")
  4311.     }, {
  4312.         "./decode": 139,
  4313.         "./encode": 140
  4314.     }],
  4315.     142: [function(e, t, r) {
  4316.         function n() {
  4317.             this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null
  4318.         }
  4319.  
  4320.         function o(e, t, r) {
  4321.             if (e && l(e) && e instanceof n) return e;
  4322.             var o = new n;
  4323.             return o.parse(e, t, r), o
  4324.         }
  4325.  
  4326.         function s(e) {
  4327.             return u(e) && (e = o(e)), e instanceof n ? e.format() : n.prototype.format.call(e)
  4328.         }
  4329.  
  4330.         function i(e, t) {
  4331.             return o(e, !1, !0).resolve(t)
  4332.         }
  4333.  
  4334.         function a(e, t) {
  4335.             return e ? o(e, !1, !0).resolveObject(t) : t
  4336.         }
  4337.  
  4338.         function u(e) {
  4339.             return "string" == typeof e
  4340.         }
  4341.  
  4342.         function l(e) {
  4343.             return "object" == typeof e && null !== e
  4344.         }
  4345.  
  4346.         function c(e) {
  4347.             return null === e
  4348.         }
  4349.  
  4350.         function f(e) {
  4351.             return null == e
  4352.         }
  4353.         var h = e("punycode");
  4354.         r.parse = o, r.resolve = i, r.resolveObject = a, r.format = s, r.Url = n;
  4355.         var p = /^([a-z0-9.+-]+:)/i,
  4356.             d = /:[0-9]*$/,
  4357.             m = ["<", ">", '"', "`", " ", "\r", "\n", " "],
  4358.             b = ["{", "}", "|", "\\", "^", "`"].concat(m),
  4359.             g = ["'"].concat(b),
  4360.             y = ["%", "/", "?", ";", "#"].concat(g),
  4361.             v = ["/", "?", "#"],
  4362.             j = 255,
  4363.             $ = /^[a-z0-9A-Z_-]{0,63}$/,
  4364.             w = /^([a-z0-9A-Z_-]{0,63})(.*)$/,
  4365.             k = {
  4366.                 javascript: !0,
  4367.                 "javascript:": !0
  4368.             },
  4369.             _ = {
  4370.                 javascript: !0,
  4371.                 "javascript:": !0
  4372.             },
  4373.             x = {
  4374.                 http: !0,
  4375.                 https: !0,
  4376.                 ftp: !0,
  4377.                 gopher: !0,
  4378.                 file: !0,
  4379.                 "http:": !0,
  4380.                 "https:": !0,
  4381.                 "ftp:": !0,
  4382.                 "gopher:": !0,
  4383.                 "file:": !0
  4384.             },
  4385.             A = e("querystring");
  4386.         n.prototype.parse = function(e, t, r) {
  4387.             if (!u(e)) throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
  4388.             var n = e;
  4389.             n = n.trim();
  4390.             var o = p.exec(n);
  4391.             if (o) {
  4392.                 o = o[0];
  4393.                 var s = o.toLowerCase();
  4394.                 this.protocol = s, n = n.substr(o.length)
  4395.             }
  4396.             if (r || o || n.match(/^\/\/[^@\/]+@[^@\/]+/)) {
  4397.                 var i = "//" === n.substr(0, 2);
  4398.                 !i || o && _[o] || (n = n.substr(2), this.slashes = !0)
  4399.             }
  4400.             if (!_[o] && (i || o && !x[o])) {
  4401.                 for (var a = -1, l = 0; l < v.length; l++) {
  4402.                     var c = n.indexOf(v[l]); - 1 !== c && (-1 === a || a > c) && (a = c)
  4403.                 }
  4404.                 var f, d;
  4405.                 d = -1 === a ? n.lastIndexOf("@") : n.lastIndexOf("@", a), -1 !== d && (f = n.slice(0, d), n = n.slice(d + 1), this.auth = decodeURIComponent(f)), a = -1;
  4406.                 for (var l = 0; l < y.length; l++) {
  4407.                     var c = n.indexOf(y[l]); - 1 !== c && (-1 === a || a > c) && (a = c)
  4408.                 } - 1 === a && (a = n.length), this.host = n.slice(0, a), n = n.slice(a), this.parseHost(), this.hostname = this.hostname || "";
  4409.                 var m = "[" === this.hostname[0] && "]" === this.hostname[this.hostname.length - 1];
  4410.                 if (!m)
  4411.                     for (var b = this.hostname.split(/\./), l = 0, O = b.length; O > l; l++) {
  4412.                         var q = b[l];
  4413.                         if (q && !q.match($)) {
  4414.                             for (var P = "", E = 0, S = q.length; S > E; E++) P += q.charCodeAt(E) > 127 ? "x" : q[E];
  4415.                             if (!P.match($)) {
  4416.                                 var I = b.slice(0, l),
  4417.                                     M = b.slice(l + 1),
  4418.                                     C = q.match(w);
  4419.                                 C && (I.push(C[1]), M.unshift(C[2])), M.length && (n = "/" + M.join(".") + n), this.hostname = I.join(".");
  4420.                                 break
  4421.                             }
  4422.                         }
  4423.                     }
  4424.                 if (this.hostname = this.hostname.length > j ? "" : this.hostname.toLowerCase(), !m) {
  4425.                     for (var T = this.hostname.split("."), F = [], l = 0; l < T.length; ++l) {
  4426.                         var R = T[l];
  4427.                         F.push(R.match(/[^A-Za-z0-9_-]/) ? "xn--" + h.encode(R) : R)
  4428.                     }
  4429.                     this.hostname = F.join(".")
  4430.                 }
  4431.                 var z = this.port ? ":" + this.port : "",
  4432.                     U = this.hostname || "";
  4433.                 this.host = U + z, this.href += this.host, m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), "/" !== n[0] && (n = "/" + n))
  4434.             }
  4435.             if (!k[s])
  4436.                 for (var l = 0, O = g.length; O > l; l++) {
  4437.                     var N = g[l],
  4438.                         L = encodeURIComponent(N);
  4439.                     L === N && (L = escape(N)), n = n.split(N).join(L)
  4440.                 }
  4441.             var W = n.indexOf("#"); - 1 !== W && (this.hash = n.substr(W), n = n.slice(0, W));
  4442.             var H = n.indexOf("?");
  4443.             if (-1 !== H ? (this.search = n.substr(H), this.query = n.substr(H + 1), t && (this.query = A.parse(this.query)), n = n.slice(0, H)) : t && (this.search = "", this.query = {}), n && (this.pathname = n), x[s] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
  4444.                 var z = this.pathname || "",
  4445.                     R = this.search || "";
  4446.                 this.path = z + R
  4447.             }
  4448.             return this.href = this.format(), this
  4449.         }, n.prototype.format = function() {
  4450.             var e = this.auth || "";
  4451.             e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
  4452.             var t = this.protocol || "",
  4453.                 r = this.pathname || "",
  4454.                 n = this.hash || "",
  4455.                 o = !1,
  4456.                 s = "";
  4457.             this.host ? o = e + this.host : this.hostname && (o = e + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (o += ":" + this.port)), this.query && l(this.query) && Object.keys(this.query).length && (s = A.stringify(this.query));
  4458.             var i = this.search || s && "?" + s || "";
  4459.             return t && ":" !== t.substr(-1) && (t += ":"), this.slashes || (!t || x[t]) && o !== !1 ? (o = "//" + (o || ""), r && "/" !== r.charAt(0) && (r = "/" + r)) : o || (o = ""), n && "#" !== n.charAt(0) && (n = "#" + n), i && "?" !== i.charAt(0) && (i = "?" + i), r = r.replace(/[?#]/g, function(e) {
  4460.                 return encodeURIComponent(e)
  4461.             }), i = i.replace("#", "%23"), t + o + r + i + n
  4462.         }, n.prototype.resolve = function(e) {
  4463.             return this.resolveObject(o(e, !1, !0)).format()
  4464.         }, n.prototype.resolveObject = function(e) {
  4465.             if (u(e)) {
  4466.                 var t = new n;
  4467.                 t.parse(e, !1, !0), e = t
  4468.             }
  4469.             var r = new n;
  4470.             if (Object.keys(this).forEach(function(e) {
  4471.                     r[e] = this[e]
  4472.                 }, this), r.hash = e.hash, "" === e.href) return r.href = r.format(), r;
  4473.             if (e.slashes && !e.protocol) return Object.keys(e).forEach(function(t) {
  4474.                 "protocol" !== t && (r[t] = e[t])
  4475.             }), x[r.protocol] && r.hostname && !r.pathname && (r.path = r.pathname = "/"), r.href = r.format(), r;
  4476.             if (e.protocol && e.protocol !== r.protocol) {
  4477.                 if (!x[e.protocol]) return Object.keys(e).forEach(function(t) {
  4478.                     r[t] = e[t]
  4479.                 }), r.href = r.format(), r;
  4480.                 if (r.protocol = e.protocol, e.host || _[e.protocol]) r.pathname = e.pathname;
  4481.                 else {
  4482.                     for (var o = (e.pathname || "").split("/"); o.length && !(e.host = o.shift()););
  4483.                     e.host || (e.host = ""), e.hostname || (e.hostname = ""), "" !== o[0] && o.unshift(""), o.length < 2 && o.unshift(""), r.pathname = o.join("/")
  4484.                 }
  4485.                 if (r.search = e.search, r.query = e.query, r.host = e.host || "", r.auth = e.auth, r.hostname = e.hostname || e.host, r.port = e.port, r.pathname || r.search) {
  4486.                     var s = r.pathname || "",
  4487.                         i = r.search || "";
  4488.                     r.path = s + i
  4489.                 }
  4490.                 return r.slashes = r.slashes || e.slashes, r.href = r.format(), r
  4491.             }
  4492.             var a = r.pathname && "/" === r.pathname.charAt(0),
  4493.                 l = e.host || e.pathname && "/" === e.pathname.charAt(0),
  4494.                 h = l || a || r.host && e.pathname,
  4495.                 p = h,
  4496.                 d = r.pathname && r.pathname.split("/") || [],
  4497.                 o = e.pathname && e.pathname.split("/") || [],
  4498.                 m = r.protocol && !x[r.protocol];
  4499.             if (m && (r.hostname = "", r.port = null, r.host && ("" === d[0] ? d[0] = r.host : d.unshift(r.host)), r.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && ("" === o[0] ? o[0] = e.host : o.unshift(e.host)), e.host = null), h = h && ("" === o[0] || "" === d[0])), l) r.host = e.host || "" === e.host ? e.host : r.host, r.hostname = e.hostname || "" === e.hostname ? e.hostname : r.hostname, r.search = e.search, r.query = e.query, d = o;
  4500.             else if (o.length) d || (d = []), d.pop(), d = d.concat(o), r.search = e.search, r.query = e.query;
  4501.             else if (!f(e.search)) {
  4502.                 if (m) {
  4503.                     r.hostname = r.host = d.shift();
  4504.                     var b = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
  4505.                     b && (r.auth = b.shift(),
  4506.                         r.host = r.hostname = b.shift())
  4507.                 }
  4508.                 return r.search = e.search, r.query = e.query, c(r.pathname) && c(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r
  4509.             }
  4510.             if (!d.length) return r.pathname = null, r.path = r.search ? "/" + r.search : null, r.href = r.format(), r;
  4511.             for (var g = d.slice(-1)[0], y = (r.host || e.host) && ("." === g || ".." === g) || "" === g, v = 0, j = d.length; j >= 0; j--) g = d[j], "." == g ? d.splice(j, 1) : ".." === g ? (d.splice(j, 1), v++) : v && (d.splice(j, 1), v--);
  4512.             if (!h && !p)
  4513.                 for (; v--; v) d.unshift("..");
  4514.             !h || "" === d[0] || d[0] && "/" === d[0].charAt(0) || d.unshift(""), y && "/" !== d.join("/").substr(-1) && d.push("");
  4515.             var $ = "" === d[0] || d[0] && "/" === d[0].charAt(0);
  4516.             if (m) {
  4517.                 r.hostname = r.host = $ ? "" : d.length ? d.shift() : "";
  4518.                 var b = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
  4519.                 b && (r.auth = b.shift(), r.host = r.hostname = b.shift())
  4520.             }
  4521.             return h = h || r.host && d.length, h && !$ && d.unshift(""), d.length ? r.pathname = d.join("/") : (r.pathname = null, r.path = null), c(r.pathname) && c(r.search) || (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = e.auth || r.auth, r.slashes = r.slashes || e.slashes, r.href = r.format(), r
  4522.         }, n.prototype.parseHost = function() {
  4523.             var e = this.host,
  4524.                 t = d.exec(e);
  4525.             t && (t = t[0], ":" !== t && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e)
  4526.         }
  4527.     }, {
  4528.         punycode: 138,
  4529.         querystring: 141
  4530.     }],
  4531.     143: [function(e, t, r) {
  4532.         t.exports = function() {
  4533.             function t(e) {
  4534.                 return '"' + e.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\x08/g, "\\b").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\f/g, "\\f").replace(/\r/g, "\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g, escape) + '"'
  4535.             }
  4536.             var r = {
  4537.                 parse: function(r, n) {
  4538.                     function o(e) {
  4539.                         $ > v || (v > $ && ($ = v, w = []), w.push(e))
  4540.                     }
  4541.  
  4542.                     function s() {
  4543.                         var e, t, r;
  4544.                         for (r = v, e = [], t = d(), null === t && (t = i()); null !== t;) e.push(t), t = d(), null === t && (t = i());
  4545.                         return null !== e && (e = function(e, t) {
  4546.                             return new _(t)
  4547.                         }(r, e)), null === e && (v = r), e
  4548.                     }
  4549.  
  4550.                     function i() {
  4551.                         var e, t, n, s, i, u;
  4552.                         return i = v, u = v, 123 === r.charCodeAt(v) ? (e = "{", v++) : (e = null, 0 === j && o('"{"')), null !== e ? (t = a(), null !== t ? (n = l(), null !== n ? (125 === r.charCodeAt(v) ? (s = "}", v++) : (s = null, 0 === j && o('"}"')), null !== s ? e = [e, t, n, s] : (e = null, v = u)) : (e = null, v = u)) : (e = null, v = u)) : (e = null, v = u), null !== e && (e = function(e, t, r) {
  4553.                             return x(t, r)
  4554.                         }(i, e[1], e[2])), null === e && (v = i), e
  4555.                     }
  4556.  
  4557.                     function a() {
  4558.                         var e;
  4559.                         return /^[\/;:.?&+#]/.test(r.charAt(v)) ? (e = r.charAt(v), v++) : (e = null, 0 === j && o("[\\/;:.?&+#]")), null === e && (e = ""), e
  4560.                     }
  4561.  
  4562.                     function u() {
  4563.                         var e;
  4564.                         return "{/" === r.substr(v, 2) ? (e = "{/", v += 2) : (e = null, 0 === j && o('"{/"')), e
  4565.                     }
  4566.  
  4567.                     function l() {
  4568.                         var e, t, n, s, i, a, u, l;
  4569.                         if (i = v, a = v, e = c(), null !== e) {
  4570.                             for (t = [], u = v, l = v, 44 === r.charCodeAt(v) ? (n = ",", v++) : (n = null, 0 === j && o('","')), null !== n ? (s = c(), null !== s ? n = [n, s] : (n = null, v = l)) : (n = null, v = l), null !== n && (n = function(e, t) {
  4571.                                     return t
  4572.                                 }(u, n[1])), null === n && (v = u); null !== n;) t.push(n), u = v, l = v, 44 === r.charCodeAt(v) ? (n = ",", v++) : (n = null, 0 === j && o('","')), null !== n ? (s = c(), null !== s ? n = [n, s] : (n = null, v = l)) : (n = null, v = l), null !== n && (n = function(e, t) {
  4573.                                 return t
  4574.                             }(u, n[1])), null === n && (v = u);
  4575.                             null !== t ? e = [e, t] : (e = null, v = a)
  4576.                         } else e = null, v = a;
  4577.                         return null !== e && (e = function(e, t, r) {
  4578.                             return r.unshift(t), r
  4579.                         }(i, e[0], e[1])), null === e && (v = i), e
  4580.                     }
  4581.  
  4582.                     function c() {
  4583.                         var e, t, n, s, i;
  4584.                         for (s = v, i = v, e = [], /^[a-zA-Z0-9_.%]/.test(r.charAt(v)) ? (t = r.charAt(v), v++) : (t = null, 0 === j && o("[a-zA-Z0-9_.%]")); null !== t;) e.push(t), /^[a-zA-Z0-9_.%]/.test(r.charAt(v)) ? (t = r.charAt(v), v++) : (t = null, 0 === j && o("[a-zA-Z0-9_.%]"));
  4585.                         return null !== e ? (t = f(), null === t && (t = h()), t = null !== t ? t : "", null !== t ? (n = m(), n = null !== n ? n : "", null !== n ? e = [e, t, n] : (e = null, v = i)) : (e = null, v = i)) : (e = null, v = i), null !== e && (e = function(e, t, r, n) {
  4586.                             return r = r || {}, {
  4587.                                 name: t.join(""),
  4588.                                 explode: r.listMarker,
  4589.                                 cut: r.cut,
  4590.                                 extended: n
  4591.                             }
  4592.                         }(s, e[0], e[1], e[2])), null === e && (v = s), e
  4593.                     }
  4594.  
  4595.                     function f() {
  4596.                         var e, t;
  4597.                         return t = v, e = p(), null !== e && (e = function(e, t) {
  4598.                             return {
  4599.                                 cut: t
  4600.                             }
  4601.                         }(t, e)), null === e && (v = t), e
  4602.                     }
  4603.  
  4604.                     function h() {
  4605.                         var e, t;
  4606.                         return t = v, 42 === r.charCodeAt(v) ? (e = "*", v++) : (e = null, 0 === j && o('"*"')), null !== e && (e = function(e, t) {
  4607.                             return {
  4608.                                 listMarker: t
  4609.                             }
  4610.                         }(t, e)), null === e && (v = t), e
  4611.                     }
  4612.  
  4613.                     function p() {
  4614.                         var e, t, n, s, i;
  4615.                         if (s = v, i = v, 58 === r.charCodeAt(v) ? (e = ":", v++) : (e = null, 0 === j && o('":"')), null !== e) {
  4616.                             if (/^[0-9]/.test(r.charAt(v)) ? (n = r.charAt(v), v++) : (n = null, 0 === j && o("[0-9]")), null !== n)
  4617.                                 for (t = []; null !== n;) t.push(n), /^[0-9]/.test(r.charAt(v)) ? (n = r.charAt(v), v++) : (n = null, 0 === j && o("[0-9]"));
  4618.                             else t = null;
  4619.                             null !== t ? e = [e, t] : (e = null, v = i)
  4620.                         } else e = null, v = i;
  4621.                         return null !== e && (e = function(e, t) {
  4622.                             return parseInt(t.join(""))
  4623.                         }(s, e[1])), null === e && (v = s), e
  4624.                     }
  4625.  
  4626.                     function d() {
  4627.                         var e, t, n;
  4628.                         if (n = v, /^[^{]/.test(r.charAt(v)) ? (t = r.charAt(v), v++) : (t = null, 0 === j && o("[^{]")), null !== t)
  4629.                             for (e = []; null !== t;) e.push(t), /^[^{]/.test(r.charAt(v)) ? (t = r.charAt(v), v++) : (t = null, 0 === j && o("[^{]"));
  4630.                         else e = null;
  4631.                         return null !== e && (e = function(e, t) {
  4632.                             return t.join("")
  4633.                         }(n, e)), null === e && (v = n), e
  4634.                     }
  4635.  
  4636.                     function m() {
  4637.                         var e, t, n, s, i;
  4638.                         if (s = v, i = v, 40 === r.charCodeAt(v) ? (e = "(", v++) : (e = null, 0 === j && o('"("')), null !== e) {
  4639.                             if (/^[^)]/.test(r.charAt(v)) ? (n = r.charAt(v), v++) : (n = null, 0 === j && o("[^)]")), null !== n)
  4640.                                 for (t = []; null !== n;) t.push(n), /^[^)]/.test(r.charAt(v)) ? (n = r.charAt(v), v++) : (n = null, 0 === j && o("[^)]"));
  4641.                             else t = null;
  4642.                             null !== t ? (41 === r.charCodeAt(v) ? (n = ")", v++) : (n = null, 0 === j && o('")"')), null !== n ? e = [e, t, n] : (e = null, v = i)) : (e = null, v = i)
  4643.                         } else e = null, v = i;
  4644.                         return null !== e && (e = function(e, t) {
  4645.                             return t.join("")
  4646.                         }(s, e[1])), null === e && (v = s), e
  4647.                     }
  4648.  
  4649.                     function b(e) {
  4650.                         e.sort();
  4651.                         for (var t = null, r = [], n = 0; n < e.length; n++) e[n] !== t && (r.push(e[n]), t = e[n]);
  4652.                         return r
  4653.                     }
  4654.  
  4655.                     function g() {
  4656.                         for (var e = 1, t = 1, n = !1, o = 0; o < Math.max(v, $); o++) {
  4657.                             var s = r.charAt(o);
  4658.                             "\n" === s ? (n || e++, t = 1, n = !1) : "\r" === s || "\u2028" === s || "\u2029" === s ? (e++, t = 1, n = !0) : (t++, n = !1)
  4659.                         }
  4660.                         return {
  4661.                             line: e,
  4662.                             column: t
  4663.                         }
  4664.                     }
  4665.                     var y = {
  4666.                         uriTemplate: s,
  4667.                         expression: i,
  4668.                         op: a,
  4669.                         pathExpression: u,
  4670.                         paramList: l,
  4671.                         param: c,
  4672.                         cut: f,
  4673.                         listMarker: h,
  4674.                         substr: p,
  4675.                         nonexpression: d,
  4676.                         extension: m
  4677.                     };
  4678.                     if (void 0 !== n) {
  4679.                         if (void 0 === y[n]) throw new Error("Invalid rule name: " + t(n) + ".")
  4680.                     } else n = "uriTemplate";
  4681.                     var v = 0,
  4682.                         j = 0,
  4683.                         $ = 0,
  4684.                         w = [],
  4685.                         k = e("./lib/classes"),
  4686.                         _ = k.Template,
  4687.                         x = k.expression,
  4688.                         A = y[n]();
  4689.                     if (null === A || v !== r.length) {
  4690.                         var O = Math.max(v, $),
  4691.                             q = O < r.length ? r.charAt(O) : null,
  4692.                             P = g();
  4693.                         throw new this.SyntaxError(b(w), q, O, P.line, P.column)
  4694.                     }
  4695.                     return A
  4696.                 },
  4697.                 toSource: function() {
  4698.                     return this._source
  4699.                 }
  4700.             };
  4701.             return r.SyntaxError = function(e, r, n, o, s) {
  4702.                 function i(e, r) {
  4703.                     var n, o;
  4704.                     switch (e.length) {
  4705.                         case 0:
  4706.                             n = "end of input";
  4707.                             break;
  4708.                         case 1:
  4709.                             n = e[0];
  4710.                             break;
  4711.                         default:
  4712.                             n = e.slice(0, e.length - 1).join(", ") + " or " + e[e.length - 1]
  4713.                     }
  4714.                     return o = r ? t(r) : "end of input", "Expected " + n + " but " + o + " found."
  4715.                 }
  4716.                 this.name = "SyntaxError", this.expected = e, this.found = r, this.message = i(e, r), this.offset = n, this.line = o, this.column = s
  4717.             }, r.SyntaxError.prototype = Error.prototype, r
  4718.         }()
  4719.     }, {
  4720.         "./lib/classes": 144
  4721.     }],
  4722.     144: [function(e, t, r) {
  4723.         (function() {
  4724.             var r, n, o, s, i, a, u, l, c, f, h, p, d, m, b, g, y, v, j, $ = function(e, t) {
  4725.                     return function() {
  4726.                         return e.apply(t, arguments)
  4727.                     }
  4728.                 },
  4729.                 w = {}.hasOwnProperty,
  4730.                 k = function(e, t) {
  4731.                     function r() {
  4732.                         this.constructor = e
  4733.                     }
  4734.                     for (var n in t) w.call(t, n) && (e[n] = t[n]);
  4735.                     return r.prototype = t.prototype, e.prototype = new r, e.__super__ = t.prototype, e
  4736.                 };
  4737.             h = e("./encoders"), f = f = function() {
  4738.                 function e(e) {
  4739.                     var t, r = this;
  4740.                     this.expressions = [], this.prefix = "string" == typeof e[0] ? e.shift() : "", t = 0, e.forEach(function(e) {
  4741.                         switch (typeof e) {
  4742.                             case "object":
  4743.                                 return r.expressions[t++] = e;
  4744.                             case "string":
  4745.                                 return r.expressions[t - 1].suffix = e
  4746.                         }
  4747.                     })
  4748.                 }
  4749.                 return e.prototype.expand = function(e) {
  4750.                     return this.prefix + this.expressions.map(function(t) {
  4751.                         return t.expand(e)
  4752.                     }).join("")
  4753.                 }, e.prototype.toString = function() {
  4754.                     return this.prefix + this.expressions.join("")
  4755.                 }, e.prototype.toJSON = function() {
  4756.                     return this.toString()
  4757.                 }, e
  4758.             }(), c = function() {
  4759.                 function e(e) {
  4760.                     this.params = e, this.explodeObject = $(this.explodeObject, this), this.explodeArray = $(this.explodeArray, this), this._expandPair = $(this._expandPair, this), this.stringifySingle = $(this.stringifySingle, this), this.encode = $(this.encode, this), null == this.params && (this.params = []), this.suffix = ""
  4761.                 }
  4762.                 var t;
  4763.                 return e.prototype.first = "", e.prototype.sep = ",", e.prototype.named = !1, e.prototype.empty = "", e.prototype.allow = "U", e.prototype.encode = function(e) {
  4764.                     return h[this.allow](e)
  4765.                 }, e.prototype.stringifySingle = function(e, t) {
  4766.                     var r, n, o;
  4767.                     if (n = typeof t, "string" === n || "boolean" === n || "number" === n) return t = t.toString(), this.encode(t.substring(0, e.cut || t.length));
  4768.                     if (Array.isArray(t)) {
  4769.                         if (e.cut) throw new Error("Prefixed Values do not support lists. Check " + e.name);
  4770.                         return t.map(this.encode).join(",")
  4771.                     }
  4772.                     if (e.cut) throw new Error("Prefixed Values do not support maps. Check " + e.name);
  4773.                     return function() {
  4774.                         var e;
  4775.                         e = [];
  4776.                         for (r in t) o = t[r], e.push([r, o].map(this.encode).join(","));
  4777.                         return e
  4778.                     }.call(this).join(",")
  4779.                 }, e.prototype.expand = function(e) {
  4780.                     var r, n, o = this;
  4781.                     return r = t(this.params, e), n = r.map(function(e) {
  4782.                         return o._expandPair.apply(o, e)
  4783.                     }).join(this.sep), n ? this.first + n + this.suffix : this.empty && r.length ? this.empty + this.suffix : this.suffix
  4784.                 }, t = function(e, t) {
  4785.                     return e.map(function(e) {
  4786.                         return [e, t[e.name]]
  4787.                     }).filter(function(e) {
  4788.                         var t, r, n;
  4789.                         switch (r = e[1], typeof r) {
  4790.                             case "undefined":
  4791.                                 return !1;
  4792.                             case "object":
  4793.                                 Array.isArray(r) && r.length > 0;
  4794.                                 for (t in r)
  4795.                                     if (n = r[t]) return !0;
  4796.                                 return !1;
  4797.                             default:
  4798.                                 return !0
  4799.                         }
  4800.                     })
  4801.                 }, e.prototype._expandPair = function(e, t) {
  4802.                     var r;
  4803.                     return r = e.name, e.explode ? Array.isArray(t) ? this.explodeArray(e, t) : "string" == typeof t ? this.stringifySingle(e, t) : this.explodeObject(t) : this.stringifySingle(e, t)
  4804.                 }, e.prototype.explodeArray = function(e, t) {
  4805.                     return t.map(this.encode).join(this.sep)
  4806.                 }, e.prototype.explodeObject = function(e) {
  4807.                     var t, r, n, o, s, i;
  4808.                     r = [];
  4809.                     for (t in e)
  4810.                         if (n = e[t], t = this.encode(t), Array.isArray(n))
  4811.                             for (s = 0, i = n.length; i > s; s++) o = n[s], r.push([t, this.encode(o)]);
  4812.                         else r.push([t, this.encode(n)]);
  4813.                     return r.map(function(e) {
  4814.                         return e.join("=")
  4815.                     }).join(this.sep)
  4816.                 }, e.prototype.toString = function() {
  4817.                     var e;
  4818.                     return e = this.params.map(function(e) {
  4819.                         return e.name + e.explode
  4820.                     }).join(","), "{" + this.first + e + "}" + this.suffix
  4821.                 }, e.prototype.toJSON = function() {
  4822.                     return this.toString()
  4823.                 }, e
  4824.             }(), i = function(e) {
  4825.                 function t() {
  4826.                     return this.explodeArray = $(this.explodeArray, this), this.stringifySingle = $(this.stringifySingle, this), p = t.__super__.constructor.apply(this, arguments)
  4827.                 }
  4828.                 return k(t, e), t.prototype.stringifySingle = function(e, r) {
  4829.                     return r = (r = t.__super__.stringifySingle.apply(this, arguments)) ? "=" + r : this.empty, "" + e.name + r
  4830.                 }, t.prototype.explodeArray = function(e, t) {
  4831.                     var r = this;
  4832.                     return t.map(function(t) {
  4833.                         return "" + e.name + "=" + r.encode(t)
  4834.                     }).join(this.sep)
  4835.                 }, t
  4836.             }(c), l = function(e) {
  4837.                 function t() {
  4838.                     return d = t.__super__.constructor.apply(this, arguments)
  4839.                 }
  4840.                 return k(t, e), t.prototype.encode = function(e) {
  4841.                     return h["U+R"](e)
  4842.                 }, t.prototype.toString = function() {
  4843.                     return "{+" + t.__super__.toString.apply(this, arguments).substring(1)
  4844.                 }, t
  4845.             }(c), o = function(e) {
  4846.                 function t() {
  4847.                     return m = t.__super__.constructor.apply(this, arguments)
  4848.                 }
  4849.                 return k(t, e), t.prototype.first = "#", t.prototype.empty = "#", t.prototype.encode = function(e) {
  4850.                     return h["U+R"](e)
  4851.                 }, t
  4852.             }(c), s = function(e) {
  4853.                 function t() {
  4854.                     return b = t.__super__.constructor.apply(this, arguments)
  4855.                 }
  4856.                 return k(t, e), t.prototype.first = ".", t.prototype.sep = ".", t.prototype.empty = ".", t
  4857.             }(c), u = function(e) {
  4858.                 function t() {
  4859.                     return g = t.__super__.constructor.apply(this, arguments)
  4860.                 }
  4861.                 return k(t, e), t.prototype.first = "/", t.prototype.sep = "/", t
  4862.             }(c), a = function(e) {
  4863.                 function t() {
  4864.                     return y = t.__super__.constructor.apply(this, arguments)
  4865.                 }
  4866.                 return k(t, e), t.prototype.first = ";", t.prototype.sep = ";", t
  4867.             }(i), n = function(e) {
  4868.                 function t() {
  4869.                     return v = t.__super__.constructor.apply(this, arguments)
  4870.                 }
  4871.                 return k(t, e), t.prototype.first = "?", t.prototype.sep = "&", t.prototype.empty = "=", t
  4872.             }(i), r = function(e) {
  4873.                 function t() {
  4874.                     return j = t.__super__.constructor.apply(this, arguments)
  4875.                 }
  4876.                 return k(t, e), t.prototype.first = "&", t
  4877.             }(n), t.exports = {
  4878.                 Template: f,
  4879.                 SimpleExpression: c,
  4880.                 NamedExpression: i,
  4881.                 ReservedExpression: l,
  4882.                 FragmentExpression: o,
  4883.                 LabelExpression: s,
  4884.                 PathSegmentExpression: u,
  4885.                 PathParamExpression: a,
  4886.                 FormStartExpression: n,
  4887.                 FormContinuationExpression: r,
  4888.                 expression: function(e, t) {
  4889.                     var i;
  4890.                     return new(i = function() {
  4891.                         switch (e) {
  4892.                             case "":
  4893.                                 return c;
  4894.                             case "+":
  4895.                                 return l;
  4896.                             case "#":
  4897.                                 return o;
  4898.                             case ".":
  4899.                                 return s;
  4900.                             case "/":
  4901.                                 return u;
  4902.                             case ";":
  4903.                                 return a;
  4904.                             case "?":
  4905.                                 return n;
  4906.                             case "&":
  4907.                                 return r
  4908.                         }
  4909.                     }())(t)
  4910.                 }
  4911.             }
  4912.         }).call(this)
  4913.     }, {
  4914.         "./encoders": 145
  4915.     }],
  4916.     145: [function(e, t, r) {
  4917.         (function() {
  4918.             var t;
  4919.             t = e("pct-encode"), r.U = t(/[^\w~.-]/g), r["U+R"] = t(/[^\w.~:\/\?#\[\]@!\$&'()*+,;=-]/g)
  4920.         }).call(this)
  4921.     }, {
  4922.         "pct-encode": 146
  4923.     }],
  4924.     146: [function(e, t, r) {
  4925.         t.exports = function(e) {
  4926.             return e = e || /\W/g,
  4927.                 function(t) {
  4928.                     return t = String(t), t.replace(e, function(e) {
  4929.                         var t = e[0].charCodeAt(0),
  4930.                             r = [];
  4931.                         return 128 > t ? r.push(t) : t >= 128 && 2048 > t ? (r.push(t >> 6 | 192), r.push(63 & t | 128)) : (r.push(t >> 12 | 224), r.push(t >> 6 & 63 | 128), r.push(63 & t | 128)), r.map(function(e) {
  4932.                             return "%" + e.toString(16).toUpperCase()
  4933.                         }).join("")
  4934.                     })
  4935.                 }
  4936.         }
  4937.     }, {}]
  4938. }, {}, [4]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement