fl-web-component 1.0.4 → 1.0.6
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/fl-web-component.common.1.js +1 -2
- package/dist/fl-web-component.common.2.js +1 -2
- package/dist/fl-web-component.common.3.js +1 -2
- package/dist/fl-web-component.common.js +6 -11
- package/dist/fl-web-component.umd.1.js +1 -2
- package/dist/fl-web-component.umd.2.js +1 -2
- package/dist/fl-web-component.umd.3.js +1 -2
- package/dist/fl-web-component.umd.js +6 -11
- package/dist/fl-web-component.umd.min.1.js +1 -2
- package/dist/fl-web-component.umd.min.2.js +1 -2
- package/dist/fl-web-component.umd.min.3.js +1 -2
- package/dist/fl-web-component.umd.min.js +1 -2
- package/package.json +1 -1
- package/src/main.js +0 -3
- package/src/utils/instance-parser.js +2 -2
- package/dist/fl-web-component.common.1.js.map +0 -1
- package/dist/fl-web-component.common.2.js.map +0 -1
- package/dist/fl-web-component.common.3.js.map +0 -1
- package/dist/fl-web-component.common.js.map +0 -1
- package/dist/fl-web-component.umd.1.js.map +0 -1
- package/dist/fl-web-component.umd.2.js.map +0 -1
- package/dist/fl-web-component.umd.3.js.map +0 -1
- package/dist/fl-web-component.umd.js.map +0 -1
- package/dist/fl-web-component.umd.min.1.js.map +0 -1
- package/dist/fl-web-component.umd.min.2.js.map +0 -1
- package/dist/fl-web-component.umd.min.3.js.map +0 -1
- package/dist/fl-web-component.umd.min.js.map +0 -1
|
@@ -13213,5 +13213,4 @@ module.exports = NATIVE_SYMBOL &&
|
|
|
13213
13213
|
|
|
13214
13214
|
/***/ })
|
|
13215
13215
|
|
|
13216
|
-
}]);
|
|
13217
|
-
//# sourceMappingURL=fl-web-component.common.1.js.map
|
|
13216
|
+
}]);
|
|
@@ -16109,7 +16109,7 @@ if (typeof window !== 'undefined') {
|
|
|
16109
16109
|
// Indicate to webpack that this file can be concatenated
|
|
16110
16110
|
/* harmony default export */ var setPublicPath = (null);
|
|
16111
16111
|
|
|
16112
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16112
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"537c0758-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=9e291ea2&scoped=true
|
|
16113
16113
|
var com_graphicsvue_type_template_id_9e291ea2_scoped_true_render = function render() {
|
|
16114
16114
|
var _vm = this,
|
|
16115
16115
|
_c = _vm._self._c;
|
|
@@ -41349,13 +41349,13 @@ function instance_parser_drawModel(geom, instanceName, instanceCount, nColor) {
|
|
|
41349
41349
|
var model;
|
|
41350
41350
|
// 处理二维几何体(普通2D图形和特殊2D图形)
|
|
41351
41351
|
if (geom.type == GEOM_TYPES.geom_2d || geom.type == GEOM_TYPES.geom_2d_others) {
|
|
41352
|
-
|
|
41352
|
+
model = draw2Dmodel(geom, instanceName, instanceCount); // TODO 该类型调试中
|
|
41353
41353
|
// 处理二维文本类型
|
|
41354
41354
|
} else if (geom.type == GEOM_TYPES.geom_2d_text || geom.type == GEOM_TYPES.geom_2d_mtext || geom.type == GEOM_TYPES.geom_3d_text || geom.type == GEOM_TYPES.geom_3d_mtext) {
|
|
41355
41355
|
model = drawText(geom, instanceName, instanceCount);
|
|
41356
41356
|
// 处理各种曲线类型(圆形、圆弧、椭圆、椭圆弧)
|
|
41357
41357
|
} else if (geom.type == GEOM_TYPES.geom_2d_circle || geom.type == GEOM_TYPES.geom_2d_arc || geom.type == GEOM_TYPES.geom_2d_ellipse || geom.type == GEOM_TYPES.geom_2d_ellipseArc) {
|
|
41358
|
-
|
|
41358
|
+
model = drawCurves(geom, instanceName, instanceCount); // TODO 该类型调试中
|
|
41359
41359
|
// 处理三维几何体(普通3D模型和OBJ模型)
|
|
41360
41360
|
} else if (geom.type == GEOM_TYPES.geom_3d || geom.type == GEOM_TYPES.geom_3d_obj) {
|
|
41361
41361
|
model = draw3Dmodel(geom, instanceName, instanceCount, nColor);
|
|
@@ -42748,7 +42748,7 @@ var component = normalizeComponent(
|
|
|
42748
42748
|
)
|
|
42749
42749
|
|
|
42750
42750
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
42751
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
42751
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"537c0758-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=83d38700&scoped=true
|
|
42752
42752
|
var com_flcanvasvue_type_template_id_83d38700_scoped_true_render = function render() {
|
|
42753
42753
|
var _vm = this,
|
|
42754
42754
|
_c = _vm._self._c;
|
|
@@ -45850,12 +45850,9 @@ var com_flcanvas_component = normalizeComponent(
|
|
|
45850
45850
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
45851
45851
|
// CONCATENATED MODULE: ./src/main.js
|
|
45852
45852
|
|
|
45853
|
-
// import MyButton from '../packages/components/button/index.vue';
|
|
45854
45853
|
|
|
45855
45854
|
|
|
45856
|
-
var components = [com_graphics, com_flcanvas
|
|
45857
|
-
// MyButton,
|
|
45858
|
-
];
|
|
45855
|
+
var components = [com_graphics, com_flcanvas];
|
|
45859
45856
|
var main_install = function install(Vue) {
|
|
45860
45857
|
Vue.prototype.THREE = three_module_namespaceObject;
|
|
45861
45858
|
components.forEach(function (component) {
|
|
@@ -45871,7 +45868,6 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
45871
45868
|
install: main_install,
|
|
45872
45869
|
FlModel: com_graphics,
|
|
45873
45870
|
Fl2dcanvas: com_flcanvas
|
|
45874
|
-
// MyButton,
|
|
45875
45871
|
});
|
|
45876
45872
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
45877
45873
|
|
|
@@ -46524,5 +46520,4 @@ exports.Konva = _CoreInternals_1.Konva.Util._assign(_CoreInternals_1.Konva, {
|
|
|
46524
46520
|
|
|
46525
46521
|
/***/ })
|
|
46526
46522
|
|
|
46527
|
-
/******/ });
|
|
46528
|
-
//# sourceMappingURL=fl-web-component.common.js.map
|
|
46523
|
+
/******/ });
|
|
@@ -13213,5 +13213,4 @@ module.exports = NATIVE_SYMBOL &&
|
|
|
13213
13213
|
|
|
13214
13214
|
/***/ })
|
|
13215
13215
|
|
|
13216
|
-
}]);
|
|
13217
|
-
//# sourceMappingURL=fl-web-component.umd.1.js.map
|
|
13216
|
+
}]);
|
|
@@ -16118,7 +16118,7 @@ if (typeof window !== 'undefined') {
|
|
|
16118
16118
|
// Indicate to webpack that this file can be concatenated
|
|
16119
16119
|
/* harmony default export */ var setPublicPath = (null);
|
|
16120
16120
|
|
|
16121
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16121
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"537c0758-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=9e291ea2&scoped=true
|
|
16122
16122
|
var com_graphicsvue_type_template_id_9e291ea2_scoped_true_render = function render() {
|
|
16123
16123
|
var _vm = this,
|
|
16124
16124
|
_c = _vm._self._c;
|
|
@@ -41358,13 +41358,13 @@ function instance_parser_drawModel(geom, instanceName, instanceCount, nColor) {
|
|
|
41358
41358
|
var model;
|
|
41359
41359
|
// 处理二维几何体(普通2D图形和特殊2D图形)
|
|
41360
41360
|
if (geom.type == GEOM_TYPES.geom_2d || geom.type == GEOM_TYPES.geom_2d_others) {
|
|
41361
|
-
|
|
41361
|
+
model = draw2Dmodel(geom, instanceName, instanceCount); // TODO 该类型调试中
|
|
41362
41362
|
// 处理二维文本类型
|
|
41363
41363
|
} else if (geom.type == GEOM_TYPES.geom_2d_text || geom.type == GEOM_TYPES.geom_2d_mtext || geom.type == GEOM_TYPES.geom_3d_text || geom.type == GEOM_TYPES.geom_3d_mtext) {
|
|
41364
41364
|
model = drawText(geom, instanceName, instanceCount);
|
|
41365
41365
|
// 处理各种曲线类型(圆形、圆弧、椭圆、椭圆弧)
|
|
41366
41366
|
} else if (geom.type == GEOM_TYPES.geom_2d_circle || geom.type == GEOM_TYPES.geom_2d_arc || geom.type == GEOM_TYPES.geom_2d_ellipse || geom.type == GEOM_TYPES.geom_2d_ellipseArc) {
|
|
41367
|
-
|
|
41367
|
+
model = drawCurves(geom, instanceName, instanceCount); // TODO 该类型调试中
|
|
41368
41368
|
// 处理三维几何体(普通3D模型和OBJ模型)
|
|
41369
41369
|
} else if (geom.type == GEOM_TYPES.geom_3d || geom.type == GEOM_TYPES.geom_3d_obj) {
|
|
41370
41370
|
model = draw3Dmodel(geom, instanceName, instanceCount, nColor);
|
|
@@ -42757,7 +42757,7 @@ var component = normalizeComponent(
|
|
|
42757
42757
|
)
|
|
42758
42758
|
|
|
42759
42759
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
42760
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
42760
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"537c0758-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=83d38700&scoped=true
|
|
42761
42761
|
var com_flcanvasvue_type_template_id_83d38700_scoped_true_render = function render() {
|
|
42762
42762
|
var _vm = this,
|
|
42763
42763
|
_c = _vm._self._c;
|
|
@@ -45859,12 +45859,9 @@ var com_flcanvas_component = normalizeComponent(
|
|
|
45859
45859
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
45860
45860
|
// CONCATENATED MODULE: ./src/main.js
|
|
45861
45861
|
|
|
45862
|
-
// import MyButton from '../packages/components/button/index.vue';
|
|
45863
45862
|
|
|
45864
45863
|
|
|
45865
|
-
var components = [com_graphics, com_flcanvas
|
|
45866
|
-
// MyButton,
|
|
45867
|
-
];
|
|
45864
|
+
var components = [com_graphics, com_flcanvas];
|
|
45868
45865
|
var main_install = function install(Vue) {
|
|
45869
45866
|
Vue.prototype.THREE = three_module_namespaceObject;
|
|
45870
45867
|
components.forEach(function (component) {
|
|
@@ -45880,7 +45877,6 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
45880
45877
|
install: main_install,
|
|
45881
45878
|
FlModel: com_graphics,
|
|
45882
45879
|
Fl2dcanvas: com_flcanvas
|
|
45883
|
-
// MyButton,
|
|
45884
45880
|
});
|
|
45885
45881
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
45886
45882
|
|
|
@@ -46534,5 +46530,4 @@ exports.Konva = _CoreInternals_1.Konva.Util._assign(_CoreInternals_1.Konva, {
|
|
|
46534
46530
|
/***/ })
|
|
46535
46531
|
|
|
46536
46532
|
/******/ });
|
|
46537
|
-
});
|
|
46538
|
-
//# sourceMappingURL=fl-web-component.umd.js.map
|
|
46533
|
+
});
|
|
@@ -13,5 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===S.CLOSE_PATH)e+="z";else if(i.type===S.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===S.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===S.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===S.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===S.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===S.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===S.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===S.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==S.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}function s(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var u=Math.PI;function c(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,o=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var c=s([(e-a)/2,(r-o)/2],-t.xRot/180*u),h=c[0],l=c[1],f=Math.pow(h,2)/Math.pow(i,2)+Math.pow(l,2)/Math.pow(n,2);1<f&&(i*=Math.sqrt(f),n*=Math.sqrt(f)),t.rX=i,t.rY=n;var d=Math.pow(i,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(h,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-d)/d)),g=i*l/n*p,v=-n*h/i*p,y=s([g,v],t.xRot/180*u);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+o)/2,t.phi1=Math.atan2((l-v)/n,(h-g)/i),t.phi2=Math.atan2((-l-v)/n,(-h-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function h(t,e,r){o(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var l,f=Math.PI/180;function d(t,e,r){return(1-r)*t+r*e}function p(t,e,r,i){return t+Math.cos(i/180*u)*e+Math.sin(i/180*u)*r}function g(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,u=6*(s-a),c=3*a;return Math.abs(o)<n?[-c/u]:function(t,e,r){void 0===r&&(r=1e-6);var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(u/o,c/o,n)}function v(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,a,s){return n.type&S.SMOOTH_CURVE_TO&&(n.type=S.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&S.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&S.SMOOTH_QUAD_TO&&(n.type=S.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&S.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n}))}function i(){var t=NaN,e=NaN;return n((function(r,i,n){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&S.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&S.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&S.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&S.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return o(t,e,r,i,a,s),n((function(n,o,u,c){var h=n.x1,l=n.x2,f=n.relative&&!isNaN(c),d=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:u;function g(t){return t*t}n.type&S.HORIZ_LINE_TO&&0!==e&&(n.type=S.LINE_TO,n.y=n.relative?0:u),n.type&S.VERT_LINE_TO&&0!==r&&(n.type=S.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=d*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=h*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=l*e+n.y2*i+(f?0:s));var v=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===v)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=S.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/g(n.rX),w=1/g(n.rY),T=g(x)*b+g(m)*w,O=2*m*x*(b-w),A=g(m)*b+g(x)*w,C=T*i*i-O*e*i+A*e*e,E=O*(t*i+e*r)-2*(T*r*i+A*t*e),P=T*r*r-O*t*r+A*t*t,N=(Math.atan2(E,C-P)+Math.PI)%Math.PI/2,M=Math.sin(N),R=Math.cos(N);n.rX=Math.abs(v)/Math.sqrt(C*g(R)+E*M*R+P*g(M)),n.rY=Math.abs(v)/Math.sqrt(C*g(M)-E*M*R+P*g(R)),n.xRot=180*N/Math.PI}return void 0!==n.sweepFlag&&0>v&&(n.sweepFlag=+!n.sweepFlag),n}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&S.HORIZ_LINE_TO&&(i.type=S.LINE_TO,i.y=i.relative?0:a),r&&i.type&S.VERT_LINE_TO&&(i.type=S.LINE_TO,i.x=i.relative?0:n),t&&i.type&S.CLOSE_PATH&&(i.type=S.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&S.ARC&&(0===i.rX||0===i.rY)&&(i.type=S.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,u,c){var h=Math.abs,l=!1,f=0,d=0;if(n.type&S.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,d=isNaN(r)?0:o-r),n.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&S.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&S.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&S.LINE_COMMANDS||n.type&S.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&S.CURVE_TO||n.type&S.SMOOTH_CURVE_TO||n.type&S.QUAD_TO||n.type&S.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,g=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,d=isNaN(a)?void 0===n.y1?d:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;h(p)<=t&&h(g)<=t&&h(f)<=t&&h(d)<=t&&h(v)<=t&&h(y)<=t&&(l=!0)}return n.type&S.CLOSE_PATH&&h(s-u)<=t&&h(o-c)<=t&&(l=!0),l?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return S.ARC===t.type?function(t,e,r){var i,n,a,o;t.cX||c(t,e,r);for(var u=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(h/90),p=new Array(l),g=e,v=r,y=0;y<l;y++){var m=d(t.phi1,t.phi2,y/l),x=d(t.phi1,t.phi2,(y+1)/l),b=x-m,w=4/3*Math.tan(b*f/4),T=[Math.cos(m*f)-w*Math.sin(m*f),Math.sin(m*f)+w*Math.cos(m*f)],O=T[0],A=T[1],C=[Math.cos(x*f),Math.sin(x*f)],E=C[0],P=C[1],N=[E+w*Math.sin(x*f),P-w*Math.cos(x*f)],M=N[0],R=N[1];p[y]={relative:t.relative,type:S.CURVE_TO};var _=function(e,r){var i=s([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=_(O,A),p[y].x1=i[0],p[y].y1=i[1],n=_(M,R),p[y].x2=n[0],p[y].y2=n[1],a=_(E,P),p[y].x=a[0],p[y].y=a[1],t.relative&&(p[y].x1-=g,p[y].y1-=v,p[y].x2-=g,p[y].y2-=v,p[y].x-=g,p[y].y-=v),g=(o=[p[y].x,p[y].y])[0],v=o[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&c(t,e,r),t}))},t.CLONE=u,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},a=e(),s=i(),o=r(),u=n((function(e,r,i){var n=o(s(a(t(e))));function l(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function f(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(n.type&S.DRAWING_COMMANDS&&(l(r),f(i)),n.type&S.HORIZ_LINE_TO&&l(n.x),n.type&S.VERT_LINE_TO&&f(n.y),n.type&S.LINE_TO&&(l(n.x),f(n.y)),n.type&S.CURVE_TO){l(n.x),f(n.y);for(var d=0,y=g(r,n.x1,n.x2,n.x);d<y.length;d++)0<(k=y[d])&&1>k&&l(v(r,n.x1,n.x2,n.x,k));for(var m=0,x=g(i,n.y1,n.y2,n.y);m<x.length;m++)0<(k=x[m])&&1>k&&f(v(i,n.y1,n.y2,n.y,k))}if(n.type&S.ARC){l(n.x),f(n.y),c(n,r,i);for(var b=n.xRot/180*Math.PI,w=Math.cos(b)*n.rX,T=Math.sin(b)*n.rX,O=-Math.sin(b)*n.rY,A=Math.cos(b)*n.rY,C=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],E=C[0],P=C[1],N=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<E?i+360:i},M=0,R=h(O,-w,0).map(N);M<R.length;M++)(k=R[M])>E&&k<P&&l(p(n.cX,w,O,k));for(var _=0,V=h(A,-T,0).map(N);_<V.length;_++){var k;(k=V[_])>E&&k<P&&f(p(n.cY,T,A,k))}}return e}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(l||(l={}));var y,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(l.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(l.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(l.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),x=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return n(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=b(a)&&("0"===this.curNumber&&"0"===a||s);if(!b(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===T[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?i({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):S.VERT_LINE_TO===this.curCommandType?i({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?i({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?i({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?i({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&i({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===a}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(m),S=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return n(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return a(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),T=((y={})[S.MOVE_TO]=2,y[S.LINE_TO]=2,y[S.HORIZ_LINE_TO]=1,y[S.VERT_LINE_TO]=1,y[S.CLOSE_PATH]=0,y[S.QUAD_TO]=4,y[S.SMOOTH_QUAD_TO]=2,y[S.CURVE_TO]=6,y[S.SMOOTH_CURVE_TO]=4,y[S.ARC]=7,y)},d039:function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){"use strict";var i=r("cfe9"),n=r("1626"),a=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,r){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},d256:function(t,e,r){"use strict";var i=r("cfe9");t.exports=i.Promise},d2bb:function(t,e,r){"use strict";var i=r("7282"),n=r("861d"),a=r("1d80"),s=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=i(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(o){}return function(r,i){return a(r),s(i),n(r)?(e?t(r,i):r.__proto__=i,r):r}}():void 0)},d44e:function(t,e,r){"use strict";var i=r("9bf2").f,n=r("1a2d"),a=r("b622"),s=a("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},d58f:function(t,e,r){"use strict";var i=r("59ed"),n=r("7b0b"),a=r("44ad"),s=r("07fa"),o=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,h){var l=n(e),f=a(l),d=s(l);if(i(r),0===d&&c<2)throw new o(u);var p=t?d-1:0,g=t?-1:1;if(c<2)while(1){if(p in f){h=f[p],p+=g;break}if(p+=g,t?p<0:d<=p)throw new o(u)}for(;t?p>=0:d>p;p+=g)p in f&&(h=r(h,f[p],p,l));return h}};t.exports={left:c(!1),right:c(!0)}},d6d6:function(t,e,r){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},d784:function(t,e,r){"use strict";r("ac1f");var i=r("c65b"),n=r("cb2d"),a=r("9263"),s=r("d039"),o=r("b622"),u=r("9112"),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),d=!s((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),p=d&&!s((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!d||!p||r){var g=/./[f],v=e(f,""[t],(function(t,e,r,n,s){var o=e.exec;return o===a||o===h.exec?d&&!s?{done:!0,value:i(g,e,r,n)}:{done:!0,value:i(t,r,e,n)}:{done:!1}}));n(String.prototype,t,v[0]),n(h,f,v[1])}l&&u(h[f],"sham",!0)}},d9b5:function(t,e,r){"use strict";var i=r("d066"),n=r("1626"),a=r("3a9b"),s=r("fdbf"),o=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return n(e)&&a(e.prototype,o(t))}},dc4a:function(t,e,r){"use strict";var i=r("59ed"),n=r("7234");t.exports=function(t,e){var r=t[e];return n(r)?void 0:i(r)}},dcc3:function(t,e,r){"use strict";var i=r("ae93").IteratorPrototype,n=r("7c73"),a=r("5c6c"),s=r("d44e"),o=r("3f8c"),u=function(){return this};t.exports=function(t,e,r,c){var h=e+" Iterator";return t.prototype=n(i,{next:a(+!c,r)}),s(t,h,!1,!0),o[h]=u,t}},ddb0:function(t,e,r){"use strict";var i=r("cfe9"),n=r("fdbc"),a=r("785a"),s=r("e260"),o=r("9112"),u=r("d44e"),c=r("b622"),h=c("iterator"),l=s.values,f=function(t,e){if(t){if(t[h]!==l)try{o(t,h,l)}catch(i){t[h]=l}if(u(t,e,!0),n[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(i){t[r]=s[r]}}};for(var d in n)f(i[d]&&i[d].prototype,d);f(a,"DOMTokenList")},df75:function(t,e,r){"use strict";var i=r("ca84"),n=r("7839");t.exports=Object.keys||function(t){return i(t,n)}},df7c:function(t,e,r){(function(t){function r(t,e){for(var r=0,i=t.length-1;i>=0;i--){var n=t[i];"."===n?t.splice(i,1):".."===n?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,r=0,i=-1,n=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!n){r=e+1;break}}else-1===i&&(n=!1,i=e+1);return-1===i?"":t.slice(r,i)}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)e(t[i],i,t)&&r.push(t[i]);return r}e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s=a>=0?arguments[a]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,i="/"===s.charAt(0))}return e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===a(t,-1);return t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var r=t.length-1;r>=0;r--)if(""!==t[r])break;return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var n=i(t.split("/")),a=i(r.split("/")),s=Math.min(n.length,a.length),o=s,u=0;u<s;u++)if(n[u]!==a[u]){o=u;break}var c=[];for(u=o;u<n.length;u++)c.push("..");return c=c.concat(a.slice(o)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,i=-1,n=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!n){i=a;break}}else n=!1;return-1===i?r?"/":".":r&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var r=i(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,r=0,i=-1,n=!0,a=0,s=t.length-1;s>=0;--s){var o=t.charCodeAt(s);if(47!==o)-1===i&&(n=!1,i=s+1),46===o?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!n){r=s+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===r+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("4362"))},e163:function(t,e,r){"use strict";var i=r("1a2d"),n=r("1626"),a=r("7b0b"),s=r("f772"),o=r("e177"),u=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},e177:function(t,e,r){"use strict";var i=r("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var i=r("fc6a"),n=r("44d2"),a=r("3f8c"),s=r("69f3"),o=r("9bf2").f,u=r("c6d2"),c=r("4754"),h=r("c430"),l=r("83ab"),f="Array Iterator",d=s.set,p=s.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var g=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!h&&l&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(v){}},e330:function(t,e,r){"use strict";var i=r("40d5"),n=Function.prototype,a=n.call,s=i&&n.bind.bind(a,a);t.exports=i?s:function(t){return function(){return a.apply(t,arguments)}}},e667:function(t,e,r){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,r){"use strict";r("5e7e"),r("14e5"),r("cc98"),r("3529"),r("f22b"),r("7149")},e893:function(t,e,r){"use strict";var i=r("1a2d"),n=r("56ef"),a=r("06cf"),s=r("9bf2");t.exports=function(t,e,r){for(var o=n(e),u=s.f,c=a.f,h=0;h<o.length;h++){var l=o[h];i(t,l)||r&&i(r,l)||u(t,l,c(e,l))}}},e8b5:function(t,e,r){"use strict";var i=r("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},e95a:function(t,e,r){"use strict";var i=r("b622"),n=r("3f8c"),a=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[a]===t)}},ebc1:function(t,e,r){"use strict";var i=r("b5db");t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},ec87:function(t,e,r){"use strict";var i=r("b5db");t.exports=/web0s(?!.*chrome)/i.test(i)},edd0:function(t,e,r){"use strict";var i=r("13d2"),n=r("9bf2");t.exports=function(t,e,r){return r.get&&i(r.get,e,{getter:!0}),r.set&&i(r.set,e,{setter:!0}),n.f(t,e,r)}},f069:function(t,e,r){"use strict";var i=r("59ed"),n=TypeError,a=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw new n("Bad Promise constructor");e=t,r=i})),this.resolve=i(e),this.reject=i(r)};t.exports.f=function(t){return new a(t)}},f22b:function(t,e,r){"use strict";var i=r("23e7"),n=r("f069"),a=r("4738").CONSTRUCTOR;i({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=n.f(this),r=e.reject;return r(t),e.promise}})},f36a:function(t,e,r){"use strict";var i=r("e330");t.exports=i([].slice)},f5df:function(t,e,r){"use strict";var i=r("00ee"),n=r("1626"),a=r("c6b6"),s=r("b622"),o=s("toStringTag"),u=Object,c="Arguments"===a(function(){return arguments}()),h=function(t,e){try{return t[e]}catch(r){}};t.exports=i?a:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=h(e=u(t),o))?r:c?a(e):"Object"===(i=a(e))&&n(e.callee)?"Arguments":i}},f772:function(t,e,r){"use strict";var i=r("5692"),n=r("90e3"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},fc6a:function(t,e,r){"use strict";var i=r("44ad"),n=r("1d80");t.exports=function(t){return i(n(t))}},fce3:function(t,e,r){"use strict";var i=r("d039"),n=r("cfe9"),a=n.RegExp;t.exports=i((function(){var t=a(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},fdbc:function(t,e,r){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){"use strict";var i=r("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}]);
|
|
17
|
-
//# sourceMappingURL=fl-web-component.umd.min.1.js.map
|
|
16
|
+
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===S.CLOSE_PATH)e+="z";else if(i.type===S.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===S.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===S.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===S.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===S.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===S.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===S.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===S.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==S.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}function s(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var u=Math.PI;function c(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,o=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var c=s([(e-a)/2,(r-o)/2],-t.xRot/180*u),h=c[0],l=c[1],f=Math.pow(h,2)/Math.pow(i,2)+Math.pow(l,2)/Math.pow(n,2);1<f&&(i*=Math.sqrt(f),n*=Math.sqrt(f)),t.rX=i,t.rY=n;var d=Math.pow(i,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(h,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-d)/d)),g=i*l/n*p,v=-n*h/i*p,y=s([g,v],t.xRot/180*u);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+o)/2,t.phi1=Math.atan2((l-v)/n,(h-g)/i),t.phi2=Math.atan2((-l-v)/n,(-h-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function h(t,e,r){o(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var l,f=Math.PI/180;function d(t,e,r){return(1-r)*t+r*e}function p(t,e,r,i){return t+Math.cos(i/180*u)*e+Math.sin(i/180*u)*r}function g(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,u=6*(s-a),c=3*a;return Math.abs(o)<n?[-c/u]:function(t,e,r){void 0===r&&(r=1e-6);var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(u/o,c/o,n)}function v(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,a,s){return n.type&S.SMOOTH_CURVE_TO&&(n.type=S.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&S.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&S.SMOOTH_QUAD_TO&&(n.type=S.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&S.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n}))}function i(){var t=NaN,e=NaN;return n((function(r,i,n){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&S.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&S.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&S.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&S.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return o(t,e,r,i,a,s),n((function(n,o,u,c){var h=n.x1,l=n.x2,f=n.relative&&!isNaN(c),d=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:u;function g(t){return t*t}n.type&S.HORIZ_LINE_TO&&0!==e&&(n.type=S.LINE_TO,n.y=n.relative?0:u),n.type&S.VERT_LINE_TO&&0!==r&&(n.type=S.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=d*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=h*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=l*e+n.y2*i+(f?0:s));var v=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===v)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=S.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/g(n.rX),w=1/g(n.rY),T=g(x)*b+g(m)*w,O=2*m*x*(b-w),A=g(m)*b+g(x)*w,C=T*i*i-O*e*i+A*e*e,E=O*(t*i+e*r)-2*(T*r*i+A*t*e),P=T*r*r-O*t*r+A*t*t,N=(Math.atan2(E,C-P)+Math.PI)%Math.PI/2,M=Math.sin(N),R=Math.cos(N);n.rX=Math.abs(v)/Math.sqrt(C*g(R)+E*M*R+P*g(M)),n.rY=Math.abs(v)/Math.sqrt(C*g(M)-E*M*R+P*g(R)),n.xRot=180*N/Math.PI}return void 0!==n.sweepFlag&&0>v&&(n.sweepFlag=+!n.sweepFlag),n}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&S.HORIZ_LINE_TO&&(i.type=S.LINE_TO,i.y=i.relative?0:a),r&&i.type&S.VERT_LINE_TO&&(i.type=S.LINE_TO,i.x=i.relative?0:n),t&&i.type&S.CLOSE_PATH&&(i.type=S.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&S.ARC&&(0===i.rX||0===i.rY)&&(i.type=S.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,u,c){var h=Math.abs,l=!1,f=0,d=0;if(n.type&S.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,d=isNaN(r)?0:o-r),n.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&S.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&S.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&S.LINE_COMMANDS||n.type&S.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&S.CURVE_TO||n.type&S.SMOOTH_CURVE_TO||n.type&S.QUAD_TO||n.type&S.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,g=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,d=isNaN(a)?void 0===n.y1?d:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;h(p)<=t&&h(g)<=t&&h(f)<=t&&h(d)<=t&&h(v)<=t&&h(y)<=t&&(l=!0)}return n.type&S.CLOSE_PATH&&h(s-u)<=t&&h(o-c)<=t&&(l=!0),l?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return S.ARC===t.type?function(t,e,r){var i,n,a,o;t.cX||c(t,e,r);for(var u=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(h/90),p=new Array(l),g=e,v=r,y=0;y<l;y++){var m=d(t.phi1,t.phi2,y/l),x=d(t.phi1,t.phi2,(y+1)/l),b=x-m,w=4/3*Math.tan(b*f/4),T=[Math.cos(m*f)-w*Math.sin(m*f),Math.sin(m*f)+w*Math.cos(m*f)],O=T[0],A=T[1],C=[Math.cos(x*f),Math.sin(x*f)],E=C[0],P=C[1],N=[E+w*Math.sin(x*f),P-w*Math.cos(x*f)],M=N[0],R=N[1];p[y]={relative:t.relative,type:S.CURVE_TO};var _=function(e,r){var i=s([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=_(O,A),p[y].x1=i[0],p[y].y1=i[1],n=_(M,R),p[y].x2=n[0],p[y].y2=n[1],a=_(E,P),p[y].x=a[0],p[y].y=a[1],t.relative&&(p[y].x1-=g,p[y].y1-=v,p[y].x2-=g,p[y].y2-=v,p[y].x-=g,p[y].y-=v),g=(o=[p[y].x,p[y].y])[0],v=o[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&c(t,e,r),t}))},t.CLONE=u,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},a=e(),s=i(),o=r(),u=n((function(e,r,i){var n=o(s(a(t(e))));function l(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function f(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(n.type&S.DRAWING_COMMANDS&&(l(r),f(i)),n.type&S.HORIZ_LINE_TO&&l(n.x),n.type&S.VERT_LINE_TO&&f(n.y),n.type&S.LINE_TO&&(l(n.x),f(n.y)),n.type&S.CURVE_TO){l(n.x),f(n.y);for(var d=0,y=g(r,n.x1,n.x2,n.x);d<y.length;d++)0<(k=y[d])&&1>k&&l(v(r,n.x1,n.x2,n.x,k));for(var m=0,x=g(i,n.y1,n.y2,n.y);m<x.length;m++)0<(k=x[m])&&1>k&&f(v(i,n.y1,n.y2,n.y,k))}if(n.type&S.ARC){l(n.x),f(n.y),c(n,r,i);for(var b=n.xRot/180*Math.PI,w=Math.cos(b)*n.rX,T=Math.sin(b)*n.rX,O=-Math.sin(b)*n.rY,A=Math.cos(b)*n.rY,C=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],E=C[0],P=C[1],N=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<E?i+360:i},M=0,R=h(O,-w,0).map(N);M<R.length;M++)(k=R[M])>E&&k<P&&l(p(n.cX,w,O,k));for(var _=0,V=h(A,-T,0).map(N);_<V.length;_++){var k;(k=V[_])>E&&k<P&&f(p(n.cY,T,A,k))}}return e}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(l||(l={}));var y,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(l.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(l.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(l.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),x=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return n(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=b(a)&&("0"===this.curNumber&&"0"===a||s);if(!b(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===T[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?i({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):S.VERT_LINE_TO===this.curCommandType?i({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?i({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?i({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?i({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&i({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===a}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(m),S=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return n(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return a(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),T=((y={})[S.MOVE_TO]=2,y[S.LINE_TO]=2,y[S.HORIZ_LINE_TO]=1,y[S.VERT_LINE_TO]=1,y[S.CLOSE_PATH]=0,y[S.QUAD_TO]=4,y[S.SMOOTH_QUAD_TO]=2,y[S.CURVE_TO]=6,y[S.SMOOTH_CURVE_TO]=4,y[S.ARC]=7,y)},d039:function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){"use strict";var i=r("cfe9"),n=r("1626"),a=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,r){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},d256:function(t,e,r){"use strict";var i=r("cfe9");t.exports=i.Promise},d2bb:function(t,e,r){"use strict";var i=r("7282"),n=r("861d"),a=r("1d80"),s=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=i(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(o){}return function(r,i){return a(r),s(i),n(r)?(e?t(r,i):r.__proto__=i,r):r}}():void 0)},d44e:function(t,e,r){"use strict";var i=r("9bf2").f,n=r("1a2d"),a=r("b622"),s=a("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},d58f:function(t,e,r){"use strict";var i=r("59ed"),n=r("7b0b"),a=r("44ad"),s=r("07fa"),o=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,h){var l=n(e),f=a(l),d=s(l);if(i(r),0===d&&c<2)throw new o(u);var p=t?d-1:0,g=t?-1:1;if(c<2)while(1){if(p in f){h=f[p],p+=g;break}if(p+=g,t?p<0:d<=p)throw new o(u)}for(;t?p>=0:d>p;p+=g)p in f&&(h=r(h,f[p],p,l));return h}};t.exports={left:c(!1),right:c(!0)}},d6d6:function(t,e,r){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},d784:function(t,e,r){"use strict";r("ac1f");var i=r("c65b"),n=r("cb2d"),a=r("9263"),s=r("d039"),o=r("b622"),u=r("9112"),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),d=!s((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),p=d&&!s((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!d||!p||r){var g=/./[f],v=e(f,""[t],(function(t,e,r,n,s){var o=e.exec;return o===a||o===h.exec?d&&!s?{done:!0,value:i(g,e,r,n)}:{done:!0,value:i(t,r,e,n)}:{done:!1}}));n(String.prototype,t,v[0]),n(h,f,v[1])}l&&u(h[f],"sham",!0)}},d9b5:function(t,e,r){"use strict";var i=r("d066"),n=r("1626"),a=r("3a9b"),s=r("fdbf"),o=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return n(e)&&a(e.prototype,o(t))}},dc4a:function(t,e,r){"use strict";var i=r("59ed"),n=r("7234");t.exports=function(t,e){var r=t[e];return n(r)?void 0:i(r)}},dcc3:function(t,e,r){"use strict";var i=r("ae93").IteratorPrototype,n=r("7c73"),a=r("5c6c"),s=r("d44e"),o=r("3f8c"),u=function(){return this};t.exports=function(t,e,r,c){var h=e+" Iterator";return t.prototype=n(i,{next:a(+!c,r)}),s(t,h,!1,!0),o[h]=u,t}},ddb0:function(t,e,r){"use strict";var i=r("cfe9"),n=r("fdbc"),a=r("785a"),s=r("e260"),o=r("9112"),u=r("d44e"),c=r("b622"),h=c("iterator"),l=s.values,f=function(t,e){if(t){if(t[h]!==l)try{o(t,h,l)}catch(i){t[h]=l}if(u(t,e,!0),n[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(i){t[r]=s[r]}}};for(var d in n)f(i[d]&&i[d].prototype,d);f(a,"DOMTokenList")},df75:function(t,e,r){"use strict";var i=r("ca84"),n=r("7839");t.exports=Object.keys||function(t){return i(t,n)}},df7c:function(t,e,r){(function(t){function r(t,e){for(var r=0,i=t.length-1;i>=0;i--){var n=t[i];"."===n?t.splice(i,1):".."===n?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,r=0,i=-1,n=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!n){r=e+1;break}}else-1===i&&(n=!1,i=e+1);return-1===i?"":t.slice(r,i)}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)e(t[i],i,t)&&r.push(t[i]);return r}e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s=a>=0?arguments[a]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,i="/"===s.charAt(0))}return e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===a(t,-1);return t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var r=t.length-1;r>=0;r--)if(""!==t[r])break;return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var n=i(t.split("/")),a=i(r.split("/")),s=Math.min(n.length,a.length),o=s,u=0;u<s;u++)if(n[u]!==a[u]){o=u;break}var c=[];for(u=o;u<n.length;u++)c.push("..");return c=c.concat(a.slice(o)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,i=-1,n=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!n){i=a;break}}else n=!1;return-1===i?r?"/":".":r&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var r=i(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,r=0,i=-1,n=!0,a=0,s=t.length-1;s>=0;--s){var o=t.charCodeAt(s);if(47!==o)-1===i&&(n=!1,i=s+1),46===o?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!n){r=s+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===r+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("4362"))},e163:function(t,e,r){"use strict";var i=r("1a2d"),n=r("1626"),a=r("7b0b"),s=r("f772"),o=r("e177"),u=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},e177:function(t,e,r){"use strict";var i=r("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var i=r("fc6a"),n=r("44d2"),a=r("3f8c"),s=r("69f3"),o=r("9bf2").f,u=r("c6d2"),c=r("4754"),h=r("c430"),l=r("83ab"),f="Array Iterator",d=s.set,p=s.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var g=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!h&&l&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(v){}},e330:function(t,e,r){"use strict";var i=r("40d5"),n=Function.prototype,a=n.call,s=i&&n.bind.bind(a,a);t.exports=i?s:function(t){return function(){return a.apply(t,arguments)}}},e667:function(t,e,r){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,r){"use strict";r("5e7e"),r("14e5"),r("cc98"),r("3529"),r("f22b"),r("7149")},e893:function(t,e,r){"use strict";var i=r("1a2d"),n=r("56ef"),a=r("06cf"),s=r("9bf2");t.exports=function(t,e,r){for(var o=n(e),u=s.f,c=a.f,h=0;h<o.length;h++){var l=o[h];i(t,l)||r&&i(r,l)||u(t,l,c(e,l))}}},e8b5:function(t,e,r){"use strict";var i=r("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},e95a:function(t,e,r){"use strict";var i=r("b622"),n=r("3f8c"),a=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[a]===t)}},ebc1:function(t,e,r){"use strict";var i=r("b5db");t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},ec87:function(t,e,r){"use strict";var i=r("b5db");t.exports=/web0s(?!.*chrome)/i.test(i)},edd0:function(t,e,r){"use strict";var i=r("13d2"),n=r("9bf2");t.exports=function(t,e,r){return r.get&&i(r.get,e,{getter:!0}),r.set&&i(r.set,e,{setter:!0}),n.f(t,e,r)}},f069:function(t,e,r){"use strict";var i=r("59ed"),n=TypeError,a=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw new n("Bad Promise constructor");e=t,r=i})),this.resolve=i(e),this.reject=i(r)};t.exports.f=function(t){return new a(t)}},f22b:function(t,e,r){"use strict";var i=r("23e7"),n=r("f069"),a=r("4738").CONSTRUCTOR;i({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=n.f(this),r=e.reject;return r(t),e.promise}})},f36a:function(t,e,r){"use strict";var i=r("e330");t.exports=i([].slice)},f5df:function(t,e,r){"use strict";var i=r("00ee"),n=r("1626"),a=r("c6b6"),s=r("b622"),o=s("toStringTag"),u=Object,c="Arguments"===a(function(){return arguments}()),h=function(t,e){try{return t[e]}catch(r){}};t.exports=i?a:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=h(e=u(t),o))?r:c?a(e):"Object"===(i=a(e))&&n(e.callee)?"Arguments":i}},f772:function(t,e,r){"use strict";var i=r("5692"),n=r("90e3"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},fc6a:function(t,e,r){"use strict";var i=r("44ad"),n=r("1d80");t.exports=function(t){return i(n(t))}},fce3:function(t,e,r){"use strict";var i=r("d039"),n=r("cfe9"),a=n.RegExp;t.exports=i((function(){var t=a(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},fdbc:function(t,e,r){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){"use strict";var i=r("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}]);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
(("undefined"!==typeof self?self:this)["webpackJsonpfl_web_component"]=("undefined"!==typeof self?self:this)["webpackJsonpfl_web_component"]||[]).push([[2],{c0c4:function(e,t,n){
|
|
2
2
|
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
3
|
-
(function(t,n){e.exports=n()})(0,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!==typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),m=S(Array.prototype.lastIndexOf),p=S(Array.prototype.pop),f=S(Array.prototype.push),d=S(Array.prototype.splice),h=S(String.prototype.toLowerCase),g=S(String.prototype.toString),T=S(String.prototype.match),y=S(String.prototype.replace),E=S(String.prototype.indexOf),_=S(String.prototype.trim),A=S(Object.prototype.hasOwnProperty),N=S(RegExp.prototype.test),b=w(TypeError);function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function w(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s(e,n)}}function R(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;while(i--){let t=o[i];if("string"===typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function L(e){for(let t=0;t<e.length;t++){const n=A(e,t);n||(e[t]=null)}return e}function O(t){const n=l(null);for(const[o,r]of e(t)){const e=A(t,o);e&&(Array.isArray(r)?n[o]=L(r):r&&"object"===typeof r&&r.constructor===Object?n[o]=O(r):n[o]=r)}return n}function v(e,t){while(null!==e){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"===typeof n.value)return S(n.value)}e=o(e)}function n(){return null}return n}const C=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),P=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:G});const Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q=function(){return"undefined"===typeof window?null:window},ee=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},te=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ne(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const n=e=>ne(e);if(n.version="3.2.5",n.removed=[],!t||!t.document||t.document.nodeType!==Z.document||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:S,Element:w,NodeFilter:L,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:W,DOMParser:G,trustedTypes:Y}=t,j=w.prototype,q=v(j,"cloneNode"),$=v(j,"remove"),V=v(j,"nextSibling"),oe=v(j,"childNodes"),re=v(j,"parentNode");if("function"===typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:se,getElementsByTagName:ue}=o,{importNode:me}=r;let pe=te();n.isSupported="function"===typeof e&&"function"===typeof re&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:_e}=J;let{IS_ALLOWED_URI:Ae}=J,Ne=null;const be=R({},[...C,...D,...x,...I,...U]);let Se=null;const we=R({},[...P,...z,...H,...F]);let Re=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Oe=null,ve=!0,Ce=!0,De=!1,xe=!0,ke=!1,Ie=!0,Me=!1,Ue=!1,Pe=!1,ze=!1,He=!1,Fe=!1,Be=!0,We=!1;const Ge="user-content-";let Ye=!0,je=!1,Xe={},qe=null;const $e=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Ve=R({},["audio","video","img","source","image","track"]);let Je=null;const Ze=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let nt=tt,ot=!1,rt=null;const it=R({},[Qe,et,tt],g);let at=R({},["mi","mo","mn","ms","mtext"]),lt=R({},["annotation-xml"]);const ct=R({},["title","style","font","a","script"]);let st=null;const ut=["application/xhtml+xml","text/html"],mt="text/html";let pt=null,ft=null;const dt=o.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=O(e),st=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?mt:e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===st?g:h,Ne=A(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,pt):be,Se=A(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,pt):we,rt=A(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,g):it,Je=A(e,"ADD_URI_SAFE_ATTR")?R(O(Ze),e.ADD_URI_SAFE_ATTR,pt):Ze,Ke=A(e,"ADD_DATA_URI_TAGS")?R(O(Ve),e.ADD_DATA_URI_TAGS,pt):Ve,qe=A(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,pt):$e,Le=A(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,pt):{},Oe=A(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,pt):{},Xe=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ye=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||X,nt=e.NAMESPACE||tt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,lt=e.HTML_INTEGRATION_POINTS||lt,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ce=!1),He&&(ze=!0),Xe&&(Ne=R({},U),Se=[],!0===Xe.html&&(R(Ne,C),R(Se,P)),!0===Xe.svg&&(R(Ne,D),R(Se,z),R(Se,F)),!0===Xe.svgFilters&&(R(Ne,x),R(Se,z),R(Se,F)),!0===Xe.mathMl&&(R(Ne,I),R(Se,H),R(Se,F))),e.ADD_TAGS&&(Ne===be&&(Ne=O(Ne)),R(Ne,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Se===we&&(Se=O(Se)),R(Se,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&R(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(qe===$e&&(qe=O(qe)),R(qe,e.FORBID_CONTENTS,pt)),Ye&&(Ne["#text"]=!0),Me&&R(Ne,["html","head","body"]),Ne.table&&(R(Ne,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=ee(Y,a)),null!==ie&&"string"===typeof ae&&(ae=ie.createHTML(""));i&&i(e),ft=e}},Tt=R({},[...D,...x,...k]),yt=R({},[...I,...M]),Et=function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===et?t.namespaceURI===tt?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===o||at[o]):Boolean(Tt[n]):e.namespaceURI===Qe?t.namespaceURI===tt?"math"===n:t.namespaceURI===et?"math"===n&<[o]:Boolean(yt[n]):e.namespaceURI===tt?!(t.namespaceURI===et&&!lt[o])&&(!(t.namespaceURI===Qe&&!at[o])&&(!yt[n]&&(ct[n]||!Tt[n]))):!("application/xhtml+xml"!==st||!rt[e.namespaceURI]))},_t=function(e){f(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){$(e)}},At=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(o){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||He)try{_t(t)}catch(o){}else try{t.setAttribute(e,"")}catch(o){}},Nt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===st&&nt===tt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(nt===tt)try{t=(new G).parseFromString(r,st)}catch(a){}if(!t||!t.documentElement){t=le.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?ae:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),nt===tt?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},bt=function(e){return ce.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},St=function(e){return e instanceof W&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof B)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},wt=function(e){return"function"===typeof S&&e instanceof S};function Rt(e,t,o){u(e,e=>{e.call(n,t,o,ft)})}const Lt=function(e){let t=null;if(Rt(pe.beforeSanitizeElements,e,null),St(e))return _t(e),!0;const o=pt(e.nodeName);if(Rt(pe.uponSanitizeElement,e,{tagName:o,allowedTags:Ne}),e.hasChildNodes()&&!wt(e.firstElementChild)&&N(/<[/\w!]/g,e.innerHTML)&&N(/<[/\w!]/g,e.textContent))return _t(e),!0;if(e.nodeType===Z.progressingInstruction)return _t(e),!0;if(Ie&&e.nodeType===Z.comment&&N(/<[/\w]/g,e.data))return _t(e),!0;if(!Ne[o]||Le[o]){if(!Le[o]&&vt(o)){if(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,o))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(o))return!1}if(Ye&&!qe[o]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t){const o=n.length;for(let r=o-1;r>=0;--r){const o=q(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}}return _t(e),!0}return e instanceof w&&!Et(e)?(_t(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===Z.text&&(t=e.textContent,u([fe,de,he],e=>{t=y(t,e," ")}),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(pe.afterSanitizeElements,e,null),!1):(_t(e),!0)},Ot=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in o||n in dt))return!1;if(Ce&&!Oe[t]&&N(ge,t));else if(ve&&N(Te,t));else if(!Se[t]||Oe[t]){if(!(vt(e)&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&N(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(Je[t]);else if(N(Ae,y(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ke[e]){if(De&&!N(ye,y(n,Ee,"")));else if(n)return!1}else;return!0},vt=function(e){return"annotation-xml"!==e&&T(e,_e)},Ct=function(e){Rt(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||St(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let r=t.length;while(r--){const a=t[r],{name:l,namespaceURI:c,value:s}=a,m=pt(l);let f="value"===l?s:_(s);if(o.attrName=m,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Rt(pe.uponSanitizeAttribute,e,o),f=o.attrValue,!We||"id"!==m&&"name"!==m||(At(l,e),f=Ge+f),Ie&&N(/((--!?|])>)|<\/(style|title)/i,f)){At(l,e);continue}if(o.forceKeepAttr)continue;if(At(l,e),!o.keepAttr)continue;if(!xe&&N(/\/>/i,f)){At(l,e);continue}ke&&u([fe,de,he],e=>{f=y(f,e," ")});const d=pt(e.nodeName);if(Ot(d,m,f)){if(ie&&"object"===typeof Y&&"function"===typeof Y.getAttributeType)if(c);else switch(Y.getAttributeType(d,m)){case"TrustedHTML":f=ie.createHTML(f);break;case"TrustedScriptURL":f=ie.createScriptURL(f);break}try{c?e.setAttributeNS(c,l,f):e.setAttribute(l,f),St(e)?_t(e):p(n.removed)}catch(i){}}}Rt(pe.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const o=bt(t);Rt(pe.beforeSanitizeShadowDOM,t,null);while(n=o.nextNode())Rt(pe.uponSanitizeShadowNode,n,null),Lt(n),Ct(n),n.content instanceof c&&e(n.content);Rt(pe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!==typeof e&&!wt(e)){if("function"!==typeof e.toString)throw b("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw b("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||gt(t),n.removed=[],"string"===typeof e&&(je=!1),je){if(e.nodeName){const t=pt(e.nodeName);if(!Ne[t]||Le[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)o=Nt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===Z.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ze&&!ke&&!Me&&-1===e.indexOf("<"))return ie&&Fe?ie.createHTML(e):e;if(o=Nt(e),!o)return ze?null:Fe?ae:""}o&&Pe&&_t(o.firstChild);const s=bt(je?e:o);while(a=s.nextNode())Lt(a),Ct(a),a.content instanceof c&&Dt(a.content);if(je)return e;if(ze){if(He){l=se.call(o.ownerDocument);while(o.firstChild)l.appendChild(o.firstChild)}else l=o;return(Se.shadowroot||Se.shadowrootmode)&&(l=me.call(r,l,!0)),l}let m=Me?o.outerHTML:o.innerHTML;return Me&&Ne["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(K,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),ke&&u([fe,de,he],e=>{m=y(m,e," ")}),ie&&Fe?ie.createHTML(m):m},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(e),Ue=!0},n.clearConfig=function(){ft=null,Ue=!1},n.isValidAttribute=function(e,t,n){ft||gt({});const o=pt(e),r=pt(t);return Ot(o,r,n)},n.addHook=function(e,t){"function"===typeof t&&f(pe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=m(pe[e],t);return-1===n?void 0:d(pe[e],n,1)[0]}return p(pe[e])},n.removeHooks=function(e){pe[e]=[]},n.removeAllHooks=function(){pe=te()},n}var oe=ne();return oe}))}}]);
|
|
4
|
-
//# sourceMappingURL=fl-web-component.umd.min.2.js.map
|
|
3
|
+
(function(t,n){e.exports=n()})(0,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!==typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),m=S(Array.prototype.lastIndexOf),p=S(Array.prototype.pop),f=S(Array.prototype.push),d=S(Array.prototype.splice),h=S(String.prototype.toLowerCase),g=S(String.prototype.toString),T=S(String.prototype.match),y=S(String.prototype.replace),E=S(String.prototype.indexOf),_=S(String.prototype.trim),A=S(Object.prototype.hasOwnProperty),N=S(RegExp.prototype.test),b=w(TypeError);function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function w(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s(e,n)}}function R(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;while(i--){let t=o[i];if("string"===typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function L(e){for(let t=0;t<e.length;t++){const n=A(e,t);n||(e[t]=null)}return e}function O(t){const n=l(null);for(const[o,r]of e(t)){const e=A(t,o);e&&(Array.isArray(r)?n[o]=L(r):r&&"object"===typeof r&&r.constructor===Object?n[o]=O(r):n[o]=r)}return n}function v(e,t){while(null!==e){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"===typeof n.value)return S(n.value)}e=o(e)}function n(){return null}return n}const C=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),P=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:G});const Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q=function(){return"undefined"===typeof window?null:window},ee=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},te=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ne(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const n=e=>ne(e);if(n.version="3.2.5",n.removed=[],!t||!t.document||t.document.nodeType!==Z.document||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:S,Element:w,NodeFilter:L,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:W,DOMParser:G,trustedTypes:Y}=t,j=w.prototype,q=v(j,"cloneNode"),$=v(j,"remove"),V=v(j,"nextSibling"),oe=v(j,"childNodes"),re=v(j,"parentNode");if("function"===typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:se,getElementsByTagName:ue}=o,{importNode:me}=r;let pe=te();n.isSupported="function"===typeof e&&"function"===typeof re&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:_e}=J;let{IS_ALLOWED_URI:Ae}=J,Ne=null;const be=R({},[...C,...D,...x,...I,...U]);let Se=null;const we=R({},[...P,...z,...H,...F]);let Re=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Oe=null,ve=!0,Ce=!0,De=!1,xe=!0,ke=!1,Ie=!0,Me=!1,Ue=!1,Pe=!1,ze=!1,He=!1,Fe=!1,Be=!0,We=!1;const Ge="user-content-";let Ye=!0,je=!1,Xe={},qe=null;const $e=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Ve=R({},["audio","video","img","source","image","track"]);let Je=null;const Ze=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let nt=tt,ot=!1,rt=null;const it=R({},[Qe,et,tt],g);let at=R({},["mi","mo","mn","ms","mtext"]),lt=R({},["annotation-xml"]);const ct=R({},["title","style","font","a","script"]);let st=null;const ut=["application/xhtml+xml","text/html"],mt="text/html";let pt=null,ft=null;const dt=o.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=O(e),st=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?mt:e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===st?g:h,Ne=A(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,pt):be,Se=A(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,pt):we,rt=A(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,g):it,Je=A(e,"ADD_URI_SAFE_ATTR")?R(O(Ze),e.ADD_URI_SAFE_ATTR,pt):Ze,Ke=A(e,"ADD_DATA_URI_TAGS")?R(O(Ve),e.ADD_DATA_URI_TAGS,pt):Ve,qe=A(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,pt):$e,Le=A(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,pt):{},Oe=A(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,pt):{},Xe=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ye=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||X,nt=e.NAMESPACE||tt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,lt=e.HTML_INTEGRATION_POINTS||lt,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ce=!1),He&&(ze=!0),Xe&&(Ne=R({},U),Se=[],!0===Xe.html&&(R(Ne,C),R(Se,P)),!0===Xe.svg&&(R(Ne,D),R(Se,z),R(Se,F)),!0===Xe.svgFilters&&(R(Ne,x),R(Se,z),R(Se,F)),!0===Xe.mathMl&&(R(Ne,I),R(Se,H),R(Se,F))),e.ADD_TAGS&&(Ne===be&&(Ne=O(Ne)),R(Ne,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Se===we&&(Se=O(Se)),R(Se,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&R(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(qe===$e&&(qe=O(qe)),R(qe,e.FORBID_CONTENTS,pt)),Ye&&(Ne["#text"]=!0),Me&&R(Ne,["html","head","body"]),Ne.table&&(R(Ne,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=ee(Y,a)),null!==ie&&"string"===typeof ae&&(ae=ie.createHTML(""));i&&i(e),ft=e}},Tt=R({},[...D,...x,...k]),yt=R({},[...I,...M]),Et=function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===et?t.namespaceURI===tt?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===o||at[o]):Boolean(Tt[n]):e.namespaceURI===Qe?t.namespaceURI===tt?"math"===n:t.namespaceURI===et?"math"===n&<[o]:Boolean(yt[n]):e.namespaceURI===tt?!(t.namespaceURI===et&&!lt[o])&&(!(t.namespaceURI===Qe&&!at[o])&&(!yt[n]&&(ct[n]||!Tt[n]))):!("application/xhtml+xml"!==st||!rt[e.namespaceURI]))},_t=function(e){f(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){$(e)}},At=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(o){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||He)try{_t(t)}catch(o){}else try{t.setAttribute(e,"")}catch(o){}},Nt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===st&&nt===tt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(nt===tt)try{t=(new G).parseFromString(r,st)}catch(a){}if(!t||!t.documentElement){t=le.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?ae:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),nt===tt?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},bt=function(e){return ce.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},St=function(e){return e instanceof W&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof B)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},wt=function(e){return"function"===typeof S&&e instanceof S};function Rt(e,t,o){u(e,e=>{e.call(n,t,o,ft)})}const Lt=function(e){let t=null;if(Rt(pe.beforeSanitizeElements,e,null),St(e))return _t(e),!0;const o=pt(e.nodeName);if(Rt(pe.uponSanitizeElement,e,{tagName:o,allowedTags:Ne}),e.hasChildNodes()&&!wt(e.firstElementChild)&&N(/<[/\w!]/g,e.innerHTML)&&N(/<[/\w!]/g,e.textContent))return _t(e),!0;if(e.nodeType===Z.progressingInstruction)return _t(e),!0;if(Ie&&e.nodeType===Z.comment&&N(/<[/\w]/g,e.data))return _t(e),!0;if(!Ne[o]||Le[o]){if(!Le[o]&&vt(o)){if(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,o))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(o))return!1}if(Ye&&!qe[o]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t){const o=n.length;for(let r=o-1;r>=0;--r){const o=q(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}}return _t(e),!0}return e instanceof w&&!Et(e)?(_t(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===Z.text&&(t=e.textContent,u([fe,de,he],e=>{t=y(t,e," ")}),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(pe.afterSanitizeElements,e,null),!1):(_t(e),!0)},Ot=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in o||n in dt))return!1;if(Ce&&!Oe[t]&&N(ge,t));else if(ve&&N(Te,t));else if(!Se[t]||Oe[t]){if(!(vt(e)&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&N(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(Je[t]);else if(N(Ae,y(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ke[e]){if(De&&!N(ye,y(n,Ee,"")));else if(n)return!1}else;return!0},vt=function(e){return"annotation-xml"!==e&&T(e,_e)},Ct=function(e){Rt(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||St(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let r=t.length;while(r--){const a=t[r],{name:l,namespaceURI:c,value:s}=a,m=pt(l);let f="value"===l?s:_(s);if(o.attrName=m,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Rt(pe.uponSanitizeAttribute,e,o),f=o.attrValue,!We||"id"!==m&&"name"!==m||(At(l,e),f=Ge+f),Ie&&N(/((--!?|])>)|<\/(style|title)/i,f)){At(l,e);continue}if(o.forceKeepAttr)continue;if(At(l,e),!o.keepAttr)continue;if(!xe&&N(/\/>/i,f)){At(l,e);continue}ke&&u([fe,de,he],e=>{f=y(f,e," ")});const d=pt(e.nodeName);if(Ot(d,m,f)){if(ie&&"object"===typeof Y&&"function"===typeof Y.getAttributeType)if(c);else switch(Y.getAttributeType(d,m)){case"TrustedHTML":f=ie.createHTML(f);break;case"TrustedScriptURL":f=ie.createScriptURL(f);break}try{c?e.setAttributeNS(c,l,f):e.setAttribute(l,f),St(e)?_t(e):p(n.removed)}catch(i){}}}Rt(pe.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const o=bt(t);Rt(pe.beforeSanitizeShadowDOM,t,null);while(n=o.nextNode())Rt(pe.uponSanitizeShadowNode,n,null),Lt(n),Ct(n),n.content instanceof c&&e(n.content);Rt(pe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!==typeof e&&!wt(e)){if("function"!==typeof e.toString)throw b("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw b("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||gt(t),n.removed=[],"string"===typeof e&&(je=!1),je){if(e.nodeName){const t=pt(e.nodeName);if(!Ne[t]||Le[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)o=Nt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===Z.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ze&&!ke&&!Me&&-1===e.indexOf("<"))return ie&&Fe?ie.createHTML(e):e;if(o=Nt(e),!o)return ze?null:Fe?ae:""}o&&Pe&&_t(o.firstChild);const s=bt(je?e:o);while(a=s.nextNode())Lt(a),Ct(a),a.content instanceof c&&Dt(a.content);if(je)return e;if(ze){if(He){l=se.call(o.ownerDocument);while(o.firstChild)l.appendChild(o.firstChild)}else l=o;return(Se.shadowroot||Se.shadowrootmode)&&(l=me.call(r,l,!0)),l}let m=Me?o.outerHTML:o.innerHTML;return Me&&Ne["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(K,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),ke&&u([fe,de,he],e=>{m=y(m,e," ")}),ie&&Fe?ie.createHTML(m):m},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(e),Ue=!0},n.clearConfig=function(){ft=null,Ue=!1},n.isValidAttribute=function(e,t,n){ft||gt({});const o=pt(e),r=pt(t);return Ot(o,r,n)},n.addHook=function(e,t){"function"===typeof t&&f(pe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=m(pe[e],t);return-1===n?void 0:d(pe[e],n,1)[0]}return p(pe[e])},n.removeHooks=function(e){pe[e]=[]},n.removeAllHooks=function(){pe=te()},n}var oe=ne();return oe}))}}]);
|