@antv/g-svg 1.8.32 → 1.8.33
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/dist/index.umd.js +13 -153
- package/dist/index.umd.min.js +1 -1
- package/package.json +5 -5
package/dist/index.umd.js
CHANGED
|
@@ -989,30 +989,6 @@
|
|
|
989
989
|
return out;
|
|
990
990
|
}
|
|
991
991
|
|
|
992
|
-
/******************************************************************************
|
|
993
|
-
Copyright (c) Microsoft Corporation.
|
|
994
|
-
|
|
995
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
996
|
-
purpose with or without fee is hereby granted.
|
|
997
|
-
|
|
998
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
999
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1000
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1001
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1002
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1003
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1004
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1005
|
-
***************************************************************************** */
|
|
1006
|
-
|
|
1007
|
-
/** @deprecated */
|
|
1008
|
-
function __spreadArrays() {
|
|
1009
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
1010
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1011
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1012
|
-
r[k] = a[j];
|
|
1013
|
-
return r;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
992
|
// isFinite,
|
|
1017
993
|
var isNil = function (value) {
|
|
1018
994
|
/**
|
|
@@ -1686,14 +1662,14 @@
|
|
|
1686
1662
|
var rad = 0;
|
|
1687
1663
|
var x;
|
|
1688
1664
|
var y;
|
|
1689
|
-
if (markerStart &&
|
|
1665
|
+
if (markerStart && gLite.isDisplayObject(markerStart) && markerStartOffset) {
|
|
1690
1666
|
x = x2 - x1;
|
|
1691
1667
|
y = y2 - y1;
|
|
1692
1668
|
rad = Math.atan2(y, x);
|
|
1693
1669
|
startOffsetX = Math.cos(rad) * (markerStartOffset || 0);
|
|
1694
1670
|
startOffsetY = Math.sin(rad) * (markerStartOffset || 0);
|
|
1695
1671
|
}
|
|
1696
|
-
if (markerEnd &&
|
|
1672
|
+
if (markerEnd && gLite.isDisplayObject(markerEnd) && markerEndOffset) {
|
|
1697
1673
|
x = x1 - x2;
|
|
1698
1674
|
y = y1 - y2;
|
|
1699
1675
|
rad = Math.atan2(y, x);
|
|
@@ -1723,7 +1699,7 @@
|
|
|
1723
1699
|
var rad = 0;
|
|
1724
1700
|
var x;
|
|
1725
1701
|
var y;
|
|
1726
|
-
if (markerStart &&
|
|
1702
|
+
if (markerStart && gLite.isDisplayObject(markerStart) && markerStartOffset) {
|
|
1727
1703
|
var _markerStart$parentNo = markerStart.parentNode.getStartTangent(),
|
|
1728
1704
|
p1 = _markerStart$parentNo[0],
|
|
1729
1705
|
p2 = _markerStart$parentNo[1];
|
|
@@ -1733,7 +1709,7 @@
|
|
|
1733
1709
|
startOffsetX = Math.cos(rad) * (markerStartOffset || 0);
|
|
1734
1710
|
startOffsetY = Math.sin(rad) * (markerStartOffset || 0);
|
|
1735
1711
|
}
|
|
1736
|
-
if (markerEnd &&
|
|
1712
|
+
if (markerEnd && gLite.isDisplayObject(markerEnd) && markerEndOffset) {
|
|
1737
1713
|
var _markerEnd$parentNode = markerEnd.parentNode.getEndTangent(),
|
|
1738
1714
|
_p = _markerEnd$parentNode[0],
|
|
1739
1715
|
_p2 = _markerEnd$parentNode[1];
|
|
@@ -1764,14 +1740,14 @@
|
|
|
1764
1740
|
var rad = 0;
|
|
1765
1741
|
var x;
|
|
1766
1742
|
var y;
|
|
1767
|
-
if (markerStart &&
|
|
1743
|
+
if (markerStart && gLite.isDisplayObject(markerStart) && markerStartOffset) {
|
|
1768
1744
|
x = points[1][0] - points[0][0];
|
|
1769
1745
|
y = points[1][1] - points[0][1];
|
|
1770
1746
|
rad = Math.atan2(y, x);
|
|
1771
1747
|
startOffsetX = Math.cos(rad) * (markerStartOffset || 0);
|
|
1772
1748
|
startOffsetY = Math.sin(rad) * (markerStartOffset || 0);
|
|
1773
1749
|
}
|
|
1774
|
-
if (markerEnd &&
|
|
1750
|
+
if (markerEnd && gLite.isDisplayObject(markerEnd) && markerEndOffset) {
|
|
1775
1751
|
x = points[length - 2][0] - points[length - 1][0];
|
|
1776
1752
|
y = points[length - 2][1] - points[length - 1][1];
|
|
1777
1753
|
rad = Math.atan2(y, x);
|
|
@@ -1997,10 +1973,10 @@
|
|
|
1997
1973
|
fill = _object$parsedStyle.fill,
|
|
1998
1974
|
stroke = _object$parsedStyle.stroke,
|
|
1999
1975
|
clipPath = _object$parsedStyle.clipPath;
|
|
2000
|
-
if (fill && !(fill
|
|
1976
|
+
if (fill && !gLite.isCSSRGB(fill)) {
|
|
2001
1977
|
_this.defElementManager.createOrUpdateGradientAndPattern(object, $el, fill, 'fill', _this);
|
|
2002
1978
|
}
|
|
2003
|
-
if (stroke && !(stroke
|
|
1979
|
+
if (stroke && !gLite.isCSSRGB(stroke)) {
|
|
2004
1980
|
_this.defElementManager.createOrUpdateGradientAndPattern(object, $el, stroke, 'stroke', _this);
|
|
2005
1981
|
}
|
|
2006
1982
|
if (clipPath) {
|
|
@@ -2814,7 +2790,7 @@
|
|
|
2814
2790
|
if (!parsedColor) {
|
|
2815
2791
|
return '';
|
|
2816
2792
|
}
|
|
2817
|
-
if (
|
|
2793
|
+
if (gLite.isCSSRGB(parsedColor)) {
|
|
2818
2794
|
// keep using currentColor @see https://github.com/d3/d3-axis/issues/49
|
|
2819
2795
|
if (object.style[name] === 'currentColor') {
|
|
2820
2796
|
$el === null || $el === void 0 ? void 0 : $el.setAttribute(name, 'currentColor');
|
|
@@ -2848,7 +2824,7 @@
|
|
|
2848
2824
|
options = {};
|
|
2849
2825
|
}
|
|
2850
2826
|
var cacheKey = '';
|
|
2851
|
-
if (
|
|
2827
|
+
if (gLite.isCSSGradientValue(src)) {
|
|
2852
2828
|
var type = src.type,
|
|
2853
2829
|
value = src.value;
|
|
2854
2830
|
if (type === gLite.GradientType.LinearGradient || type === gLite.GradientType.RadialGradient) {
|
|
@@ -2871,7 +2847,7 @@
|
|
|
2871
2847
|
} else if (gLite.isPattern(src)) {
|
|
2872
2848
|
if (isString(src.image)) {
|
|
2873
2849
|
cacheKey = "pattern-" + src.image + "-" + src.repetition;
|
|
2874
|
-
} else if (src.image
|
|
2850
|
+
} else if (src.image.nodeName === 'rect') {
|
|
2875
2851
|
// use rect's entity as key
|
|
2876
2852
|
cacheKey = "pattern-rect-" + src.image.entity;
|
|
2877
2853
|
} else {
|
|
@@ -3026,7 +3002,7 @@
|
|
|
3026
3002
|
}
|
|
3027
3003
|
}
|
|
3028
3004
|
|
|
3029
|
-
if (image
|
|
3005
|
+
if (image.nodeName === 'rect') {
|
|
3030
3006
|
var _image$parsedStyle = image.parsedStyle,
|
|
3031
3007
|
width = _image$parsedStyle.width,
|
|
3032
3008
|
height = _image$parsedStyle.height;
|
|
@@ -3894,122 +3870,6 @@
|
|
|
3894
3870
|
Plugin: Plugin$2
|
|
3895
3871
|
});
|
|
3896
3872
|
|
|
3897
|
-
var toString$1 = {}.toString;
|
|
3898
|
-
var isType$1 = function (value, type) { return toString$1.call(value) === '[object ' + type + ']'; };
|
|
3899
|
-
|
|
3900
|
-
/**
|
|
3901
|
-
* 是否为函数
|
|
3902
|
-
* @param {*} fn 对象
|
|
3903
|
-
* @return {Boolean} 是否函数
|
|
3904
|
-
*/
|
|
3905
|
-
var isFunction = (function (value) {
|
|
3906
|
-
return isType$1(value, 'Function');
|
|
3907
|
-
});
|
|
3908
|
-
|
|
3909
|
-
var isArray = (function (value) {
|
|
3910
|
-
return Array.isArray ?
|
|
3911
|
-
Array.isArray(value) :
|
|
3912
|
-
isType$1(value, 'Array');
|
|
3913
|
-
});
|
|
3914
|
-
|
|
3915
|
-
var isObject = (function (value) {
|
|
3916
|
-
/**
|
|
3917
|
-
* isObject({}) => true
|
|
3918
|
-
* isObject([1, 2, 3]) => true
|
|
3919
|
-
* isObject(Function) => true
|
|
3920
|
-
* isObject(null) => false
|
|
3921
|
-
*/
|
|
3922
|
-
var type = typeof value;
|
|
3923
|
-
return value !== null && type === 'object' || type === 'function';
|
|
3924
|
-
});
|
|
3925
|
-
|
|
3926
|
-
function each(elements, func) {
|
|
3927
|
-
if (!elements) {
|
|
3928
|
-
return;
|
|
3929
|
-
}
|
|
3930
|
-
var rst;
|
|
3931
|
-
if (isArray(elements)) {
|
|
3932
|
-
for (var i = 0, len = elements.length; i < len; i++) {
|
|
3933
|
-
rst = func(elements[i], i);
|
|
3934
|
-
if (rst === false) {
|
|
3935
|
-
break;
|
|
3936
|
-
}
|
|
3937
|
-
}
|
|
3938
|
-
}
|
|
3939
|
-
else if (isObject(elements)) {
|
|
3940
|
-
for (var k in elements) {
|
|
3941
|
-
if (elements.hasOwnProperty(k)) {
|
|
3942
|
-
rst = func(elements[k], k);
|
|
3943
|
-
if (rst === false) {
|
|
3944
|
-
break;
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
}
|
|
3950
|
-
|
|
3951
|
-
var isString$1 = (function (str) {
|
|
3952
|
-
return isType$1(str, 'String');
|
|
3953
|
-
});
|
|
3954
|
-
|
|
3955
|
-
// @ts-ignore
|
|
3956
|
-
var values = Object.values ? function (obj) { return Object.values(obj); } : function (obj) {
|
|
3957
|
-
var result = [];
|
|
3958
|
-
each(obj, function (value, key) {
|
|
3959
|
-
if (!(isFunction(obj) && key === 'prototype')) {
|
|
3960
|
-
result.push(value);
|
|
3961
|
-
}
|
|
3962
|
-
});
|
|
3963
|
-
return result;
|
|
3964
|
-
};
|
|
3965
|
-
|
|
3966
|
-
/**
|
|
3967
|
-
* _.memoize(calColor);
|
|
3968
|
-
* _.memoize(calColor, (...args) => args[0]);
|
|
3969
|
-
* @param f
|
|
3970
|
-
* @param resolver
|
|
3971
|
-
*/
|
|
3972
|
-
var memoize = (function (f, resolver) {
|
|
3973
|
-
if (!isFunction(f)) {
|
|
3974
|
-
throw new TypeError('Expected a function');
|
|
3975
|
-
}
|
|
3976
|
-
var memoized = function () {
|
|
3977
|
-
var args = [];
|
|
3978
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3979
|
-
args[_i] = arguments[_i];
|
|
3980
|
-
}
|
|
3981
|
-
// 使用方法构造 key,如果不存在 resolver,则直接取第一个参数作为 key
|
|
3982
|
-
var key = resolver ? resolver.apply(this, args) : args[0];
|
|
3983
|
-
var cache = memoized.cache;
|
|
3984
|
-
if (cache.has(key)) {
|
|
3985
|
-
return cache.get(key);
|
|
3986
|
-
}
|
|
3987
|
-
var result = f.apply(this, args);
|
|
3988
|
-
// 缓存起来
|
|
3989
|
-
cache.set(key, result);
|
|
3990
|
-
return result;
|
|
3991
|
-
};
|
|
3992
|
-
memoized.cache = new Map();
|
|
3993
|
-
return memoized;
|
|
3994
|
-
});
|
|
3995
|
-
|
|
3996
|
-
var ctx;
|
|
3997
|
-
/**
|
|
3998
|
-
* 计算文本的宽度
|
|
3999
|
-
*/
|
|
4000
|
-
memoize(function (text, font) {
|
|
4001
|
-
if (font === void 0) { font = {}; }
|
|
4002
|
-
var fontSize = font.fontSize, fontFamily = font.fontFamily, fontWeight = font.fontWeight, fontStyle = font.fontStyle, fontVariant = font.fontVariant;
|
|
4003
|
-
if (!ctx) {
|
|
4004
|
-
ctx = document.createElement('canvas').getContext('2d');
|
|
4005
|
-
}
|
|
4006
|
-
ctx.font = [fontStyle, fontVariant, fontWeight, fontSize + "px", fontFamily].join(' ');
|
|
4007
|
-
return ctx.measureText(isString$1(text) ? text : '').width;
|
|
4008
|
-
}, function (text, font) {
|
|
4009
|
-
if (font === void 0) { font = {}; }
|
|
4010
|
-
return __spreadArrays([text], values(font)).join('');
|
|
4011
|
-
});
|
|
4012
|
-
|
|
4013
3873
|
var _excluded = ["offset", "composite", "computedOffset", "easing"],
|
|
4014
3874
|
_excluded2 = ["offset", "composite", "computedOffset", "easing", "transformOrigin"],
|
|
4015
3875
|
_excluded3 = ["offset", "composite", "computedOffset", "easing", "transformOrigin"],
|
|
@@ -4033,7 +3893,7 @@
|
|
|
4033
3893
|
switch (_context.prev = _context.next) {
|
|
4034
3894
|
case 0:
|
|
4035
3895
|
_this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, devicePixelRatio = _this$canvasConfig.devicePixelRatio; // create container
|
|
4036
|
-
this.$container = isString
|
|
3896
|
+
this.$container = isString(container) ? (doc || document).getElementById(container) : container;
|
|
4037
3897
|
if (this.$container) {
|
|
4038
3898
|
if (!this.$container.style.position) {
|
|
4039
3899
|
this.$container.style.position = 'relative';
|
package/dist/index.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new L(n||[]);return i(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&n.call(y,a)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,o,a,u){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(this.prev>=o.tryLoc){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return r(o.catchLoc,!0);if(o.finallyLoc>this.prev)return r(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(this.prev>=i.tryLoc&&n.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function u(t){n(a,i,o,u,s,"next",t)}function s(t){n(a,i,o,u,s,"throw",t)}u(void 0)}))}}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;o.length>n;n++)0>e.indexOf(r=o[n])&&(i[r]=t[r]);return i}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new L(i||[]);return n(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&r.call(y,o)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(n,o,a,u){var s=f(t[n],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,u,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,u,"next",t)}function u(t){c(o,n,i,a,u,"throw",t)}a(void 0)}))}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(){function t(){this.context=void 0}return t.prototype.apply=function(r){var n=this,i=r.renderingService,o=r.renderingContext;this.context=r;var a=o.root.ownerDocument.defaultView,u=function(t){i.hooks.pointerMove.call(t)},c=function(t){i.hooks.pointerUp.call(t)},f=function(t){i.hooks.pointerDown.call(t)},h=function(t){i.hooks.pointerOver.call(t)},d=function(t){i.hooks.pointerOut.call(t)},p=function(t){i.hooks.pointerCancel.call(t)},v=function(t){i.hooks.pointerWheel.call(t)},m=function(t){e.runtime.globalThis.document.addEventListener("pointermove",u,!0),t.addEventListener("pointerdown",f,!0),t.addEventListener("pointerleave",d,!0),t.addEventListener("pointerover",h,!0),e.runtime.globalThis.addEventListener("pointerup",c,!0)},g=function(t){t.addEventListener("touchstart",f,!0),t.addEventListener("touchend",c,!0),t.addEventListener("touchmove",u,!0),t.addEventListener("touchcancel",p,!0)},y=function(t){e.runtime.globalThis.document.addEventListener("mousemove",u,!0),t.addEventListener("mousedown",f,!0),t.addEventListener("mouseout",d,!0),t.addEventListener("mouseover",h,!0),e.runtime.globalThis.addEventListener("mouseup",c,!0)};i.hooks.init.tapPromise(t.tag,l(s().mark((function t(){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n.context.contextService.getDomElement(),e.runtime.globalThis.navigator.msPointerEnabled?(r.style.msContentZooming="none",r.style.msTouchAction="none"):a.supportsPointerEvents&&(r.style.touchAction="none"),a.supportsPointerEvents?m(r):y(r),a.supportsTouchEvents&&g(r),r.addEventListener("wheel",v,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){var t=n.context.contextService.getDomElement();e.runtime.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):a.supportsPointerEvents&&(t.style.touchAction=""),a.supportsPointerEvents?function(t){e.runtime.globalThis.document.removeEventListener("pointermove",u,!0),t.removeEventListener("pointerdown",f,!0),t.removeEventListener("pointerleave",d,!0),t.removeEventListener("pointerover",h,!0),e.runtime.globalThis.removeEventListener("pointerup",c,!0)}(t):function(t){e.runtime.globalThis.document.removeEventListener("mousemove",u,!0),t.removeEventListener("mousedown",f,!0),t.removeEventListener("mouseout",d,!0),t.removeEventListener("mouseover",h,!0),e.runtime.globalThis.removeEventListener("mouseup",c,!0)}(t),a.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",f,!0),t.removeEventListener("touchend",c,!0),t.removeEventListener("touchmove",u,!0),t.removeEventListener("touchcancel",p,!0)}(t),t.removeEventListener("wheel",v,!0)}))},t}();h.tag="DOMInteraction";var d=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="dom-interaction",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,f(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new h)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),p=Object.freeze({__proto__:null,Plugin:d}),v="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var t=new v(16);return v!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function g(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],m=e[14],g=e[15],y=r*u-n*a,b=r*s-i*a,w=r*c-o*a,E=n*s-i*u,x=n*c-o*u,A=i*c-o*s,S=l*v-f*p,O=l*m-h*p,L=l*g-d*p,C=f*m-h*v,k=f*g-d*v,T=h*g-d*m,P=y*T-b*k+w*C+E*L-x*O+A*S;return P?(t[0]=(u*T-s*k+c*C)*(P=1/P),t[1]=(i*k-n*T-o*C)*P,t[2]=(v*A-m*x+g*E)*P,t[3]=(h*x-f*A-d*E)*P,t[4]=(s*L-a*T-c*O)*P,t[5]=(r*T-i*L+o*O)*P,t[6]=(m*w-p*A-g*b)*P,t[7]=(l*A-h*w+d*b)*P,t[8]=(a*k-u*L+c*S)*P,t[9]=(n*L-r*k-o*S)*P,t[10]=(p*x-v*w+g*y)*P,t[11]=(f*w-l*x-d*y)*P,t[12]=(u*O-a*C-s*S)*P,t[13]=(r*C-n*O+i*S)*P,t[14]=(v*b-p*E-m*y)*P,t[15]=(l*E-f*b+h*y)*P,t):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var y=function(t){return null==t},b={}.toString,w=function(t){return e="String",b.call(t)==="[object "+e+"]";var e},E=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},x=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},A=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},S=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},O=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},L=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},C=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,k=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],T=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function P(t){return t?G(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new L:"undefined"!=typeof navigator?G(navigator.userAgent):"undefined"!=typeof process&&process.version?new A(process.version.slice(1)):null}function G(t){var e=function(t){return""!==t&&k.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new O;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=E(E([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=T.length;r>e;e++){var n=T[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=C.exec(t);return u&&u[1]?new S(r,o,a,u[1]):new x(r,o,a)}function M(){M=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new O(i||[]);return n(o,"_invoke",{value:E(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==e&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function _(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function j(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_(o,n,i,a,u,"next",t)}function u(t){_(o,n,i,a,u,"throw",t)}a(void 0)}))}}function N(){return N=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},N.apply(this,arguments)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}var D=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function V(t,e){var r=e.img,n=void 0===r?"":r,i=e.width,o=e.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),w(n))t.setAttribute("href",n);else if(n instanceof Image)i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",n.src);else if(n instanceof HTMLElement&&w(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase())t.setAttribute("href",n.toDataURL());else if(n instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+n.width),a.setAttribute("height",""+n.height);var u=a.getContext("2d");u&&(u.putImageData(n,0,0),i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",a.toDataURL()))}}function I(t,r){var n=r.x1,i=r.y1,o=r.x2,a=r.y2,u=r.defX,s=void 0===u?0:u,c=r.defY,l=void 0===c?0:c,f=r.markerStart,h=r.markerEnd,d=r.markerStartOffset,p=r.markerEndOffset,v=0,m=0,g=0,y=0,b=0;f&&f instanceof e.DisplayObject&&d&&(v=Math.cos(b=Math.atan2(a-i,o-n))*(d||0),m=Math.sin(b)*(d||0)),h&&h instanceof e.DisplayObject&&p&&(g=Math.cos(b=Math.atan2(i-a,n-o))*(p||0),y=Math.sin(b)*(p||0)),t.setAttribute("x1",""+(n-s+v)),t.setAttribute("y1",""+(i-l+m)),t.setAttribute("x2",""+(o-s+g)),t.setAttribute("y2",""+(a-l+y))}function R(t,r){var n=r.path,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,s=r.markerStart,c=r.markerEnd,l=r.markerStartOffset,f=r.markerEndOffset,h=0,d=0,p=0,v=0,m=0;if(s&&s instanceof e.DisplayObject&&l){var g=s.parentNode.getStartTangent(),y=g[0],b=g[1];h=Math.cos(m=Math.atan2(y[1]-b[1],y[0]-b[0]))*(l||0),d=Math.sin(m)*(l||0)}if(c&&c instanceof e.DisplayObject&&f){var w=c.parentNode.getEndTangent(),E=w[0],x=w[1];p=Math.cos(m=Math.atan2(E[1]-x[1],E[0]-x[0]))*(f||0),v=Math.sin(m)*(f||0)}t.setAttribute("d",e.translatePathToString(n.absolutePath,o,u,h,d,p,v))}function W(t,r){var n=r.points.points,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,s=r.markerStart,c=r.markerStartOffset,l=r.markerEnd,f=r.markerEndOffset,h=n.length;if(n&&h>=2){var d=0,p=0,v=0,m=0,g=0;s&&s instanceof e.DisplayObject&&c&&(d=Math.cos(g=Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]))*(c||0),p=Math.sin(g)*(c||0)),l&&l instanceof e.DisplayObject&&f&&(v=Math.cos(g=Math.atan2(n[h-2][1]-n[h-1][1],n[h-2][0]-n[h-1][0]))*(f||0),m=Math.sin(g)*(f||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=d,n=p):e===h-1&&(r=v,n=m),t[0]-o+r+","+(t[1]-u+n)})).join(" "))}}function U(t,e){var r=e.radius,n=e.width,i=e.height;if(isFinite(n)&&isFinite(i)){var o="";if(r&&r.some((function(t){return 0!==t}))){var a=r.map((function(t){return e=t,r=0,o=Math.min(Math.abs(n)/2,Math.abs(i)/2),r>e?r:e>o?o:e;var e,r,o})),u=a[0],s=a[1],c=a[2],l=a[3],f=n>0?1:-1,h=i>0?1:-1,d=f+h!==0?1:0;o=[["M "+f*u+",0"],["l "+(n-f*(u+s))+",0"],["a "+s+","+s+",0,0,"+d+","+f*s+","+h*s],["l 0,"+(i-h*(s+c))],["a "+c+","+c+",0,0,"+d+","+-f*c+","+h*c],["l "+(f*(c+l)-n)+",0"],["a "+l+","+l+",0,0,"+d+","+-f*l+","+-h*l],["l 0,"+(h*(l+u)-i)],["a "+u+","+u+",0,0,"+d+","+f*u+","+-h*u],["z"]].join(" ")}else o="M 0,0 l "+n+",0 l 0,"+i+" l"+-n+" 0 z";t.setAttribute("d",o)}}function F(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return t.toFixed(6).replace(".000000","")}function H(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}D.tag="c-svg-element";var Y={opacity:"opacity",fillStyle:"fill",fill:"fill",fillRule:"fill-rule",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",textPath:"text-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor",pointerEvents:"pointer-events"},X={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},z={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",fillRule:"nonzero",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit",pointerEvents:"auto"},q="g-svg",Q="clip-path-",K="text-path-",J=function(){function t(t,e,r){this.pluginOptions=void 0,this.defElementManager=void 0,this.context=void 0,this.$camera=void 0,this.renderQueue=[],this.dirtyAttributes=new WeakMap,this.pendingReorderQueue=new Set,this.clipPathUseMap=new WeakMap,this.pluginOptions=t,this.defElementManager=e,this.context=r}var r=t.prototype;return r.apply=function(r){var n=this,i=r.renderingService,o=r.renderingContext;this.context=r;var a=o.root.ownerDocument.defaultView,u=this.context.config.document,s=function(t){var e=t.target;if(n.clipPathUseMap.get(e)){var r=n.defElementManager.getDefElement().querySelector("#"+n.getId(e));r&&r.remove()}n.createSVGDom(u,e,n.$camera)},c=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},l=function(t){var e=t.target;if(e.elementSVG){var r=t.attrName,i=n.dirtyAttributes.get(e);i||(n.dirtyAttributes.set(e,[]),i=n.dirtyAttributes.get(e)),i.push(r)}},f=function(t){var r,i=t.target,o=null===(r=i.elementSVG)||void 0===r?void 0:r.$el,a=i.parsedStyle,u=a.fill,s=a.stroke,c=a.clipPath;if(!u||u instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill",n),!s||s instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,s,"stroke",n),c){var l=g(m(),i.getWorldTransform()),f=Q+c.entity+"-"+i.entity,h=n.defElementManager.getDefElement().querySelector("#"+f);h&&n.applyTransform(h,l)}};i.hooks.init.tapPromise(t.tag,j(M().mark((function t(){var r,i,o,u;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(r=n.context.config).background,o=r.document,n.defElementManager.init(),u=n.context.contextService.getContext(),i&&(u.style.background=i),u.setAttribute("color-interpolation-filters","sRGB"),n.$camera=F("g",o),n.$camera.id="g-svg-camera",n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),u.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,s),a.addEventListener(e.ElementEvent.UNMOUNTED,c),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,f);case 13:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,s),a.removeEventListener(e.ElementEvent.UNMOUNTED,c),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,f)})),i.hooks.render.tap(t.tag,(function(t){n.renderQueue.push(t)})),i.hooks.beginFrame.tap(t.tag,(function(){var t=n.context.config.document;n.pendingReorderQueue.size&&(n.pendingReorderQueue.forEach((function(e){var r,i=((null==e?void 0:e.children)||[]).slice(),o=null==e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl;o&&n.reorderChildren(t||u,o,i||[])})),n.pendingReorderQueue.clear())})),i.hooks.endFrame.tap(t.tag,(function(){o.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),n.renderQueue.forEach((function(t){var e,r,i=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,o=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(i&&o){var a=t.getLocalTransform();n.applyTransform(o,a);var s=n.clipPathUseMap.get(t);s&&s.length&&s.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var c=n.dirtyAttributes.get(t);c&&(c.forEach((function(e){if("zIndex"===e){var r,a,s=t.parentNode,c=null===(r=t.parentNode)||void 0===r||null===(a=r.elementSVG)||void 0===a?void 0:a.$groupEl,l=((null==s?void 0:s.children)||[]).slice();c&&n.reorderChildren(u,c,l)}else"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,i,o);n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))},r.getId=function(t){return"g-svg-"+t.entity},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,e){t.setAttribute("transform","matrix("+B(e[0])+","+B(e[1])+","+B(e[4])+","+B(e[5])+","+B(e[12])+","+B(e[13])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var i=t.nodeName,o=t.attributes;n.setAttribute("fill","none"),i===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(o))}},r.updateAttribute=function(t,r){var n=this,i=this.context.config.document,o=t.elementSVG,a=o.$el,u=o.$groupEl,s=o.$hitTestingEl,c=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,s].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o,f,h=Y[r],d=l[r],p=d&&""+d,v=(null===(o=X[r])||void 0===o?void 0:o[p])||p,m=c[r],g=!!(null===(f=e.propertyMetadataCache[r])||void 0===f?void 0:f.inh);h&&(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(m||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?t.nodeName===e.Shape.HTML?a.style.background=""+m:n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,h,n):"stroke"===r?t.nodeName===e.Shape.HTML?(a.style["border-color"]=""+m,a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,h,n):g&&h?"unset"!==p&&p!==z[r]?null==u||u.setAttribute(h,v):null==u||u.removeAttribute(h):"clipPath"===r?n.createOrUpdateClipOrTextPath(i,m,t):"textPath"===r?n.createOrUpdateClipOrTextPath(i,m,t,!0):"shadowType"===r||"shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r?n.defElementManager.createOrUpdateShadow(t,a,r):"filter"===r?n.defElementManager.createOrUpdateFilter(t,a,m):"innerHTML"===r?n.createOrUpdateInnerHTML(i,a,m):"anchor"===r?t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):d&&[a,s].forEach((function(t){t&&h&&("unset"!==p&&p!==z[r]?t.setAttribute(h,v):t.removeAttribute(h))})))}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new D;var o=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r);if(a){var u,s;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),this.pluginOptions.outputSVGElementId&&(a.id=this.getId(r)),this.pluginOptions.outputSVGElementName&&r.name&&a.setAttribute("name",r.name),!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||i?s=a:((s=F("g",t)).id=a.id+"-g",s.appendChild(a)),o.$el=a,o.$groupEl=s,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,s);var c=n||r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl);c&&(c.appendChild(s),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&(r.parentNode.removeChild(r),this.context.SVGElementLifeCycleContribution.destroyElement(t,r))},r.createOrUpdateHitArea=function(t,e,r){var n=t.elementSVG,i=n.$hitTestingEl,o=t.parsedStyle.increasedLineWidthForHitTesting;if(o){if(!i){i=e.cloneNode(),this.pluginOptions.outputSVGElementId&&(i.id="g-svg-"+t.nodeName+"-hittesting-"+t.entity),["filter"].forEach((function(t){i.removeAttribute(t)}));var a="none"!==e.getAttribute("fill");i.setAttribute("fill",a?"transparent":"none"),i.setAttribute("stroke","transparent"),r.appendChild(i),n.$hitTestingEl=i}i.setAttribute("stroke-width",""+(o+t.parsedStyle.lineWidth))}else i&&(r.removeChild(i),n.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipOrTextPath=function(t,e,r,n){void 0===n&&(n=!1);var i=r.elementSVG.$groupEl,o=n?"g":"clipPath",a=n?"text-path":"clip-path";if(e){var u=(n?K:Q)+e.entity+"-"+r.entity,s=this.defElementManager.getDefElement();if(!s.querySelector("#"+u)){var c;if(n)this.createSVGDom(t,e,null,!0),c=e.elementSVG.$el;else{if(!e.isConnected)s.querySelector("#"+this.getId(e))||this.createSVGDom(t,e,s,!0);c=F(o,t);var l=F("use",t);l.setAttribute("href","#"+e.elementSVG.$el.id),c.appendChild(l);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(l),this.applyTransform(l,e.getWorldTransform());var h=g(m(),r.getWorldTransform());this.applyTransform(c,h)}c.id=u,s.appendChild(c)}this.applyAttributes(e),n||i.setAttribute(a,"url(#"+u+")")}else n||i.removeAttribute(a)},r.updateAnchorWithTransform=function(t){var r,n,i=t.getGeometryBounds(),o=i&&2*i.halfExtents[0]||0,a=i&&2*i.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-u[0]*o,i=-u[1]*a;0===n&&0===i||r.setAttribute("transform","translate("+n+","+i+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+o/2),r.setAttribute("cy",""+a/2))}}))},t}();J.tag="SVGRenderer";var Z,tt,et={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},rt={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function nt(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=e.textPath,s=e.textPathSide,c=void 0===s?"left":s,l=e.textPathStartOffset,f=void 0===l?0:l,h=e.textDecorationLine,d=void 0===h?"":h,p=e.textDecorationColor,v=void 0===p?"":p,m=e.textDecorationStyle,g=void 0===m?"":m,y=P();y&&"firefox"===y.name?t.setAttribute("dominant-baseline",rt[r]||"alphabetic"):(t.setAttribute("dominant-baseline",rt[r]),t.setAttribute("alignment-baseline",et[r])),t.setAttribute("paint-order","stroke");var b=i.lines,w=i.lineHeight,E=i.height,x=b.length,A="";if(0===o&&0===a||(A+="transform:translate("+o+"px, "+a+"px);"),d&&"none"!==d&&(A+="text-decoration:"+d+" "+g+" "+v+";"),A&&t.setAttribute("style",A),1===x){var S=H(b[0]);if(t.setAttribute("dx",""+n/2),u){t.innerHTML="";var O=F("textPath",t.ownerDocument);O.setAttribute("href","#"+(K+u.entity)),"left"!==c&&O.setAttribute("side",c),0!==f&&O.setAttribute("startOffset",""+f),O.innerHTML=S,t.appendChild(O)}else t.innerHTML=S}else t.innerHTML=b.map((function(t,e){var i=0;return 0===e?"middle"===r?i=w/2-E/2:"top"===r||"hanging"===r?i=0:"bottom"!==r&&"alphabetic"!==r&&"ideographic"!==r||(i=-w*(x-1)):i=w,'<tspan x="0" dx="'+n/2+'" dy="'+i+'">'+H(t)+"</tspan>"})).join("")}var it=((Z={})[e.Shape.RECT]="path",Z[e.Shape.CIRCLE]="circle",Z[e.Shape.ELLIPSE]="ellipse",Z[e.Shape.IMAGE]="image",Z[e.Shape.GROUP]="g",Z[e.Shape.LINE]="line",Z[e.Shape.POLYLINE]="polyline",Z[e.Shape.POLYGON]="polygon",Z[e.Shape.TEXT]="text",Z[e.Shape.PATH]="path",Z[e.Shape.HTML]="foreignObject",Z),ot=((tt={})[e.Shape.CIRCLE]=["r"],tt[e.Shape.ELLIPSE]=["rx","ry"],tt[e.Shape.RECT]=["width","height","radius"],tt[e.Shape.IMAGE]=["img","width","height"],tt[e.Shape.LINE]=["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"],tt[e.Shape.POLYLINE]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.POLYGON]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.PATH]=["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","maxLines","leading","textBaseline","textAlign","textTransform","textOverflow","textPath","textPathSide","textPathStartOffset","textDecorationLine","textDecorationColor","textDecorationStyle","dx","dy"],tt),at=function(){function t(t){this.context=void 0,this.context=t}var r=t.prototype;return r.createElement=function(t){return F(it[t.nodeName]||"g",this.context.config.document||document)},r.destroyElement=function(t,e){},r.shouldUpdateElementAttribute=function(t,e){return(ot[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:V(r,n);break;case e.Shape.RECT:U(r,n);break;case e.Shape.LINE:I(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:W(r,n);break;case e.Shape.PATH:R(r,n);break;case e.Shape.TEXT:nt(r,n)}},t}(),ut="g-filter-";function st(t,r,n,i,o){var a=ut+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var s=o.map((function(n,i){var o=n.name,u=n.params,s=F("filter",t);return s.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=F("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,s,u):"brightness"===o?function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"linear",slope:n,intercept:0})}(t,s,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=F("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var s=F("feOffset",t);s.setAttribute("dx",""+n),s.setAttribute("dy",""+i),s.setAttribute("result","offsetblur"),e.appendChild(s);var c=F("feFlood",t);c.setAttribute("flood-color",a),e.appendChild(c);var l=F("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var f=F("feMerge",t);e.appendChild(f);var h=F("feMergeNode",t),d=F("feMergeNode",t);d.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(d)}(t,s,u):"contrast"===o?function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,s,u):"grayscale"===o?function(t,e,r){var n=ct(r[0]);ft(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,s,u):"sepia"===o?function(t,e,r){var n=ct(r[0]);ft(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,s,u):"saturate"===o?function(t,e,r){var n=ct(r[0]),i=F("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,s,u):"hue-rotate"===o?function(t,r,n){var i=F("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,s,u):"invert"===o&&function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,s,u),s.id=a+"-"+i,s.setAttribute("name",a),r.appendChild(s),s.id}));setTimeout((function(){null==i||i.setAttribute("filter",s.map((function(t){return"url(#"+t+")"})).join(" "))}))}}function ct(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function lt(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=F("feComponentTransfer",t);[F("feFuncR",t),F("feFuncG",t),F("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+i),t.setAttribute("intercept",""+o)),u.appendChild(t)})),e.appendChild(u)}function ft(t,e,r){var n=F("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var ht={},dt=0;function pt(t,r,n,i,o,a,u,s){if(!o)return"";if(!(o instanceof e.CSSRGB)){if(e.isPattern(o)){var c=function(t,r,n,i,o,a){var u=vt(i);if(!r.querySelector("#"+u)){var s=i.image,c="";if(w(s)?c=s:e.isBrowser&&(s instanceof HTMLImageElement?c=s.src:s instanceof HTMLCanvasElement&&(c=s.toDataURL())),c){var l,f=F("image",t);f.setAttribute("href",c),o?l=o(c):e.isBrowser&&(l=new window.Image),c.match(/^data:/i)||(l.crossOrigin="Anonymous",f.setAttribute("crossorigin","anonymous")),l.src=c;var h=function(){var e=mt(t,r,n,i,u,l.width,l.height);r.appendChild(e),e.appendChild(f),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width",""+l.width),f.setAttribute("height",""+l.height)};l.complete?h():l.onload=h}if(s instanceof e.Rect){var d=s.parsedStyle,p=mt(t,r,s,i,u,d.width,d.height);s.forEach((function(e){a.createSVGDom(t,e,null);var r=e.elementSVG,n=e.getLocalTransform();a.applyTransform(r.$groupEl,n)})),p.appendChild(s.elementSVG.$groupEl)}}return u}(t,r,n,o,u,s);return i.style[a]="url(#"+c+")",c}if(1===o.length){var l=gt(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+l+")"),l}var f=function(t,e,r,n,i){var o=ut+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=F("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=o,r.appendChild(a));var u=0;i.forEach((function(i,s){var c=gt(t,e,r,n,i),l=c+"_rect",f=F("rect",t);f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill","url(#"+c+")"),f.id=l,r.appendChild(f);var h=F("feImage",t);if(h.setAttribute("href","#"+l),h.setAttribute("result",o+"-"+s),a.appendChild(h),s>0){var d=F("feBlend",t);d.setAttribute("in",1===s?o+"-"+(s-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+s),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var s=F("feComposite",t);return s.setAttribute("in",o+"-blended-"+u),s.setAttribute("in2","SourceGraphic"),s.setAttribute("operator","in"),a.appendChild(s),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+f+")"),null==i||i.setAttribute("fill","black"),f}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":""+o),""}function vt(t,r){void 0===r&&(r={});var n="";if(t instanceof e.CSSGradientValue){var i=t.type;if(i===e.GradientType.LinearGradient||i===e.GradientType.RadialGradient){var o=N({},t.value,r),a=o.angle,u=o.cx,s=o.cy,c=o.size;n="gradient-"+o.type+"-"+((null==a?void 0:""+a)||0)+"-"+((null==u?void 0:""+u)||0)+"-"+((null==s?void 0:""+s)||0)+"-"+((null==c?void 0:""+c)||0)+"-"+o.width+"-"+o.height+"-"+o.steps.map((function(t){return""+t.offset+t.color})).join("-")}}else e.isPattern(t)&&(n=w(t.image)?"pattern-"+t.image+"-"+t.repetition:t.image instanceof e.Rect?"pattern-rect-"+t.image.entity:"pattern-"+dt);return n&&(ht[n]||(ht[n]="g-pattern-"+dt++)),ht[n]}function mt(t,r,n,i,o,a,u){var s=i.repetition,c=i.transform,l=F("pattern",t);c&&l.setAttribute("patternTransform",function(t){return e.parseTransform(t).map((function(t){var e=t.t,r=t.d;if("translate"===e)return"translate("+r[0].value+" "+r[1].value+")";if("translatex"===e)return"translate("+r[0].value+" 0)";if("translatey"===e)return"translate(0 "+r[0].value+")";if("rotate"===e)return"rotate("+r[0].value+")";if("scale"===e){var n=(null==r?void 0:r.map((function(t){return t.value})))||[1,1];return"scale("+n[0]+", "+n[1]+")"}if("scalex"===e)return"scale("+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+", 1)";if("scaley"===e)return"scale(1, "+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+")";if("skew"===e){var i=(null==r?void 0:r.map((function(t){return t.value})))||[0,0];return"skewX("+i[0]+") skewY("+i[1]+")"}if("skewx"===e)return"skewX("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("skewy"===e)return"skewY("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("matrix"===e){var o=r.map((function(t){return t.value}));return"matrix("+o[0]+" "+o[1]+" "+o[2]+" "+o[3]+" "+o[4]+" "+o[5]+")"}})).join(" ")}(c)),l.setAttribute("patternUnits","userSpaceOnUse"),l.id=o,r.appendChild(l),l.setAttribute("x","0"),l.setAttribute("y","0");var f=n.getGeometryBounds().halfExtents,h=a,d=u;return"repeat-x"===s?d=2*f[1]:"repeat-y"===s?h=2*f[0]:"no-repeat"===s&&(h=2*f[0],d=2*f[1]),l.setAttribute("width",""+h),l.setAttribute("height",""+d),l}function gt(t,r,n,i,o){var a=r.getGeometryBounds(),u=a&&2*a.halfExtents[0]||0,s=a&&2*a.halfExtents[1]||0,c=vt(o,{width:u,height:s}),l=n.querySelector("#"+c);if(!l){(l=F(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var f="";o.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){f+='<stop offset="'+t.offset.value/100+'" stop-color="'+t.color+'"></stop>'})),l.innerHTML=f,l.id=c,n.appendChild(l)}if(o.type===e.GradientType.LinearGradient){var h=e.computeLinearGradient(u,s,o.value.angle),d=h.y1,p=h.x2,v=h.y2;l.setAttribute("x1",""+h.x1),l.setAttribute("y1",""+d),l.setAttribute("x2",""+p),l.setAttribute("y2",""+v)}else{var m=o.value,g=e.computeRadialGradient(u,s,m.cx,m.cy,m.size),y=g.y,b=g.r;l.setAttribute("cx",""+g.x),l.setAttribute("cy",""+y),l.setAttribute("r",""+b)}return c}var yt=/url\("?#(.*)\)/,bt=function(){function t(t){this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=t}var r=t.prototype;return r.getDefElement=function(){return this.$def},r.init=function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=F("defs",t),e.appendChild(this.$def)},r.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},r.clearUnusedDefElement=function(t,e,r){if(t[e]&&1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#"+e);n&&this.$def.removeChild(n)}},r.createOrUpdateGradientAndPattern=function(t,r,n,i,o){var a=this.context.config,u=a.document,s=a.createImage;if(r){var c=(e.isPattern(n)?r.style[i]:r.getAttribute(i)||"").match(yt);c&&c.length>1&&this.clearUnusedDefElement(this.gradientCache,c[1].replace('"',""),t.entity);var l=pt(u||document,this.$def,t,r,n,i,s,o);l&&(this.gradientCache[l]||(this.gradientCache[l]=new Set),this.gradientCache[l].add(t.entity))}},r.createOrUpdateShadow=function(t,e,r){!function(t,e,r,n,i){var o=r.parsedStyle,a=o.shadowType,u=o.shadowBlur,s=o.shadowColor,c=o.shadowOffsetX,l=o.shadowOffsetY,f=!y(s)&&u>0,h="g-filter-dropshadow-"+r.entity,d=e.querySelector("#"+h);if(d&&(d.getAttribute("data-type")===a&&f||(d.remove(),d=null)),f){if(null==n||n.setAttribute("filter","url(#"+h+")"),!d){if((d=F("filter",t)).setAttribute("data-type",a),"outer"===a){var p=F("feDropShadow",t);p.setAttribute("dx",""+(c||0)/2),p.setAttribute("dy",""+(l||0)/2),p.setAttribute("stdDeviation",""+(u||0)/4),p.setAttribute("flood-color",""+s),d.appendChild(p)}else if("inner"===a){var v=F("feComponentTransfer",t);v.setAttribute("in","SourceAlpha");var m=F("feFuncA",t);m.setAttribute("type","table"),m.setAttribute("tableValues","1 0"),v.appendChild(m),d.appendChild(v);var g=F("feGaussianBlur",t);g.setAttribute("stdDeviation",""+(u||0)/4),d.appendChild(g);var b=F("feOffset",t);b.setAttribute("dx",""+(c||0)/2),b.setAttribute("dy",""+(l||0)/2),b.setAttribute("result","offsetblur"),d.appendChild(b);var w=F("feFlood",t);w.setAttribute("flood-color",""+s),w.setAttribute("result","color"),d.appendChild(w);var E=F("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),d.appendChild(E);var x=F("feComposite",t);x.setAttribute("in2","SourceAlpha"),x.setAttribute("operator","in"),d.appendChild(x);var A=F("feMerge",t);d.appendChild(A);var S=F("feMergeNode",t);S.setAttribute("in","SourceGraphic");var O=F("feMergeNode",t);A.appendChild(S),A.appendChild(O)}return d.id=h,d.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(d)}if("inner"===a){var L=d.children[1],C=d.children[2];"shadowColor"===i?d.children[3].setAttribute("flood-color",""+s):"shadowBlur"===i?L.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?C.setAttribute("dx",""+(c||0)/2):"shadowOffsetY"===i&&C.setAttribute("dy",""+(l||0)/2)}else if("outer"===a){var k=d.children[0];"shadowColor"===i?k.setAttribute("flood-color",""+s):"shadowBlur"===i?k.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?k.setAttribute("dx",""+(c||0)/2):"shadowOffsetY"===i&&k.setAttribute("dy",""+(l||0)/2)}}else null==n||n.removeAttribute("filter")}(this.context.config.document||document,this.$def,t,e,r)},r.createOrUpdateFilter=function(t,e,r){st(this.context.config.document||document,this.$def,t,e,r)},t}(),wt=function(t){var e,r;function n(e){var r;return void 0===e&&(e={}),(r=t.call(this)||this).options=void 0,r.name="svg-renderer",r.options=e,r}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,$(e,r);var i=n.prototype;return i.init=function(){var t=this.options,e=t.outputSVGElementId,r=t.outputSVGElementName,n=new bt(this.context),i=new at(this.context);this.context.defaultElementLifeCycleContribution=i,this.context.SVGElementLifeCycleContribution=i;var o={outputSVGElementId:!!y(e)||!!e,outputSVGElementName:!!y(r)||!!r};this.addRenderingPlugin(new J(o,n,this.context))},i.destroy=function(){this.removeAllRenderingPlugins(),delete this.context.defaultElementLifeCycleContribution,delete this.context.SVGElementLifeCycleContribution},n}(e.AbstractRendererPlugin),Et=Object.freeze({__proto__:null,CLIP_PATH_PREFIX:Q,DEFAULT_VALUE_MAP:z,DefaultElementLifeCycleContribution:at,ElementSVG:D,G_SVG_PREFIX:q,Plugin:wt,SHAPE2TAGS:it,SHAPE_UPDATE_DEPS:ot,SVGRendererPlugin:J,SVG_ATTR_MAP:Y,TEXT_PATH_PREFIX:K,createSVGElement:F,updateImageElementAttribute:V,updateLineElementAttribute:I,updatePathElementAttribute:R,updatePolylineElementAttribute:W,updateRectElementAttribute:U,updateTextElementAttribute:nt});function xt(){xt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new O(i||[]);return n(o,"_invoke",{value:E(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==e&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function At(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function Lt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ot(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ct=function(){function t(){}var r=t.prototype;return r.apply=function(e){var r=this,n=e.config.document,i=e.renderingService;i.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=xt().mark((function t(e){return xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.pick(n,e));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){At(o,n,i,a,u,"next",t)}function u(t){At(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),i.hooks.pickSync.tap(t.tag,(function(t){return r.pick(n,t)}))},r.pick=function(t,r){var n=r.topmost,i=r.position,o=i.clientX,a=i.clientY;try{for(var u,s=[],c=Lt((t||document).elementsFromPoint(o,a));!(u=c()).done;){var l=u.value,f=l&&l.getAttribute("id");if(f&&f.startsWith(q)){var h=f.lastIndexOf("-"),d=e.runtime.displayObjectPool.getByEntity(f.substring(h+1));if(d&&d.isInteractive()&&(s.push(d),n))return r.picked=s,r}}r.picked=s}catch(t){r.picked=[]}return r},t}();Ct.tag="SVGPicker";var kt=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-picker",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,St(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new Ct)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),Tt=Object.freeze({__proto__:null,Plugin:kt}),Pt={}.toString,Gt=function(t,e){return Pt.call(t)==="[object "+e+"]"},Mt=function(t){return Gt(t,"Function")};function _t(t,e){var r;if(t)if(r=t,Array.isArray?Array.isArray(r):Gt(r,"Array"))for(var n=0,i=t.length;i>n&&!1!==e(t[n],n);n++);else if(function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}var jt,Nt=function(t){return Gt(t,"String")},$t=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return _t(t,(function(r,n){Mt(t)&&"prototype"===n||e.push(r)})),e};!function(t,e){if(!Mt(t))throw new TypeError("Expected a function");var r=function(){for(var n=[],i=0;arguments.length>i;i++)n[i]=arguments[i];var o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var u=t.apply(this,n);return a.set(o,u),u};r.cache=new Map}((function(t,e){void 0===e&&(e={});var r=e.fontSize,n=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return jt||(jt=document.createElement("canvas").getContext("2d")),jt.font=[o,a,i,r+"px",n].join(" "),jt.measureText(Nt(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),function(){for(var t=0,e=0,r=arguments.length;r>e;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;r>e;e++)for(var o=arguments[e],a=0,u=o.length;u>a;a++,i++)n[i]=o[a];return n}([t],$t(e)).join("")}));var Dt=["offset","composite","computedOffset","easing"],Vt=["offset","composite","computedOffset","easing","transformOrigin"],It=["offset","composite","computedOffset","easing","transformOrigin"],Rt=["offset","composite","computedOffset","easing","transformOrigin"],Wt=function(){function t(t){this.context=void 0,this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,this.context=t,this.canvasConfig=t.config}var n=t.prototype;return n.init=function(){var t=i(r().mark((function t(){var n,i,o,a,u,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=Nt(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(u=F("svg",o)).setAttribute("width",""+this.canvasConfig.width),u.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(u),this.$namespace=u),s=a||e.isBrowser&&window.devicePixelRatio||1,this.dpr=s=1>s?1:Math.ceil(s);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.getDomElement=function(){return this.$namespace},n.getContext=function(){return this.$namespace},n.getDPR=function(){return this.dpr},n.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},n.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},n.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},n.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},n.generateCSSText=function(t,e,r,n,i){void 0===i&&(i={});var o=n.duration,a=n.easing,s=n.delay,c=n.direction,l=n.iterations,f=n.fill;return"@keyframes "+t+"{"+r.map((function(t){var e=t.computedOffset,r=u(t,Dt);return 100*e+"%{"+Object.keys(r).map((function(t){return t+":"+(i[t]||"")+r[t]+";"})).join("")+"}"})).join("")+"}"+e+" {animation: "+t+" "+o+"ms "+a+" "+s+"ms "+(l===1/0?"infinite":l)+" "+c+" "+f+";}"},n.toDataURL=function(){var t=i(r().mark((function t(n){var i,o,a,s,c,l,f=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.$namespace.cloneNode(!0),o=this.canvasConfig.document,a=0,s=null,this.context.renderingContext.root.forEach((function(t){var r=t.getAnimations();if(r.length){s||(s=(o||document).createElement("style"),i.appendChild(s));var n=t.elementSVG,c="#"+n.$el.id,l="#"+n.$groupEl.id,h="",d="";r.forEach((function(t){var r=t.effect.getKeyframes();if(r.length){var i=[],o=[],s=r[0],p=u(s,Vt);if(Object.keys(p).forEach((function(t){var r;"transform"===t&&o.push(t),!!(null===(r=e.propertyMetadataCache[t])||void 0===r?void 0:r.inh)?o.push(t):"transform"!==t&&i.push(t)})),o.length){var v=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,i=t.easing,a=u(t,It),s={offset:e,composite:r,computedOffset:n,easing:i};return Object.keys(a).forEach((function(e){o.includes(e)&&(s[e]=t[e])})),s}));d+=f.generateCSSText("a"+a++,l,v,t.effect.getComputedTiming(),{transform:n.$groupEl.getAttribute("transform")})}if(i.length){var m=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,o=t.easing,a=u(t,Rt),s={offset:e,composite:r,computedOffset:n,easing:o};return Object.keys(a).forEach((function(e){i.includes(e)&&(s[e]=t[e])})),s}));h+=f.generateCSSText("a"+a++,c,m,t.effect.getComputedTiming())}}})),s.textContent+=h+d}})),c=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",c)).replaceChild(i,l.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(l)));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}(),Ut=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-context-register",e}o(e,t);var r=e.prototype;return r.init=function(){this.context.ContextService=Wt},r.destroy=function(){delete this.context.ContextService},e}(e.AbstractRendererPlugin),Ft=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).registerPlugin(new Ut),r.registerPlugin(new wt({outputSVGElementId:e.outputSVGElementId})),r.registerPlugin(new d),r.registerPlugin(new kt),r}return o(e,t),e}(e.AbstractRenderer);t.DomInteraction=p,t.Renderer=Ft,t.SVGPicker=Tt,t.SVGRenderer=Et,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new L(n||[]);return i(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&n.call(y,a)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,o,a,u){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(this.prev>=o.tryLoc){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return r(o.catchLoc,!0);if(o.finallyLoc>this.prev)return r(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(this.prev>=i.tryLoc&&n.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function u(t){n(a,i,o,u,s,"next",t)}function s(t){n(a,i,o,u,s,"throw",t)}u(void 0)}))}}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;o.length>n;n++)0>e.indexOf(r=o[n])&&(i[r]=t[r]);return i}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new L(i||[]);return n(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&r.call(y,o)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(n,o,a,u){var s=f(t[n],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,u,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,u,"next",t)}function u(t){c(o,n,i,a,u,"throw",t)}a(void 0)}))}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(){function t(){this.context=void 0}return t.prototype.apply=function(r){var n=this,i=r.renderingService,o=r.renderingContext;this.context=r;var a=o.root.ownerDocument.defaultView,u=function(t){i.hooks.pointerMove.call(t)},c=function(t){i.hooks.pointerUp.call(t)},f=function(t){i.hooks.pointerDown.call(t)},h=function(t){i.hooks.pointerOver.call(t)},d=function(t){i.hooks.pointerOut.call(t)},p=function(t){i.hooks.pointerCancel.call(t)},v=function(t){i.hooks.pointerWheel.call(t)},m=function(t){e.runtime.globalThis.document.addEventListener("pointermove",u,!0),t.addEventListener("pointerdown",f,!0),t.addEventListener("pointerleave",d,!0),t.addEventListener("pointerover",h,!0),e.runtime.globalThis.addEventListener("pointerup",c,!0)},g=function(t){t.addEventListener("touchstart",f,!0),t.addEventListener("touchend",c,!0),t.addEventListener("touchmove",u,!0),t.addEventListener("touchcancel",p,!0)},y=function(t){e.runtime.globalThis.document.addEventListener("mousemove",u,!0),t.addEventListener("mousedown",f,!0),t.addEventListener("mouseout",d,!0),t.addEventListener("mouseover",h,!0),e.runtime.globalThis.addEventListener("mouseup",c,!0)};i.hooks.init.tapPromise(t.tag,l(s().mark((function t(){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n.context.contextService.getDomElement(),e.runtime.globalThis.navigator.msPointerEnabled?(r.style.msContentZooming="none",r.style.msTouchAction="none"):a.supportsPointerEvents&&(r.style.touchAction="none"),a.supportsPointerEvents?m(r):y(r),a.supportsTouchEvents&&g(r),r.addEventListener("wheel",v,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){var t=n.context.contextService.getDomElement();e.runtime.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):a.supportsPointerEvents&&(t.style.touchAction=""),a.supportsPointerEvents?function(t){e.runtime.globalThis.document.removeEventListener("pointermove",u,!0),t.removeEventListener("pointerdown",f,!0),t.removeEventListener("pointerleave",d,!0),t.removeEventListener("pointerover",h,!0),e.runtime.globalThis.removeEventListener("pointerup",c,!0)}(t):function(t){e.runtime.globalThis.document.removeEventListener("mousemove",u,!0),t.removeEventListener("mousedown",f,!0),t.removeEventListener("mouseout",d,!0),t.removeEventListener("mouseover",h,!0),e.runtime.globalThis.removeEventListener("mouseup",c,!0)}(t),a.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",f,!0),t.removeEventListener("touchend",c,!0),t.removeEventListener("touchmove",u,!0),t.removeEventListener("touchcancel",p,!0)}(t),t.removeEventListener("wheel",v,!0)}))},t}();h.tag="DOMInteraction";var d=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="dom-interaction",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,f(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new h)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),p=Object.freeze({__proto__:null,Plugin:d}),v="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var t=new v(16);return v!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function g(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],m=e[14],g=e[15],y=r*u-n*a,b=r*s-i*a,w=r*c-o*a,E=n*s-i*u,x=n*c-o*u,A=i*c-o*s,S=l*v-f*p,O=l*m-h*p,L=l*g-d*p,C=f*m-h*v,k=f*g-d*v,T=h*g-d*m,P=y*T-b*k+w*C+E*L-x*O+A*S;return P?(t[0]=(u*T-s*k+c*C)*(P=1/P),t[1]=(i*k-n*T-o*C)*P,t[2]=(v*A-m*x+g*E)*P,t[3]=(h*x-f*A-d*E)*P,t[4]=(s*L-a*T-c*O)*P,t[5]=(r*T-i*L+o*O)*P,t[6]=(m*w-p*A-g*b)*P,t[7]=(l*A-h*w+d*b)*P,t[8]=(a*k-u*L+c*S)*P,t[9]=(n*L-r*k-o*S)*P,t[10]=(p*x-v*w+g*y)*P,t[11]=(f*w-l*x-d*y)*P,t[12]=(u*O-a*C-s*S)*P,t[13]=(r*C-n*O+i*S)*P,t[14]=(v*b-p*E-m*y)*P,t[15]=(l*E-f*b+h*y)*P,t):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var y=function(t){return null==t},b={}.toString,w=function(t){return e="String",b.call(t)==="[object "+e+"]";var e},E=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},x=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},A=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},S=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},O=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},L=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},C=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,k=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],T=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function P(t){return t?G(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new L:"undefined"!=typeof navigator?G(navigator.userAgent):"undefined"!=typeof process&&process.version?new A(process.version.slice(1)):null}function G(t){var e=function(t){return""!==t&&k.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new O;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=E(E([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=T.length;r>e;e++){var n=T[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=C.exec(t);return u&&u[1]?new S(r,o,a,u[1]):new x(r,o,a)}function M(){M=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new O(i||[]);return n(o,"_invoke",{value:E(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==e&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function _(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function N(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_(o,n,i,a,u,"next",t)}function u(t){_(o,n,i,a,u,"throw",t)}a(void 0)}))}}function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},j.apply(this,arguments)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}var D=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function I(t,e){var r=e.img,n=void 0===r?"":r,i=e.width,o=e.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),w(n))t.setAttribute("href",n);else if(n instanceof Image)i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",n.src);else if(n instanceof HTMLElement&&w(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase())t.setAttribute("href",n.toDataURL());else if(n instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+n.width),a.setAttribute("height",""+n.height);var u=a.getContext("2d");u&&(u.putImageData(n,0,0),i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",a.toDataURL()))}}function V(t,r){var n=r.x1,i=r.y1,o=r.x2,a=r.y2,u=r.defX,s=void 0===u?0:u,c=r.defY,l=void 0===c?0:c,f=r.markerStart,h=r.markerEnd,d=r.markerStartOffset,p=r.markerEndOffset,v=0,m=0,g=0,y=0,b=0;f&&e.isDisplayObject(f)&&d&&(v=Math.cos(b=Math.atan2(a-i,o-n))*(d||0),m=Math.sin(b)*(d||0)),h&&e.isDisplayObject(h)&&p&&(g=Math.cos(b=Math.atan2(i-a,n-o))*(p||0),y=Math.sin(b)*(p||0)),t.setAttribute("x1",""+(n-s+v)),t.setAttribute("y1",""+(i-l+m)),t.setAttribute("x2",""+(o-s+g)),t.setAttribute("y2",""+(a-l+y))}function R(t,r){var n=r.path,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,s=r.markerStart,c=r.markerEnd,l=r.markerStartOffset,f=r.markerEndOffset,h=0,d=0,p=0,v=0,m=0;if(s&&e.isDisplayObject(s)&&l){var g=s.parentNode.getStartTangent(),y=g[0],b=g[1];h=Math.cos(m=Math.atan2(y[1]-b[1],y[0]-b[0]))*(l||0),d=Math.sin(m)*(l||0)}if(c&&e.isDisplayObject(c)&&f){var w=c.parentNode.getEndTangent(),E=w[0],x=w[1];p=Math.cos(m=Math.atan2(E[1]-x[1],E[0]-x[0]))*(f||0),v=Math.sin(m)*(f||0)}t.setAttribute("d",e.translatePathToString(n.absolutePath,o,u,h,d,p,v))}function U(t,r){var n=r.points.points,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,s=r.markerStart,c=r.markerStartOffset,l=r.markerEnd,f=r.markerEndOffset,h=n.length;if(n&&h>=2){var d=0,p=0,v=0,m=0,g=0;s&&e.isDisplayObject(s)&&c&&(d=Math.cos(g=Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]))*(c||0),p=Math.sin(g)*(c||0)),l&&e.isDisplayObject(l)&&f&&(v=Math.cos(g=Math.atan2(n[h-2][1]-n[h-1][1],n[h-2][0]-n[h-1][0]))*(f||0),m=Math.sin(g)*(f||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=d,n=p):e===h-1&&(r=v,n=m),t[0]-o+r+","+(t[1]-u+n)})).join(" "))}}function W(t,e){var r=e.radius,n=e.width,i=e.height;if(isFinite(n)&&isFinite(i)){var o="";if(r&&r.some((function(t){return 0!==t}))){var a=r.map((function(t){return e=t,r=0,o=Math.min(Math.abs(n)/2,Math.abs(i)/2),r>e?r:e>o?o:e;var e,r,o})),u=a[0],s=a[1],c=a[2],l=a[3],f=n>0?1:-1,h=i>0?1:-1,d=f+h!==0?1:0;o=[["M "+f*u+",0"],["l "+(n-f*(u+s))+",0"],["a "+s+","+s+",0,0,"+d+","+f*s+","+h*s],["l 0,"+(i-h*(s+c))],["a "+c+","+c+",0,0,"+d+","+-f*c+","+h*c],["l "+(f*(c+l)-n)+",0"],["a "+l+","+l+",0,0,"+d+","+-f*l+","+-h*l],["l 0,"+(h*(l+u)-i)],["a "+u+","+u+",0,0,"+d+","+f*u+","+-h*u],["z"]].join(" ")}else o="M 0,0 l "+n+",0 l 0,"+i+" l"+-n+" 0 z";t.setAttribute("d",o)}}function F(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return t.toFixed(6).replace(".000000","")}function H(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}D.tag="c-svg-element";var Y={opacity:"opacity",fillStyle:"fill",fill:"fill",fillRule:"fill-rule",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",textPath:"text-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor",pointerEvents:"pointer-events"},X={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},z={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",fillRule:"nonzero",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit",pointerEvents:"auto"},q="g-svg",Q="clip-path-",K="text-path-",J=function(){function t(t,e,r){this.pluginOptions=void 0,this.defElementManager=void 0,this.context=void 0,this.$camera=void 0,this.renderQueue=[],this.dirtyAttributes=new WeakMap,this.pendingReorderQueue=new Set,this.clipPathUseMap=new WeakMap,this.pluginOptions=t,this.defElementManager=e,this.context=r}var r=t.prototype;return r.apply=function(r){var n=this,i=r.renderingService,o=r.renderingContext;this.context=r;var a=o.root.ownerDocument.defaultView,u=this.context.config.document,s=function(t){var e=t.target;if(n.clipPathUseMap.get(e)){var r=n.defElementManager.getDefElement().querySelector("#"+n.getId(e));r&&r.remove()}n.createSVGDom(u,e,n.$camera)},c=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},l=function(t){var e=t.target;if(e.elementSVG){var r=t.attrName,i=n.dirtyAttributes.get(e);i||(n.dirtyAttributes.set(e,[]),i=n.dirtyAttributes.get(e)),i.push(r)}},f=function(t){var r,i=t.target,o=null===(r=i.elementSVG)||void 0===r?void 0:r.$el,a=i.parsedStyle,u=a.fill,s=a.stroke,c=a.clipPath;if(u&&!e.isCSSRGB(u)&&n.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill",n),s&&!e.isCSSRGB(s)&&n.defElementManager.createOrUpdateGradientAndPattern(i,o,s,"stroke",n),c){var l=g(m(),i.getWorldTransform()),f=Q+c.entity+"-"+i.entity,h=n.defElementManager.getDefElement().querySelector("#"+f);h&&n.applyTransform(h,l)}};i.hooks.init.tapPromise(t.tag,N(M().mark((function t(){var r,i,o,u;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(r=n.context.config).background,o=r.document,n.defElementManager.init(),u=n.context.contextService.getContext(),i&&(u.style.background=i),u.setAttribute("color-interpolation-filters","sRGB"),n.$camera=F("g",o),n.$camera.id="g-svg-camera",n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),u.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,s),a.addEventListener(e.ElementEvent.UNMOUNTED,c),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,f);case 13:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,s),a.removeEventListener(e.ElementEvent.UNMOUNTED,c),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,f)})),i.hooks.render.tap(t.tag,(function(t){n.renderQueue.push(t)})),i.hooks.beginFrame.tap(t.tag,(function(){var t=n.context.config.document;n.pendingReorderQueue.size&&(n.pendingReorderQueue.forEach((function(e){var r,i=((null==e?void 0:e.children)||[]).slice(),o=null==e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl;o&&n.reorderChildren(t||u,o,i||[])})),n.pendingReorderQueue.clear())})),i.hooks.endFrame.tap(t.tag,(function(){o.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),n.renderQueue.forEach((function(t){var e,r,i=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,o=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(i&&o){var a=t.getLocalTransform();n.applyTransform(o,a);var s=n.clipPathUseMap.get(t);s&&s.length&&s.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var c=n.dirtyAttributes.get(t);c&&(c.forEach((function(e){if("zIndex"===e){var r,a,s=t.parentNode,c=null===(r=t.parentNode)||void 0===r||null===(a=r.elementSVG)||void 0===a?void 0:a.$groupEl,l=((null==s?void 0:s.children)||[]).slice();c&&n.reorderChildren(u,c,l)}else"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,i,o);n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))},r.getId=function(t){return"g-svg-"+t.entity},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,e){t.setAttribute("transform","matrix("+B(e[0])+","+B(e[1])+","+B(e[4])+","+B(e[5])+","+B(e[12])+","+B(e[13])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var i=t.nodeName,o=t.attributes;n.setAttribute("fill","none"),i===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(o))}},r.updateAttribute=function(t,r){var n=this,i=this.context.config.document,o=t.elementSVG,a=o.$el,u=o.$groupEl,s=o.$hitTestingEl,c=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,s].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o,f,h=Y[r],d=l[r],p=d&&""+d,v=(null===(o=X[r])||void 0===o?void 0:o[p])||p,m=c[r],g=!!(null===(f=e.propertyMetadataCache[r])||void 0===f?void 0:f.inh);h&&(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(m||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?t.nodeName===e.Shape.HTML?a.style.background=""+m:n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,h,n):"stroke"===r?t.nodeName===e.Shape.HTML?(a.style["border-color"]=""+m,a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,h,n):g&&h?"unset"!==p&&p!==z[r]?null==u||u.setAttribute(h,v):null==u||u.removeAttribute(h):"clipPath"===r?n.createOrUpdateClipOrTextPath(i,m,t):"textPath"===r?n.createOrUpdateClipOrTextPath(i,m,t,!0):"shadowType"===r||"shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r?n.defElementManager.createOrUpdateShadow(t,a,r):"filter"===r?n.defElementManager.createOrUpdateFilter(t,a,m):"innerHTML"===r?n.createOrUpdateInnerHTML(i,a,m):"anchor"===r?t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):d&&[a,s].forEach((function(t){t&&h&&("unset"!==p&&p!==z[r]?t.setAttribute(h,v):t.removeAttribute(h))})))}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new D;var o=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r);if(a){var u,s;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),this.pluginOptions.outputSVGElementId&&(a.id=this.getId(r)),this.pluginOptions.outputSVGElementName&&r.name&&a.setAttribute("name",r.name),!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||i?s=a:((s=F("g",t)).id=a.id+"-g",s.appendChild(a)),o.$el=a,o.$groupEl=s,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,s);var c=n||r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl);c&&(c.appendChild(s),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&(r.parentNode.removeChild(r),this.context.SVGElementLifeCycleContribution.destroyElement(t,r))},r.createOrUpdateHitArea=function(t,e,r){var n=t.elementSVG,i=n.$hitTestingEl,o=t.parsedStyle.increasedLineWidthForHitTesting;if(o){if(!i){i=e.cloneNode(),this.pluginOptions.outputSVGElementId&&(i.id="g-svg-"+t.nodeName+"-hittesting-"+t.entity),["filter"].forEach((function(t){i.removeAttribute(t)}));var a="none"!==e.getAttribute("fill");i.setAttribute("fill",a?"transparent":"none"),i.setAttribute("stroke","transparent"),r.appendChild(i),n.$hitTestingEl=i}i.setAttribute("stroke-width",""+(o+t.parsedStyle.lineWidth))}else i&&(r.removeChild(i),n.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipOrTextPath=function(t,e,r,n){void 0===n&&(n=!1);var i=r.elementSVG.$groupEl,o=n?"g":"clipPath",a=n?"text-path":"clip-path";if(e){var u=(n?K:Q)+e.entity+"-"+r.entity,s=this.defElementManager.getDefElement();if(!s.querySelector("#"+u)){var c;if(n)this.createSVGDom(t,e,null,!0),c=e.elementSVG.$el;else{if(!e.isConnected)s.querySelector("#"+this.getId(e))||this.createSVGDom(t,e,s,!0);c=F(o,t);var l=F("use",t);l.setAttribute("href","#"+e.elementSVG.$el.id),c.appendChild(l);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(l),this.applyTransform(l,e.getWorldTransform());var h=g(m(),r.getWorldTransform());this.applyTransform(c,h)}c.id=u,s.appendChild(c)}this.applyAttributes(e),n||i.setAttribute(a,"url(#"+u+")")}else n||i.removeAttribute(a)},r.updateAnchorWithTransform=function(t){var r,n,i=t.getGeometryBounds(),o=i&&2*i.halfExtents[0]||0,a=i&&2*i.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-u[0]*o,i=-u[1]*a;0===n&&0===i||r.setAttribute("transform","translate("+n+","+i+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+o/2),r.setAttribute("cy",""+a/2))}}))},t}();J.tag="SVGRenderer";var Z,tt,et={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},rt={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function nt(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=e.textPath,s=e.textPathSide,c=void 0===s?"left":s,l=e.textPathStartOffset,f=void 0===l?0:l,h=e.textDecorationLine,d=void 0===h?"":h,p=e.textDecorationColor,v=void 0===p?"":p,m=e.textDecorationStyle,g=void 0===m?"":m,y=P();y&&"firefox"===y.name?t.setAttribute("dominant-baseline",rt[r]||"alphabetic"):(t.setAttribute("dominant-baseline",rt[r]),t.setAttribute("alignment-baseline",et[r])),t.setAttribute("paint-order","stroke");var b=i.lines,w=i.lineHeight,E=i.height,x=b.length,A="";if(0===o&&0===a||(A+="transform:translate("+o+"px, "+a+"px);"),d&&"none"!==d&&(A+="text-decoration:"+d+" "+g+" "+v+";"),A&&t.setAttribute("style",A),1===x){var S=H(b[0]);if(t.setAttribute("dx",""+n/2),u){t.innerHTML="";var O=F("textPath",t.ownerDocument);O.setAttribute("href","#"+(K+u.entity)),"left"!==c&&O.setAttribute("side",c),0!==f&&O.setAttribute("startOffset",""+f),O.innerHTML=S,t.appendChild(O)}else t.innerHTML=S}else t.innerHTML=b.map((function(t,e){var i=0;return 0===e?"middle"===r?i=w/2-E/2:"top"===r||"hanging"===r?i=0:"bottom"!==r&&"alphabetic"!==r&&"ideographic"!==r||(i=-w*(x-1)):i=w,'<tspan x="0" dx="'+n/2+'" dy="'+i+'">'+H(t)+"</tspan>"})).join("")}var it=((Z={})[e.Shape.RECT]="path",Z[e.Shape.CIRCLE]="circle",Z[e.Shape.ELLIPSE]="ellipse",Z[e.Shape.IMAGE]="image",Z[e.Shape.GROUP]="g",Z[e.Shape.LINE]="line",Z[e.Shape.POLYLINE]="polyline",Z[e.Shape.POLYGON]="polygon",Z[e.Shape.TEXT]="text",Z[e.Shape.PATH]="path",Z[e.Shape.HTML]="foreignObject",Z),ot=((tt={})[e.Shape.CIRCLE]=["r"],tt[e.Shape.ELLIPSE]=["rx","ry"],tt[e.Shape.RECT]=["width","height","radius"],tt[e.Shape.IMAGE]=["img","width","height"],tt[e.Shape.LINE]=["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"],tt[e.Shape.POLYLINE]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.POLYGON]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.PATH]=["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],tt[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","maxLines","leading","textBaseline","textAlign","textTransform","textOverflow","textPath","textPathSide","textPathStartOffset","textDecorationLine","textDecorationColor","textDecorationStyle","dx","dy"],tt),at=function(){function t(t){this.context=void 0,this.context=t}var r=t.prototype;return r.createElement=function(t){return F(it[t.nodeName]||"g",this.context.config.document||document)},r.destroyElement=function(t,e){},r.shouldUpdateElementAttribute=function(t,e){return(ot[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:I(r,n);break;case e.Shape.RECT:W(r,n);break;case e.Shape.LINE:V(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:U(r,n);break;case e.Shape.PATH:R(r,n);break;case e.Shape.TEXT:nt(r,n)}},t}(),ut="g-filter-";function st(t,r,n,i,o){var a=ut+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var s=o.map((function(n,i){var o=n.name,u=n.params,s=F("filter",t);return s.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=F("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,s,u):"brightness"===o?function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"linear",slope:n,intercept:0})}(t,s,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=F("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var s=F("feOffset",t);s.setAttribute("dx",""+n),s.setAttribute("dy",""+i),s.setAttribute("result","offsetblur"),e.appendChild(s);var c=F("feFlood",t);c.setAttribute("flood-color",a),e.appendChild(c);var l=F("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var f=F("feMerge",t);e.appendChild(f);var h=F("feMergeNode",t),d=F("feMergeNode",t);d.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(d)}(t,s,u):"contrast"===o?function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,s,u):"grayscale"===o?function(t,e,r){var n=ct(r[0]);ft(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,s,u):"sepia"===o?function(t,e,r){var n=ct(r[0]);ft(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,s,u):"saturate"===o?function(t,e,r){var n=ct(r[0]),i=F("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,s,u):"hue-rotate"===o?function(t,r,n){var i=F("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,s,u):"invert"===o&&function(t,e,r){var n=ct(r[0]);lt(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,s,u),s.id=a+"-"+i,s.setAttribute("name",a),r.appendChild(s),s.id}));setTimeout((function(){null==i||i.setAttribute("filter",s.map((function(t){return"url(#"+t+")"})).join(" "))}))}}function ct(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function lt(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=F("feComponentTransfer",t);[F("feFuncR",t),F("feFuncG",t),F("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+i),t.setAttribute("intercept",""+o)),u.appendChild(t)})),e.appendChild(u)}function ft(t,e,r){var n=F("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var ht={},dt=0;function pt(t,r,n,i,o,a,u,s){if(!o)return"";if(!e.isCSSRGB(o)){if(e.isPattern(o)){var c=function(t,r,n,i,o,a){var u=vt(i);if(!r.querySelector("#"+u)){var s=i.image,c="";if(w(s)?c=s:e.isBrowser&&(s instanceof HTMLImageElement?c=s.src:s instanceof HTMLCanvasElement&&(c=s.toDataURL())),c){var l,f=F("image",t);f.setAttribute("href",c),o?l=o(c):e.isBrowser&&(l=new window.Image),c.match(/^data:/i)||(l.crossOrigin="Anonymous",f.setAttribute("crossorigin","anonymous")),l.src=c;var h=function(){var e=mt(t,r,n,i,u,l.width,l.height);r.appendChild(e),e.appendChild(f),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width",""+l.width),f.setAttribute("height",""+l.height)};l.complete?h():l.onload=h}if("rect"===s.nodeName){var d=s.parsedStyle,p=mt(t,r,s,i,u,d.width,d.height);s.forEach((function(e){a.createSVGDom(t,e,null);var r=e.elementSVG,n=e.getLocalTransform();a.applyTransform(r.$groupEl,n)})),p.appendChild(s.elementSVG.$groupEl)}}return u}(t,r,n,o,u,s);return i.style[a]="url(#"+c+")",c}if(1===o.length){var l=gt(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+l+")"),l}var f=function(t,e,r,n,i){var o=ut+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=F("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=o,r.appendChild(a));var u=0;i.forEach((function(i,s){var c=gt(t,e,r,n,i),l=c+"_rect",f=F("rect",t);f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill","url(#"+c+")"),f.id=l,r.appendChild(f);var h=F("feImage",t);if(h.setAttribute("href","#"+l),h.setAttribute("result",o+"-"+s),a.appendChild(h),s>0){var d=F("feBlend",t);d.setAttribute("in",1===s?o+"-"+(s-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+s),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var s=F("feComposite",t);return s.setAttribute("in",o+"-blended-"+u),s.setAttribute("in2","SourceGraphic"),s.setAttribute("operator","in"),a.appendChild(s),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+f+")"),null==i||i.setAttribute("fill","black"),f}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":""+o),""}function vt(t,r){void 0===r&&(r={});var n="";if(e.isCSSGradientValue(t)){var i=t.type;if(i===e.GradientType.LinearGradient||i===e.GradientType.RadialGradient){var o=j({},t.value,r),a=o.angle,u=o.cx,s=o.cy,c=o.size;n="gradient-"+o.type+"-"+((null==a?void 0:""+a)||0)+"-"+((null==u?void 0:""+u)||0)+"-"+((null==s?void 0:""+s)||0)+"-"+((null==c?void 0:""+c)||0)+"-"+o.width+"-"+o.height+"-"+o.steps.map((function(t){return""+t.offset+t.color})).join("-")}}else e.isPattern(t)&&(n=w(t.image)?"pattern-"+t.image+"-"+t.repetition:"rect"===t.image.nodeName?"pattern-rect-"+t.image.entity:"pattern-"+dt);return n&&(ht[n]||(ht[n]="g-pattern-"+dt++)),ht[n]}function mt(t,r,n,i,o,a,u){var s=i.repetition,c=i.transform,l=F("pattern",t);c&&l.setAttribute("patternTransform",function(t){return e.parseTransform(t).map((function(t){var e=t.t,r=t.d;if("translate"===e)return"translate("+r[0].value+" "+r[1].value+")";if("translatex"===e)return"translate("+r[0].value+" 0)";if("translatey"===e)return"translate(0 "+r[0].value+")";if("rotate"===e)return"rotate("+r[0].value+")";if("scale"===e){var n=(null==r?void 0:r.map((function(t){return t.value})))||[1,1];return"scale("+n[0]+", "+n[1]+")"}if("scalex"===e)return"scale("+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+", 1)";if("scaley"===e)return"scale(1, "+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+")";if("skew"===e){var i=(null==r?void 0:r.map((function(t){return t.value})))||[0,0];return"skewX("+i[0]+") skewY("+i[1]+")"}if("skewx"===e)return"skewX("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("skewy"===e)return"skewY("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("matrix"===e){var o=r.map((function(t){return t.value}));return"matrix("+o[0]+" "+o[1]+" "+o[2]+" "+o[3]+" "+o[4]+" "+o[5]+")"}})).join(" ")}(c)),l.setAttribute("patternUnits","userSpaceOnUse"),l.id=o,r.appendChild(l),l.setAttribute("x","0"),l.setAttribute("y","0");var f=n.getGeometryBounds().halfExtents,h=a,d=u;return"repeat-x"===s?d=2*f[1]:"repeat-y"===s?h=2*f[0]:"no-repeat"===s&&(h=2*f[0],d=2*f[1]),l.setAttribute("width",""+h),l.setAttribute("height",""+d),l}function gt(t,r,n,i,o){var a=r.getGeometryBounds(),u=a&&2*a.halfExtents[0]||0,s=a&&2*a.halfExtents[1]||0,c=vt(o,{width:u,height:s}),l=n.querySelector("#"+c);if(!l){(l=F(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var f="";o.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){f+='<stop offset="'+t.offset.value/100+'" stop-color="'+t.color+'"></stop>'})),l.innerHTML=f,l.id=c,n.appendChild(l)}if(o.type===e.GradientType.LinearGradient){var h=e.computeLinearGradient(u,s,o.value.angle),d=h.y1,p=h.x2,v=h.y2;l.setAttribute("x1",""+h.x1),l.setAttribute("y1",""+d),l.setAttribute("x2",""+p),l.setAttribute("y2",""+v)}else{var m=o.value,g=e.computeRadialGradient(u,s,m.cx,m.cy,m.size),y=g.y,b=g.r;l.setAttribute("cx",""+g.x),l.setAttribute("cy",""+y),l.setAttribute("r",""+b)}return c}var yt=/url\("?#(.*)\)/,bt=function(){function t(t){this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=t}var r=t.prototype;return r.getDefElement=function(){return this.$def},r.init=function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=F("defs",t),e.appendChild(this.$def)},r.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},r.clearUnusedDefElement=function(t,e,r){if(t[e]&&1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#"+e);n&&this.$def.removeChild(n)}},r.createOrUpdateGradientAndPattern=function(t,r,n,i,o){var a=this.context.config,u=a.document,s=a.createImage;if(r){var c=(e.isPattern(n)?r.style[i]:r.getAttribute(i)||"").match(yt);c&&c.length>1&&this.clearUnusedDefElement(this.gradientCache,c[1].replace('"',""),t.entity);var l=pt(u||document,this.$def,t,r,n,i,s,o);l&&(this.gradientCache[l]||(this.gradientCache[l]=new Set),this.gradientCache[l].add(t.entity))}},r.createOrUpdateShadow=function(t,e,r){!function(t,e,r,n,i){var o=r.parsedStyle,a=o.shadowType,u=o.shadowBlur,s=o.shadowColor,c=o.shadowOffsetX,l=o.shadowOffsetY,f=!y(s)&&u>0,h="g-filter-dropshadow-"+r.entity,d=e.querySelector("#"+h);if(d&&(d.getAttribute("data-type")===a&&f||(d.remove(),d=null)),f){if(null==n||n.setAttribute("filter","url(#"+h+")"),!d){if((d=F("filter",t)).setAttribute("data-type",a),"outer"===a){var p=F("feDropShadow",t);p.setAttribute("dx",""+(c||0)/2),p.setAttribute("dy",""+(l||0)/2),p.setAttribute("stdDeviation",""+(u||0)/4),p.setAttribute("flood-color",""+s),d.appendChild(p)}else if("inner"===a){var v=F("feComponentTransfer",t);v.setAttribute("in","SourceAlpha");var m=F("feFuncA",t);m.setAttribute("type","table"),m.setAttribute("tableValues","1 0"),v.appendChild(m),d.appendChild(v);var g=F("feGaussianBlur",t);g.setAttribute("stdDeviation",""+(u||0)/4),d.appendChild(g);var b=F("feOffset",t);b.setAttribute("dx",""+(c||0)/2),b.setAttribute("dy",""+(l||0)/2),b.setAttribute("result","offsetblur"),d.appendChild(b);var w=F("feFlood",t);w.setAttribute("flood-color",""+s),w.setAttribute("result","color"),d.appendChild(w);var E=F("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),d.appendChild(E);var x=F("feComposite",t);x.setAttribute("in2","SourceAlpha"),x.setAttribute("operator","in"),d.appendChild(x);var A=F("feMerge",t);d.appendChild(A);var S=F("feMergeNode",t);S.setAttribute("in","SourceGraphic");var O=F("feMergeNode",t);A.appendChild(S),A.appendChild(O)}return d.id=h,d.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(d)}if("inner"===a){var L=d.children[1],C=d.children[2];"shadowColor"===i?d.children[3].setAttribute("flood-color",""+s):"shadowBlur"===i?L.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?C.setAttribute("dx",""+(c||0)/2):"shadowOffsetY"===i&&C.setAttribute("dy",""+(l||0)/2)}else if("outer"===a){var k=d.children[0];"shadowColor"===i?k.setAttribute("flood-color",""+s):"shadowBlur"===i?k.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?k.setAttribute("dx",""+(c||0)/2):"shadowOffsetY"===i&&k.setAttribute("dy",""+(l||0)/2)}}else null==n||n.removeAttribute("filter")}(this.context.config.document||document,this.$def,t,e,r)},r.createOrUpdateFilter=function(t,e,r){st(this.context.config.document||document,this.$def,t,e,r)},t}(),wt=function(t){var e,r;function n(e){var r;return void 0===e&&(e={}),(r=t.call(this)||this).options=void 0,r.name="svg-renderer",r.options=e,r}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,$(e,r);var i=n.prototype;return i.init=function(){var t=this.options,e=t.outputSVGElementId,r=t.outputSVGElementName,n=new bt(this.context),i=new at(this.context);this.context.defaultElementLifeCycleContribution=i,this.context.SVGElementLifeCycleContribution=i;var o={outputSVGElementId:!!y(e)||!!e,outputSVGElementName:!!y(r)||!!r};this.addRenderingPlugin(new J(o,n,this.context))},i.destroy=function(){this.removeAllRenderingPlugins(),delete this.context.defaultElementLifeCycleContribution,delete this.context.SVGElementLifeCycleContribution},n}(e.AbstractRendererPlugin),Et=Object.freeze({__proto__:null,CLIP_PATH_PREFIX:Q,DEFAULT_VALUE_MAP:z,DefaultElementLifeCycleContribution:at,ElementSVG:D,G_SVG_PREFIX:q,Plugin:wt,SHAPE2TAGS:it,SHAPE_UPDATE_DEPS:ot,SVGRendererPlugin:J,SVG_ATTR_MAP:Y,TEXT_PATH_PREFIX:K,createSVGElement:F,updateImageElementAttribute:I,updateLineElementAttribute:V,updatePathElementAttribute:R,updatePolylineElementAttribute:U,updateRectElementAttribute:W,updateTextElementAttribute:nt});function xt(){xt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new O(i||[]);return n(o,"_invoke",{value:E(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==e&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function At(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function Lt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ot(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ct=function(){function t(){}var r=t.prototype;return r.apply=function(e){var r=this,n=e.config.document,i=e.renderingService;i.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=xt().mark((function t(e){return xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.pick(n,e));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){At(o,n,i,a,u,"next",t)}function u(t){At(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),i.hooks.pickSync.tap(t.tag,(function(t){return r.pick(n,t)}))},r.pick=function(t,r){var n=r.topmost,i=r.position,o=i.clientX,a=i.clientY;try{for(var u,s=[],c=Lt((t||document).elementsFromPoint(o,a));!(u=c()).done;){var l=u.value,f=l&&l.getAttribute("id");if(f&&f.startsWith(q)){var h=f.lastIndexOf("-"),d=e.runtime.displayObjectPool.getByEntity(f.substring(h+1));if(d&&d.isInteractive()&&(s.push(d),n))return r.picked=s,r}}r.picked=s}catch(t){r.picked=[]}return r},t}();Ct.tag="SVGPicker";var kt=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-picker",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,St(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new Ct)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),Tt=Object.freeze({__proto__:null,Plugin:kt}),Pt=["offset","composite","computedOffset","easing"],Gt=["offset","composite","computedOffset","easing","transformOrigin"],Mt=["offset","composite","computedOffset","easing","transformOrigin"],_t=["offset","composite","computedOffset","easing","transformOrigin"],Nt=function(){function t(t){this.context=void 0,this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,this.context=t,this.canvasConfig=t.config}var n=t.prototype;return n.init=function(){var t=i(r().mark((function t(){var n,i,o,a,u,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=w(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(u=F("svg",o)).setAttribute("width",""+this.canvasConfig.width),u.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(u),this.$namespace=u),s=a||e.isBrowser&&window.devicePixelRatio||1,this.dpr=s=1>s?1:Math.ceil(s);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.getDomElement=function(){return this.$namespace},n.getContext=function(){return this.$namespace},n.getDPR=function(){return this.dpr},n.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},n.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},n.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},n.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},n.generateCSSText=function(t,e,r,n,i){void 0===i&&(i={});var o=n.duration,a=n.easing,s=n.delay,c=n.direction,l=n.iterations,f=n.fill;return"@keyframes "+t+"{"+r.map((function(t){var e=t.computedOffset,r=u(t,Pt);return 100*e+"%{"+Object.keys(r).map((function(t){return t+":"+(i[t]||"")+r[t]+";"})).join("")+"}"})).join("")+"}"+e+" {animation: "+t+" "+o+"ms "+a+" "+s+"ms "+(l===1/0?"infinite":l)+" "+c+" "+f+";}"},n.toDataURL=function(){var t=i(r().mark((function t(n){var i,o,a,s,c,l,f=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.$namespace.cloneNode(!0),o=this.canvasConfig.document,a=0,s=null,this.context.renderingContext.root.forEach((function(t){var r=t.getAnimations();if(r.length){s||(s=(o||document).createElement("style"),i.appendChild(s));var n=t.elementSVG,c="#"+n.$el.id,l="#"+n.$groupEl.id,h="",d="";r.forEach((function(t){var r=t.effect.getKeyframes();if(r.length){var i=[],o=[],s=r[0],p=u(s,Gt);if(Object.keys(p).forEach((function(t){var r;"transform"===t&&o.push(t),!!(null===(r=e.propertyMetadataCache[t])||void 0===r?void 0:r.inh)?o.push(t):"transform"!==t&&i.push(t)})),o.length){var v=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,i=t.easing,a=u(t,Mt),s={offset:e,composite:r,computedOffset:n,easing:i};return Object.keys(a).forEach((function(e){o.includes(e)&&(s[e]=t[e])})),s}));d+=f.generateCSSText("a"+a++,l,v,t.effect.getComputedTiming(),{transform:n.$groupEl.getAttribute("transform")})}if(i.length){var m=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,o=t.easing,a=u(t,_t),s={offset:e,composite:r,computedOffset:n,easing:o};return Object.keys(a).forEach((function(e){i.includes(e)&&(s[e]=t[e])})),s}));h+=f.generateCSSText("a"+a++,c,m,t.effect.getComputedTiming())}}})),s.textContent+=h+d}})),c=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",c)).replaceChild(i,l.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(l)));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}(),jt=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-context-register",e}o(e,t);var r=e.prototype;return r.init=function(){this.context.ContextService=Nt},r.destroy=function(){delete this.context.ContextService},e}(e.AbstractRendererPlugin),$t=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).registerPlugin(new jt),r.registerPlugin(new wt({outputSVGElementId:e.outputSVGElementId})),r.registerPlugin(new d),r.registerPlugin(new kt),r}return o(e,t),e}(e.AbstractRenderer);t.DomInteraction=p,t.Renderer=$t,t.SVGPicker=Tt,t.SVGRenderer=Et,Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g-svg",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.33",
|
|
4
4
|
"description": "A renderer implemented by SVG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"sync": "tnpm sync"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@antv/g-plugin-dom-interaction": "^1.7.
|
|
34
|
-
"@antv/g-plugin-svg-picker": "^1.7.
|
|
35
|
-
"@antv/g-plugin-svg-renderer": "^1.8.
|
|
33
|
+
"@antv/g-plugin-dom-interaction": "^1.7.35",
|
|
34
|
+
"@antv/g-plugin-svg-picker": "^1.7.35",
|
|
35
|
+
"@antv/g-plugin-svg-renderer": "^1.8.33",
|
|
36
36
|
"@antv/util": "^3.3.1",
|
|
37
37
|
"tslib": "^2.3.1"
|
|
38
38
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0dfd1a4fb89c7398f55ae70c1686cfa7d925002c"
|
|
50
50
|
}
|