Untitled diff

Created Diff never expires
3 removals
628 lines
6 additions
630 lines
(function () {
(function () {
function q(a, b) {
function q(a, b) {
for (var c in b)a.prototype[c] = b[c]
for (var c in b)a.prototype[c] = b[c]
}
}
function O(a, b) {
function O(a, b) {
for (var c in b)a[c] = b[c]
for (var c in b)a[c] = b[c]
}
}
function v(a, b, c, d) {
function v(a, b, c, d) {
if (!b)b = a.documentElement;
if (!b)b = a.documentElement;
if (typeof XPathEvaluator != "undefined") {
if (typeof XPathEvaluator != "undefined") {
var e = new XPathEvaluator;
var e = new XPathEvaluator;
a = a.createNSResolver(b);
a = a.createNSResolver(b);
c = e.evaluate(c, b, a, 0, null);
c = e.evaluate(c, b, a, 0, null);
for (b = r(); e = c.iterateNext();)b.push(e);
for (b = r(); e = c.iterateNext();)b.push(e);
return b
return b
} else {
} else {
a.setProperty("SelectionLanguage", "XPath");
try {
a.setProperty("SelectionLanguage", "XPath");
} catch (ex) {
return [];
}
if (d) {
if (d) {
var f = "", h = {};
var f = "", h = {};
for (e = 0; e < d.length; e++) {
for (e = 0; e < d.length; e++) {
var g = d[e], k = d["_" + g];
var g = d[e], k = d["_" + g];
if (!h["_" + g]) {
if (!h["_" + g]) {
f += k == "xmlns" ? 'xmlns="' + g + '" ' : "xmlns:" + k + '="' + g + '" ';
f += k == "xmlns" ? 'xmlns="' + g + '" ' : "xmlns:" + k + '="' + g + '" ';
h["_" +
h["_" +
g] = g
g] = g
}
}
}
}
a.setProperty("SelectionNamespaces", f)
a.setProperty("SelectionNamespaces", f)
}
}
b = b.selectNodes(c);
b = b.selectNodes(c);
if (b === null || typeof b == "undefined")b = r();
if (b === null || typeof b == "undefined")b = r();
c = r();
c = r();
for (e = 0; e < b.length; e++)c.push(b[e]);
for (e = 0; e < b.length; e++)c.push(b[e]);
return c
return c
}
}
}
}
function z(a, b) {
function z(a, b) {
if (b === undefined)b = false;
if (b === undefined)b = false;
var c = J[b + a];
var c = J[b + a];
if (c)return c.cloneNode(true);
if (c)return c.cloneNode(true);
var d;
var d;
if (P) {
if (P) {
c = new DOMParser;
c = new DOMParser;
try {
try {
d = c.parseFromString(a, "application/xml")
d = c.parseFromString(a, "application/xml")
} catch (e) {
} catch (e) {
throw e;
throw e;
}
}
c = d.documentElement;
c = d.documentElement;
if (c.nodeName == "parsererror")throw Error("There is a bug in your SVG: " + (A ? (new XMLSerializer).serializeToString(c) : c.xml));
if (c.nodeName == "parsererror")throw Error("There is a bug in your SVG: " + (A ? (new XMLSerializer).serializeToString(c) : c.xml));
} else {
} else {
c = ["Msxml2.DOMDocument.6.0",
c = ["Msxml2.DOMDocument.6.0",
"Msxml2.DOMDocument.3.0"];
"Msxml2.DOMDocument.3.0"];
for (var f = 0; f < c.length; f++)try {
for (var f = 0; f < c.length; f++)try {
if (d = new ActiveXObject(c[f]))break
if (d = new ActiveXObject(c[f]))break
} catch (h) {
} catch (h) {
}
}
if (!d)throw Error("Unable to instantiate XML parser");
if (!d)throw Error("Unable to instantiate XML parser");
try {
try {
d.preserveWhiteSpace = b;
d.preserveWhiteSpace = b;
d.resolveExternals = false;
d.resolveExternals = false;
d.validateOnParse = false;
d.validateOnParse = false;
d.setProperty("ProhibitDTD", false);
d.setProperty("ProhibitDTD", false);
d.async = "false";
d.async = "false";
if (!d.loadXML(a) || d.parseError.errorCode !== 0)throw Error(d.parseError.reason);
if (!d.loadXML(a) || d.parseError.errorCode !== 0)throw Error(d.parseError.reason);
} catch (g) {
} catch (g) {
console.log(g.message);
console.log(g.message);
throw Error("Unable to parse SVG: " + g.message);
throw Error("Unable to parse SVG: " + g.message);
}
}
}
}
try {
try {
J[b + a] = d.cloneNode(true)
J[b + a] = d.cloneNode(true)
} catch (k) {
} catch (k) {
}
}
return d
return d
}
}
function B(a, b) {
function B(a, b) {
var c = a._nodeXML || a, d;
var c = a._nodeXML || a, d;
if (A)d = (new XMLSerializer).serializeToString(c); else if (c.xml)d = c.xml; else if (typeof XMLSerializer != "undefined")d = (new XMLSerializer).serializeToString(c);
if (A)d = (new XMLSerializer).serializeToString(c); else if (c.xml)d = c.xml; else if (typeof XMLSerializer != "undefined")d = (new XMLSerializer).serializeToString(c);
d = d.replace(/urn\:__fake__internal__namespace/g, svgns);
d = d.replace(/urn\:__fake__internal__namespace/g, svgns);
c = "";
c = "";
if (d.indexOf("xmlns=") == -1)c = 'xmlns="' + svgns + '" ';
if (d.indexOf("xmlns=") == -1)c = 'xmlns="' + svgns + '" ';
if (b)for (var e = 0; e < b.length; e++) {
if (b)for (var e = 0; e < b.length; e++) {
var f = b[e], h = b["_" + f];
var f = b[e], h = b["_" + f];
if (f == svgnsFake)f = svgns;
if (f == svgnsFake)f = svgns;
f = h != "xmlns" ? "xmlns:" + h + '="' + f + '"' : 'xmlns="' + f + '"';
f = h != "xmlns" ? "xmlns:" + h + '="' + f + '"' : 'xmlns="' + f + '"';
if (d.indexOf(f) == -1)c += f + " "
if (d.indexOf(f) == -1)c += f + " "
}
}
return d = d.replace(/<([^ ]+) /, "<$1 " + c)
return d = d.replace(/<([^ ]+) /, "<$1 " + c)
}
}
function m(a, b) {
function m(a, b) {
if (typeof b == "string")b = a[b];
if (typeof b == "string")b = a[b];
return function () {
return function () {
return b.apply(a, arguments.length ? arguments : [])
return b.apply(a, arguments.length ? arguments : [])
}
}
}
}
function ca() {
function ca() {
if (typeof XMLHttpRequest != "undefined")return new XMLHttpRequest; else if (ActiveXObject) {
if (typeof XMLHttpRequest != "undefined")return new XMLHttpRequest; else if (ActiveXObject) {
var a = null, b;
var a = null, b;
for (b = 0; b < Q.length && !a; ++b)try {
for (b = 0; b < Q.length && !a; ++b)try {
a = new ActiveXObject(Q[b])
a = new ActiveXObject(Q[b])
} catch (c) {
} catch (c) {
}
}
if (!a)throw Error("XMLHttpRequest object not available on this platform");
if (!a)throw Error("XMLHttpRequest object not available on this platform");
return a
return a
}
}
}
}
function R() {
function R() {
this._setXDomain();
this._setXDomain();
this.libraryPath = this._getLibraryPath();
this.libraryPath = this._getLibraryPath();
this.htcFilename = this._getHTCFilename();
this.htcFilename = this._getHTCFilename();
j && !Object.defineProperty &&
j && !Object.defineProperty &&
l._prepareBehavior(this.libraryPath, this.htcFilename);
l._prepareBehavior(this.libraryPath, this.htcFilename);
this._interceptOnloadListeners();
this._interceptOnloadListeners();
this._initDOMContentLoaded()
this._initDOMContentLoaded()
}
}
function S() {
function S() {
if (this._forceFlash())console.log("Forcing Flash SVG viewer for this browser"); else if (this.hasNativeSVG()) {
if (this._forceFlash())console.log("Forcing Flash SVG viewer for this browser"); else if (this.hasNativeSVG()) {
this.supported = true;
this.supported = true;
this.use = "native";
this.use = "native";
return
return
}
}
var a = new T;
var a = new T;
if (a.capable)if (a.isVersionOrAbove(10, 0, 0)) {
if (a.capable)if (a.isVersionOrAbove(10, 0, 0)) {
this.supported = true;
this.supported = true;
this.use = "flash"
this.use = "flash"
} else {
} else {
this.supported = false;
this.supported = false;
this.reason = "Flash 10+ required"
this.reason = "Flash 10+ required"
} else {
} else {
this.supported = false;
this.supported = false;
this.reason = "Flash 10+ or a different browser required"
this.reason = "Flash 10+ or a different browser required"
}
}
}
}
function T() {
function T() {
this._detectVersion()
this._detectVersion()
}
}
function l(a) {
function l(a) {
this.type = a.type;
this.type = a.type;
this._keyboardListeners = [];
this._keyboardListeners = [];
this._redrawManager = new U(this);
this._redrawManager = new U(this);
if (this.type == "script") {
if (this.type == "script") {
this.id = a.svgID;
this.id = a.svgID;
this._xml = a.xml;
this._xml = a.xml;
this._svgString = a.svgString;
this._svgString = a.svgString;
this._origSVG = a.origSVG;
this._origSVG = a.origSVG;
this._scriptNode = a.scriptNode
this._scriptNode = a.scriptNode
} else if (this.type == "object") {
} else if (this.type == "object") {
this.id = a.objID;
this.id = a.objID;
this._objNode = a.objNode
this._objNode = a.objNode
}
}
}
}
function o(a) {
function o(a) {
this.type = a.type;
this.type = a.type;
this._xml = a.xml;
this._xml = a.xml;
if (this.type == "object") {
if (this.type == "object") {
this.id = a.objID;
this.id = a.objID;
this._objNode = a.objNode
this._objNode = a.objNode
} else if (this.type == "script") {
} else if (this.type == "script") {
this.id = a.svgID;
this.id = a.svgID;
this._svgString =
this._svgString =
a.svgString;
a.svgString;
this._scriptNode = a.scriptNode
this._scriptNode = a.scriptNode
}
}
}
}
function U(a) {
function U(a) {
this._handler = a;
this._handler = a;
this._batch = [];
this._batch = [];
this._nextID = 1;
this._nextID = 1;
this._ids = [];
this._ids = [];
this._timeoutIDs = {}
this._timeoutIDs = {}
}
}
function V() {
function V() {
}
}
function i(a, b, c, d, e, f) {
function i(a, b, c, d, e, f) {
if (!(a === undefined && b === undefined)) {
if (!(a === undefined && b === undefined)) {
this.nodeName = a;
this.nodeName = a;
this._nodeXML = e;
this._nodeXML = e;
this._handler = f;
this._handler = f;
this._listeners = {};
this._listeners = {};
this._detachedListeners = [];
this._detachedListeners = [];
this.fake = true;
this.fake = true;
if (d == svgnsFake)d = svgns;
if (d == svgnsFake)d = svgns;
if (b == i.ELEMENT_NODE && !this._nodeXML) {
if (b == i.ELEMENT_NODE && !this._nodeXML) {
e = '<?xml version="1.0"?>\n';
e = '<?xml version="1.0"?>\n';
e += d == svgns && !c ? "<" + a + ' xmlns="' + svgnsFake + '" xmlns:xlink="http://www.w3.org/1999/xlink"/>' :
e += d == svgns && !c ? "<" + a + ' xmlns="' + svgnsFake + '" xmlns:xlink="http://www.w3.org/1999/xlink"/>' :
"<" + a + " xmlns:" + c + '="' + d + '"/>';
"<" + a + " xmlns:" + c + '="' + d + '"/>';
this._nodeXML = z(e).documentElement
this._nodeXML = z(e).documentElement
} else if (b == i.DOCUMENT_FRAGMENT_NODE) {
} else if (b == i.DOCUMENT_FRAGMENT_NODE) {
e = '<?xml version="1.0"?>\n<__document__fragment></__document__fragment>';
e = '<?xml version="1.0"?>\n<__document__fragment></__document__fragment>';
this._nodeXML = z(e).documentElement
this._nodeXML = z(e).documentElement
}
}
if (b != i.DOCUMENT_NODE && this._nodeXML) {
if (b != i.DOCUMENT_NODE && this._nodeXML) {
this._nodeXML.getAttribute("__guid") || this._nodeXML.setAttribute("__guid", "_" + K++);
this._nodeXML.getAttribute("__guid") || this._nodeXML.setAttribute("__guid", "_" + K++);
this._guid = this._nodeXML.getAttribute("__guid");
this._guid = this._nodeXML.getAttribute("__guid");
svgweb._guidLookup["_" + this._guid] = this
svgweb._guidLookup["_" + this._guid] = this
}
}
if (b == i.ELEMENT_NODE)this.localName = a.indexOf(":") != -1 ? a.match(/^[^:]*:(.*)$/)[1] :
if (b == i.ELEMENT_NODE)this.localName = a.indexOf(":") != -1 ? a.match(/^[^:]*:(.*)$/)[1] :
a;
a;
this.nodeType = b ? b : i.ELEMENT_NODE;
this.nodeType = b ? b : i.ELEMENT_NODE;
if (b == i.ELEMENT_NODE || b == i.DOCUMENT_NODE || b == i.DOCUMENT_FRAGMENT_NODE) {
if (b == i.ELEMENT_NODE || b == i.DOCUMENT_NODE || b == i.DOCUMENT_FRAGMENT_NODE) {
this.prefix = c;
this.prefix = c;
this.namespaceURI = d;
this.namespaceURI = d;
this._nodeValue = null
this._nodeValue = null
} else if (b == i.TEXT_NODE) {
} else if (b == i.TEXT_NODE) {
this._nodeValue = this._nodeXML.firstChild.nodeValue;
this._nodeValue = this._nodeXML.firstChild.nodeValue;
this.namespaceURI = this.prefix = null;
this.namespaceURI = this.prefix = null;
if (this._nodeValue === undefined)this._nodeValue = null
if (this._nodeValue === undefined)this._nodeValue = null
}
}
this.ownerDocument = document;
this.ownerDocument = document;
if (this._handler && this._handler.type == "object")this.ownerDocument = this._handler.document;
if (this._handler && this._handler.type == "object")this.ownerDocument = this._handler.document;
j && this._createEmptyMethods();
j && this._createEmptyMethods();
this._childNodes = this._createChildNodes();
this._childNodes = this._createChildNodes();
b == i.TEXT_NODE && this._nodeXML.setAttribute("__fakeTextNode", true);
b == i.TEXT_NODE && this._nodeXML.setAttribute("__fakeTextNode", true);
if (j)j && this.nodeType != i.DOCUMENT_NODE && this._createHTC(); else this._defineNodeAccessors()
if (j)j && this.nodeType != i.DOCUMENT_NODE && this._createHTC(); else this._defineNodeAccessors()
}
}
}
}
function t(a, b, c, d, e) {
function t(a, b, c, d, e) {
if (!(a === undefined && c === undefined && d === undefined && e === undefined)) {
if (!(a === undefined && c === undefined && d === undefined && e === undefined)) {
i.apply(this, [a, i.ELEMENT_NODE, b, c, d, e]);
i.apply(this, [a, i.ELEMENT_NODE, b, c, d, e]);
this._attributes = {};
this._attributes = {};
this._attributes._id = "";
this._attributes._id = "";
this._importAttributes(this, this._nodeXML);
this._importAttributes(this, this._nodeXML);
j || this._defineAccessors();
j || this._defineAccessors();
if (this.namespaceURI == svgns) {
if (this.namespaceURI == svgns) {
if (!(j && this._attached && this._handler && this._handler.type == "script" && this.nodeName ==
if (!(j && this._attached && this._handler && this._handler.type == "script" && this.nodeName ==
"svg"))this.style = new s(this);
"svg"))this.style = new s(this);
if (!(j && this._attached && this._handler && this._handler.type == "script" && this.nodeName == "svg"))if (j)this.style._ignoreStyleChanges = false
if (!(j && this._attached && this._handler && this._handler.type == "script" && this.nodeName == "svg"))if (j)this.style._ignoreStyleChanges = false
}
}
}
}
}
}
function C(a) {
function C(a) {
i.apply(this, ["#document-fragment", i.DOCUMENT_FRAGMENT_NODE, null, null, null, null]);
i.apply(this, ["#document-fragment", i.DOCUMENT_FRAGMENT_NODE, null, null, null, null]);
this.ownerDocument = a
this.ownerDocument = a
}
}
function s(a) {
function s(a) {
this._element = a;
this._element = a;
this._setup()
this._setup()
}
}
function W(a, b) {
function W(a, b) {
this._handler = b;
this._handler = b;
this._svgNode = a;
this._svgNode = a;
this._scriptsToExec = [];
this._scriptsToExec = [];
this._htcLoaded = Object.defineProperty ? true : false;
this._htcLoaded = Object.defineProperty ? true : false;
this._swfLoaded = false;
this._swfLoaded = false;
for (var c = 0; this._svgNode._onloadListeners &&
for (var c = 0; this._svgNode._onloadListeners &&
c < this._svgNode._onloadListeners.length; c++) {
c < this._svgNode._onloadListeners.length; c++) {
var d = function (e, f) {
var d = function (e, f) {
return function () {
return function () {
f.apply(e.flash)
f.apply(e.flash)
}
}
}(this._handler, this._svgNode._onloadListeners[c]);
}(this._handler, this._svgNode._onloadListeners[c]);
svgweb.addOnLoad(d)
svgweb.addOnLoad(d)
}
}
j && this._loadHTC();
j && this._loadHTC();
this.url = this._svgNode.getAttribute("src");
this.url = this._svgNode.getAttribute("src");
if (!this.url)this.url = this._svgNode.getAttribute("data");
if (!this.url)this.url = this._svgNode.getAttribute("data");
c = m(this, function (e) {
c = m(this, function (e) {
this._handler._origSVG = e;
this._handler._origSVG = e;
e = svgweb._cleanSVG(e, true, false);
e = svgweb._cleanSVG(e, true, false);
this._svgString = e.svg;
this._svgString = e.svg;
this._xml = e.xml;
this._xml = e.xml;
this.document = new D(this._xml, this._handler);
this.document = new D(this._xml, this._handler);
this._handler.document = this.document;
this._handler.document = this.document;
this._savedParams =
this._savedParams =
this._getPARAMs(this._svgNode);
this._getPARAMs(this._svgNode);
this._handler._inserter = new L("object", this._xml.documentElement, this._svgNode, this._handler)
this._handler._inserter = new L("object", this._xml.documentElement, this._svgNode, this._handler)
});
});
this.url.substring(0, 5) == "data:" ? c(this.url.substring(this.url.indexOf(",") + 1)) : this._fetchURL(this.url, c, m(this, this._fallback))
this.url.substring(0, 5) == "data:" ? c(this.url.substring(this.url.indexOf(",") + 1)) : this._fetchURL(this.url, c, m(this, this._fallback))
}
}
function X(a) {
function X(a) {
this._handler = a;
this._handler = a;
this.fake = true;
this.fake = true;
this.frameElement = this._handler.flash;
this.frameElement = this._handler.flash;
this.location = this._createLocation();
this.location = this._createLocation();
this.alert = window.alert;
this.alert = window.alert;
this.top = this.parent = window;
this.top = this.parent = window;
this._onloadListeners = []
this._onloadListeners = []
}
}
function L(a, b, c, d) {
function L(a, b, c, d) {
this._embedType = a;
this._embedType = a;
this._nodeXML =
this._nodeXML =
b;
b;
this._replaceMe = c;
this._replaceMe = c;
this._handler = d;
this._handler = d;
this._parentNode = c.parentNode;
this._parentNode = c.parentNode;
if (this._embedType == "object") {
if (this._embedType == "object") {
this._explicitWidth = this._replaceMe.getAttribute("width");
this._explicitWidth = this._replaceMe.getAttribute("width");
this._explicitHeight = this._replaceMe.getAttribute("height")
this._explicitHeight = this._replaceMe.getAttribute("height")
}
}
this._setupFlash()
this._setupFlash()
}
}
function E(a, b, c, d) {
function E(a, b, c, d) {
this._attached = true;
this._attached = true;
t.apply(this, ["svg", null, svgns, a, d]);
t.apply(this, ["svg", null, svgns, a, d]);
this._nodeXML = a;
this._nodeXML = a;
this._svgString = b;
this._svgString = b;
this._scriptNode = c;
this._scriptNode = c;
this._htcLoaded = Object.defineProperty ? true : false;
this._htcLoaded = Object.defineProperty ? true : false;
this._swfLoaded = false;
this._swfLoaded = false;
if (this._handler.type == "script")this._handler.document._nodeById["_" +
if (this._handler.type == "script")this._handler.document._nodeById["_" +
this._nodeXML.getAttribute("id")] = this;
this._nodeXML.getAttribute("id")] = this;
this._currentScale = 1;
this._currentScale = 1;
this._currentTranslate = this._createCurrentTranslate();
this._currentTranslate = this._createCurrentTranslate();
if (j && this._handler.type == "script") {
if (j && this._handler.type == "script") {
this._addRedrawMethods();
this._addRedrawMethods();
this.style = new s(this);
this.style = new s(this);
this._readyStateListener = m(this, this._onHTCLoaded);
this._readyStateListener = m(this, this._onHTCLoaded);
this._htcNode.attachEvent("onreadystatechange", this._readyStateListener)
this._htcNode.attachEvent("onreadystatechange", this._readyStateListener)
} else j && this._handler.type == "object" && this._addRedrawMethods();
} else j && this._handler.type == "object" && this._addRedrawMethods();
if (this._handler.type == "script")this._handler._inserter = new L("script", this._nodeXML, this._scriptNode, this._handler)
if (this._handler.type == "script")this._handler._inserter = new L("script", this._nodeXML, this._scriptNode, this._handler)
}
}
function D(a, b) {
function D(a, b) {
i.apply(this, ["#document", i.DOCUMENT_NODE, null, null, a, b], svgns);
i.apply(this, ["#document", i.DOCUMENT_NODE, null, null, a, b], svgns);
this._xml = a;
this._xml = a;
this._handler = b;
this._handler = b;
this._nodeById = {};
this._nodeById = {};
this._namespaces = this._getNamespaces();
this._namespaces = this._getNamespaces();
this.implementation = new V;
this.implementation = new V;
if (this._handler.type == "script")this.defaultView = window
if (this._handler.type == "script")this.defaultView = window
}
}
function r() {
function r() {
var a = [];
var a = [];
a.item = function (b) {
a.item = function (b) {
return b >= this.length ? null : this[b]
return b >= this.length ? null : this[b]
};
};
return a
return a
}
}
function F(a, b, c, d, e, f, h) {
function F(a, b, c, d, e, f, h) {
this.a = a;
this.a = a;
this.b = b;
this.b = b;
this.c = c;
this.c = c;
this.d = d;
this.d = d;
this.e = e;
this.e = e;
this.f = f;
this.f = f;
this._handler = h
this._handler = h
}
}
function G(a) {
function G(a) {
this.value = a
this.value = a
}
}
function H(a) {
function H(a) {
this.baseVal = a;
this.baseVal = a;
this.animVal = undefined
this.animVal = undefined
}
}
function Y(a, b, c) {
function Y(a, b, c) {
this.type = a;
this.type = a;
this.matrix = b;
this.matrix = b;
this.angle = c
this.angle = c
}
}
function I(a, b, c, d) {
function I(a, b, c, d) {
if (c === undefined)c = false;
if (c === undefined)c = false;
this._formalAccessors = c;
this._formalAccessors = c;
this.x = a;
this.x = a;
this.y = b;
this.y = b;
if (c) {
if (c) {
this.setX = m(this, function (e) {
this.setX = m(this, function (e) {
this.x = e;
this.x = e;
d("x", e)
d("x", e)
});
});
this.getX = m(this, function () {
this.getX = m(this, function () {
return this.x
return this.x
});
});
this.setY = m(this, function (e) {
this.setY = m(this, function (e) {
this.y = e;
this.y = e;
d("y", e)
d("y", e)
});
});
this.getY = m(this, function () {
this.getY = m(this, function () {
return this.y
return this.y
});
});
this.setXY = m(this, function (e, f) {
this.setXY = m(this, function (e, f) {
this.x = e;
this.x = e;
this.y = f;
this.y = f;
d("xy", e, f)
d("xy", e, f)
})
})
}
}
}
}
function M(a, b, c, d) {
function M(a, b, c, d) {
this.x = a;
this.x = a;
this.y = b;
this.y = b;
this.width = c;
this.width = c;
this.height = d
this.height = d
}
}
window.svgns = "http://www.w3.org/2000/svg";
window.svgns = "http://www.w3.org/2000/svg";
window.xlinkns = "http://www.w3.org/1999/xlink";
window.xlinkns = "http://www.w3.org/1999/xlink";
svgnsFake = "urn:__fake__internal__namespace";
svgnsFake = "urn:__fake__internal__namespace";
var w = false, x = false, Z = false, j = false, $ = false, N = false, u = false, aa = false, P = false, A = false;
var w = false, x = false, Z = false, j = false, $ = false, N = false, u = false, aa = false, P = false, A = false;
(function () {
(function () {
var a = navigator, b = a.userAgent;
var a = navigator, b = a.userAgent;
a = a.appVersion;
a = a.appVersion;
var c = parseFloat(a);
var c = parseFloat(a);
if (b.indexOf("Opera") >= 0)w = c;
if (b.indexOf("Opera") >= 0)w = c;
var d = Math.max(a.indexOf("WebKit"), a.indexOf("Safari"), 0);
var d = Math.max(a.indexOf("WebKit"), a.indexOf("Safari"), 0);
if (d)x = parseFloat(a.split("Version/")[1]) || parseFloat(a.substr(d + 7)) > 419.3 ? 3 : 2;
if (d)x = parseFloat(a.split("Version/")[1]) || parseFloat(a.substr(d + 7)) > 419.3 ? 3 : 2;
b.indexOf("AdobeAIR");
b.indexOf("AdobeAIR");
if (a.indexOf("Konqueror") >= 0 || x)$ = c;
if (a.indexOf("Konqueror") >= 0 || x)$ = c;
if (b.indexOf("Gecko") >= 0 && !$)Z = c;
if (b.indexOf("Gecko") >= 0 && !$)Z = c;
if (Z)N = parseFloat(b.split("Firefox/")[1]) || undefined;
if (Z)N = parseFloat(b.split("Firefox/")[1]) || undefined;
if (document.all && !w)j = parseFloat(a.split("MSIE ")[1]) || undefined;
if (document.all && !w)j = parseFloat(a.split("MSIE ")[1]) || undefined;
if (b.indexOf("Chrome") >= 0)aa = 1;
if (b.indexOf("Chrome") >= 0)aa = 1;
isStandardsMode = document.documentMode ? document.documentMode > 5 : document.compatMode == "CSS1Compat";
isStandardsMode = document.documentMode ? document.documentMode > 5 : document.compatMode == "CSS1Compat";
if (document.contentType == "application/xhtml+xml")u = true; else if (typeof XMLDocument != "undefined" && document.constructor == XMLDocument)u = true;
if (document.contentType == "application/xhtml+xml")u = true; else if (typeof XMLDocument != "undefined" && document.constructor == XMLDocument)u = true;
if (typeof DOMParser != "undefined" && typeof XPathEvaluator != "undefined" && typeof XMLSerializer != "undefined")A = P = true
if (typeof DOMParser != "undefined" && typeof XPathEvaluator != "undefined" && typeof XMLSerializer != "undefined")A = P = true
})();
})();
var da = function () {
var da = function () {
for (var a = false, b = document.getElementsByTagName("script"), c = 0; c < b.length; c++)if (/svg(?:\-uncompressed)?\.js/.test(b[c].src)) {
for (var a = false, b = document.getElementsByTagName("script"), c = 0; c < b.length; c++)if (/svg(?:\-uncompressed)?\.js/.test(b[c].src)) {
a = b[c].getAttribute("data-debug");
a = b[c].getAttribute("data-debug");
a = a === "true" || a === true ? true : false
a = a === "true" || a === true ? true : false
}
}
return a
return a
}();
}();
if (typeof console == "undefined" || !console.log) {
if (typeof console == "undefined" || !console.log) {
var y = [];
var y = [];
console = {};
console = {};
if (da) {
if (da) {
console.log = function (a) {
console.log = function (a) {
var b = null, c = false;
var b = null, c = false;
try {
try {
b = document.getElementsByTagName("body")[0]
b = document.getElementsByTagName("body")[0]
} catch (d) {
} catch (d) {
c = true
c = true
}
}
if (j)try {
if (j)try {
document.documentElement.doScroll("left")
document.documentElement.doScroll("left")
} catch (e) {
} catch (e) {
c = true
c = true
}
}
if (c)y.push(a); else {
if (c)y.push(a); else {
for (; y.length;) {
for (; y.length;) {
var f =
var f =
y.shift();
y.shift();
c = document.createElement("p");
c = document.createElement("p");
c.appendChild(document.createTextNode(f));
c.appendChild(document.createTextNode(f));
b.appendChild(c)
b.appendChild(c)
}
}
c = document.createElement("p");
c = document.createElement("p");
c.appendChild(document.createTextNode(a));
c.appendChild(document.createTextNode(a));
b.appendChild(c)
b.appendChild(c)
}
}
};
};
if (j)var ea = window.setInterval(function () {
if (j)var ea = window.setInterval(function () {
if (document.readyState == "complete") {
if (document.readyState == "complete") {
for (; y.length;) {
for (; y.length;) {
var a = y.shift();
var a = y.shift();
p = document.createElement("p");
p = document.createElement("p");
p.appendChild(document.createTextNode(a));
p.appendChild(document.createTextNode(a));
document.body.appendChild(p)
document.body.appendChild(p)
}
}
window.clearTimeout(ea)
window.clearTimeout(ea)
}
}
}, 50)
}, 50)
} else console.log = function () {
} else console.log = function () {
}
}
}
}
var J = {}, Q = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0",
var J = {}, Q = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0",
"MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], K = 0;
"MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], K = 0;
q(R, {libraryPath:"./", config:null, pageLoaded:false, handlers:[], totalLoaded:0, _guidLookup:[], _loadListeners:[], _removedNodes:[], _allSVGNamespaces:[], addOnLoad:function (a, b, c) {
q(R, {libraryPath:"./", config:null, pageLoaded:false, handlers:[], totalLoaded:0, _guidLookup:[], _loadListeners:[], _removedNodes:[], _allSVGNamespaces:[], addOnLoad:function (a, b, c) {
if (b) {
if (b) {
var d;
var d;
if (c.frameElement)d = c.frameElement; else {
if (c.frameElement)d = c.frameElement; else {
var e;
var e;
for (e = 0; e < this.handlers.length; e++)if (this.handlers[e]._objNode && this.handlers[e]._objNode.contentDocument && this.handlers[e]._objNode.contentDocument.defaultView == c)d = this.handlers[e]._objNode
for (e = 0; e < this.handlers.length; e++)if (this.handlers[e]._objNode && this.handlers[e]._objNode.contentDocument && this.handlers[e]._objNode.contentDocument.defaultView == c)d = this.handlers[e]._objNode
}
}
if (b && this.getHandlerType() == "flash")a.apply(c);
if (b && this.getHandlerType() == "flash")a.apply(c);
else if (d._svgHandler)d._svgHandler._onObjectLoad(a, c); else {
else if (d._svgHandler)d._svgHandler._onObjectLoad(a, c); else {
d._svgWindow = c;
d._svgWindow = c;
d._svgFunc = a
d._svgFunc = a
}
}
} else this._loadListeners.push(a);
} else this._loadListeners.push(a);
this.pageLoaded && this._fireOnLoad()
this.pageLoaded && this._fireOnLoad()
}, getHandlerType:function () {
}, getHandlerType:function () {
if (this.renderer == l)return"flash"; else if (this.renderer == o)return"native"
if (this.renderer == l)return"flash"; else if (this.renderer == o)return"native"
}, appendChild:function (a, b) {
}, appendChild:function (a, b) {
if (a.nodeName.toLowerCase() == "object" && a.getAttribute("type") == "image/svg+xml") {
if (a.nodeName.toLowerCase() == "object" && a.getAttribute("type") == "image/svg+xml") {
this.totalSVG++;
this.totalSVG++;
this._svgObjects.push(a);
this._svgObjects.push(a);
if (this.getHandlerType() == "native") {
if (this.getHandlerType() == "native") {
a.onload = a.onsvgload;
a.onload = a.onsvgload;
b.appendChild(a)
b.appendChild(a)
}
}
var c = a;
var c = a;
if (this.getHandlerType() ==
if (this.getHandlerType() ==
"flash") {
"flash") {
a.onsvgload && a.addEventListener("SVGLoad", a.onsvgload, false);
a.onsvgload && a.addEventListener("SVGLoad", a.onsvgload, false);
c = document._createElement("div");
c = document._createElement("div");
for (var d = 0; d < a.attributes.length; d++) {
for (var d = 0; d < a.attributes.length; d++) {
var e = a.attributes[d], f = e.nodeValue;
var e = a.attributes[d], f = e.nodeValue;
!f && f !== "true" || c.setAttribute(e.nodeName, f)
!f && f !== "true" || c.setAttribute(e.nodeName, f)
}
}
b.appendChild(c);
b.appendChild(c);
c._onloadListeners = a._onloadListeners;
c._onloadListeners = a._onloadListeners;
c = c
c = c
}
}
c = this._processSVGObject(c);
c = this._processSVGObject(c);
a._objID = c
a._objID = c
} else if (a.nodeName.toLowerCase() == "svg") {
} else if (a.nodeName.toLowerCase() == "svg") {
this.totalSVG++;
this.totalSVG++;
a.onsvgload && a.addEventListener("SVGLoad", a.onsvgload, false);
a.onsvgload && a.addEventListener("SVGLoad", a.onsvgload, false);
if (j && a._fakeNode)a = a._fakeNode;
if (j && a._fakeNode)a = a._fakeNode;
c = B(a);
c = B(a);
d = document.createElement("script");
d = document.createElement("script");
d.type = "image/svg+xml";
d.type = "image/svg+xml";
if (u)d.appendChild(document.createTextNode(c)); else try {
if (u)d.appendChild(document.createTextNode(c)); else try {
d.appendChild(document.createTextNode(c))
d.appendChild(document.createTextNode(c))
} catch (h) {
} catch (h) {
d.text = c
d.text = c
}
}
this._svgScripts.push(d);
this._svgScripts.push(d);
b.appendChild(d);
b.appendChild(d);
d._onloadListeners = a._detachedListeners || a._onloadListeners;
d._onloadListeners = a._detachedListeners || a._onloadListeners;
this._processSVGScript(d)
this._processSVGScript(d)
}
}
}, removeChild:function (a, b) {
}, removeChild:function (a, b) {
var c = a.nodeName.toLowerCase(), d;
var c = a.nodeName.toLowerCase(), d;
if (c == "object" || c == "embed" || c == "svg") {
if (c == "object" || c == "embed" || c == "svg") {
this.totalSVG = this.totalSVG == 0 ? 0 : this.totalSVG - 1;
this.totalSVG = this.totalSVG == 0 ? 0 : this.totalSVG - 1;
this.totalLoaded = this.totalLoaded == 0 ? 0 : this.totalLoaded - 1;
this.totalLoaded = this.totalLoaded == 0 ? 0 : this.totalLoaded - 1;
d = a.id;
d = a.id;
d = this.handlers[d];
d = this.handlers[d];
for (var e =
for (var e =
[], f = 0; f < this.handlers.length; f++) {
[], f = 0; f < this.handlers.length; f++) {
var h = this.handlers[f];
var h = this.handlers[f];
if (h != d) {
if (h != d) {
e[h.id] = h;
e[h.id] = h;
e.push(h)
e.push(h)
}
}
}
}
this.handlers = e
this.handlers = e
}
}
if (c == "object" || c == "embed") {
if (c == "object" || c == "embed") {
if (this.getHandlerType() == "flash" && d.document && d.document.defaultView) {
if (this.getHandlerType() == "flash" && d.document && d.document.defaultView) {
var g = d.document.defaultView;
var g = d.document.defaultView;
if (g._intervalIDs)for (f = 0; f < g._intervalIDs.length; f++)g.clearInterval(g._intervalIDs[f]);
if (g._intervalIDs)for (f = 0; f < g._intervalIDs.length; f++)g.clearInterval(g._intervalIDs[f]);
if (g._timeoutIDs)for (f = 0; f < g._timeoutIDs.length; f++)g.clearTimeout(g._timeoutIDs[f]);
if (g._timeoutIDs)for (f = 0; f < g._timeoutIDs.length; f++)g.clearTimeout(g._timeoutIDs[f]);
for (f = 0; f < d._keyboardListeners.length; f++) {
for (f = 0; f < d._keyboardListeners.length; f++) {
c = d._keyboardListeners[f];
c = d._keyboardListeners[f];
if (j) {
if (j) {
document.detachEvent("onkeydown",
document.detachEvent("onkeydown",
c);
c);
document.detachEvent("onkeyup", c)
document.detachEvent("onkeyup", c)
} else {
} else {
document.removeEventListener("keydown", c, true);
document.removeEventListener("keydown", c, true);
document.removeEventListener("keydown", c, false);
document.removeEventListener("keydown", c, false);
document.removeEventListener("keyup", c, true);
document.removeEventListener("keyup", c, true);
document.removeEventListener("keyup", c, false)
document.removeEventListener("keyup", c, false)
}
}
}
}
}
}
c = typeof a._objID != "undefined" ? a._objID : typeof a.contentDocument != "undefined" ? a.contentDocument._handler.id : a._handler.id;
c = typeof a._objID != "undefined" ? a._objID : typeof a.contentDocument != "undefined" ? a.contentDocument._handler.id : a._handler.id;
for (f = 0; f < svgweb._svgObjects.length; f++)if (svgweb._svgObjects[f]._objID === c) {
for (f = 0; f < svgweb._svgObjects.length; f++)if (svgweb._svgObjects[f]._objID === c) {
svgweb._svgObjects.splice(f, 1);
svgweb._svgObjects.splice(f, 1);
break
break
}
}
b.removeChild(a);
b.removeChild(a);
if (this.getHandlerType() ==
if (this.getHandlerType() ==
"flash") {
"flash") {
if (c = document.getElementById("__htc_container"))for (f = 0; f < c.childNodes.length; f++) {
if (c = document.getElementById("__htc_container"))for (f = 0; f < c.childNodes.length; f++) {
e = c.childNodes[f];
e = c.childNodes[f];
if (typeof e.ownerDocument != "undefined" && e.ownerDocument == d._svgObject.document) {
if (typeof e.ownerDocument != "undefined" && e.ownerDocument == d._svgObject.document) {
if (typeof e._fakeNode != "undefined" && typeof e._fakeNode._htcNode != "undefined")e._fakeNode._htcNode = null;
if (typeof e._fakeNode != "undefined" && typeof e._fakeNode._htcNode != "undefined")e._fakeNode._htcNode = null;
e._fakeNode = null;
e._fakeNode = null;
e._handler = null;
e._handler = null;
c.removeChild(e)
c.removeChild(e)
}
}
}
}
for (var k in svgweb._guidLookup) {
for (var k in svgweb._guidLookup) {
e = svgweb._guidLookup[k];
e = svgweb._guidLookup[k];
e._fake && e.ownerDocument === d.document && delete svgweb._guidLookup[k]
e._fake && e.ownerDocument === d.document && delete svgweb._guidLookup[k]
}
}
d.flash.contentDocument = null;
d.flash.contentDocument = null;
d.flash =
d.flash =
null;
null;
d._xml = null;
d._xml = null;
if (d.window) {
if (d.window) {
d.window._scope = null;
d.window._scope = null;
d.window = null
d.window = null
}
}
k = d._svgObject;
k = d._svgObject;
f = k.document;
f = k.document;
f._nodeById = null;
f._nodeById = null;
f._xml = null;
f._xml = null;
f.defaultView = null;
f.defaultView = null;
f.documentElement = null;
f.documentElement = null;
f.rootElement = null;
f.rootElement = null;
f = f.defaultView = null;
f = f.defaultView = null;
k._svgNode = null;
k._svgNode = null;
k._handler = null;
k._handler = null;
if (g) {
if (g) {
g._setTimeout = null;
g._setTimeout = null;
g.setTimeout = null;
g.setTimeout = null;
g._setInterval = null;
g._setInterval = null;
g.setInterval = null
g.setInterval = null
}
}
g = d = k = d._svgObject = null
g = d = k = d._svgObject = null
}
}
} else if (c == "svg") {
} else if (c == "svg") {
for (f = 0; f < svgweb._svgScripts.length; f++)if (svgweb._svgScripts[f] == d._scriptNode) {
for (f = 0; f < svgweb._svgScripts.length; f++)if (svgweb._svgScri
svgweb._svgScripts.splice(f, 1);