Skip to content

Instantly share code, notes, and snippets.

@maleadt maleadt/vrt-drm.js Secret
Last active May 30, 2018

Embed
What would you like to do?
! function(e, t) {
for (var n in t) e[n] = t[n]
}(this, function(e) {
function t(n) {
if (r[n]) return r[n].exports;
var i = r[n] = {
i: n,
l: !1,
exports: {}
};
return e[n].call(i.exports, i, i.exports, t), i.l = !0, i.exports
}
var n = window.webpackJsonp;
window.webpackJsonp = function(t, r, o) {
for (var s, a, u = 0, c = []; u < t.length; u++) a = t[u], i[a] &&
c.push(i[a][0]), i[a] = 0;
for (s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] =
r[s]);
for (n && n(t, r, o); c.length;) c.shift()()
};
var r = {},
i = {
12: 0
};
return t.e = function(e) {
function n() {
a.onerror = a.onload = null, clearTimeout(u);
var t = i[e];
0 !== t && (t && t[1](new Error("Loading chunk " + e +
" failed.")), i[e] = void 0)
}
var r = i[e];
if (0 === r) return new Promise(function(e) {
e()
});
if (r) return r[2];
var o = new Promise(function(t, n) {
r = i[e] = [t, n]
});
r[2] = o;
var s = document.getElementsByTagName("head")[0],
a = document.createElement("script");
a.type = "text/javascript", a.charset = "utf-8", a.async = !0,
a.timeout = 12e4, t.nc && a.setAttribute("nonce", t.nc), a.src =
t.p + "" + ({
0: "europarl.skin",
1: "viasat.skin",
2: "vuplay.skin",
3: "default.skin",
4: "vualto.skin",
5: "chromecast.cast",
6: "adobe.stats",
7: "youbora.stats",
8: "vualto.stats",
9: "comscore.stats",
10: "cim.stats",
11: "at-internet.stats"
}[e] || e) + ".vuplay-smart.js";
var u = setTimeout(n, 12e4);
return a.onerror = a.onload = n, s.appendChild(a), o
}, t.m = e, t.c = r, t.d = function(e, n, r) {
t.o(e, n) || Object.defineProperty(e, n, {
configurable: !1,
enumerable: !0,
get: r
})
}, t.n = function(e) {
var n = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return t.d(n, "a", n), n
}, t.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, t.p = "https://cdn.vuplay.co.uk/vuplay-smart/1.13.50/", t.oe =
function(e) {
throw console.error(e), e
}, t(t.s = 48)
}([function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = function(e) {
function t(t, n, r) {
var i = e.call(this, t) || this;
return i.message = t, i.type = n, i.args = r, i
}
return r(t, e), t
}(Error);
t.VuplayError = i;
! function(e) {
e[e.UNKNOWN = 0] = "UNKNOWN", e[e.REQUEST = 1] = "REQUEST",
e[e.SETUP = 2] = "SETUP", e[e.PLAYER = 3] = "PLAYER", e[
e.SKIN = 4] = "SKIN"
}(t.VuplayErrorType || (t.VuplayErrorType = {}))
}, function(e, t, n) {
e.exports = n(97).Promise
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = {
IConfig: "Config",
ILog: "Log",
IPlayerLoader: "PlayerLoader",
IHttpRequest: "HttpRequest",
IEventBus: "EventBus",
IStatsManager: "StatsManager",
ISkinManager: "SkinManager",
ICastManager: "CastManager",
IAdManager: "AdManager",
ISocketsManager: "SocketsManager"
};
t.default = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.NAMED_TAG = "named", t.NAME_TAG = "name", t.UNMANAGED_TAG =
"unmanaged", t.OPTIONAL_TAG = "optional", t.INJECT_TAG =
"inject", t.MULTI_INJECT_TAG = "multi_inject", t.TAGGED =
"inversify:tagged", t.TAGGED_PROP =
"inversify:tagged_props", t.PARAM_TYPES =
"inversify:paramtypes", t.DESIGN_PARAM_TYPES =
"design:paramtypes", t.POST_CONSTRUCT = "post_construct"
}, function(e, t) {
var n;
n = function() {
return this
}();
try {
n = n || Function("return this")() || (0, eval)("this")
} catch (e) {
"object" == typeof window && (n = window)
}
e.exports = n
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(14);
t.EventName = r.Helpers.strEnum(["error", "canplay", "loadsrc",
"playing", "play", "pause", "seeking", "seeked",
"ratechange", "progress", "timeupdate", "ended",
"loadedmetadata", "loadeddata", "playerready",
"volumechange", "texttrackadded", "bufferstart",
"bufferend", "log", "adbreakbegin", "adbreakend",
"adbegin", "adskipped", "adend", "aderror",
"caststart", "castend", "castloaded", "castready",
"fullscreenchanged", "audiotrackchanged",
"socketconnect", "socketreconnect", "socketerror",
"socketdisconnect", "socketping", "socketpong",
"socketmessage", "clipstartset", "clipendset"
])
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(3);
t.METADATA_KEY = r;
var i = n(70);
t.Container = i.Container;
var o = n(12);
t.BindingScopeEnum = o.BindingScopeEnum, t.BindingTypeEnum = o.BindingTypeEnum,
t.TargetTypeEnum = o.TargetTypeEnum;
var s = n(86);
t.ContainerModule = s.ContainerModule;
var a = n(87);
t.injectable = a.injectable;
var u = n(88);
t.tagged = u.tagged;
var c = n(89);
t.named = c.named;
var l = n(90);
t.inject = l.inject;
var p = n(91);
t.optional = p.optional;
var h = n(92);
t.unmanaged = h.unmanaged;
var d = n(93);
t.multiInject = d.multiInject;
var f = n(94);
t.targetName = f.targetName;
var y = n(95);
t.postConstruct = y.postConstruct;
var v = n(49);
t.MetadataReader = v.MetadataReader;
var _ = n(20);
t.guid = _.guid;
var g = n(17);
t.decorate = g.decorate;
var m = n(53);
t.traverseAncerstors = m.traverseAncerstors, t.taggedConstraint =
m.taggedConstraint, t.namedConstraint = m.namedConstraint,
t.typeConstraint = m.typeConstraint;
var b = n(28);
t.getServiceIdentifierAsString = b.getServiceIdentifierAsString;
var E = n(96);
t.multiBindToService = E.multiBindToService
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.DUPLICATED_INJECTABLE_DECORATOR =
"Cannot apply @injectable decorator multiple times.", t.DUPLICATED_METADATA =
"Metadata key was used more than once in a parameter:", t.NULL_ARGUMENT =
"NULL argument", t.KEY_NOT_FOUND = "Key Not Found", t.AMBIGUOUS_MATCH =
"Ambiguous match found for serviceIdentifier:", t.CANNOT_UNBIND =
"Could not unbind serviceIdentifier:", t.NOT_REGISTERED =
"No matching bindings found for serviceIdentifier:", t.MISSING_INJECTABLE_ANNOTATION =
"Missing required @injectable annotation in:", t.MISSING_INJECT_ANNOTATION =
"Missing required @inject or @multiInject annotation in:",
t.CIRCULAR_DEPENDENCY = "Circular dependency found:", t.NOT_IMPLEMENTED =
"Sorry, this feature is not fully implemented yet.", t.INVALID_BINDING_TYPE =
"Invalid binding type:", t.NO_MORE_SNAPSHOTS_AVAILABLE =
"No snapshot available to restore.", t.INVALID_MIDDLEWARE_RETURN =
"Invalid return type in middleware. Middleware must return!",
t.INVALID_FUNCTION_BINDING =
"Value provided to function binding must be a function!", t
.INVALID_TO_SELF_VALUE =
"The toSelf function can only be applied when a constructor is used as service identifier",
t.INVALID_DECORATOR_OPERATION =
"The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",
t.ARGUMENTS_LENGTH_MISMATCH_1 =
"The number of constructor arguments in the derived class ",
t.ARGUMENTS_LENGTH_MISMATCH_2 =
" must be >= than the number of constructor arguments of its base class.",
t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT =
"Invalid Container constructor argument. Container options must be an object.",
t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE =
"Invalid Container option. Default scope must be a string ('singleton' or 'transient').",
t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE =
"Invalid Container option. Auto bind injectable must be a boolean",
t.MULTIPLE_POST_CONSTRUCT_METHODS =
"Cannot apply @postConstruct decorator multiple times in the same class",
t.POST_CONSTRUCT_ERROR = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] =
arguments[t];
return "@postConstruct error in class " + e[0] + ": " +
e[1]
}, t.CIRCULAR_DEPENDENCY_IN_FACTORY = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] =
arguments[t];
return "It looks like there is a circular dependency in one of the '" +
e[0] +
"' bindings. Please investigate bindings withservice identifier '" +
e[1] + "'."
}, t.STACK_OVERFLOW = "Maximum call stack size exceeded"
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(3),
i = function() {
function e(e, t) {
this.key = e, this.value = t
}
return e.prototype.toString = function() {
return this.key === r.NAMED_TAG ? "named: " +
this.value.toString() + " " :
"tagged: { key:" + this.key.toString() +
", value: " + this.value + " }"
}, e
}();
t.Metadata = i
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
! function(e) {
e[e.VUPLAY = 0] = "VUPLAY", e[e.MEDIA = 1] = "MEDIA", e[e.ERROR =
2] = "ERROR", e[e.LOG = 3] = "LOG", e[e.AD = 4] =
"AD", e[e.CAST = 5] = "CAST", e[e.SOCKET = 6] =
"SOCKET"
}(t.EventType || (t.EventType = {}))
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(43),
o = n(22),
s = function(e) {
function t(t, n) {
return e.call(this, o.LogLevel.WARN, "log", {
message: t,
logLevel: o.LogLevel.WARN,
args: n
}) || this
}
return r(t, e), t
}(i.LogEvent);
t.LogWarn = s
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(43),
o = n(22),
s = function(e) {
function t(t, n) {
return e.call(this, o.LogLevel.DEBUG, "log", {
message: t,
logLevel: o.LogLevel.DEBUG,
args: n
}) || this
}
return r(t, e), t
}(i.LogEvent);
t.LogDebug = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = {
Request: "Request",
Singleton: "Singleton",
Transient: "Transient"
};
t.BindingScopeEnum = r;
var i = {
ConstantValue: "ConstantValue",
Constructor: "Constructor",
DynamicValue: "DynamicValue",
Factory: "Factory",
Function: "Function",
Instance: "Instance",
Invalid: "Invalid",
Provider: "Provider"
};
t.BindingTypeEnum = i;
var o = {
ClassProperty: "ClassProperty",
ConstructorArgument: "ConstructorArgument",
Variable: "Variable"
};
t.TargetTypeEnum = o
}, function(e, t, n) {
(function(r) {
function i() {
return !("undefined" == typeof window || !window.process ||
"renderer" !== window.process.type) || (
"undefined" != typeof document && document.documentElement &&
document.documentElement.style && document.documentElement
.style.WebkitAppearance || "undefined" !=
typeof window && window.console && (window.console
.firebug || window.console.exception &&
window.console.table) || "undefined" !=
typeof navigator && navigator.userAgent &&
navigator.userAgent.toLowerCase().match(
/firefox\/(\d+)/) && parseInt(RegExp.$1,
10) >= 31 || "undefined" != typeof navigator &&
navigator.userAgent && navigator.userAgent.toLowerCase()
.match(/applewebkit\/(\d+)/))
}
function o(e) {
var n = this.useColors;
if (e[0] = (n ? "%c" : "") + this.namespace + (n ?
" %c" : " ") + e[0] + (n ? "%c " : " ") +
"+" + t.humanize(this.diff), n) {
var r = "color: " + this.color;
e.splice(1, 0, r, "color: inherit");
var i = 0,
o = 0;
e[0].replace(/%[a-zA-Z%]/g, function(e) {
"%%" !== e && (i++, "%c" === e && (
o = i))
}), e.splice(o, 0, r)
}
}
function s() {
return "object" == typeof console && console.log &&
Function.prototype.apply.call(console.log,
console, arguments)
}
function a(e) {
try {
null == e ? t.storage.removeItem("debug") : t.storage
.debug = e
} catch (e) {}
}
function u() {
var e;
try {
e = t.storage.debug
} catch (e) {}
return !e && void 0 !== r && "env" in r && (e = r.env
.DEBUG), e
}
t = e.exports = n(144), t.log = s, t.formatArgs = o, t.save =
a, t.load = u, t.useColors = i, t.storage =
"undefined" != typeof chrome && void 0 !== chrome.storage ?
chrome.storage.local : function() {
try {
return window.localStorage
} catch (e) {}
}(), t.colors = ["lightseagreen", "forestgreen",
"goldenrod", "dodgerblue", "darkorchid",
"crimson"
], t.formatters.j = function(e) {
try {
return JSON.stringify(e)
} catch (e) {
return "[UnexpectedJSONParseError]: " + e.message
}
}, t.enable(u())
}).call(t, n(42))
}, function(e, t, n) {
"use strict";
(function(e) {
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(23);
! function(t) {
function n(e) {
return e.reduce(function(e, t) {
return e[t] = t, e
}, Object.create(null))
}
function i(e, t) {
for (var n in t) e.setAttribute(n, t[n])
}
function o(e, t, n, r, i) {
var o = document.createElement(e);
if ("video" === e && void 0 !== i && null !==
i && o.setAttribute("poster", i), t)
for (var s = 0; s < t.length; s++) o.classList
.add(t[s]);
return n ? r ? (n.insertBefore(o, r), o) : (n.appendChild(
o), o) : o
}
function s(e) {
var t = Math.floor(e);
t < 0 && (t *= -1);
var n = Math.floor(t / 3600),
r = Math.floor((t - 3600 * n) / 60),
i = t - 3600 * n - 60 * r,
o = n.toString(),
s = r.toString(),
a = i.toString();
return r < 10 && (s = "0" + r), i < 10 && (a =
"0" + i), n < 10 && (o = "0" + n), e <
0 ? "-" + o + ":" + s + ":" + a : o + ":" +
s + ":" + a
}
function a(t, n) {
return new e(function(e, r) {
n() && e(t);
var i = document.createElement(
"script");
i.type = "text/javascript", i.src =
t, document.body.appendChild(i);
var o = setInterval(function() {
n() && (clearInterval(o),
e(t))
}, 50)
})
}
function u() {
return /Chrome/.test(navigator.userAgent) &&
/Google Inc/.test(navigator.vendor)
}
function c() {
return !!navigator.platform &&
/iPad|iPhone|iPod/.test(navigator.platform)
}
function l(e) {
return e.getSkin() !== r.SkinType.NO_SKIN || e.isIOS() ?
e.getPlayerDiv() : e.getContainerDiv()
}
t.strEnum = n, t.setAttributes = i, t.createElement =
o, t.toHHMMSS = s, t.loadScript = a, t.isChrome =
u, t.isIOS = c, t.getAppropriateDiv = l
}(t.Helpers || (t.Helpers = {}))
}).call(t, n(1))
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(19),
o = n(9),
s = function(e) {
function t(t, n, r) {
return r || (r = new Date), e.call(this, o.EventType
.MEDIA, t, n, r) || this
}
return r(t, e), t
}(i.EventBase);
t.MediaEvent = s
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(19),
o = n(9),
s = function(e) {
function t(t, n) {
var r = this;
return n || (n = new Date), r = e.call(this, o.EventType
.ERROR, "error", {
error: t
}, n) || this, r.message = t.message, r
}
return r(t, e), t
}(i.EventBase);
t.ErrorEvent = s
}, function(e, t, n) {
"use strict";
function r(e, t, n, r) {
o(l.TAGGED, e, t, r, n)
}
function i(e, t, n) {
o(l.TAGGED_PROP, e.constructor, t, n)
}
function o(e, t, n, r, i) {
var o = {},
s = "number" == typeof i,
a = void 0 !== i && s ? i.toString() : n;
if (s && void 0 !== n) throw new Error(c.INVALID_DECORATOR_OPERATION);
Reflect.hasOwnMetadata(e, t) && (o = Reflect.getMetadata(e,
t));
var u = o[a];
if (Array.isArray(u))
for (var l = 0, p = u; l < p.length; l++) {
var h = p[l];
if (h.key === r.key) throw new Error(c.DUPLICATED_METADATA +
" " + h.key)
} else u = [];
u.push(r), o[a] = u, Reflect.defineMetadata(e, o, t)
}
function s(e, t) {
Reflect.decorate(e, t)
}
function a(e, t) {
return function(n, r) {
t(n, r, e)
}
}
function u(e, t, n) {
"number" == typeof n ? s([a(n, e)], t) : "string" == typeof n ?
Reflect.decorate([e], t, n) : s([e], t)
}
Object.defineProperty(t, "__esModule", {
value: !0
});
var c = n(7),
l = n(3);
t.tagParameter = r, t.tagProperty = i, t.decorate = u
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.StatsPluginIds = {
YOUBORA: "youbora",
VUALTO: "vualto",
COMSCORE: "comscore",
CIM: "cim",
AT_INTERNET: "at_internet",
ADOBE: "adobe"
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t, n, r) {
this.type = e, this.name = t, this.args = n, this.date =
r
}
return e.prototype.setSmartId = function(e) {
this.smartId = e
}, e
}();
t.EventBase = r
}, function(e, t, n) {
"use strict";
function r() {
function e() {
return Math.floor(65536 * (Math.random() + 1)).toString(
16).substring(1)
}
return e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" +
e() + e() + e()
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.guid = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t, n) {
this.playerId = e, this.playerConfig = t, this.drmProviders =
n
}
return e
}();
t.VuplayPlayer = r
}, function(e, t, n) {
"use strict";
var r = this && this.__decorate || function(e, t, n, r) {
var i, o = arguments.length,
s = o < 3 ? t : null === r ? r = Object.getOwnPropertyDescriptor(
t, n) : r;
if ("object" == typeof Reflect && "function" == typeof Reflect
.decorate) s = Reflect.decorate(e, t, n, r);
else
for (var a = e.length - 1; a >= 0; a--)(i = e[a]) &&
(s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t,
n)) || s);
return o > 3 && s && Object.defineProperty(t, n, s), s
},
i = this && this.__metadata || function(e, t) {
if ("object" == typeof Reflect && "function" == typeof Reflect
.metadata) return Reflect.metadata(e, t)
};
Object.defineProperty(t, "__esModule", {
value: !0
});
var o = n(6);
n(35);
var s, a = n(2),
u = n(9),
c = n(5);
! function(e) {
e[e.NONE = 0] = "NONE", e[e.ERROR = 1] = "ERROR", e[e.WARN =
2] = "WARN", e[e.INFO = 3] = "INFO", e[e.DEBUG = 4] =
"DEBUG"
}(s = t.LogLevel || (t.LogLevel = {}));
var l = function() {
function e() {
this._logLevel = s.DEBUG
}
return e.prototype.setDependencies = function(e) {
var t = this;
this._eventBus = e.getDependency(a.default.IEventBus),
this._eventBus.on(u.EventType.LOG, c.EventName
.log,
function(e) {
t._onLogEvent(e)
}), this._eventBus.on(u.EventType.ERROR,
c.EventName.error,
function(e) {
t._onErrorEvent(e)
})
}, e.prototype.setLogLevel = function(e) {
this._logLevel = e
}, e.prototype.getLogLevel = function() {
return this._logLevel
}, e.prototype._onLogEvent = function(e) {
if (e.args.logLevel <= this._logLevel) switch (
e.args.logLevel) {
case s.DEBUG:
window.console && window.console.debug &&
window.console.debug(s[e.args.logLevel],
e.args.message, e.args);
break;
case s.INFO:
window.console && window.console.info &&
window.console.info(s[e.args.logLevel],
e.args.message, e.args);
break;
case s.WARN:
window.console && window.console.warn &&
window.console.warn(s[e.args.logLevel],
e.args.message, e.args)
}
}, e.prototype._onErrorEvent = function(e) {
this._logLevel >= s.ERROR && window.console &&
window.console.error && window.console.error(
e.message, e.args)
}, e = r([o.injectable(), i("design:paramtypes", [])],
e)
}();
t.Log = l
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
! function(e) {
e[e.NO_SKIN = 0] = "NO_SKIN", e[e.DEFAULT = 1] = "DEFAULT",
e[e.VUPLAY = 2] = "VUPLAY", e[e.EUROPARL = 3] =
"EUROPARL", e[e.VIASAT = 4] = "VIASAT", e[e.VUALTO = 5] =
"VUALTO"
}(t.SkinType || (t.SkinType = {}))
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e) {
this.pluginId = e
}
return e
}();
t.StatsPluginLoaderBase = r
}, function(e, t, n) {
function r(e) {
if (e) return i(e)
}
function i(e) {
for (var t in r.prototype) e[t] = r.prototype[t];
return e
}
e.exports = r, r.prototype.on = r.prototype.addEventListener =
function(e, t) {
return this._callbacks = this._callbacks || {}, (this._callbacks[
"$" + e] = this._callbacks["$" + e] || []).push(
t), this
}, r.prototype.once = function(e, t) {
function n() {
this.off(e, n), t.apply(this, arguments)
}
return n.fn = t, this.on(e, n), this
}, r.prototype.off = r.prototype.removeListener = r.prototype
.removeAllListeners = r.prototype.removeEventListener =
function(e, t) {
if (this._callbacks = this._callbacks || {}, 0 ==
arguments.length) return this._callbacks = {}, this;
var n = this._callbacks["$" + e];
if (!n) return this;
if (1 == arguments.length) return delete this._callbacks[
"$" + e], this;
for (var r, i = 0; i < n.length; i++)
if ((r = n[i]) === t || r.fn === t) {
n.splice(i, 1);
break
}
return this
}, r.prototype.emit = function(e) {
this._callbacks = this._callbacks || {};
var t = [].slice.call(arguments, 1),
n = this._callbacks["$" + e];
if (n) {
n = n.slice(0);
for (var r = 0, i = n.length; r < i; ++r) n[r].apply(
this, t)
}
return this
}, r.prototype.listeners = function(e) {
return this._callbacks = this._callbacks || {}, this._callbacks[
"$" + e] || []
}, r.prototype.hasListeners = function(e) {
return !!this.listeners(e).length
}
}, function(e, t, n) {
(function(e) {
function r(e, n) {
return n("b" + t.packets[e.type] + e.data.data)
}
function i(e, n, r) {
if (!n) return t.encodeBase64Packet(e, r);
var i = e.data,
o = new Uint8Array(i),
s = new Uint8Array(1 + i.byteLength);
s[0] = g[e.type];
for (var a = 0; a < o.length; a++) s[a + 1] = o[a];
return r(s.buffer)
}
function o(e, n, r) {
if (!n) return t.encodeBase64Packet(e, r);
var i = new FileReader;
return i.onload = function() {
e.data = i.result, t.encodePacket(e, n, !0,
r)
}, i.readAsArrayBuffer(e.data)
}
function s(e, n, r) {
if (!n) return t.encodeBase64Packet(e, r);
if (_) return o(e, n, r);
var i = new Uint8Array(1);
return i[0] = g[e.type], r(new E([i.buffer, e.data]))
}
function a(e) {
try {
e = f.decode(e, {
strict: !1
})
} catch (e) {
return !1
}
return e
}
function u(e, t, n) {
for (var r = new Array(e.length), i = d(e.length, n),
o = 0; o < e.length; o++) ! function(e, n,
i) {
t(n, function(t, n) {
r[e] = n, i(t, r)
})
}(o, e[o], i)
}
var c, l = n(151),
p = n(58),
h = n(152),
d = n(153),
f = n(154);
e && e.ArrayBuffer && (c = n(155));
var y = "undefined" != typeof navigator && /Android/i.test(
navigator.userAgent),
v = "undefined" != typeof navigator && /PhantomJS/i
.test(navigator.userAgent),
_ = y || v;
t.protocol = 3;
var g = t.packets = {
open: 0,
close: 1,
ping: 2,
pong: 3,
message: 4,
upgrade: 5,
noop: 6
},
m = l(g),
b = {
type: "error",
data: "parser error"
},
E = n(156);
t.encodePacket = function(t, n, o, a) {
"function" == typeof n && (a = n, n = !1),
"function" == typeof o && (a = o, o = null);
var u = void 0 === t.data ? void 0 : t.data.buffer ||
t.data;
if (e.ArrayBuffer && u instanceof ArrayBuffer)
return i(t, n, a);
if (E && u instanceof e.Blob) return s(t, n, a);
if (u && u.base64) return r(t, a);
var c = g[t.type];
return void 0 !== t.data && (c += o ? f.encode(
String(t.data), {
strict: !1
}) : String(t.data)), a("" + c)
}, t.encodeBase64Packet = function(n, r) {
var i = "b" + t.packets[n.type];
if (E && n.data instanceof e.Blob) {
var o = new FileReader;
return o.onload = function() {
var e = o.result.split(",")[1];
r(i + e)
}, o.readAsDataURL(n.data)
}
var s;
try {
s = String.fromCharCode.apply(null, new Uint8Array(
n.data))
} catch (e) {
for (var a = new Uint8Array(n.data), u =
new Array(a.length), c = 0; c < a.length; c++)
u[c] = a[c];
s = String.fromCharCode.apply(null, u)
}
return i += e.btoa(s), r(i)
}, t.decodePacket = function(e, n, r) {
if (void 0 === e) return b;
if ("string" == typeof e) {
if ("b" === e.charAt(0)) return t.decodeBase64Packet(
e.substr(1), n);
if (r && !1 === (e = a(e))) return b;
var i = e.charAt(0);
return Number(i) == i && m[i] ? e.length >
1 ? {
type: m[i],
data: e.substring(1)
} : {
type: m[i]
} : b
}
var o = new Uint8Array(e),
i = o[0],
s = h(e, 1);
return E && "blob" === n && (s = new E([s])), {
type: m[i],
data: s
}
}, t.decodeBase64Packet = function(e, t) {
var n = m[e.charAt(0)];
if (!c) return {
type: n,
data: {
base64: !0,
data: e.substr(1)
}
};
var r = c.decode(e.substr(1));
return "blob" === t && E && (r = new E([r])), {
type: n,
data: r
}
}, t.encodePayload = function(e, n, r) {
function i(e) {
return e.length + ":" + e
}
function o(e, r) {
t.encodePacket(e, !!s && n, !1, function(e) {
r(null, i(e))
})
}
"function" == typeof n && (r = n, n = null);
var s = p(e);
return n && s ? E && !_ ? t.encodePayloadAsBlob(
e, r) : t.encodePayloadAsArrayBuffer(e,
r) : e.length ? void u(e, o, function(e,
t) {
return r(t.join(""))
}) : r("0:")
}, t.decodePayload = function(e, n, r) {
if ("string" != typeof e) return t.decodePayloadAsBinary(
e, n, r);
"function" == typeof n && (r = n, n = null);
var i;
if ("" === e) return r(b, 0, 1);
for (var o, s, a = "", u = 0, c = e.length; u <
c; u++) {
var l = e.charAt(u);
if (":" === l) {
if ("" === a || a != (o = Number(a)))
return r(b, 0, 1);
if (s = e.substr(u + 1, o), a != s.length)
return r(b, 0, 1);
if (s.length) {
if (i = t.decodePacket(s, n, !1), b
.type === i.type && b.data ===
i.data) return r(b, 0, 1);
if (!1 === r(i, u + o, c)) return
}
u += o, a = ""
} else a += l
}
return "" !== a ? r(b, 0, 1) : void 0
}, t.encodePayloadAsArrayBuffer = function(e, n) {
function r(e, n) {
t.encodePacket(e, !0, !0, function(e) {
return n(null, e)
})
}
if (!e.length) return n(new ArrayBuffer(0));
u(e, r, function(e, t) {
var r = t.reduce(function(e, t) {
var n;
return n = "string" ==
typeof t ? t.length :
t.byteLength, e + n
.toString().length +
n + 2
}, 0),
i = new Uint8Array(r),
o = 0;
return t.forEach(function(e) {
var t = "string" ==
typeof e,
n = e;
if (t) {
for (var r = new Uint8Array(
e.length
), s = 0; s < e
.length; s++) r[
s] = e.charCodeAt(
s);
n = r.buffer
}
i[o++] = t ? 0 : 1;
for (var a = n.byteLength
.toString(), s =
0; s < a.length; s++)
i[o++] = parseInt(a[
s]);
i[o++] = 255;
for (var r = new Uint8Array(
n), s = 0; s <
r.length; s++) i[o++] =
r[s]
}), n(i.buffer)
})
}, t.encodePayloadAsBlob = function(e, n) {
function r(e, n) {
t.encodePacket(e, !0, !0, function(e) {
var t = new Uint8Array(1);
if (t[0] = 1, "string" ==
typeof e) {
for (var r = new Uint8Array(
e.length), i =
0; i < e.length; i++)
r[i] = e.charCodeAt(i);
e = r.buffer, t[0] = 0
}
for (var o = e instanceof ArrayBuffer ?
e.byteLength : e.size,
s = o.toString(), a =
new Uint8Array(s.length +
1), i = 0; i < s.length; i++)
a[i] = parseInt(s[i]);
if (a[s.length] = 255, E) {
var u = new E([t.buffer, a.buffer,
e
]);
n(null, u)
}
})
}
u(e, r, function(e, t) {
return n(new E(t))
})
}, t.decodePayloadAsBinary = function(e, n, r) {
"function" == typeof n && (r = n, n = null);
for (var i = e, o = []; i.byteLength > 0;) {
for (var s = new Uint8Array(i), a = 0 ===
s[0], u = "", c = 1; 255 !== s[c]; c++) {
if (u.length > 310) return r(b, 0, 1);
u += s[c]
}
i = h(i, 2 + u.length), u = parseInt(u);
var l = h(i, 0, u);
if (a) try {
l = String.fromCharCode.apply(null,
new Uint8Array(l))
} catch (e) {
var p = new Uint8Array(l);
l = "";
for (var c = 0; c < p.length; c++) l +=
String.fromCharCode(p[c])
}
o.push(l), i = h(i, u)
}
var d = o.length;
o.forEach(function(e, i) {
r(t.decodePacket(e, n, !0), i, d)
})
}
}).call(t, n(4))
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(43),
o = n(22),
s = function(e) {
function t(t, n) {
return e.call(this, o.LogLevel.INFO, "log", {
message: t,
logLevel: o.LogLevel.INFO,
args: n
}) || this
}
return r(t, e), t
}(i.LogEvent);
t.LogInfo = s
}, function(e, t, n) {
"use strict";
function r(e) {
if ("function" == typeof e) {
var t = e;
return t.name
}
if ("symbol" == typeof e) return e.toString();
var t = e;
return t
}
function i(e, t, n) {
var r = "",
i = n(e, t);
return 0 !== i.length && (r = "\nRegistered bindings:", i.forEach(
function(e) {
var t = "Object";
null !== e.implementationType && (t = c(e.implementationType)),
r = r + "\n " + t, e.constraint.metaData &&
(r = r + " - " + e.constraint.metaData)
})), r
}
function o(e, t) {
return null !== e.parentRequest && (e.parentRequest.serviceIdentifier ===
t || o(e.parentRequest, t))
}
function s(e) {
function t(e, n) {
void 0 === n && (n = []);
var i = r(e.serviceIdentifier);
return n.push(i), null !== e.parentRequest ? t(e.parentRequest,
n) : n
}
return t(e).reverse().join(" --\x3e ")
}
function a(e) {
e.childRequests.forEach(function(e) {
if (o(e, e.serviceIdentifier)) {
var t = s(e);
throw new Error(l.CIRCULAR_DEPENDENCY + " " +
t)
}
a(e)
})
}
function u(e, t) {
if (t.isTagged() || t.isNamed()) {
var n = "",
r = t.getNamedTag(),
i = t.getCustomTags();
return null !== r && (n += r.toString() + "\n"), null !==
i && i.forEach(function(e) {
n += e.toString() + "\n"
}), " " + e + "\n " + e + " - " + n
}
return " " + e
}
function c(e) {
if (e.name) return e.name;
var t = e.toString(),
n = t.match(/^function\s*([^\s(]+)/);
return n ? n[1] : "Anonymous function: " + t
}
Object.defineProperty(t, "__esModule", {
value: !0
});
var l = n(7);
t.getServiceIdentifierAsString = r, t.listRegisteredBindingsForServiceIdentifier =
i, t.circularDependencyToException = a, t.listMetadataForTarget =
u, t.getFunctionName = c
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t, n) {
this.id = e, this.lang = t, this.isActive = n
}
return e
}();
t.AudioTrack = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t, n, r, i) {
this.id = e, this.lang = t, this.label = n || t,
this.kind = r, this.defaultTrack = i
}
return e
}();
t.TextTrack = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e() {}
return e
}();
t.SkinLoaderBase = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.VuplayApiUrl = "https://api.vuplay.co.uk", t.GetStatsPlugins =
"https://api.vuplay.co.uk/stats/plugins?player_key={player_key}",
t.SocketsUrl = "https://sockets.vuplay.co.uk", t.SocketsPath =
"/connect", t.silverlightMinRuntimeVersion = "5.0.61118.0",
t.appName = "vuplay-smart"
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(6),
i = n(2),
o = n(104),
s = n(115),
a = n(117),
u = n(125),
c = n(132),
l = new r.Container;
l.bind(i.default.IPlayerLoader).to(o.PlayerLoader), l.bind(i.default
.IHttpRequest).to(s.HttpRequest), l.bind(i.default.IStatsManager)
.to(a.StatsManager), l.bind(i.default.ISkinManager).to(u.SkinManager),
l.bind(i.default.ICastManager).to(c.CastManager), t.default =
l
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
! function(e) {
e[e.CHROMECAST = 0] = "CHROMECAST"
}(t.CastType || (t.CastType = {}))
}, function(e, t, n) {
(function(e, t) {
var n;
! function(n) {
"use strict";
function r(e, t, n, r) {
if (P(n)) {
if (!N(e)) throw new TypeError;
if (!R(t)) throw new TypeError;
return d(e, t)
}
if (!N(e)) throw new TypeError;
if (!A(t)) throw new TypeError;
if (!A(r) && !P(r) && !S(r)) throw new TypeError;
return S(r) && (r = void 0), n = M(n), f(e, t,
n, r)
}
function i(e, t) {
function n(n, r) {
if (!A(n)) throw new TypeError;
if (!P(r) && !I(r)) throw new TypeError;
b(e, t, n, r)
}
return n
}
function o(e, t, n, r) {
if (!A(n)) throw new TypeError;
return P(r) || (r = M(r)), b(e, t, n, r)
}
function s(e, t, n) {
if (!A(t)) throw new TypeError;
return P(n) || (n = M(n)), v(e, t, n)
}
function a(e, t, n) {
if (!A(t)) throw new TypeError;
return P(n) || (n = M(n)), _(e, t, n)
}
function u(e, t, n) {
if (!A(t)) throw new TypeError;
return P(n) || (n = M(n)), g(e, t, n)
}
function c(e, t, n) {
if (!A(t)) throw new TypeError;
return P(n) || (n = M(n)), m(e, t, n)
}
function l(e, t) {
if (!A(e)) throw new TypeError;
return P(t) || (t = M(t)), E(e, t)
}
function p(e, t) {
if (!A(e)) throw new TypeError;
return P(t) || (t = M(t)), w(e, t)
}
function h(e, t, n) {
if (!A(t)) throw new TypeError;
P(n) || (n = M(n));
var r = y(t, n, !1);
if (P(r)) return !1;
if (!r.delete(e)) return !1;
if (r.size > 0) return !0;
var i = ee.get(t);
return i.delete(n), i.size > 0 || (ee.delete(t), !
0)
}
function d(e, t) {
for (var n = e.length - 1; n >= 0; --n) {
var r = e[n],
i = r(t);
if (!P(i) && !S(i)) {
if (!R(i)) throw new TypeError;
t = i
}
}
return t
}
function f(e, t, n, r) {
for (var i = e.length - 1; i >= 0; --i) {
var o = e[i],
s = o(t, n, r);
if (!P(s) && !S(s)) {
if (!A(s)) throw new TypeError;
r = s
}
}
return r
}
function y(e, t, n) {
var r = ee.get(e);
if (P(r)) {
if (!n) return;
r = new $, ee.set(e, r)
}
var i = r.get(t);
if (P(i)) {
if (!n) return;
i = new $, r.set(t, i)
}
return i
}
function v(e, t, n) {
if (_(e, t, n)) return !0;
var r = H(t);
return !S(r) && v(e, r, n)
}
function _(e, t, n) {
var r = y(t, n, !1);
return !P(r) && O(r.has(e))
}
function g(e, t, n) {
if (_(e, t, n)) return m(e, t, n);
var r = H(t);
return S(r) ? void 0 : g(e, r, n)
}
function m(e, t, n) {
var r = y(t, n, !1);
if (!P(r)) return r.get(e)
}
function b(e, t, n, r) {
y(n, r, !0).set(e, t)
}
function E(e, t) {
var n = w(e, t),
r = H(e);
if (null === r) return n;
var i = E(r, t);
if (i.length <= 0) return n;
if (n.length <= 0) return i;
for (var o = new Q, s = [], a = 0, u = n; a < u
.length; a++) {
var c = u[a],
l = o.has(c);
l || (o.add(c), s.push(c))
}
for (var p = 0, h = i; p < h.length; p++) {
var c = h[p],
l = o.has(c);
l || (o.add(c), s.push(c))
}
return s
}
function w(e, t) {
var n = [],
r = y(e, t, !1);
if (P(r)) return n;
for (var i = r.keys(), o = j(i), s = 0;;) {
var a = F(o);
if (!a) return n.length = s, n;
var u = V(a);
try {
n[s] = u
} catch (e) {
try {
U(o)
} finally {
throw e
}
}
s++
}
}
function T(e) {
if (null === e) return 1;
switch (typeof e) {
case "undefined":
return 0;
case "boolean":
return 2;
case "string":
return 3;
case "symbol":
return 4;
case "number":
return 5;
case "object":
return null === e ? 1 : 6;
default:
return 6
}
}
function P(e) {
return void 0 === e
}
function S(e) {
return null === e
}
function k(e) {
return "symbol" == typeof e
}
function A(e) {
return "object" == typeof e ? null !== e :
"function" == typeof e
}
function C(e, t) {
switch (T(e)) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
return e
}
var n = 3 === t ? "string" : 5 === t ? "number" :
"default",
r = x(e, J);
if (void 0 !== r) {
var i = r.call(e, n);
if (A(i)) throw new TypeError;
return i
}
return B(e, "default" === n ? "number" : n)
}
function B(e, t) {
if ("string" === t) {
var n = e.toString;
if (D(n)) {
var r = n.call(e);
if (!A(r)) return r
}
var i = e.valueOf;
if (D(i)) {
var r = i.call(e);
if (!A(r)) return r
}
} else {
var i = e.valueOf;
if (D(i)) {
var r = i.call(e);
if (!A(r)) return r
}
var o = e.toString;
if (D(o)) {
var r = o.call(e);
if (!A(r)) return r
}
}
throw new TypeError
}
function O(e) {
return !!e
}
function L(e) {
return "" + e
}
function M(e) {
var t = C(e, 3);
return k(t) ? t : L(t)
}
function N(e) {
return Array.isArray ? Array.isArray(e) : e instanceof Object ?
e instanceof Array : "[object Array]" ===
Object.prototype.toString.call(e)
}
function D(e) {
return "function" == typeof e
}
function R(e) {
return "function" == typeof e
}
function I(e) {
switch (T(e)) {
case 3:
case 4:
return !0;
default:
return !1
}
}
function x(e, t) {
var n = e[t];
if (void 0 !== n && null !== n) {
if (!D(n)) throw new TypeError;
return n
}
}
function j(e) {
var t = x(e, z);
if (!D(t)) throw new TypeError;
var n = t.call(e);
if (!A(n)) throw new TypeError;
return n
}
function V(e) {
return e.value
}
function F(e) {
var t = e.next();
return !t.done && t
}
function U(e) {
var t = e.return;
t && t.call(e)
}
function H(e) {
var t = Object.getPrototypeOf(e);
if ("function" != typeof e || e === K) return t;
if (t !== K) return t;
var n = e.prototype,
r = n && Object.getPrototypeOf(n);
if (null == r || r === Object.prototype) return t;
var i = r.constructor;
return "function" != typeof i ? t : i === e ? t :
i
}
function q(e) {
return e.__ = void 0, delete e.__, e
}
var W, G = Object.prototype.hasOwnProperty,
Y = "function" == typeof Symbol,
J = Y && void 0 !== Symbol.toPrimitive ? Symbol
.toPrimitive : "@@toPrimitive",
z = Y && void 0 !== Symbol.iterator ? Symbol.iterator :
"@@iterator";
! function(e) {
var t = "function" == typeof Object.create,
n = {
__proto__: []
}
instanceof Array, r = !t && !n;
e.create = t ? function() {
return q(Object.create(null))
} : n ? function() {
return q({
__proto__: null
})
} : function() {
return q({})
}, e.has = r ? function(e, t) {
return G.call(e, t)
} : function(e, t) {
return t in e
}, e.get = r ? function(e, t) {
return G.call(e, t) ? e[t] : void 0
} : function(e, t) {
return e[t]
}
}(W || (W = {}));
var K = Object.getPrototypeOf(Function),
X = "object" == typeof e && e.env && "true" ===
e.env.REFLECT_METADATA_USE_MAP_POLYFILL,
$ = X || "function" != typeof Map || "function" !=
typeof Map.prototype.entries ? function() {
function e(e, t) {
return e
}
function t(e, t) {
return t
}
function n(e, t) {
return [e, t]
}
var r = {},
i = [],
o = function() {
function e(e, t, n) {
this._index = 0, this._keys = e,
this._values = t, this._selector =
n
}
return e.prototype["@@iterator"] =
function() {
return this
}, e.prototype[z] = function() {
return this
}, e.prototype.next = function() {
var e = this._index;
if (e >= 0 && e < this._keys
.length) {
var t = this._selector(
this._keys[e],
this._values[e]
);
return e + 1 >= this._keys
.length ? (this._index = -
1, this._keys =
i, this._values =
i) : this._index++, {
value: t,
done: !1
}
}
return {
value: void 0,
done: !0
}
}, e.prototype.throw = function(
e) {
throw this._index >= 0 && (
this._index = -1,
this._keys = i,
this._values = i),
e
}, e.prototype.return =
function(e) {
return this._index >= 0 &&
(this._index = -1, this
._keys = i, this._values =
i), {
value: e,
done: !0
}
}, e
}();
return function() {
function i() {
this._keys = [], this._values = [],
this._cacheKey = r, this._cacheIndex = -
2
}
return Object.defineProperty(i.prototype,
"size", {
get: function() {
return this._keys
.length
},
enumerable: !0,
configurable: !0
}), i.prototype.has =
function(e) {
return this._find(e, !1) >=
0
}, i.prototype.get = function(e) {
var t = this._find(e, !1);
return t >= 0 ? this._values[
t] : void 0
}, i.prototype.set = function(e,
t) {
var n = this._find(e, !0);
return this._values[n] = t,
this
}, i.prototype.delete =
function(e) {
var t = this._find(e, !1);
if (t >= 0) {
for (var n = this._keys
.length, i = t +
1; i < n; i++)
this._keys[i - 1] =
this._keys[i], this
._values[i - 1] =
this._values[i];
return this._keys.length--,
this._values.length--,
e === this._cacheKey &&
(this._cacheKey = r,
this._cacheIndex = -
2), !0
}
return !1
}, i.prototype.clear = function() {
this._keys.length = 0, this
._values.length = 0,
this._cacheKey = r,
this._cacheIndex = -2
}, i.prototype.keys = function() {
return new o(this._keys,
this._values, e)
}, i.prototype.values =
function() {
return new o(this._keys,
this._values, t)
}, i.prototype.entries =
function() {
return new o(this._keys,
this._values, n)
}, i.prototype["@@iterator"] =
function() {
return this.entries()
}, i.prototype[z] = function() {
return this.entries()
}, i.prototype._find = function(
e, t) {
return this._cacheKey !==
e && (this._cacheIndex =
this._keys.indexOf(
this._cacheKey =
e)), this._cacheIndex <
0 && t && (this._cacheIndex =
this._keys.length,
this._keys.push(e),
this._values.push(
void 0)), this._cacheIndex
}, i
}()
}() : Map,
Q = X || "function" != typeof Set || "function" !=
typeof Set.prototype.entries ? function() {
return function() {
function e() {
this._map = new $
}
return Object.defineProperty(e.prototype,
"size", {
get: function() {
return this._map
.size
},
enumerable: !0,
configurable: !0
}), e.prototype.has =
function(e) {
return this._map.has(e)
}, e.prototype.add = function(e) {
return this._map.set(e, e),
this
}, e.prototype.delete =
function(e) {
return this._map.delete(e)
}, e.prototype.clear = function() {
this._map.clear()
}, e.prototype.keys = function() {
return this._map.keys()
}, e.prototype.values =
function() {
return this._map.values()
}, e.prototype.entries =
function() {
return this._map.entries()
}, e.prototype["@@iterator"] =
function() {
return this.keys()
}, e.prototype[z] = function() {
return this.keys()
}, e
}()
}() : Set,
Z = X || "function" != typeof WeakMap ?
function() {
function e() {
var e;
do {
e = "@@WeakMap@@" + i()
} while (W.has(s, e));
return s[e] = !0, e
}
function t(e, t) {
if (!G.call(e, a)) {
if (!t) return;
Object.defineProperty(e, a, {
value: W.create()
})
}
return e[a]
}
function n(e, t) {
for (var n = 0; n < t; ++n) e[n] = 255 *
Math.random() | 0;
return e
}
function r(e) {
return "function" == typeof Uint8Array ?
"undefined" != typeof crypto ?
crypto.getRandomValues(new Uint8Array(
e)) : "undefined" != typeof msCrypto ?
msCrypto.getRandomValues(new Uint8Array(
e)) : n(new Uint8Array(e), e) :
n(new Array(e), e)
}
function i() {
var e = r(o);
e[6] = 79 & e[6] | 64, e[8] = 191 & e[8] |
128;
for (var t = "", n = 0; n < o; ++n) {
var i = e[n];
4 !== n && 6 !== n && 8 !== n || (t +=
"-"), i < 16 && (t += "0"),
t += i.toString(16).toLowerCase()
}
return t
}
var o = 16,
s = W.create(),
a = e();
return function() {
function n() {
this._key = e()
}
return n.prototype.has = function(e) {
var n = t(e, !1);
return void 0 !== n && W.has(
n, this._key)
}, n.prototype.get = function(e) {
var n = t(e, !1);
return void 0 !== n ? W.get(
n, this._key) :
void 0
}, n.prototype.set = function(e,
n) {
return t(e, !0)[this._key] =
n, this
}, n.prototype.delete =
function(e) {
var n = t(e, !1);
return void 0 !== n &&
delete n[this._key]
}, n.prototype.clear = function() {
this._key = e()
}, n
}()
}() : WeakMap,
ee = new Z;
n.decorate = r, n.metadata = i, n.defineMetadata =
o, n.hasMetadata = s, n.hasOwnMetadata = a, n.getMetadata =
u, n.getOwnMetadata = c, n.getMetadataKeys = l,
n.getOwnMetadataKeys = p, n.deleteMetadata = h,
function(e) {
if (void 0 !== e.Reflect) {
if (e.Reflect !== n)
for (var t in n) G.call(n, t) && (e
.Reflect[t] = n[t])
} else e.Reflect = n
}(void 0 !== t ? t : "undefined" != typeof self ?
self : Function("return this;")())
}(n || (n = {}))
}).call(t, n(42), n(4))
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(19),
o = n(9),
s = function(e) {
function t(t, n, r, i) {
return i || (i = new Date), e.call(this, o.EventType
.AD, t, {
duration: n,
skipTime: r
}, i) || this
}
return r(t, e), t
}(i.EventBase);
t.AdEvent = s
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(19),
o = n(9),
s = function(e) {
function t(t, n, r, i, s) {
return s || (s = new Date), e.call(this, o.EventType
.AD, t, {
startTime: n,
duration: r,
adCount: i
}, s) || this
}
return r(t, e), t
}(i.EventBase);
t.AdBreakEvent = s
}, function(e, t) {
t.encode = function(e) {
var t = "";
for (var n in e) e.hasOwnProperty(n) && (t.length && (t +=
"&"), t += encodeURIComponent(n) + "=" +
encodeURIComponent(e[n]));
return t
}, t.decode = function(e) {
for (var t = {}, n = e.split("&"), r = 0, i = n.length; r <
i; r++) {
var o = n[r].split("=");
t[decodeURIComponent(o[0])] = decodeURIComponent(o[
1])
}
return t
}
}, function(e, t) {
e.exports = function(e, t) {
var n = function() {};
n.prototype = t.prototype, e.prototype = new n, e.prototype
.constructor = e
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(41),
i = function() {
function e(e) {
this._binding = e
}
return e.prototype.onActivation = function(e) {
return this._binding.onActivation = e, new r.BindingWhenSyntax(
this._binding)
}, e
}();
t.BindingOnSyntax = i
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(40),
i = n(53),
o = function() {
function e(e) {
this._binding = e
}
return e.prototype.when = function(e) {
return this._binding.constraint = e, new r.BindingOnSyntax(
this._binding)
}, e.prototype.whenTargetNamed = function(e) {
return this._binding.constraint = i.namedConstraint(
e), new r.BindingOnSyntax(this._binding)
}, e.prototype.whenTargetIsDefault = function() {
return this._binding.constraint = function(e) {
return null !== e.target && !e.target.isNamed() &&
!e.target.isTagged()
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenTargetTagged = function(e, t) {
return this._binding.constraint = i.taggedConstraint(
e)(t), new r.BindingOnSyntax(this._binding)
}, e.prototype.whenInjectedInto = function(e) {
return this._binding.constraint = function(t) {
return i.typeConstraint(e)(t.parentRequest)
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenParentNamed = function(e) {
return this._binding.constraint = function(t) {
return i.namedConstraint(e)(t.parentRequest)
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenParentTagged = function(e, t) {
return this._binding.constraint = function(n) {
return i.taggedConstraint(e)(t)(n.parentRequest)
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenAnyAncestorIs = function(e) {
return this._binding.constraint = function(t) {
return i.traverseAncerstors(t, i.typeConstraint(
e))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenNoAncestorIs = function(e) {
return this._binding.constraint = function(t) {
return !i.traverseAncerstors(t, i.typeConstraint(
e))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenAnyAncestorNamed = function(e) {
return this._binding.constraint = function(t) {
return i.traverseAncerstors(t, i.namedConstraint(
e))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenNoAncestorNamed = function(e) {
return this._binding.constraint = function(t) {
return !i.traverseAncerstors(t, i.namedConstraint(
e))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenAnyAncestorTagged = function(e,
t) {
return this._binding.constraint = function(n) {
return i.traverseAncerstors(n, i.taggedConstraint(
e)(t))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenNoAncestorTagged = function(e, t) {
return this._binding.constraint = function(n) {
return !i.traverseAncerstors(n, i.taggedConstraint(
e)(t))
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenAnyAncestorMatches = function(e) {
return this._binding.constraint = function(t) {
return i.traverseAncerstors(t, e)
}, new r.BindingOnSyntax(this._binding)
}, e.prototype.whenNoAncestorMatches = function(e) {
return this._binding.constraint = function(t) {
return !i.traverseAncerstors(t, e)
}, new r.BindingOnSyntax(this._binding)
}, e
}();
t.BindingWhenSyntax = o
}, function(e, t) {
function n() {
throw new Error("setTimeout has not been defined")
}
function r() {
throw new Error("clearTimeout has not been defined")
}
function i(e) {
if (l === setTimeout) return setTimeout(e, 0);
if ((l === n || !l) && setTimeout) return l = setTimeout,
setTimeout(e, 0);
try {
return l(e, 0)
} catch (t) {
try {
return l.call(null, e, 0)
} catch (t) {
return l.call(this, e, 0)
}
}
}
function o(e) {
if (p === clearTimeout) return clearTimeout(e);
if ((p === r || !p) && clearTimeout) return p =
clearTimeout, clearTimeout(e);
try {
return p(e)
} catch (t) {
try {
return p.call(null, e)
} catch (t) {
return p.call(this, e)
}
}
}
function s() {
y && d && (y = !1, d.length ? f = d.concat(f) : v = -1, f.length &&
a())
}
function a() {
if (!y) {
var e = i(s);
y = !0;
for (var t = f.length; t;) {
for (d = f, f = []; ++v < t;) d && d[v].run();
v = -1, t = f.length
}
d = null, y = !1, o(e)
}
}
function u(e, t) {
this.fun = e, this.array = t
}
function c() {}
var l, p, h = e.exports = {};
! function() {
try {
l = "function" == typeof setTimeout ? setTimeout : n
} catch (e) {
l = n
}
try {
p = "function" == typeof clearTimeout ? clearTimeout :
r
} catch (e) {
p = r
}
}();
var d, f = [],
y = !1,
v = -1;
h.nextTick = function(e) {
var t = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++) t[n - 1] =
arguments[n];
f.push(new u(e, t)), 1 !== f.length || y || i(a)
}, u.prototype.run = function() {
this.fun.apply(null, this.array)
}, h.title = "browser", h.browser = !0, h.env = {}, h.argv = [],
h.version = "", h.versions = {}, h.on = c, h.addListener =
c, h.once = c, h.off = c, h.removeListener = c, h.removeAllListeners =
c, h.emit = c, h.prependListener = c, h.prependOnceListener =
c, h.listeners = function(e) {
return []
}, h.binding = function(e) {
throw new Error("process.binding is not supported")
}, h.cwd = function() {
return "/"
}, h.chdir = function(e) {
throw new Error("process.chdir is not supported")
}, h.umask = function() {
return 0
}
}, function(e, t, n) {
"use strict";
var r = this && this.__extends || function() {
var e = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function(e, t) {
e.__proto__ = t
} || function(e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] =
t[n])
};
return function(t, n) {
function r() {
this.constructor = t
}
e(t, n), t.prototype = null === n ? Object.create(
n) : (r.prototype = n.prototype, new r)
}
}();
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(19),
o = n(9),
s = function(e) {
function t(t, n, r, i) {
return i || (i = new Date), e.call(this, o.EventType
.LOG, n, r, i) || this
}
return r(t, e), t
}(i.EventBase);
t.LogEvent = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.youtubePlayerId = "youtube", t.youtubeJsUrl =
"https://www.youtube.com/iframe_api", t.playerIds = {
theoplayerHls: "theoplayer-hls",
theoplayerDash: "theoplayer-dash",
theoplayerHlsAes: "theoplayer-aes-hls",
dashJs: "dash-js",
vuplaySilverlight: "vuplay-silverlight",
vuplayHls: "vuplay-hls",
youtube: "youtube"
}
}, function(e, t, n) {
function r() {}
function i(e) {
var n = "" + e.type;
return t.BINARY_EVENT !== e.type && t.BINARY_ACK !== e.type ||
(n += e.attachments + "-"), e.nsp && "/" !== e.nsp && (
n += e.nsp + ","), null != e.id && (n += e.id),
null != e.data && (n += JSON.stringify(e.data)), p(
"encoded %j as %s", e, n), n
}
function o(e, t) {
function n(e) {
var n = f.deconstructPacket(e),
r = i(n.packet),
o = n.buffers;
o.unshift(r), t(o)
}
f.removeBlobs(e, n)
}
function s() {
this.reconstructor = null
}
function a(e) {
var n = 0,
r = {
type: Number(e.charAt(0))
};
if (null == t.types[r.type]) return l();
if (t.BINARY_EVENT === r.type || t.BINARY_ACK === r.type) {
for (var i = "";
"-" !== e.charAt(++n) && (i += e.charAt(n), n != e.length);
);
if (i != Number(i) || "-" !== e.charAt(n)) throw new Error(
"Illegal attachments");
r.attachments = Number(i)
}
if ("/" === e.charAt(n + 1))
for (r.nsp = ""; ++n;) {
var o = e.charAt(n);
if ("," === o) break;
if (r.nsp += o, n === e.length) break
} else r.nsp = "/";
var s = e.charAt(n + 1);
if ("" !== s && Number(s) == s) {
for (r.id = ""; ++n;) {
var o = e.charAt(n);
if (null == o || Number(o) != o) {
--n;
break
}
if (r.id += e.charAt(n), n === e.length) break
}
r.id = Number(r.id)
}
return e.charAt(++n) && (r = u(r, e.substr(n))), p(
"decoded %s as %j", e, r), r
}
function u(e, t) {
try {
e.data = JSON.parse(t)
} catch (e) {
return l()
}
return e
}
function c(e) {
this.reconPack = e, this.buffers = []
}
function l() {
return {
type: t.ERROR,
data: "parser error"
}
}
var p = n(13)("socket.io-parser"),
h = n(25),
d = n(58),
f = n(146),
y = n(60);
t.protocol = 4, t.types = ["CONNECT", "DISCONNECT", "EVENT",
"ACK", "ERROR", "BINARY_EVENT", "BINARY_ACK"
], t.CONNECT = 0, t.DISCONNECT = 1, t.EVENT = 2, t.ACK = 3,
t.ERROR = 4, t.BINARY_EVENT = 5, t.BINARY_ACK = 6, t.Encoder =
r, t.Decoder = s, r.prototype.encode = function(e, n) {
if (e.type !== t.EVENT && e.type !== t.ACK || !d(e.data) ||
(e.type = e.type === t.EVENT ? t.BINARY_EVENT : t.BINARY_ACK),
p("encoding packet %j", e), t.BINARY_EVENT === e.type ||
t.BINARY_ACK === e.type) o(e, n);
else {
n([i(e)])
}
}, h(s.prototype), s.prototype.add = function(e) {
var n;
if ("string" == typeof e) n = a(e), t.BINARY_EVENT ===
n.type || t.BINARY_ACK === n.type ? (this.reconstructor =
new c(n), 0 === this.reconstructor.reconPack.attachments &&
this.emit("decoded", n)) : this.emit("decoded",
n);
else {
if (!y(e) && !e.base64) throw new Error(
"Unknown type: " + e);
if (!this.reconstructor) throw new Error(
"got binary data when not reconstructing a packet"
);
(n = this.reconstructor.takeBinaryData(e)) && (this
.reconstructor = null, this.emit("decoded", n))
}
}, s.prototype.destroy = function() {
this.reconstructor && this.reconstructor.finishedReconstruction()
}, c.prototype.takeBinaryData = function(e) {
if (this.buffers.push(e), this.buffers.length === this.reconPack
.attachments) {
var t = f.reconstructPacket(this.reconPack, this.buffers);
return this.finishedReconstruction(), t
}
return null
}, c.prototype.finishedReconstruction = function() {
this.reconPack = null, this.buffers = []
}
}, function(e, t, n) {
(function(t) {
var r = n(149);
e.exports = function(e) {
var n = e.xdomain,
i = e.xscheme,
o = e.enablesXDR;
try {
if ("undefined" != typeof XMLHttpRequest &&
(!n || r)) return new XMLHttpRequest
} catch (e) {}
try {
if ("undefined" != typeof XDomainRequest &&
!i && o) return new XDomainRequest
} catch (e) {}
if (!n) try {
return new(t[["Active"].concat("Object")
.join("X")])(
"Microsoft.XMLHTTP")
} catch (e) {}
}
}).call(t, n(4))
}, function(e, t, n) {
function r(e) {
this.path = e.path, this.hostname = e.hostname, this.port =
e.port, this.secure = e.secure, this.query = e.query,
this.timestampParam = e.timestampParam, this.timestampRequests =
e.timestampRequests, this.readyState = "", this.agent =
e.agent || !1, this.socket = e.socket, this.enablesXDR =
e.enablesXDR, this.pfx = e.pfx, this.key = e.key, this.passphrase =
e.passphrase, this.cert = e.cert, this.ca = e.ca, this.ciphers =
e.ciphers, this.rejectUnauthorized = e.rejectUnauthorized,
this.forceNode = e.forceNode, this.extraHeaders = e.extraHeaders,
this.localAddress = e.localAddress
}
var i = n(26),
o = n(25);
e.exports = r, o(r.prototype), r.prototype.onError = function(e,
t) {
var n = new Error(e);
return n.type = "TransportError", n.description = t,
this.emit("error", n), this
}, r.prototype.open = function() {
return "closed" !== this.readyState && "" !== this.readyState ||
(this.readyState = "opening", this.doOpen()), this
}, r.prototype.close = function() {
return "opening" !== this.readyState && "open" !== this
.readyState || (this.doClose(), this.onClose()),
this
}, r.prototype.send = function(e) {
if ("open" !== this.readyState) throw new Error(
"Transport not open");
this.write(e)
}, r.prototype.onOpen = function() {
this.readyState = "open", this.writable = !0, this.emit(
"open")
}, r.prototype.onData = function(e) {
var t = i.decodePacket(e, this.socket.binaryType);
this.onPacket(t)
}, r.prototype.onPacket = function(e) {
this.emit("packet", e)
}, r.prototype.onClose = function() {
this.readyState = "closed", this.emit("close")
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(22),
i = n(99),
o = n(5),
s = n(9),
a = n(56),
u = n(23),
c = n(34);
t.Vuplay = {
LogLevel: r.LogLevel,
Smart: i.default,
Events: o.EventName,
EventType: s.EventType,
AdType: a.AdType,
SkinType: u.SkinType,
CastType: c.CastType
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(3),
i = function() {
function e() {}
return e.prototype.getConstructorMetadata = function(e) {
return {
compilerGeneratedMetadata: Reflect.getMetadata(
r.PARAM_TYPES, e),
userGeneratedMetadata: Reflect.getMetadata(
r.TAGGED, e) || {}
}
}, e.prototype.getPropertiesMetadata = function(e) {
return Reflect.getMetadata(r.TAGGED_PROP, e) ||
[]
}, e
}();
t.MetadataReader = i
}, function(e, t, n) {
"use strict";
function r(e) {
return e instanceof RangeError || e.message === i.STACK_OVERFLOW
}
Object.defineProperty(t, "__esModule", {
value: !0
});
var i = n(7);
t.isStackOverflowExeption = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(3),
i = n(20),
o = n(8),
s = n(77),
a = function() {
function e(e, t, n, a) {
this.guid = i.guid(), this.type = e, this.serviceIdentifier =
n, this.name = new s.QueryableString(t || ""),
this.metadata = new Array;
var u = null;
"string" == typeof a ? u = new o.Metadata(r.NAMED_TAG,
a) : a instanceof o.Metadata && (u = a),
null !== u && this.metadata.push(u)
}
return e.prototype.hasTag = function(e) {
for (var t = 0, n = this.metadata; t < n.length; t++) {
if (n[t].key === e) return !0
}
return !1
}, e.prototype.isArray = function() {
return this.hasTag(r.MULTI_INJECT_TAG)
}, e.prototype.matchesArray = function(e) {
return this.matchesTag(r.MULTI_INJECT_TAG)(e)
}, e.prototype.isNamed = function() {
return this.hasTag(r.NAMED_TAG)
}, e.prototype.isTagged = function() {
return this.metadata.some(function(e) {
return e.key !== r.INJECT_TAG && e.key !==
r.MULTI_INJECT_TAG && e.key !==
r.NAME_TAG && e.key !== r.UNMANAGED_TAG &&
e.key !== r.NAMED_TAG
})
}, e.prototype.isOptional = function() {
return this.matchesTag(r.OPTIONAL_TAG)(!0)
}, e.prototype.getNamedTag = function() {
return this.isNamed() ? this.metadata.filter(
function(e) {
return e.key === r.NAMED_TAG
})[0] : null
}, e.prototype.getCustomTags = function() {
return this.isTagged() ? this.metadata.filter(
function(e) {
return e.key !== r.INJECT_TAG && e.key !==
r.MULTI_INJECT_TAG && e.key !==
r.NAME_TAG && e.key !== r.UNMANAGED_TAG &&
e.key !== r.NAMED_TAG
}) : null
}, e.prototype.matchesNamedTag = function(e) {
return this.matchesTag(r.NAMED_TAG)(e)
}, e.prototype.matchesTag = function(e) {
var t = this;
return function(n) {
for (var r = 0, i = t.metadata; r < i.length; r++) {
var o = i[r];
if (o.key === e && o.value === n)
return !0
}
return !1
}
}, e
}();
t.Target = a
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(40),
i = n(41),
o = function() {
function e(e) {
this._binding = e, this._bindingWhenSyntax = new i.BindingWhenSyntax(
this._binding), this._bindingOnSyntax = new r
.BindingOnSyntax(this._binding)
}
return e.prototype.when = function(e) {
return this._bindingWhenSyntax.when(e)
}, e.prototype.whenTargetNamed = function(e) {
return this._bindingWhenSyntax.whenTargetNamed(
e)
}, e.prototype.whenTargetIsDefault = function() {
return this._bindingWhenSyntax.whenTargetIsDefault()
}, e.prototype.whenTargetTagged = function(e, t) {
return this._bindingWhenSyntax.whenTargetTagged(
e, t)
}, e.prototype.whenInjectedInto = function(e) {
return this._bindingWhenSyntax.whenInjectedInto(
e)
}, e.prototype.whenParentNamed = function(e) {
return this._bindingWhenSyntax.whenParentNamed(
e)
}, e.prototype.whenParentTagged = function(e, t) {
return this._bindingWhenSyntax.whenParentTagged(
e, t)
}, e.prototype.whenAnyAncestorIs = function(e) {
return this._bindingWhenSyntax.whenAnyAncestorIs(
e)
}, e.prototype.whenNoAncestorIs = function(e) {
return this._bindingWhenSyntax.whenNoAncestorIs(
e)
}, e.prototype.whenAnyAncestorNamed = function(e) {
return this._bindingWhenSyntax.whenAnyAncestorNamed(
e)
}, e.prototype.whenAnyAncestorTagged = function(e,
t) {
return this._bindingWhenSyntax.whenAnyAncestorTagged(
e, t)
}, e.prototype.whenNoAncestorNamed = function(e) {
return this._bindingWhenSyntax.whenNoAncestorNamed(
e)
}, e.prototype.whenNoAncestorTagged = function(e, t) {
return this._bindingWhenSyntax.whenNoAncestorTagged(
e, t)
}, e.prototype.whenAnyAncestorMatches = function(e) {
return this._bindingWhenSyntax.whenAnyAncestorMatches(
e)
}, e.prototype.whenNoAncestorMatches = function(e) {
return this._bindingWhenSyntax.whenNoAncestorMatches(
e)
}, e.prototype.onActivation = function(e) {
return this._bindingOnSyntax.onActivation(e)
}, e
}();
t.BindingWhenOnSyntax = o
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = n(3),
i = n(8),
o = function(e, t) {
var n = e.parentRequest;
return null !== n && (!!t(n) || o(n, t))
};
t.traverseAncerstors = o;
var s = function(e) {
return function(t) {
var n = function(n) {
return null !== n && null !== n.target &&
n.target.matchesTag(e)(t)
};
return n.metaData = new i.Metadata(e, t), n
}
};
t.taggedConstraint = s;
var a = s(r.NAMED_TAG);
t.namedConstraint = a;
var u = function(e) {
return function(t) {
var n = null;
if (null !== t) {
if (n = t.bindings[0], "string" == typeof e) {
return n.serviceIdentifier === e
}
var r = t.bindings[0].implementationType;
return e === r
}
return !1
}
};
t.typeConstraint = u
}, function(e, t, n) {
"use strict";
var r = function() {
function e() {}
return e.UUID = function() {
if ("undefined" != typeof window && void 0 !==
window.crypto && void 0 !== window.crypto.getRandomValues
) {
var e = new Uint16Array(8);
return window.crypto.getRandomValues(e),
this.pad4(e[0]) + this.pad4(e[1]) + "-" +
this.pad4(e[2]) + "-" + this.pad4(e[3]) +
"-" + this.pad4(e[4]) + "-" + this.pad4(
e[5]) + this.pad4(e[6]) + this.pad4(
e[7])
}
return this.random4() + this.random4() + "-" +
this.random4() + "-" + this.random4() + "-" +
this.random4() + "-" + this.random4() +
this.random4() + this.random4()
}, e.pad4 = function(e) {
for (var t = e.toString(16); t.length < 4;) t =
"0" + t;
return t
}, e.random4 = function() {
return Math.floor(65536 * (1 + Math.random())).toString(
16).substring(1)
}, e
}();
t.UUID = r
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
this.header = e, this.data = t
}
return e
}();
t.Header = r, t.JsonContentTypeHeader = new r("Content-Type",
"application/json")
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
! function(e) {
e[e.VAST = 0] = "VAST", e[e.REMIX = 1] = "REMIX"
}(t.AdType || (t.AdType = {}))
}, function(e, t) {
var n =
/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,
r = ["source", "protocol", "authority", "userInfo", "user",
"password", "host", "port", "relative", "path",
"directory", "file", "query", "anchor"
];
e.exports = function(e) {
var t = e,
i = e.indexOf("["),
o = e.indexOf("]"); - 1 != i && -1 != o && (e = e.substring(
0, i) + e.substring(i, o).replace(/:/g, ";") +
e.substring(o, e.length));
for (var s = n.exec(e || ""), a = {}, u = 14; u--;) a[r[
u]] = s[u] || "";
return -1 != i && -1 != o && (a.source = t, a.host = a.host
.substring(1, a.host.length - 1).replace(/;/g,
":"), a.authority = a.authority.replace("[",
"").replace("]", "").replace(/;/g, ":"), a.ipv6uri = !