uikit 3.19.5-dev.57ec46163 → 3.19.5-dev.66a60877b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +55 -55
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +55 -55
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +64 -45
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +65 -46
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +66 -48
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +65 -46
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +65 -46
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +120 -81
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +123 -84
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/boot.js +6 -7
- package/src/js/api/component.js +4 -4
- package/src/js/api/observer.js +17 -5
- package/src/js/components/slider-parallax.js +2 -2
- package/src/js/components/slider.js +1 -1
- package/src/js/core/drop.js +1 -2
- package/src/js/core/height-viewport.js +1 -1
- package/src/js/core/icon.js +2 -3
- package/src/js/core/img.js +1 -1
- package/src/js/core/inverse.js +22 -5
- package/src/js/mixin/slider.js +0 -3
- package/src/js/mixin/slideshow.js +3 -0
- package/src/js/util/filter.js +1 -11
- package/src/js/util/lang.js +1 -1
- package/src/js/util/selector.js +66 -38
- package/src/js/util/svg.js +1 -12
- package/tests/modal.html +2 -2
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.66a60877b | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
return parseFloat(value) || 0;
|
|
89
89
|
}
|
|
90
90
|
function toNode(element) {
|
|
91
|
-
return toNodes(element)[0];
|
|
91
|
+
return element && toNodes(element)[0];
|
|
92
92
|
}
|
|
93
93
|
function toNodes(element) {
|
|
94
94
|
return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
|
|
@@ -319,13 +319,6 @@
|
|
|
319
319
|
function matches(element, selector) {
|
|
320
320
|
return toNodes(element).some((element2) => element2.matches(selector));
|
|
321
321
|
}
|
|
322
|
-
function closest(element, selector) {
|
|
323
|
-
var _a;
|
|
324
|
-
return (_a = toNode(element)) == null ? void 0 : _a.closest(startsWith(selector, ">") ? selector.slice(1) : selector);
|
|
325
|
-
}
|
|
326
|
-
function within(element, selector) {
|
|
327
|
-
return isString(selector) ? !!closest(element, selector) : toNode(selector).contains(toNode(element));
|
|
328
|
-
}
|
|
329
322
|
function parents(element, selector) {
|
|
330
323
|
const elements = [];
|
|
331
324
|
while (element = parent(element)) {
|
|
@@ -367,55 +360,82 @@
|
|
|
367
360
|
function findAll(selector, context) {
|
|
368
361
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
369
362
|
}
|
|
370
|
-
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
371
|
-
const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
|
|
372
363
|
function getContext(selector, context = document) {
|
|
373
|
-
return isString(selector) &&
|
|
364
|
+
return isString(selector) && parseSelector(selector).isContextSelector || isDocument(context) ? context : context.ownerDocument;
|
|
374
365
|
}
|
|
375
|
-
const
|
|
376
|
-
const
|
|
366
|
+
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
367
|
+
const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
368
|
+
const trailingCommaRe = /\s*,$/;
|
|
369
|
+
const parseSelector = memoize((selector) => {
|
|
370
|
+
var _a;
|
|
371
|
+
selector = selector.replace(addStarRe, "$1 *");
|
|
372
|
+
let isContextSelector = false;
|
|
373
|
+
const selectors = [];
|
|
374
|
+
for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
|
|
375
|
+
sel = sel.replace(trailingCommaRe, "").trim();
|
|
376
|
+
if (sel[0] === ">") {
|
|
377
|
+
sel = `:scope ${sel}`;
|
|
378
|
+
}
|
|
379
|
+
isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
|
|
380
|
+
selectors.push(sel);
|
|
381
|
+
}
|
|
382
|
+
return {
|
|
383
|
+
selector: selectors.join(","),
|
|
384
|
+
selectors,
|
|
385
|
+
isContextSelector
|
|
386
|
+
};
|
|
387
|
+
});
|
|
377
388
|
function _query(selector, context = document, queryFn) {
|
|
378
389
|
if (!selector || !isString(selector)) {
|
|
379
390
|
return selector;
|
|
380
391
|
}
|
|
381
|
-
|
|
382
|
-
if (isContextSelector
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
392
|
+
const parsed = parseSelector(selector);
|
|
393
|
+
if (!parsed.isContextSelector) {
|
|
394
|
+
return _doQuery(context, queryFn, parsed.selector);
|
|
395
|
+
}
|
|
396
|
+
selector = "";
|
|
397
|
+
const isSingle = parsed.selectors.length === 1;
|
|
398
|
+
for (let sel of parsed.selectors) {
|
|
399
|
+
let ctx = context;
|
|
400
|
+
if (sel[0] === "!") {
|
|
401
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
402
|
+
ctx = context.parentElement.closest(selectors[0]);
|
|
403
|
+
sel = selectors.slice(1).join(" ").trim();
|
|
404
|
+
if (!sel.length && isSingle) {
|
|
405
|
+
return ctx;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (sel[0] === "-") {
|
|
409
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
410
|
+
const prev = (ctx || context).previousElementSibling;
|
|
411
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
412
|
+
sel = selectors.slice(1).join(" ");
|
|
413
|
+
if (!sel.length && isSingle) {
|
|
414
|
+
return ctx;
|
|
415
|
+
}
|
|
416
|
+
} else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
|
|
417
|
+
return _doQuery(
|
|
418
|
+
ctx.parentElement,
|
|
419
|
+
queryFn,
|
|
420
|
+
`:scope :nth-child(${index(ctx) + 1}) ${sel}`
|
|
421
|
+
);
|
|
404
422
|
}
|
|
405
|
-
if (
|
|
406
|
-
|
|
423
|
+
if (ctx) {
|
|
424
|
+
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
407
425
|
}
|
|
408
426
|
}
|
|
427
|
+
if (!isDocument(context)) {
|
|
428
|
+
context = context.ownerDocument;
|
|
429
|
+
}
|
|
430
|
+
return _doQuery(context, queryFn, selector);
|
|
431
|
+
}
|
|
432
|
+
function _doQuery(context, queryFn, selector) {
|
|
409
433
|
try {
|
|
410
434
|
return context[queryFn](selector);
|
|
411
435
|
} catch (e) {
|
|
412
436
|
return null;
|
|
413
437
|
}
|
|
414
438
|
}
|
|
415
|
-
const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
416
|
-
const splitSelector = memoize(
|
|
417
|
-
(selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
|
|
418
|
-
);
|
|
419
439
|
function domPath(element) {
|
|
420
440
|
const names = [];
|
|
421
441
|
while (element.parentNode) {
|
|
@@ -1540,7 +1560,6 @@
|
|
|
1540
1560
|
camelize: camelize,
|
|
1541
1561
|
children: children,
|
|
1542
1562
|
clamp: clamp,
|
|
1543
|
-
closest: closest,
|
|
1544
1563
|
createEvent: createEvent,
|
|
1545
1564
|
css: css,
|
|
1546
1565
|
data: data,
|
|
@@ -1661,7 +1680,6 @@
|
|
|
1661
1680
|
uniqueBy: uniqueBy,
|
|
1662
1681
|
unwrap: unwrap,
|
|
1663
1682
|
width: width,
|
|
1664
|
-
within: within,
|
|
1665
1683
|
wrapAll: wrapAll,
|
|
1666
1684
|
wrapInner: wrapInner
|
|
1667
1685
|
});
|
|
@@ -1875,18 +1893,30 @@
|
|
|
1875
1893
|
}
|
|
1876
1894
|
const targets = hasOwn(instance, key) ? instance[key] : target;
|
|
1877
1895
|
const observer = observe(targets, handler, options, args);
|
|
1878
|
-
if (isFunction(target) && isArray(instance[key])
|
|
1879
|
-
registerWatch(
|
|
1896
|
+
if (isFunction(target) && isArray(instance[key])) {
|
|
1897
|
+
registerWatch(
|
|
1898
|
+
instance,
|
|
1899
|
+
{ handler: updateTargets(observer, options), immediate: false },
|
|
1900
|
+
key
|
|
1901
|
+
);
|
|
1880
1902
|
}
|
|
1881
1903
|
registerObserver(instance, observer);
|
|
1882
1904
|
}
|
|
1883
|
-
function updateTargets(observer) {
|
|
1905
|
+
function updateTargets(observer, options) {
|
|
1884
1906
|
return (targets, prev) => {
|
|
1885
1907
|
for (const target of prev) {
|
|
1886
|
-
!includes(targets, target)
|
|
1908
|
+
if (!includes(targets, target)) {
|
|
1909
|
+
if (observer.unobserve) {
|
|
1910
|
+
observer.unobserve(target);
|
|
1911
|
+
} else if (observer.observe) {
|
|
1912
|
+
observer.disconnect();
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1887
1915
|
}
|
|
1888
1916
|
for (const target of targets) {
|
|
1889
|
-
!includes(prev, target)
|
|
1917
|
+
if (!includes(prev, target) || !observer.unobserve) {
|
|
1918
|
+
observer.observe(target, options);
|
|
1919
|
+
}
|
|
1890
1920
|
}
|
|
1891
1921
|
};
|
|
1892
1922
|
}
|
|
@@ -2153,26 +2183,26 @@
|
|
|
2153
2183
|
};
|
|
2154
2184
|
App.util = util;
|
|
2155
2185
|
App.options = {};
|
|
2156
|
-
App.version = "3.19.5-dev.
|
|
2186
|
+
App.version = "3.19.5-dev.66a60877b";
|
|
2157
2187
|
|
|
2158
2188
|
const PREFIX = "uk-";
|
|
2159
2189
|
const DATA = "__uikit__";
|
|
2160
2190
|
const components$1 = {};
|
|
2161
2191
|
function component(name, options) {
|
|
2162
|
-
var _a;
|
|
2192
|
+
var _a, _b;
|
|
2163
2193
|
const id = PREFIX + hyphenate(name);
|
|
2164
2194
|
if (!options) {
|
|
2165
|
-
if (
|
|
2195
|
+
if (!components$1[id].options) {
|
|
2166
2196
|
components$1[id] = App.extend(components$1[id]);
|
|
2167
2197
|
}
|
|
2168
2198
|
return components$1[id];
|
|
2169
2199
|
}
|
|
2170
2200
|
name = camelize(name);
|
|
2171
2201
|
App[name] = (element, data) => createComponent(name, element, data);
|
|
2172
|
-
const opt =
|
|
2202
|
+
const opt = (_a = options.options) != null ? _a : { ...options };
|
|
2173
2203
|
opt.id = id;
|
|
2174
2204
|
opt.name = name;
|
|
2175
|
-
(
|
|
2205
|
+
(_b = opt.install) == null ? void 0 : _b.call(opt, App, opt, name);
|
|
2176
2206
|
if (App._initialized && !opt.functional) {
|
|
2177
2207
|
requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
|
|
2178
2208
|
}
|
|
@@ -2180,7 +2210,7 @@
|
|
|
2180
2210
|
}
|
|
2181
2211
|
function createComponent(name, element, data, ...args) {
|
|
2182
2212
|
const Component = component(name);
|
|
2183
|
-
return Component.options.functional ? new Component({ data: isPlainObject(element) ? element : [element, data, ...args] }) : element ?
|
|
2213
|
+
return Component.options.functional ? new Component({ data: isPlainObject(element) ? element : [element, data, ...args] }) : element ? findAll(element).map(init)[0] : init();
|
|
2184
2214
|
function init(element2) {
|
|
2185
2215
|
const instance = getComponent(element2, name);
|
|
2186
2216
|
if (instance) {
|
|
@@ -2256,14 +2286,14 @@
|
|
|
2256
2286
|
if (name) {
|
|
2257
2287
|
if (hasAttr(target, attributeName)) {
|
|
2258
2288
|
createComponent(name, target);
|
|
2259
|
-
|
|
2289
|
+
} else {
|
|
2290
|
+
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
2260
2291
|
}
|
|
2261
|
-
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
2262
2292
|
}
|
|
2263
2293
|
}
|
|
2264
2294
|
function connect(node) {
|
|
2265
2295
|
const components2 = getComponents(node);
|
|
2266
|
-
for (const name in
|
|
2296
|
+
for (const name in components2) {
|
|
2267
2297
|
callConnected(components2[name]);
|
|
2268
2298
|
}
|
|
2269
2299
|
for (const attributeName of node.getAttributeNames()) {
|
|
@@ -2273,7 +2303,7 @@
|
|
|
2273
2303
|
}
|
|
2274
2304
|
function disconnect(node) {
|
|
2275
2305
|
const components2 = getComponents(node);
|
|
2276
|
-
for (const name in
|
|
2306
|
+
for (const name in components2) {
|
|
2277
2307
|
callDisconnected(components2[name]);
|
|
2278
2308
|
}
|
|
2279
2309
|
}
|
|
@@ -2282,7 +2312,7 @@
|
|
|
2282
2312
|
attribute = attribute.slice(5);
|
|
2283
2313
|
}
|
|
2284
2314
|
const cmp = components$1[attribute];
|
|
2285
|
-
return cmp && (
|
|
2315
|
+
return cmp && (cmp.options || cmp).name;
|
|
2286
2316
|
}
|
|
2287
2317
|
|
|
2288
2318
|
function globalApi(App) {
|
|
@@ -3543,7 +3573,8 @@
|
|
|
3543
3573
|
document,
|
|
3544
3574
|
`${pointerUp} ${pointerCancel} scroll`,
|
|
3545
3575
|
({ defaultPrevented, type, target: newTarget }) => {
|
|
3546
|
-
|
|
3576
|
+
var _a;
|
|
3577
|
+
if (!defaultPrevented && type === pointerUp && target === newTarget && !((_a = drop.targetEl) == null ? void 0 : _a.contains(target))) {
|
|
3547
3578
|
drop.hide(false);
|
|
3548
3579
|
}
|
|
3549
3580
|
},
|
|
@@ -4306,7 +4337,7 @@
|
|
|
4306
4337
|
const top = offsetPosition(offsetTopEl)[0] - offsetPosition(scrollElement)[0];
|
|
4307
4338
|
minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : "";
|
|
4308
4339
|
} else {
|
|
4309
|
-
minHeight += ` - ${css(scrollElement, "
|
|
4340
|
+
minHeight += ` - ${boxModelAdjust(scrollElement, "height", css(scrollElement, "boxSizing"))}px`;
|
|
4310
4341
|
}
|
|
4311
4342
|
}
|
|
4312
4343
|
if (this.offsetBottom === true) {
|
|
@@ -4519,7 +4550,7 @@
|
|
|
4519
4550
|
i18n: { toggle: "Open Search", submit: "Submit Search" },
|
|
4520
4551
|
beforeConnect() {
|
|
4521
4552
|
const isToggle = hasClass(this.$el, "uk-search-toggle") || hasClass(this.$el, "uk-navbar-toggle");
|
|
4522
|
-
this.icon = isToggle ? "search-toggle-icon" : hasClass(this.$el, "uk-search-icon") &&
|
|
4553
|
+
this.icon = isToggle ? "search-toggle-icon" : hasClass(this.$el, "uk-search-icon") && this.$el.closest(".uk-search-large") ? "search-large" : this.$el.closest(".uk-search-navbar") ? "search-navbar" : this.$props.icon;
|
|
4523
4554
|
if (hasAttr(this.$el, "aria-label")) {
|
|
4524
4555
|
return;
|
|
4525
4556
|
}
|
|
@@ -4663,13 +4694,13 @@
|
|
|
4663
4694
|
delete this.img;
|
|
4664
4695
|
},
|
|
4665
4696
|
observe: intersection({
|
|
4666
|
-
target: ({ $el, $props }) => [$el, ...queryAll($props.target, $el)],
|
|
4667
4697
|
handler(entries, observer) {
|
|
4668
4698
|
this.load();
|
|
4669
4699
|
observer.disconnect();
|
|
4670
4700
|
},
|
|
4671
4701
|
options: ({ margin }) => ({ rootMargin: margin }),
|
|
4672
|
-
filter: ({ loading }) => loading === "lazy"
|
|
4702
|
+
filter: ({ loading }) => loading === "lazy",
|
|
4703
|
+
target: ({ $el, $props }) => $props.target ? [$el, ...queryAll($props.target, $el)] : $el
|
|
4673
4704
|
}),
|
|
4674
4705
|
methods: {
|
|
4675
4706
|
load() {
|
|
@@ -4759,9 +4790,17 @@
|
|
|
4759
4790
|
selActive: false
|
|
4760
4791
|
},
|
|
4761
4792
|
computed: {
|
|
4762
|
-
target: ({ target }, $el) => target ? $$(target, $el) :
|
|
4793
|
+
target: ({ target }, $el) => target ? $$(target, $el) : $el
|
|
4763
4794
|
},
|
|
4764
4795
|
observe: [
|
|
4796
|
+
intersection({
|
|
4797
|
+
handler(entries) {
|
|
4798
|
+
this.isIntersecting = entries.some(({ isIntersecting }) => isIntersecting);
|
|
4799
|
+
this.$emit();
|
|
4800
|
+
},
|
|
4801
|
+
target: ({ target }) => target,
|
|
4802
|
+
args: { intersecting: false }
|
|
4803
|
+
}),
|
|
4765
4804
|
mutation({
|
|
4766
4805
|
target: ({ target }) => target,
|
|
4767
4806
|
options: { attributes: true, attributeFilter: ["class"], attributeOldValue: true }
|
|
@@ -4769,7 +4808,10 @@
|
|
|
4769
4808
|
{
|
|
4770
4809
|
target: ({ target }) => target,
|
|
4771
4810
|
observe: (target, handler) => {
|
|
4772
|
-
const observer = observeResize(
|
|
4811
|
+
const observer = observeResize(
|
|
4812
|
+
[...toNodes(target), document.documentElement],
|
|
4813
|
+
handler
|
|
4814
|
+
);
|
|
4773
4815
|
const listener = [
|
|
4774
4816
|
on(document, "scroll itemshown itemhidden", handler, {
|
|
4775
4817
|
passive: true,
|
|
@@ -4785,6 +4827,8 @@
|
|
|
4785
4827
|
})
|
|
4786
4828
|
];
|
|
4787
4829
|
return {
|
|
4830
|
+
observe: observer.observe.bind(observer),
|
|
4831
|
+
unobserve: observer.unobserve.bind(observer),
|
|
4788
4832
|
disconnect() {
|
|
4789
4833
|
observer.disconnect();
|
|
4790
4834
|
listener.map((off) => off());
|
|
@@ -4798,7 +4842,10 @@
|
|
|
4798
4842
|
],
|
|
4799
4843
|
update: {
|
|
4800
4844
|
read() {
|
|
4801
|
-
|
|
4845
|
+
if (!this.isIntersecting) {
|
|
4846
|
+
return false;
|
|
4847
|
+
}
|
|
4848
|
+
for (const target of toNodes(this.target)) {
|
|
4802
4849
|
replaceClass(
|
|
4803
4850
|
target,
|
|
4804
4851
|
"uk-light,uk-dark",
|
|
@@ -6080,18 +6127,10 @@
|
|
|
6080
6127
|
}
|
|
6081
6128
|
|
|
6082
6129
|
function getMaxPathLength(el) {
|
|
6083
|
-
return Math.ceil(
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
try {
|
|
6088
|
-
return stroke.getTotalLength();
|
|
6089
|
-
} catch (e) {
|
|
6090
|
-
return 0;
|
|
6091
|
-
}
|
|
6092
|
-
})
|
|
6093
|
-
)
|
|
6094
|
-
);
|
|
6130
|
+
return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
6131
|
+
var _a;
|
|
6132
|
+
return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
|
|
6133
|
+
})));
|
|
6095
6134
|
}
|
|
6096
6135
|
|
|
6097
6136
|
var svg = {
|