aldehyde 0.2.99 → 0.2.100
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/bundle.021f784b1c84781461d2.js +1 -0
- package/dist/bundle.03c542ca824e205fe307.js +2 -0
- package/dist/bundle.03c542ca824e205fe307.js.LICENSE.txt +27 -0
- package/dist/bundle.03c542ca824e205fe307.js.gz +0 -0
- package/dist/bundle.15cb660c34802f6cccf5.js +1 -0
- package/dist/bundle.15cb660c34802f6cccf5.js.gz +0 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js +2 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js.LICENSE.txt +1 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js.gz +0 -0
- package/dist/bundle.320c02187dd135005102.js +2 -0
- package/dist/bundle.320c02187dd135005102.js.LICENSE.txt +6 -0
- package/dist/bundle.320c02187dd135005102.js.gz +0 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js +10 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js.gz +0 -0
- package/dist/bundle.3f9072b1629cdb384b46.js +2 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.LICENSE.txt +5 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.gz +0 -0
- package/dist/bundle.46e2295b5360a725bcd5.js +1 -0
- package/dist/bundle.46e2295b5360a725bcd5.js.gz +0 -0
- package/dist/bundle.4c3c988531c3cf360b87.js +1 -0
- package/dist/bundle.4c3c988531c3cf360b87.js.gz +0 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js +2 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js.LICENSE.txt +5 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js.gz +0 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js +5 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.LICENSE.txt +10 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.gz +0 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js +1 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js.gz +0 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js +2 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js.LICENSE.txt +17 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js.gz +0 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js +2 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.LICENSE.txt +17 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.gz +0 -0
- package/dist/bundle.8241d8d05e35988dd480.js +1 -0
- package/dist/bundle.8241d8d05e35988dd480.js.gz +0 -0
- package/dist/bundle.829683dfa6a98c78c58e.js +2 -0
- package/dist/bundle.829683dfa6a98c78c58e.js.LICENSE.txt +14 -0
- package/dist/bundle.829683dfa6a98c78c58e.js.gz +0 -0
- package/dist/bundle.840e28984e710e12f467.js +75 -0
- package/dist/bundle.840e28984e710e12f467.js.LICENSE.txt +8 -0
- package/dist/bundle.840e28984e710e12f467.js.gz +0 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js +2 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js.LICENSE.txt +1 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js.gz +0 -0
- package/dist/bundle.9cfd99a04bde7f781c30.js +1 -0
- package/dist/bundle.9cfd99a04bde7f781c30.js.gz +0 -0
- package/dist/bundle.a049dc8814bbbf59160f.js +1 -0
- package/dist/bundle.a049dc8814bbbf59160f.js.gz +0 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js +2 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js.LICENSE.txt +1 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js.gz +0 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js +2 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js.LICENSE.txt +30 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js.gz +0 -0
- package/dist/bundle.b207a66d5902f39d0c5a.js +1 -0
- package/dist/bundle.b207a66d5902f39d0c5a.js.gz +0 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js +2 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.LICENSE.txt +8 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.gz +0 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js +2 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.LICENSE.txt +5 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.gz +0 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js +2 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.LICENSE.txt +5 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.gz +0 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js +2 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.LICENSE.txt +22 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.gz +0 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js +1 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js.gz +0 -0
- package/dist/bundle.d158d417d1d7a8acb2a1.js +1 -0
- package/dist/bundle.d158d417d1d7a8acb2a1.js.gz +0 -0
- package/dist/bundle.db40aa107272f4303ece.js +1 -0
- package/dist/bundle.db40aa107272f4303ece.js.gz +0 -0
- package/dist/bundle.ddefe6d8f235ef95d470.js +1 -0
- package/dist/bundle.ddefe6d8f235ef95d470.js.gz +0 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js +2 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js.LICENSE.txt +16 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js.gz +0 -0
- package/dist/bundle.e760a70171cf0ae4567b.js +1 -0
- package/dist/bundle.e760a70171cf0ae4567b.js.gz +0 -0
- package/dist/bundle.f3ce062a620fe456c152.js +1 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js +2 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.LICENSE.txt +41 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.gz +0 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js +1 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js.gz +0 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js +1 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js.gz +0 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css +12 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css.gz +0 -0
- package/dist/css/common-901df6b21f13391f2a53.css +56 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
- package/dist/css/main-f3c8fdebab315e61e7be.css +865 -0
- package/dist/css/main-f3c8fdebab315e61e7be.css.gz +0 -0
- package/dist/images/development-30de07a0.png +0 -0
- package/dist/images/logo-54b328b7.png +0 -0
- package/dist/images/pain-point-8f02421e.png +0 -0
- package/dist/images/target-13a5b4b9.png +0 -0
- package/dist/images/time-cost-cb40d2c2.png +0 -0
- package/dist/images/time-prograss-44b86b36.png +0 -0
- package/dist/index.html +4 -0
- package/lib/controls/collapse-card/index.d.ts +11 -2
- package/lib/controls/collapse-card/index.d.ts.map +1 -1
- package/lib/controls/collapse-card/index.js +18 -16
- package/lib/controls/collapse-card/index.js.map +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +2 -1
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +1 -1
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +10 -1
- package/lib/detail/view/field-view-group.d.ts.map +1 -1
- package/lib/detail/view/field-view-group.js +17 -11
- package/lib/detail/view/field-view-group.js.map +1 -1
- package/lib/form/criteria-form.js +3 -3
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/form-Item-group.js +1 -1
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/layout/MainPage.js +1 -1
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/header/index.js +3 -3
- package/lib/layout/header/index.js.map +1 -1
- package/lib/layout/menu/block.d.ts +13 -1
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +66 -8
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout/menu/menu-2layers.d.ts +10 -0
- package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
- package/lib/layout/menu/menu-2layers.js +32 -9
- package/lib/layout/menu/menu-2layers.js.map +1 -1
- package/lib/layout/sidebar/index.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +3 -1
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/locale/LocaleProvider.d.ts.map +1 -1
- package/lib/locale/LocaleProvider.js +10 -8
- package/lib/locale/LocaleProvider.js.map +1 -1
- package/lib/locale/translate.d.ts.map +1 -1
- package/lib/locale/translate.js +10 -8
- package/lib/locale/translate.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +2 -2
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +22 -21
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +18 -8
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-selector.d.ts.map +1 -1
- package/lib/table/column/column-selector.js +20 -18
- package/lib/table/column/column-selector.js.map +1 -1
- package/lib/table/query-table.d.ts +10 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +47 -41
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.js +4 -4
- package/lib/table/relation-table.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +9 -6
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/tree/tree-node.d.ts.map +1 -1
- package/lib/tree/tree-node.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +6 -5
- package/src/aldehyde/controls/collapse-card/index.tsx +96 -54
- package/src/aldehyde/controls/entry-control.tsx +2 -1
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +1 -1
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +1 -1
- package/src/aldehyde/detail/view/field-view-group.tsx +62 -47
- package/src/aldehyde/form/criteria-form.tsx +3 -3
- package/src/aldehyde/form/form-Item-group.tsx +1 -1
- package/src/aldehyde/layout/MainPage.tsx +1 -1
- package/src/aldehyde/layout/header/index.tsx +4 -4
- package/src/aldehyde/layout/menu/block.less +11 -0
- package/src/aldehyde/layout/menu/block.tsx +132 -72
- package/src/aldehyde/layout/menu/menu-2layers.tsx +99 -64
- package/src/aldehyde/layout/sidebar/index.tsx +5 -1
- package/src/aldehyde/locale/LocaleProvider.tsx +10 -9
- package/src/aldehyde/locale/translate.ts +10 -7
- package/src/aldehyde/routable/ltmpl-route.tsx +220 -196
- package/src/aldehyde/table/act-table.tsx +26 -9
- package/src/aldehyde/table/column/column-selector.tsx +111 -72
- package/src/aldehyde/table/query-table.tsx +354 -304
- package/src/aldehyde/table/relation-table.tsx +4 -4
- package/src/aldehyde/tree/tmpl-tree.tsx +19 -3
- package/src/aldehyde/tree/tree-node.tsx +0 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.85ce5221fe6ab1d91f7d.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[76],{86876:function(t,e,n){"use strict";n.r(e),n(96540);var r=n(5131),i=n(71371),o=(n(16033),n(74353)),a=n.n(o),u=n(51864),s=n(83826),c=n.n(s),l=n(88569),h=n.n(l),f=n(17437);a().locale("zh-cn"),a().extend(c()),a().extend(h());var p=r.A.useToken,d=function(t){p().token;var e=(0,u.Ym)().getLocale;return(0,f.Y)(i.Ay,{locale:u.bs[e()],theme:{token:{colorPrimary:"#00b96b"}}},t.children)};e.default=function(t){return(0,f.Y)(u.YO,null,(0,f.Y)(d,null,t.children))}},85998:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),u=n(63549),s=n(91985),c=n(11504),l=n(50828),h=n(96540),f=n(45038),p=n(37187),d=n(16044),v=n(47152),y=n(16370),m=n(19469),g=n(613),w=n(92749),b=n(88668),_=n(1026),x=n(17437);function A(){A=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new M(r||[]);return o(a,"_invoke",{value:T(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var _={};l(_,u,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x($([])));k&&k!==n&&i.call(k,u)&&(_=k);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,u,s){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=C(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?y:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function $(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(L.prototype),l(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=$,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:$(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function k(t,e,n){return e=(0,s.A)(e),(0,u.A)(t,E()?Reflect.construct(e,n||[],(0,s.A)(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var S=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,a=new Array(r),u=0;u<r;u++)a[u]=arguments[u];return t=k(this,e,[].concat(a)),(0,l.A)(t,"state",{modalOpen:!1,molFileLoaded:!1}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"loadData",(0,i.A)(A().mark((function e(){var r,i,o,a,u,s,c;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,i=r.value,o=r.serverKey,!i){e.next=13;break}if(1!=(a=JSON.parse(i)).valid){e.next=9;break}return e.next=6,w.A.loadFileTxt(o,a.base.path);case 6:u=e.sent,e.next=10;break;case 9:u="new"==a.valid?a.body:void 0;case 10:s=/"alias":\s*\S*,/g,c=u.replace(s,""),n.g.ketcher.setMolecule(c);case 13:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"saveMolfile",(0,i.A)(A().mark((function e(){var r;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.g.ketcher.getKet();case 2:r=e.sent,t.triggerChange(r),t.setState({modalOpen:!1});case 5:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"triggerChange",(function(e){var n=t.props.onChange;n&&n(JSON.stringify({valid:"new",body:e}))})),(0,l.A)(t,"showView",(0,i.A)(A().mark((function e(){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadData();case 2:t.setState({modalOpen:!0});case 3:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"onCancel",(function(){t.setState({modalOpen:!1})})),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this,e=this.props,r=e.disabled,o=e.viewOrEdit,a=this.context.translate,u=new m.knP("");return(0,x.Y)(h.Fragment,null,(0,x.Y)(f.Ay,{onClick:this.showView},(0,x.Y)(b.A,null)," ",a("view"==o?"${查看}":"${编辑}")),(0,x.Y)(p.A,{closable:!1,open:this.state.modalOpen,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:1200,onCancel:function(){t.onCancel()},footer:r?[(0,x.Y)(f.Ay,{key:1,onClick:function(){t.onCancel()}},a("${取消}"))]:[(0,x.Y)(d.A,{key:2,placement:"top",title:a("${确定要取消本次编辑的数据吗}?"),onConfirm:this.onCancel,okText:a("${确定}"),cancelText:a("${取消}")},(0,x.Y)(f.Ay,null,"取消")),(0,x.Y)(f.Ay,{key:3,onClick:function(){t.saveMolfile()},type:"primary"},"确定")],bodyStyle:{width:"1200px"}},(0,x.Y)(v.A,{style:{height:"430px",border:"1px solid #00f",maxWidth:"calc(100vw - 92px)",maxHeight:"calc(100vw - 80px)"}},(0,x.Y)(y.A,{key:1,span:24,style:{height:"430px"}},(0,x.Y)(g.KE,{onInit:function(){var t=(0,i.A)(A().mark((function t(e){return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.g.ketcher=e;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),staticResourcesUrl:"ketcher",structServiceProvider:u,errorHandler:void 0})))))}}])}(h.PureComponent);(0,l.A)(S,"defaultProps",{viewOrEdit:"view"}),(0,l.A)(S,"contextType",_.U)},74025:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var r=n(44274),i=n(2532),o=n(63549),a=n(91985),u=n(11504),s=n(50828),c=n(96540),l=n(677),h=n(54136),f=n(1371),p=n(49075),d=n(6585),v=n(17437);function y(t,e,n){return e=(0,a.A)(e),(0,o.A)(t,m()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var g=function(t){var e=(0,c.useRef)(null),n=new d.xx;return(0,c.useEffect)((function(){var r=d.$t.create({doc:t.value,extensions:[h.oQ,f.Lz.updateListener.of((function(e){e.docChanged&&t.handleChange(i.state.doc)})),(0,p.ll)(),n.of(d.$t.readOnly.of(!!t.readOnly&&t.readOnly))]}),i=new f.Lz({state:r,parent:e.current});return function(){i.destroy()}}),[]),(0,v.Y)("div",{id:"CMEditor"},(0,v.Y)("div",{ref:e}))},w=function(t){function e(){var t;(0,r.A)(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=y(this,e,[].concat(i)),(0,s.A)(t,"state",{}),(0,s.A)(t,"handleChange",(function(e){console.log(e),t.props.onChange(e)})),t}return(0,u.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this.props,e=t.value,n=t.viewOrEdit;return(0,v.Y)(l.A,{size:"small",bodyStyle:{padding:"2px"}},(0,v.Y)(g,{handleChange:this.handleChange,readOnly:"view"==n,value:e}))}}])}(c.PureComponent);(0,s.A)(w,"defaultProps",{})},33442:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return k}});var r=n(38452),i=n(62477),o=n(44274),a=n(2532),u=n(63549),s=n(91985),c=n(11504),l=n(50828),h=n(96540),f=n(28073),p=n(677),d=n(28392),v=n(45038),y=n(47852),m=n(99552),g=n(65189),w=n(1026),b=n(17437),_=["value","viewOrEdit"];function x(t,e,n){return e=(0,s.A)(e),(0,u.A)(t,A()?Reflect.construct(e,n||[],(0,s.A)(t).constructor):e.apply(t,n))}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}var k=function(t){function e(){var t;(0,o.A)(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=x(this,e,[].concat(r)),(0,l.A)(t,"state",{displayColorPicker:!1}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"handleChange",(function(e){e&&e.hex?t.props.onChange(e.hex):t.props.onChange("")})),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){this.setState({})}},{key:"componentDidUpdate",value:function(t){(0,i.A)(this.props),this.props!=t&&this.setState({})}},{key:"render",value:function(){var t=this,e=this.state.displayColorPicker,n=this.props,i=n.value,o=n.viewOrEdit,a=((0,r.A)(n,_),this.context.translate);return"view"==o?(0,b.Y)("div",{className:"color",style:{background:i}},i):(0,b.Y)(f.A,{open:e,content:(0,b.Y)(p.A,{size:"small",style:{width:320},title:a("${颜色选择}"),bodyStyle:{overflow:"auto"},extra:(0,b.Y)(h.Fragment,null,(0,b.Y)(d.A,{size:[8,0]},(0,b.Y)(v.Ay,{onClick:function(){t.setState({displayColorPicker:!1})}},(0,b.Y)(y.A,null))))},(0,b.Y)(g.Ay,{color:i,onChange:this.handleChange}))},(0,b.Y)("div",null,(0,b.Y)("span",{onClick:function(){t.setState({displayColorPicker:!e})},className:"color",style:{background:i,cursor:"pointer"}},i||(0,b.Y)(v.Ay,{type:"link"},a("${选择颜色}"))),(0,b.Y)("span",null,i?(0,b.Y)(v.Ay,{type:"text",onClick:function(){t.handleChange(void 0)}},(0,b.Y)(m.A,null)):"")))}}])}(h.PureComponent);(0,l.A)(k,"contextType",w.U)},66480:function(t,e,n){"use strict";n.d(e,{A:function(){return S}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),u=n(63549),s=n(91985),c=n(11504),l=n(50828),h=n(96540),f=n(76139),p=n(45038),d=n(1849),v=n(28392),y=n(40756),m=n(47852),g=n(92749),w=n(80243),b=n(17437);function _(){_=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new M(r||[]);return o(a,"_invoke",{value:T(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var x={};l(x,u,(function(){return this}));var A=Object.getPrototypeOf,k=A&&A(A($([])));k&&k!==n&&i.call(k,u)&&(x=k);var E=b.prototype=g.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,u,s){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=C(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?y:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function $(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(L.prototype),l(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=$,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:$(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function x(t,e,n){return e=(0,s.A)(e),(0,u.A)(t,A()?Reflect.construct(e,n||[],(0,s.A)(t).constructor):e.apply(t,n))}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}var k=(0,b.Y)(f.A,{tip:"Loading..."}),E=(0,w.Ay)({resolved:{},chunkName:function(){return"react-file-viewer"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!n.m[e]},importAsync:function(){return n.e(374).then(n.t.bind(n,29787,23))},requireAsync:function(t){var e=this,n=this.resolve(t);return this.resolved[n]=!1,this.importAsync(t).then((function(t){return e.resolved[n]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return n(e)},resolve:function(){return 29787}},{fallback:k}),S=function(t){function e(){var t;(0,o.A)(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=x(this,e,[].concat(r)),(0,l.A)(t,"state",{drawerOpen:!1}),(0,l.A)(t,"onClose",(function(){t.setState({drawerOpen:!1})})),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"onError",value:function(t){console.log(t,"error in file-viewer")}},{key:"render",value:function(){var t=this,e=this.props,n=e.file,r=e.downloadable,o=e.serverKey,a=this.state.drawerOpen;return(0,b.Y)("span",{className:"labelcss"},(0,b.Y)(p.Ay,{type:"link",onClick:function(){t.setState({drawerOpen:!0})},size:"small"},n.base.fileName),r?(0,b.Y)(p.Ay,{type:"text",onClick:(0,i.A)(_().mark((function t(){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g.A.download(o,n.base.path);case 2:case"end":return t.stop()}}),t)}))),size:"small"},(0,b.Y)(y.A,null)):null,a?(0,b.Y)(d.A,{title:n.base.fileName,placement:"left",closable:!1,onClose:this.onClose,width:"1200px",open:a,extra:(0,b.Y)(v.A,null,r?(0,b.Y)(p.Ay,{onClick:(0,i.A)(_().mark((function t(){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g.A.download(o,n.base.path);case 2:case"end":return t.stop()}}),t)})))},(0,b.Y)(y.A,null)):null,(0,b.Y)(p.Ay,{onClick:this.onClose},(0,b.Y)(m.A,null)))},(0,b.Y)(E,{style:{width:"100%"},fileType:n.base.type,filePath:g.A.getFileUrl(o,n.base.path),errorComponent:void 0,onError:this.onError})):null)}}])}(h.PureComponent);(0,l.A)(S,"defaultProps",{downloadable:!0})},78122:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),u=n(63549),s=n(91985),c=n(11504),l=n(50828),h=n(96540),f=n(62070),p=n(47152),d=n(16370),v=n(45038),y=n(28392),m=n(66480),g=n(40756),w=n(92749),b=n(77004),_=n(17437);function x(){x=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new M(r||[]);return o(a,"_invoke",{value:T(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var _={};l(_,u,(function(){return this}));var A=Object.getPrototypeOf,k=A&&A(A($([])));k&&k!==n&&i.call(k,u)&&(_=k);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,u,s){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=C(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?y:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function $(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(L.prototype),l(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=$,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:$(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function A(t,e,n){return e=(0,s.A)(e),(0,u.A)(t,k()?Reflect.construct(e,n||[],(0,s.A)(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}var E=b.Ay,S=function(t){function e(){var t;(0,o.A)(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=A(this,e,[].concat(r)),(0,l.A)(t,"state",{urlData:void 0}),(0,l.A)(t,"loadData",(0,i.A)(x().mark((function e(){var n,r,i,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,r=n.value,i=n.serverKey,!(o=t.getJsonValue(r))){e.next=10;break}if(!/^image\/\w+;base64/.test(o.base.type)){e.next=10;break}return e.t0=t,e.next=7,w.A.loadFileTxt(i,o.base.path);case 7:e.t1=e.sent,e.t2={urlData:e.t1},e.t0.setState.call(e.t0,e.t2);case 10:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"getJsonValue",(function(t){var e;if(t)return"string"==typeof t&&(e=JSON.parse(t)),e})),(0,l.A)(t,"packFile2Show",(function(e,n){var r=t.state.urlData,o=t.props.downloadable,a=t.getJsonValue(n);if(a){if("new"==a.valid)return a.fileName;if("delete"==a.valid)return;if(["png","jpg","jpeg","gif","PNG","JPG","JPEG","GIF","svg","SVG"].includes(a.base.type))return(0,_.Y)(f.A,{width:90,src:a.icon.type?w.A.getFileUrl(e,a.icon.path):w.A.getFileUrl(e,a.base.path),preview:{src:w.A.getFileUrl(e,a.base.path)}});if(r)return(0,_.Y)(f.A,{width:90,src:r,preview:{src:r}});if(["mp4","MP4","mov","MOV","avi","AVI","WMV","wmv"].includes(a.base.type)){var u={ld:{play_url:w.A.getFileUrl(e,a.base.path)}};return(0,_.Y)(p.A,{align:"middle"},(0,_.Y)(d.A,{style:{height:"60px",width:"300px"}},(0,_.Y)(E,{locale:"zh-Hans",sources:u,id:a.base.fileName})))}return["xlsx","docx","csv","webm","bmp"].includes(a.base.type)?(0,_.Y)(m.A,{serverKey:e,file:a,downloadable:o}):["pdf","txt"].includes(a.base.type)?(0,_.Y)("span",{className:"labelcss"},(0,_.Y)(v.Ay,{type:"link",onClick:(0,i.A)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.A.openfile(e,a.base.path,o?"":"#toolbar=0");case 2:case"end":return t.stop()}}),t)}))),size:"small"},a.base.fileName),o?(0,_.Y)(v.Ay,{type:"text",onClick:(0,i.A)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.A.download(e,a.base.path);case 2:case"end":return t.stop()}}),t)}))),size:"small"},(0,_.Y)(g.A,null)):null):(0,_.Y)(y.A,{className:"labelcss"},o?(0,_.Y)(h.Fragment,null,(0,_.Y)(v.Ay,{type:"link",onClick:(0,i.A)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.A.download(e,a.base.path);case 2:case"end":return t.stop()}}),t)}))),size:"small"},a.base.fileName),(0,_.Y)(v.Ay,{type:"text",onClick:(0,i.A)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.A.download(e,a.base.path);case 2:case"end":return t.stop()}}),t)}))),size:"small",icon:(0,_.Y)(g.A,null)})):(0,_.Y)(v.Ay,{type:"text",size:"small"},a.base.fileName))}})),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"componentDidUpdate",value:function(t,e,n){this.props.value!=this.props.value&&this.loadData()}},{key:"render",value:function(){return(0,_.Y)(h.Fragment,null,this.packFile2Show(this.props.serverKey,this.props.value))}}])}(h.PureComponent);(0,l.A)(S,"defaultProps",{downloadable:!0})},12536:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return b}});var r=n(44274),i=n(2532),o=n(63549),a=n(91985),u=n(11504),s=n(50828),c=n(96540),l=n(677),h=n(35143),f=n(43754),p=n(29987),d=n.n(p),v=n(47340),y=n.n(v),m=n(17437);function g(t,e,n){return e=(0,a.A)(e),(0,o.A)(t,w()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var b=function(t){function e(){var t;(0,r.A)(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=g(this,e,[].concat(i)),(0,s.A)(t,"state",{editorState:h.EditorState.createEmpty()}),(0,s.A)(t,"onEditorStateChange",(function(e){t.setState({editorState:e})})),(0,s.A)(t,"editorChange",(function(e){t.props.onChange&&t.props.onChange(d()(e))})),(0,s.A)(t,"toDraft",(function(e){var n=y()(e),r=n.contentBlocks,i=n.entityMap,o=h.ContentState.createFromBlockArray(r,i),a=h.EditorState.createWithContent(o);t.setState({editorState:a})})),(0,s.A)(t,"changeValue",(function(t){})),t}return(0,u.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:function(){this.props.value&&this.toDraft(this.props.value)}},{key:"render",value:function(){var t=this.props,e=t.viewOrEdit,n=t.disabled,r=this.state.editorState;return(0,m.Y)(l.A,{style:{width:"100%"},bodyStyle:{padding:"2px",minHeight:"280px"},size:"small"},(0,m.Y)(f.Editor,{readOnly:n,toolbarHidden:"view"==e,editorState:r,wrapperClassName:"contract-template-add-wrapper",editorClassName:"contract-template-editor",onEditorStateChange:this.onEditorStateChange,onChange:this.editorChange,toolbar:{options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","remove","history"],colorPicker:{className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)","rgb(0,0,0)"]}}}))}}])}(c.PureComponent)},4556:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return L}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),u=n(63549),s=n(91985),c=n(11504),l=n(50828),h=n(96540),f=n(62070),p=n(45038),d=n(37187),v=n(16044),y=n(47152),m=n(16370),g=n(84861),w=n.n(g),b=n(54700),_=n(92749),x=n(1026),A=n(17437);function k(){k=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new M(r||[]);return o(a,"_invoke",{value:T(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var _={};l(_,u,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x($([])));A&&A!==n&&i.call(A,u)&&(_=A);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,u,s){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=C(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?y:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function $(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(L.prototype),l(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=$,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:$(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function E(t,e,n){return e=(0,s.A)(e),(0,u.A)(t,S()?Reflect.construct(e,n||[],(0,s.A)(t).constructor):e.apply(t,n))}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}var L=function(t){function e(){var t;(0,o.A)(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=E(this,e,[].concat(r)),(0,l.A)(t,"state",{modalOpen:!1,molFileLoaded:!1,molFile:void 0,trimmedDataURL:void 0}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"signCanvas",void 0),(0,l.A)(t,"loadData",(0,i.A)(k().mark((function e(){var n,r,i,o,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,r=n.value,i=n.serverKey,!r){e.next=12;break}if(1!=(o=JSON.parse(r)).valid){e.next=10;break}if(!/^image\/png;base64/.test(o.base.type)){e.next=8;break}return e.next=7,_.A.loadFileTxt(i,o.base.path);case 7:a=e.sent;case 8:e.next=11;break;case 10:a="new"==o.valid?o.body:void 0;case 11:t.setState({trimmedDataURL:a});case 12:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"saveMolfile",(0,i.A)(k().mark((function e(){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.signCanvas.getTrimmedCanvas().toDataURL("image/png"),t.triggerChange(n),t.setState({modalOpen:!1,trimmedDataURL:n});case 3:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"triggerChange",(function(e){var n=t.props.onChange;n&&n(JSON.stringify({valid:"new",body:e,suffix:"image/png;base64",fileName:"signature.png"}))})),(0,l.A)(t,"showView",(0,i.A)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.signCanvas.clear(),t.signCanvas.fromDataURL(t.state.trimmedDataURL),t.setState({modalOpen:!0});case 3:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"onCancel",(function(){t.setState({modalOpen:!1})})),(0,l.A)(t,"onClear",(function(){t.signCanvas.clear()})),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"render",value:function(){var t=this,e=this.props,n=e.id,r=e.disabled,i=e.viewOrEdit,o=(e.value,this.state),a=(o.molFile,o.trimmedDataURL),u=this.context.translate;return(0,A.Y)("span",{id:n},a?(0,A.Y)(f.A,{width:90,src:a,preview:{src:a}}):"","edit"==i?(0,A.Y)(p.Ay,{onClick:this.showView},(0,A.Y)(b.A,null),u("${编辑}")):"",(0,A.Y)(d.A,{closable:!1,open:this.state.modalOpen,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:900,onCancel:function(){t.onCancel()},footer:r?[(0,A.Y)(p.Ay,{key:1,onClick:function(){t.onCancel()}},u("${取消}"))]:[(0,A.Y)(p.Ay,{key:1,onClick:function(){t.onClear()}},u("${清除}")),(0,A.Y)(v.A,{key:2,placement:"top",title:u("${确定要取消本次编辑的数据吗}?"),onConfirm:this.onCancel,okText:u("${确定}"),cancelText:u("${取消}")},(0,A.Y)(p.Ay,null,u("${取消}"))),(0,A.Y)(p.Ay,{key:3,onClick:function(){t.saveMolfile()},type:"primary"},u("${确定}"))],bodyStyle:{width:"900px"}},(0,A.Y)(y.A,{style:{height:"430px",border:"1px solid #00f",maxWidth:"860px",maxHeight:"calc(100vw - 80px)"}},(0,A.Y)(m.A,{key:1,span:24,style:{height:"400px"}},(0,A.Y)(w(),{ref:function(e){t.signCanvas=e},penColor:"#000",canvasProps:{width:860,height:400,className:"sigCanvas"}})))))}}])}(h.PureComponent);(0,l.A)(L,"defaultProps",{viewOrEdit:"view"}),(0,l.A)(L,"contextType",x.U)},93094:function(t){var e={};t.exports=e,e.createElement=function(t){return document.createElement(t)},e.createText=function(t){return document.createTextNode(t)},e.style=function(t,e){t.style.cssText=e},e.append=function(t,e){t.appendChild(e)},e.remove=function(t,e){t.removeChild(e)}},49386:function(t,e,n){var r=n(30876),i=n(93094),o=n(76082),a=function(t,e){e=e||{weight:"normal"},this.family=t,this.style=e.style||"normal",this.variant=e.variant||"normal",this.weight=e.weight||"normal",this.stretch=e.stretch||"stretch",this.featureSettings=e.featureSettings||"normal"};t.exports=a,a.HAS_WEBKIT_FALLBACK_BUG=null,a.DEFAULT_TIMEOUT=3e3,a.getUserAgent=function(){return window.navigator.userAgent},a.hasWebKitFallbackBug=function(){if(null===a.HAS_WEBKIT_FALLBACK_BUG){var t=/AppleWeb[kK]it\/([0-9]+)(?:\.([0-9]+))/.exec(a.getUserAgent());a.HAS_WEBKIT_FALLBACK_BUG=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)}return a.HAS_WEBKIT_FALLBACK_BUG},a.prototype.getStyle=function(){return"font-style:"+this.style+";font-variant:"+this.variant+";font-weight:"+this.weight+";font-stretch:"+this.stretch+";font-feature-settings:"+this.featureSettings+";-moz-font-feature-settings:"+this.featureSettings+";-webkit-font-feature-settings:"+this.featureSettings+";"},a.prototype.check=function(t,e){var n,u,s,c=t||"BESbswy",l=e||a.DEFAULT_TIMEOUT,h=this.getStyle(),f=i.createElement("div"),p=new o(c),d=new o(c),v=new o(c),y=-1,m=-1,g=-1,w=this;return p.setFont('"Times New Roman", sans-serif',h),d.setFont("serif",h),v.setFont("monospace",h),i.append(f,p.getElement()),i.append(f,d.getElement()),i.append(f,v.getElement()),i.append(document.body,f),n=p.getWidth(),u=d.getWidth(),s=v.getWidth(),new r((function(t,e){function r(){null!==f.parentNode&&i.remove(document.body,f)}function o(){-1!==y&&-1!==m&&-1!==g&&y===m&&m===g&&(a.hasWebKitFallbackBug()&&(y===n&&m===n&&g===n||y===u&&m===u&&g===u||y===s&&m===s&&g===s)||(r(),t(w)))}setTimeout((function(){r(),e(w)}),l),p.onResize((function(t){y=t,o()})),p.setFont(w.family+",sans-serif",h),d.onResize((function(t){m=t,o()})),d.setFont(w.family+",serif",h),v.onResize((function(t){g=t,o()})),v.setFont(w.family+",monospace",h)}))}},76082:function(t,e,n){var r=n(93094),i=function(t){var e="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;";this.element=r.createElement("div"),this.element.setAttribute("aria-hidden","true"),r.append(this.element,r.createText(t)),this.collapsible=r.createElement("span"),this.expandable=r.createElement("span"),this.collapsibleInner=r.createElement("span"),this.expandableInner=r.createElement("span"),this.lastOffsetWidth=-1,r.style(this.collapsible,e),r.style(this.expandable,e),r.style(this.expandableInner,e),r.style(this.collapsibleInner,"display:inline-block;width:200%;height:200%;"),r.append(this.collapsible,this.collapsibleInner),r.append(this.expandable,this.expandableInner),r.append(this.element,this.collapsible),r.append(this.element,this.expandable)};t.exports=i,i.prototype.getElement=function(){return this.element},i.prototype.setFont=function(t,e){r.style(this.element,"min-width:20px;min-height:20px;display:inline-block;position:absolute;width:auto;margin:0;padding:0;top:-999px;left:-999px;white-space:nowrap;font-size:100px;font-family:"+t+";"+e)},i.prototype.getWidth=function(){return this.element.offsetWidth},i.prototype.setWidth=function(t){this.element.style.width=t+"px"},i.prototype.reset=function(){var t=this.getWidth(),e=t+100;return this.expandableInner.style.width=e+"px",this.expandable.scrollLeft=e,this.collapsible.scrollLeft=this.collapsible.scrollWidth+100,this.lastOffsetWidth!==t&&(this.lastOffsetWidth=t,!0)},i.prototype.onScroll=function(t){this.reset()&&null!==this.element.parentNode&&t(this.lastOffsetWidth)},i.prototype.onResize=function(t){var e=this;this.collapsible.addEventListener("scroll",(function(){e.onScroll(t)}),!1),this.expandable.addEventListener("scroll",(function(){e.onScroll(t)}),!1),this.reset()}},77232:function(t,e,n){var r;!function(i,o){"use strict";var a="function",u="undefined",s="object",c="string",l="major",h="model",f="name",p="type",d="vendor",v="version",y="architecture",m="console",g="mobile",w="tablet",b="smarttv",_="wearable",x="embedded",A="Amazon",k="Apple",E="ASUS",S="BlackBerry",L="Browser",T="Chrome",C="Firefox",N="Google",O="Huawei",M="LG",$="Microsoft",z="Motorola",Y="Opera",P="Samsung",j="Sharp",R="Sony",F="Xiaomi",B="Zebra",D="Facebook",I="Chromium OS",q="Mac OS",G=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},U=function(t,e){return typeof t===c&&-1!==V(e).indexOf(V(t))},V=function(t){return t.toLowerCase()},H=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===u?t:t.substring(0,500)},K=function(t,e){for(var n,r,i,u,c,l,h=0;h<e.length&&!c;){var f=e[h],p=e[h+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(t))for(i=0;i<p.length;i++)l=c[++r],typeof(u=p[i])===s&&u.length>0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):o:this[u[0]]=l?u[1].call(this,l,u[2]):o:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):o):this[u]=l||o;h+=2}},W=function(t,e){for(var n in e)if(typeof e[n]===s&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(U(e[n][r],t))return"?"===n?o:n}else if(U(e[n],t))return"?"===n?o:n;return t},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,v],[/opios[\/ ]+([\w\.]+)/i],[v,[f,Y+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[f,Y]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[f,"UC"+L]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[f,"Smart Lenovo "+L]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+L],v],[/\bfocus\/([\w\.]+)/i],[v,[f,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[f,Y+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[f,Y+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[f,"MIUI "+L]],[/fxios\/([-\w\.]+)/i],[v,[f,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+L]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+L],v],[/samsungbrowser\/([\w\.]+)/i],[v,[f,P+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,D],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[f,"Android "+L]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[v,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[f,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,v],[/(cobalt)\/([\w\.]+)/i],[f,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,V]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[d,P],[p,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[d,P],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[d,k],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[d,k],[p,w]],[/(macintosh);/i],[h,[d,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[d,j],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[d,O],[p,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[d,O],[p,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[d,F],[p,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[d,F],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[d,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[d,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[d,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[d,z],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[d,z],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[d,M],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[d,M],[p,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[d,"Lenovo"],[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[d,"Nokia"],[p,g]],[/(pixel c)\b/i],[h,[d,N],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[d,N],[p,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[d,R],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[d,R],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[d,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[d,A],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[d,A],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[h,d,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[d,S],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[d,E],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[d,E],[p,g]],[/(nexus 9)/i],[h,[d,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[h,/_/g," "],[p,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[d,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[d,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[d,"Ulefone"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,h,[p,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,h,[p,w]],[/(surface duo)/i],[h,[d,$],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[d,"Fairphone"],[p,g]],[/(u304aa)/i],[h,[d,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[h,[d,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[h,[d,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[h,[d,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[h,[d,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[d,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[h,[d,"NuVision"],[p,w]],[/\b(k88) b/i],[h,[d,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[h,[d,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[h,[d,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[h,[d,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[h,[d,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],h,[p,w]],[/\b(ns-?\w{0,9}) b/i],[h,[d,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[d,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],h,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],h,[p,g]],[/\b(ph-1) /i],[h,[d,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[d,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[h,[d,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[h,[d,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[h,[d,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[d,h,[p,g]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[d,$],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[d,B],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[d,B],[p,g]],[/smart-tv.+(samsung)/i],[d,[p,b]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[d,P],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,M],[p,b]],[/(apple) ?tv/i],[d,[h,k+" TV"],[p,b]],[/crkey/i],[[h,T+"cast"],[d,N],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[h,[d,A],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[d,j],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[h,[d,R],[p,b]],[/(mitv-\w{5}) bui/i],[h,[d,F],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[d,h,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,H],[h,H],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,h,[p,m]],[/droid.+; (shield) bui/i],[h,[d,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[h,[d,R],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[d,$],[p,m]],[/((pebble))app/i],[d,h,[p,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[d,k],[p,_]],[/droid.+; (glass) \d/i],[h,[d,N],[p,_]],[/droid.+; (wt63?0{2,3})\)/i],[h,[d,B],[p,_]],[/(quest( 2| pro)?)/i],[h,[d,D],[p,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[p,x]],[/(aeobc)\b/i],[h,[d,A],[p,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[v,W,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,W,X],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,q],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,v],[/\(bb(10);/i],[v,[f,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[f,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,I],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,v],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,v]]},Z=function(t,e){if(typeof t===s&&(e=t,t=o),!(this instanceof Z))return new Z(t,e).getResult();var n=typeof i!==u&&i.navigator?i.navigator:o,r=t||(n&&n.userAgent?n.userAgent:""),m=n&&n.userAgentData?n.userAgentData:o,b=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(J,e):J,_=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[f]=o,e[v]=o,K.call(e,r,b.browser),e[l]=typeof(t=e[v])===c?t.replace(/[^\d\.]/g,"").split(".")[0]:o,_&&n&&n.brave&&typeof n.brave.isBrave==a&&(e[f]="Brave"),e},this.getCPU=function(){var t={};return t[y]=o,K.call(t,r,b.cpu),t},this.getDevice=function(){var t={};return t[d]=o,t[h]=o,t[p]=o,K.call(t,r,b.device),_&&!t[p]&&m&&m.mobile&&(t[p]=g),_&&"Macintosh"==t[h]&&n&&typeof n.standalone!==u&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[h]="iPad",t[p]=w),t},this.getEngine=function(){var t={};return t[f]=o,t[v]=o,K.call(t,r,b.engine),t},this.getOS=function(){var t={};return t[f]=o,t[v]=o,K.call(t,r,b.os),_&&!t[f]&&m&&"Unknown"!=m.platform&&(t[f]=m.platform.replace(/chrome os/i,I).replace(/macos/i,q)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===c&&t.length>500?H(t,500):t,this},this.setUA(r),this};Z.VERSION="0.7.37",Z.BROWSER=G([f,v,l]),Z.CPU=G([y]),Z.DEVICE=G([h,d,p,m,g,b,w,_,x]),Z.ENGINE=Z.OS=G([f,v]),typeof e!==u?(t.exports&&(e=t.exports=Z),e.UAParser=Z):n.amdO?(r=function(){return Z}.call(e,n,e,t))===o||(t.exports=r):typeof i!==u&&(i.UAParser=Z);var Q=typeof i!==u&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var tt=new Z;Q.ua=tt.getResult(),Q.ua.get=function(){return tt.getUA()},Q.ua.set=function(t){tt.setUA(t);var e=tt.getResult();for(var n in e)Q.ua[n]=e[n]}}}("object"==typeof window?window:this)},65225:function(t,e,n){"use strict";n.d(e,{uVw:function(){return Lr},V$7:function(){return rr},$Er:function(){return lr},n8j:function(){return xr},Ltv:function(){return _t},s_O:function(){return jr}});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),s=-1,c=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<c;)if(n=(t=o[s]).type)i[n]=u(i[n],t.name,e);else if(null==e)for(n in i)i[n]=u(i[n],t.name,null);return this}for(;++s<c;)if((n=(t=o[s]).type)&&(n=a(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var s=i;function c(){}function l(t){return null==t?c:function(){return this.querySelector(t)}}function h(){return[]}function f(t){return null==t?h:function(){return this.querySelectorAll(t)}}function p(t){return function(){return this.matches(t)}}function d(t){return function(e){return e.matches(t)}}var v=Array.prototype.find;function y(){return this.firstElementChild}var m=Array.prototype.filter;function g(){return Array.from(this.children)}function w(t){return new Array(t.length)}function b(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function _(t,e,n,r,i,o){for(var a,u=0,s=e.length,c=o.length;u<c;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new b(t,o[u]);for(;u<s;++u)(a=e[u])&&(i[u]=a)}function x(t,e,n,r,i,o,a){var u,s,c,l=new Map,h=e.length,f=o.length,p=new Array(h);for(u=0;u<h;++u)(s=e[u])&&(p[u]=c=a.call(s,s.__data__,u,e)+"",l.has(c)?i[u]=s:l.set(c,s));for(u=0;u<f;++u)c=a.call(t,o[u],u,o)+"",(s=l.get(c))?(r[u]=s,s.__data__=o[u],l.delete(c)):n[u]=new b(t,o[u]);for(u=0;u<h;++u)(s=e[u])&&l.get(p[u])===s&&(i[u]=s)}function A(t){return t.__data__}function k(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function E(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}b.prototype={constructor:b,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var S="http://www.w3.org/1999/xhtml",L={svg:"http://www.w3.org/2000/svg",xhtml:S,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function C(t){return function(){this.removeAttribute(t)}}function N(t){return function(){this.removeAttributeNS(t.space,t.local)}}function O(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function z(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Y(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function P(t){return function(){this.style.removeProperty(t)}}function j(t,e,n){return function(){this.style.setProperty(t,e,n)}}function R(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function F(t,e){return t.style.getPropertyValue(e)||Y(t).getComputedStyle(t,null).getPropertyValue(e)}function B(t){return function(){delete this[t]}}function D(t,e){return function(){this[t]=e}}function I(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function q(t){return t.trim().split(/^|\s+/)}function G(t){return t.classList||new U(t)}function U(t){this._node=t,this._names=q(t.getAttribute("class")||"")}function V(t,e){for(var n=G(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function H(t,e){for(var n=G(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function K(t){return function(){V(this,t)}}function W(t){return function(){H(this,t)}}function X(t,e){return function(){(e.apply(this,arguments)?V:H)(this,t)}}function J(){this.textContent=""}function Z(t){return function(){this.textContent=t}}function Q(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function tt(){this.innerHTML=""}function et(t){return function(){this.innerHTML=t}}function nt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function rt(){this.nextSibling&&this.parentNode.appendChild(this)}function it(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ot(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===S&&e.documentElement.namespaceURI===S?e.createElement(t):e.createElementNS(n,t)}}function at(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ut(t){var e=T(t);return(e.local?at:ot)(e)}function st(){return null}function ct(){var t=this.parentNode;t&&t.removeChild(this)}function lt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ht(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ft(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function pt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function dt(t,e,n){var r=Y(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vt(t,e){return function(){return dt(this,t,e)}}function yt(t,e){return function(){return dt(this,t,e.apply(this,arguments))}}U.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mt=[null];function gt(t,e){this._groups=t,this._parents=e}function wt(){return new gt([[document.documentElement]],mt)}gt.prototype=wt.prototype={constructor:gt,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],s=u.length,c=r[i]=new Array(s),h=0;h<s;++h)(o=u[h])&&(a=t.call(o,o.__data__,h,u))&&("__data__"in o&&(a.__data__=o.__data__),c[h]=a);return new gt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}(t):f(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],s=u.length,c=0;c<s;++c)(a=u[c])&&(r.push(t.call(a,a.__data__,c,u)),i.push(a));return new gt(r,i)},selectChild:function(t){return this.select(null==t?y:function(t){return function(){return v.call(this.children,t)}}("function"==typeof t?t:d(t)))},selectChildren:function(t){return this.selectAll(null==t?g:function(t){return function(){return m.call(this.children,t)}}("function"==typeof t?t:d(t)))},filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new gt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,A);var n,r=e?x:_,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var h=i[l],f=o[l],p=f.length,d=k(t.call(h,h&&h.__data__,l,i)),v=d.length,y=s[l]=new Array(v),m=u[l]=new Array(v);r(h,f,y,m,c[l]=new Array(p),d,e);for(var g,w,b=0,E=0;b<v;++b)if(g=y[b]){for(b>=E&&(E=b+1);!(w=m[E])&&++E<v;);g._next=w||null}}return(u=new gt(u,i))._enter=s,u._exit=c,u},enter:function(){return new gt(this._enter||this._groups.map(w),this._parents)},exit:function(){return new gt(this._exit||this._groups.map(w),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),s=0;s<a;++s)for(var c,l=n[s],h=r[s],f=l.length,p=u[s]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;s<i;++s)u[s]=n[s];return new gt(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=E);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,c=i[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(e)}return new gt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=T(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?N:C:"function"==typeof e?n.local?z:$:n.local?M:O)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?P:"function"==typeof e?R:j)(t,e,null==n?"":n)):F(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?B:"function"==typeof e?I:D)(t,e)):this.node()[t]},classed:function(t,e){var n=q(t+"");if(arguments.length<2){for(var r=G(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?X:e?K:W)(n,e))},text:function(t){return arguments.length?this.each(null==t?J:("function"==typeof t?Q:Z)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?tt:("function"==typeof t?nt:et)(t)):this.node().innerHTML},raise:function(){return this.each(rt)},lower:function(){return this.each(it)},append:function(t){var e="function"==typeof t?t:ut(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ut(t),r=null==e?st:"function"==typeof e?e:l(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ct)},clone:function(t){return this.select(t?ht:lt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?pt:ft,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?yt:vt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var bt=wt;function _t(t){return"string"==typeof t?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],mt)}const xt={passive:!1},At={capture:!0,passive:!1};function kt(t){t.stopImmediatePropagation()}function Et(t){t.preventDefault(),t.stopImmediatePropagation()}function St(t){var e=t.document.documentElement,n=_t(t).on("dragstart.drag",Et,At);"onselectstart"in e?n.on("selectstart.drag",Et,At):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Lt(t,e){var n=t.document.documentElement,r=_t(t).on("dragstart.drag",null);e&&(r.on("click.drag",Et,At),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Tt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ct(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nt(){}var Ot=.7,Mt=1/Ot,$t="\\s*([+-]?\\d+)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pt=/^#([0-9a-f]{3,8})$/,jt=new RegExp(`^rgb\\(${$t},${$t},${$t}\\)$`),Rt=new RegExp(`^rgb\\(${Yt},${Yt},${Yt}\\)$`),Ft=new RegExp(`^rgba\\(${$t},${$t},${$t},${zt}\\)$`),Bt=new RegExp(`^rgba\\(${Yt},${Yt},${Yt},${zt}\\)$`),Dt=new RegExp(`^hsl\\(${zt},${Yt},${Yt}\\)$`),It=new RegExp(`^hsla\\(${zt},${Yt},${Yt},${zt}\\)$`),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Gt(){return this.rgb().formatHex()}function Ut(){return this.rgb().formatRgb()}function Vt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Pt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ht(e):3===n?new Xt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Kt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Kt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new Xt(e[1],e[2],e[3],1):(e=Rt.exec(t))?new Xt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ft.exec(t))?Kt(e[1],e[2],e[3],e[4]):(e=Bt.exec(t))?Kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Dt.exec(t))?ne(e[1],e[2]/100,e[3]/100,1):(e=It.exec(t))?ne(e[1],e[2]/100,e[3]/100,e[4]):qt.hasOwnProperty(t)?Ht(qt[t]):"transparent"===t?new Xt(NaN,NaN,NaN,0):null}function Ht(t){return new Xt(t>>16&255,t>>8&255,255&t,1)}function Kt(t,e,n,r){return r<=0&&(t=e=n=NaN),new Xt(t,e,n,r)}function Wt(t,e,n,r){return 1===arguments.length?((i=t)instanceof Nt||(i=Vt(i)),i?new Xt((i=i.rgb()).r,i.g,i.b,i.opacity):new Xt):new Xt(t,e,n,null==r?1:r);var i}function Xt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Jt(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}`}function Zt(){const t=Qt(this.opacity);return`${1===t?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${1===t?")":`, ${t})`}`}function Qt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function te(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ee(t){return((t=te(t))<16?"0":"")+t.toString(16)}function ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ie(t,e,n,r)}function re(t){if(t instanceof ie)return new ie(t.h,t.s,t.l,t.opacity);if(t instanceof Nt||(t=Vt(t)),!t)return new ie;if(t instanceof ie)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new ie(a,u,s,t.opacity)}function ie(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function oe(t){return(t=(t||0)%360)<0?t+360:t}function ae(t){return Math.max(0,Math.min(1,t||0))}function ue(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function se(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Tt(Nt,Vt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Gt,formatHex:Gt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return re(this).formatHsl()},formatRgb:Ut,toString:Ut}),Tt(Xt,Wt,Ct(Nt,{brighter(t){return t=null==t?Mt:Math.pow(Mt,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Xt(te(this.r),te(this.g),te(this.b),Qt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jt,formatHex:Jt,formatHex8:function(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}${ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zt,toString:Zt})),Tt(ie,(function(t,e,n,r){return 1===arguments.length?re(t):new ie(t,e,n,null==r?1:r)}),Ct(Nt,{brighter(t){return t=null==t?Mt:Math.pow(Mt,t),new ie(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new ie(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Xt(ue(t>=240?t-240:t+120,i,r),ue(t,i,r),ue(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ie(oe(this.h),ae(this.s),ae(this.l),Qt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Qt(this.opacity);return`${1===t?"hsl(":"hsla("}${oe(this.h)}, ${100*ae(this.s)}%, ${100*ae(this.l)}%${1===t?")":`, ${t})`}`}}));var ce=t=>()=>t;function le(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):ce(isNaN(t)?e:t)}var he=function t(e){var n=function(t){return 1==(t=+t)?le:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ce(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Wt(t)).r,(e=Wt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=le(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function fe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=Wt(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}function pe(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_e(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function de(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ve(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ye(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=_e(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}fe((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return se((n-r/e)*e,a,i,o,u)}})),fe((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return se((n-r/e)*e,i,o,a,u)}}));var me=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(me.source,"g");function we(t,e){var n,r,i,o=me.lastIndex=ge.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=me.exec(t))&&(r=ge.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:ve(n,r)})),o=ge.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function be(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function _e(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?ce(e):("number"===i?ve:"string"===i?(n=Vt(e))?(e=n,he):we:e instanceof Vt?he:e instanceof Date?de:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?pe:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ye:ve:be))(t,e)}function xe(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Ae,ke,Ee=0,Se=0,Le=0,Te=1e3,Ce=0,Ne=0,Oe=0,Me="object"==typeof performance&&performance.now?performance:Date,$e="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ze(){return Ne||($e(Ye),Ne=Me.now()+Oe)}function Ye(){Ne=0}function Pe(){this._call=this._time=this._next=null}function je(t,e,n){var r=new Pe;return r.restart(t,e,n),r}function Re(){Ne=(Ce=Me.now())+Oe,Ee=Se=0;try{!function(){ze(),++Ee;for(var t,e=Ae;e;)(t=Ne-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ee}()}finally{Ee=0,function(){for(var t,e,n=Ae,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ae=e);ke=t,Be(r)}(),Ne=0}}function Fe(){var t=Me.now(),e=t-Ce;e>Te&&(Oe-=e,Ce=t)}function Be(t){Ee||(Se&&(Se=clearTimeout(Se)),t-Ne>24?(t<1/0&&(Se=setTimeout(Re,t-Me.now()-Oe)),Le&&(Le=clearInterval(Le))):(Le||(Ce=Me.now(),Le=setInterval(Fe,Te)),Ee=1,$e(Re)))}function De(t,e,n){var r=new Pe;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Pe.prototype=je.prototype={constructor:Pe,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ze():+n)+(null==e?0:+e),this._next||ke===this||(ke?ke._next=this:Ae=this,ke=this),this._call=t,this._time=n,Be()},stop:function(){this._call&&(this._call=null,this._time=1/0,Be())}};var Ie=s("start","end","cancel","interrupt"),qe=[],Ge=0,Ue=2,Ve=3,He=5,Ke=6;function We(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(s){var c,l,h,f;if(1!==n.state)return u();for(c in i)if((f=i[c]).name===n.name){if(f.state===Ve)return De(o);4===f.state?(f.state=Ke,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=Ke,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(De((function(){n.state===Ve&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=Ue,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ue){for(n.state=Ve,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=He,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);n.state===He&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Ke,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=je((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Ie,tween:qe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ge})}function Xe(t,e){var n=Ze(t,e);if(n.state>Ge)throw new Error("too late; already scheduled");return n}function Je(t,e){var n=Ze(t,e);if(n.state>Ve)throw new Error("too late; already running");return n}function Ze(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Qe(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Ue&&n.state<He,n.state=Ke,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var tn,en=180/Math.PI,nn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rn(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*en,skewX:Math.atan(s)*en,scaleX:a,scaleY:u}}function on(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:ve(t,i)},{i:s-2,x:ve(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ve(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ve(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:ve(t,n)},{i:u-2,x:ve(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join("")}}}var an=on((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?nn:rn(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),un=on((function(t){return null==t?nn:(tn||(tn=document.createElementNS("http://www.w3.org/2000/svg","g")),tn.setAttribute("transform",t),(t=tn.transform.baseVal.consolidate())?rn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):nn)}),", ",")",")");function sn(t,e){var n,r;return function(){var i=Je(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function cn(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Je(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===e){i[s]=u;break}s===c&&i.push(u)}o.tween=i}}function ln(t,e,n){var r=t._id;return t.each((function(){var t=Je(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Ze(t,r).value[e]}}function hn(t,e){var n;return("number"==typeof e?ve:e instanceof Vt?he:(n=Vt(e))?(e=n,he):we)(t,e)}function fn(t){return function(){this.removeAttribute(t)}}function pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function vn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function yn(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttribute(t)}}function mn(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttributeNS(t.space,t.local)}}function gn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function wn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function bn(t,e){return function(){Xe(this,t).delay=+e.apply(this,arguments)}}function _n(t,e){return e=+e,function(){Xe(this,t).delay=e}}function xn(t,e){return function(){Je(this,t).duration=+e.apply(this,arguments)}}function An(t,e){return e=+e,function(){Je(this,t).duration=e}}var kn=bt.prototype.constructor;function En(t){return function(){this.style.removeProperty(t)}}var Sn=0;function Ln(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Tn(){return++Sn}var Cn=bt.prototype;Ln.prototype=function(t){return bt().transition(t)}.prototype={constructor:Ln,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=l(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,c=r[a],h=c.length,f=o[a]=new Array(h),p=0;p<h;++p)(u=c[p])&&(s=t.call(u,u.__data__,p,c))&&("__data__"in u&&(s.__data__=u.__data__),f[p]=s,We(f[p],e,n,p,f,Ze(u,n)));return new Ln(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=f(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,c=r[u],l=c.length,h=0;h<l;++h)if(s=c[h]){for(var p,d=t.call(s,s.__data__,h,c),v=Ze(s,n),y=0,m=d.length;y<m;++y)(p=d[y])&&We(p,e,n,y,d,v);o.push(d),a.push(s)}return new Ln(o,a,e,n)},selectChild:Cn.selectChild,selectChildren:Cn.selectChildren,filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new Ln(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=e[u],l=n[u],h=c.length,f=a[u]=new Array(h),p=0;p<h;++p)(s=c[p]||l[p])&&(f[p]=s);for(;u<r;++u)a[u]=e[u];return new Ln(a,this._parents,this._name,this._id)},selection:function(){return new kn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Tn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=Ze(a,e);We(a,t,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ln(r,this._parents,t,n)},call:Cn.call,nodes:Cn.nodes,node:Cn.node,size:Cn.size,empty:Cn.empty,each:Cn.each,on:function(t,e){var n=this._id;return arguments.length<2?Ze(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Xe:Je;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=T(t),r="transform"===n?un:hn;return this.attrTween(t,"function"==typeof e?(n.local?mn:yn)(n,r,ln(this,"attr."+t,e)):null==e?(n.local?pn:fn)(n):(n.local?vn:dn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=T(t);return this.tween(n,(r.local?gn:wn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?an:hn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=F(this,t),a=(this.style.removeProperty(t),F(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,En(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=F(this,t),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=F(this,t)),a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u))}}(t,r,ln(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var s=Je(this,t),c=s.on,l=null==s.value[a]?o||(o=En(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(u,i=l),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=F(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ln(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ze(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?sn:cn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?bn:_n)(e,t)):Ze(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?xn:An)(e,t)):Ze(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Je(this,t).ease=e}}(e,t)):Ze(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Je(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=Je(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:Cn[Symbol.iterator]};var Nn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function On(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}bt.prototype.interrupt=function(t){return this.each((function(){Qe(this,t)}))},bt.prototype.transition=function(t){var e,n;t instanceof Ln?(e=t._id,t=t._name):(e=Tn(),(n=Nn).time=ze(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)(a=u[c])&&We(a,t,e,c,u,n||On(a,e));return new Ln(r,this._parents,t,e)};var Mn=t=>()=>t;function $n(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zn(t){t.preventDefault(),t.stopImmediatePropagation()}var Yn={name:"drag"},Pn={name:"space"},jn={name:"handle"},Rn={name:"center"};const{abs:Fn,max:Bn,min:Dn}=Math;function In(t){return[+t[0],+t[1]]}function qn(t){return[In(t[0]),In(t[1])]}var Gn={name:"x",handles:["w","e"].map(Zn),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Un={name:"y",handles:["n","s"].map(Zn),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Vn={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Zn),input:function(t){return null==t?null:qn(t)},output:function(t){return t}},Hn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Kn={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Wn={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xn={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Jn={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Zn(t){return{type:t}}function Qn(t){return!t.ctrlKey&&!t.button}function tr(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function er(){return navigator.maxTouchPoints||"ontouchstart"in this}function nr(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function rr(){return function(t){var e,n=tr,r=Qn,i=er,o=!0,a=s("start","brush","end"),u=6;function c(e){var n=e.property("__brush",y).selectAll(".overlay").data([Zn("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Hn.overlay).merge(n).each((function(){var t=nr(this).extent;_t(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Zn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Hn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Hn[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",p).filter(i).on("touchstart.brush",p).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=_t(this),e=nr(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function h(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function p(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,u,s,c,f,p,d,v,y,m,g=this,w=n.target.__data__.type,b="selection"===(o&&n.metaKey?w="overlay":w)?Yn:o&&n.altKey?Rn:jn,_=t===Un?null:Xn[w],x=t===Gn?null:Jn[w],A=nr(g),k=A.extent,E=A.selection,S=k[0][0],L=k[0][1],T=k[1][0],C=k[1][1],N=0,O=0,M=_&&x&&o&&n.shiftKey,$=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=xe(t,g)).point0=t.slice(),t.identifier=e,t}));Qe(g);var z=h(g,arguments,!0).beforestart();if("overlay"===w){E&&(v=!0);const e=[$[0],$[1]||$[0]];A.selection=E=[[i=t===Un?S:Dn(e[0][0],e[1][0]),u=t===Gn?L:Dn(e[0][1],e[1][1])],[c=t===Un?T:Bn(e[0][0],e[1][0]),p=t===Gn?C:Bn(e[0][1],e[1][1])]],$.length>1&&F(n)}else i=E[0][0],u=E[0][1],c=E[1][0],p=E[1][1];a=i,s=u,f=c,d=p;var Y=_t(g).attr("pointer-events","none"),P=Y.selectAll(".overlay").attr("cursor",Hn[w]);if(n.touches)z.moved=R,z.ended=B;else{var j=_t(n.view).on("mousemove.brush",R,!0).on("mouseup.brush",B,!0);o&&j.on("keydown.brush",(function(t){switch(t.keyCode){case 16:M=_&&x;break;case 18:b===jn&&(_&&(c=f-N*_,i=a+N*_),x&&(p=d-O*x,u=s+O*x),b=Rn,F(t));break;case 32:b!==jn&&b!==Rn||(_<0?c=f-N:_>0&&(i=a-N),x<0?p=d-O:x>0&&(u=s-O),b=Pn,P.attr("cursor",Hn.selection),F(t));break;default:return}zn(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:M&&(y=m=M=!1,F(t));break;case 18:b===Rn&&(_<0?c=f:_>0&&(i=a),x<0?p=d:x>0&&(u=s),b=jn,F(t));break;case 32:b===Pn&&(t.altKey?(_&&(c=f-N*_,i=a+N*_),x&&(p=d-O*x,u=s+O*x),b=Rn):(_<0?c=f:_>0&&(i=a),x<0?p=d:x>0&&(u=s),b=jn),P.attr("cursor",Hn[w]),F(t));break;default:return}zn(t)}),!0),St(n.view)}l.call(g),z.start(n,b.name)}function R(t){for(const e of t.changedTouches||[t])for(const t of $)t.identifier===e.identifier&&(t.cur=xe(e,g));if(M&&!y&&!m&&1===$.length){const t=$[0];Fn(t.cur[0]-t[0])>Fn(t.cur[1]-t[1])?m=!0:y=!0}for(const t of $)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);v=!0,zn(t),F(t)}function F(t){const e=$[0],n=e.point0;var r;switch(N=e[0]-n[0],O=e[1]-n[1],b){case Pn:case Yn:_&&(N=Bn(S-i,Dn(T-c,N)),a=i+N,f=c+N),x&&(O=Bn(L-u,Dn(C-p,O)),s=u+O,d=p+O);break;case jn:$[1]?(_&&(a=Bn(S,Dn(T,$[0][0])),f=Bn(S,Dn(T,$[1][0])),_=1),x&&(s=Bn(L,Dn(C,$[0][1])),d=Bn(L,Dn(C,$[1][1])),x=1)):(_<0?(N=Bn(S-i,Dn(T-i,N)),a=i+N,f=c):_>0&&(N=Bn(S-c,Dn(T-c,N)),a=i,f=c+N),x<0?(O=Bn(L-u,Dn(C-u,O)),s=u+O,d=p):x>0&&(O=Bn(L-p,Dn(C-p,O)),s=u,d=p+O));break;case Rn:_&&(a=Bn(S,Dn(T,i-N*_)),f=Bn(S,Dn(T,c+N*_))),x&&(s=Bn(L,Dn(C,u-O*x)),d=Bn(L,Dn(C,p+O*x)))}f<a&&(_*=-1,r=i,i=c,c=r,r=a,a=f,f=r,w in Kn&&P.attr("cursor",Hn[w=Kn[w]])),d<s&&(x*=-1,r=u,u=p,p=r,r=s,s=d,d=r,w in Wn&&P.attr("cursor",Hn[w=Wn[w]])),A.selection&&(E=A.selection),y&&(a=E[0][0],f=E[1][0]),m&&(s=E[0][1],d=E[1][1]),E[0][0]===a&&E[0][1]===s&&E[1][0]===f&&E[1][1]===d||(A.selection=[[a,s],[f,d]],l.call(g),z.brush(t,b.name))}function B(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Lt(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),P.attr("cursor",Hn.overlay),A.selection&&(E=A.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(E)&&(A.selection=null,l.call(g)),z.end(t,b.name)}}function d(t){h(this,arguments).moved(t)}function v(t){h(this,arguments).ended(t)}function y(){var e=this.__brush||{selection:null};return e.extent=qn(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){h(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){h(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=h(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),u=_e(o,a);function s(t){r.selection=1===t&&null===a?null:u(t),l.call(e),i.brush()}return null!==o&&null!==a?s:s(1)})):e.each((function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,i):n,o.extent),u=h(e,i).beforestart();Qe(e),o.selection=null===a?null:a,l.call(e),u.start(r).brush(r).end(r)}))},c.clear=function(t,e){c.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=_t(this.that).datum();a.call(e,this.that,new $n(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Mn(qn(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Mn(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Mn(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}(Vn)}var ir=t=>()=>t;function or(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:s,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function ar(t){return!t.ctrlKey&&!t.button}function ur(){return this.parentNode}function sr(t,e){return null==e?{x:t.x,y:t.y}:e}function cr(){return navigator.maxTouchPoints||"ontouchstart"in this}function lr(){var t,e,n,r,i=ar,o=ur,a=sr,u=cr,c={},l=s("start","drag","end"),h=0,f=0;function p(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",m).on("touchmove.drag",g,xt).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var s=b(this,o.call(this,a,u),a,u,"mouse");s&&(_t(a.view).on("mousemove.drag",v,At).on("mouseup.drag",y,At),St(a.view),kt(a),n=!1,t=a.clientX,e=a.clientY,s("start",a))}}function v(r){if(Et(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function y(t){_t(t.view).on("mousemove.drag mouseup.drag",null),Lt(t.view,n),Et(t),c.mouse("end",t)}function m(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),s=a.length;for(n=0;n<s;++n)(r=b(this,u,t,e,a[n].identifier,a[n]))&&(kt(t),r("start",t,a[n]))}}function g(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Et(t),n("drag",t,r[e]))}function w(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=c[i[e].identifier])&&(kt(t),n("end",t,i[e]))}function b(t,e,n,r,i,o){var u,s,f,d=l.copy(),v=xe(o||n,e);if(null!=(f=a.call(t,new or("beforestart",{sourceEvent:n,target:p,identifier:i,active:h,x:v[0],y:v[1],dx:0,dy:0,dispatch:d}),r)))return u=f.x-v[0]||0,s=f.y-v[1]||0,function n(o,a,l){var y,m=v;switch(o){case"start":c[i]=n,y=h++;break;case"end":delete c[i],--h;case"drag":v=xe(l||a,e),y=h}d.call(o,t,new or(o,{sourceEvent:a,subject:f,target:p,identifier:i,active:y,x:v[0]+u,y:v[1]+s,dx:v[0]-m[0],dy:v[1]-m[1],dispatch:d}),r)}}return p.filter=function(t){return arguments.length?(i="function"==typeof t?t:ir(!!t),p):i},p.container=function(t){return arguments.length?(o="function"==typeof t?t:ir(t),p):o},p.subject=function(t){return arguments.length?(a="function"==typeof t?t:ir(t),p):a},p.touchable=function(t){return arguments.length?(u="function"==typeof t?t:ir(!!t),p):u},p.on=function(){var t=l.on.apply(l,arguments);return t===l?p:t},p.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,p):Math.sqrt(f)},p}function hr(t){return function(){return t}}function fr(t){this._context=t}function pr(t){return new fr(t)}or.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t},Array.prototype.slice,fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};const dr=Math.PI,vr=2*dr,yr=1e-6,mr=vr-yr;function gr(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class wr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?gr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return gr;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=n-t,s=r-e,c=o-t,l=a-e,h=c*c+l*l;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>yr)if(Math.abs(l*u-s*c)>yr&&i){let f=n-o,p=r-a,d=u*u+s*s,v=f*f+p*p,y=Math.sqrt(d),m=Math.sqrt(h),g=i*Math.tan((dr-Math.acos((d+h-v)/(2*y*m)))/2),w=g/m,b=g/y;Math.abs(w-1)>yr&&this._append`L${t+w*c},${e+w*l}`,this._append`A${i},${i},0,0,${+(l*f>c*p)},${this._x1=t+b*u},${this._y1=e+b*s}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),u=n*Math.sin(r),s=t+a,c=e+u,l=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>yr||Math.abs(this._y1-c)>yr)&&this._append`L${s},${c}`,n&&(h<0&&(h=h%vr+vr),h>mr?this._append`A${n},${n},0,1,${l},${t-a},${e-u}A${n},${n},0,1,${l},${this._x1=s},${this._y1=c}`:h>yr&&this._append`A${n},${n},0,${+(h>=dr)},${l},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function br(t){return t[0]}function _r(t){return t[1]}function xr(t,e){var n=hr(!0),r=null,i=pr,o=null,a=function(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new wr(e)}(u);function u(u){var s,c,l,h=(u=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(u)).length,f=!1;for(null==r&&(o=i(l=a())),s=0;s<=h;++s)!(s<h&&n(c=u[s],s,u))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,s,u),+e(c,s,u));if(l)return o=null,l+""||null}return t="function"==typeof t?t:void 0===t?br:hr(t),e="function"==typeof e?e:void 0===e?_r:hr(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),u):e},u.defined=function(t){return arguments.length?(n="function"==typeof t?t:hr(!!t),u):n},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u}function Ar(t){return((t=Math.exp(t))+1/t)/2}wr.prototype;var kr=function t(e,n,r){function i(t,i){var o,a,u=t[0],s=t[1],c=t[2],l=i[0],h=i[1],f=i[2],p=l-u,d=h-s,v=p*p+d*d;if(v<1e-12)a=Math.log(f/c)/e,o=function(t){return[u+t*p,s+t*d,c*Math.exp(e*t*a)]};else{var y=Math.sqrt(v),m=(f*f-c*c+r*v)/(2*c*n*y),g=(f*f-c*c-r*v)/(2*f*n*y),w=Math.log(Math.sqrt(m*m+1)-m),b=Math.log(Math.sqrt(g*g+1)-g);a=(b-w)/e,o=function(t){var r,i=t*a,o=Ar(w),l=c/(n*y)*(o*(r=e*i+w,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(w));return[u+l*p,s+l*d,c*o/Ar(e*i+w)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),Er=t=>()=>t;function Sr(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Lr(t,e,n){this.k=t,this.x=e,this.y=n}Lr.prototype={constructor:Lr,scale:function(t){return 1===t?this:new Lr(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Lr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Tr=new Lr(1,0,0);function Cr(t){t.stopImmediatePropagation()}function Nr(t){t.preventDefault(),t.stopImmediatePropagation()}function Or(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Mr(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function $r(){return this.__zoom||Tr}function zr(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Yr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pr(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function jr(){var t,e,n,r=Or,i=Mr,o=Pr,a=zr,u=Yr,c=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],h=250,f=kr,p=s("start","zoom","end"),d=500,v=150,y=0,m=10;function g(t){t.property("__zoom",$r).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",S).on("dblclick.zoom",L).filter(u).on("touchstart.zoom",T).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new Lr(e,t.x,t.y)}function b(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Lr(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,r){t.on("start.zoom",(function(){A(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){A(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=A(t,o).event(r),u=i.apply(t,o),s=null==n?_(u):"function"==typeof n?n.apply(t,o):n,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,o):e,p=f(l.invert(s).concat(c/l.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=p(t),n=c/e[2];t=new Lr(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function A(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=A(this,e).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),s=xe(t);if(n.wheel)n.mouse[0][0]===s[0]&&n.mouse[0][1]===s[1]||(n.mouse[1]=i.invert(n.mouse[0]=s)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[s,i.invert(s)],Qe(this),n.start()}Nr(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),v),n.zoom("mouse",o(b(w(i,u),n.mouse[0],n.mouse[1]),n.extent,l))}}function S(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=A(this,e,!0).event(t),u=_t(t.view).on("mousemove.zoom",(function(t){if(Nr(t),!a.moved){var e=t.clientX-c,n=t.clientY-h;a.moved=e*e+n*n>y}a.event(t).zoom("mouse",o(b(a.that.__zoom,a.mouse[0]=xe(t,i),a.mouse[1]),a.extent,l))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),Lt(t.view,a.moved),Nr(t),a.event(t).end()}),!0),s=xe(t,i),c=t.clientX,h=t.clientY;St(t.view),Cr(t),a.mouse=[s,this.__zoom.invert(s)],Qe(this),a.start()}}function L(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=xe(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),s=n.k*(t.shiftKey?.5:2),c=o(b(w(n,s),a,u),i.apply(this,e),l);Nr(t),h>0?_t(this).transition().duration(h).call(x,c,a,t):_t(this).call(g.transform,c,a,t)}}function T(n,...i){if(r.apply(this,arguments)){var o,a,u,s,c=n.touches,l=c.length,h=A(this,i,n.changedTouches.length===l).event(n);for(Cr(n),a=0;a<l;++a)s=[s=xe(u=c[a],this),this.__zoom.invert(s),u.identifier],h.touch0?h.touch1||h.touch0[2]===s[2]||(h.touch1=s,h.taps=0):(h.touch0=s,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=s[0],t=setTimeout((function(){t=null}),d)),Qe(this),h.start())}}function C(t,...e){if(this.__zooming){var n,r,i,a,u=A(this,e).event(t),s=t.changedTouches,c=s.length;for(Nr(t),n=0;n<c;++n)i=xe(r=s[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var h=u.touch0[0],f=u.touch0[1],p=u.touch1[0],d=u.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,y=(y=d[0]-f[0])*y+(y=d[1]-f[1])*y;r=w(r,Math.sqrt(v/y)),i=[(h[0]+p[0])/2,(h[1]+p[1])/2],a=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(b(r,i,a),u.extent,l))}}function N(t,...r){if(this.__zooming){var i,o,a=A(this,r).event(t),u=t.changedTouches,s=u.length;for(Cr(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),d),i=0;i<s;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=xe(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<m)){var c=_t(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",$r),t!==i?x(t,e,n,r):i.interrupt().each((function(){A(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},g.scaleBy=function(t,e,n,r){g.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?_(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return o(b(w(r,s),a,u),t,l)}),n,r)},g.translateBy=function(t,e,n,r){g.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}),null,r)},g.translateTo=function(t,e,n,r,a){g.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?_(t):"function"==typeof r?r.apply(this,arguments):r;return o(Tr.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)}),r,a)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=_t(this.that).datum();p.call(t,this.that,new Sr(t,{sourceEvent:this.sourceEvent,target:g,type:t,transform:this.that.__zoom,dispatch:p}),e)}},g.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:Er(+t),g):a},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:Er(!!t),g):r},g.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Er(!!t),g):u},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:Er([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],g):[c[0],c[1]]},g.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],g):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},g.constrain=function(t){return arguments.length?(o=t,g):o},g.duration=function(t){return arguments.length?(h=+t,g):h},g.interpolate=function(t){return arguments.length?(f=t,g):f},g.on=function(){var t=p.on.apply(p,arguments);return t===p?g:t},g.clickDistance=function(t){return arguments.length?(y=(t=+t)*t,g):Math.sqrt(y)},g.tapDistance=function(t){return arguments.length?(m=+t,g):m},g}Lr.prototype},97417:function(t,e,n){"use strict";n.d(e,{G:function(){return a}});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function i(t,e,o,a){let u=[],s=/^@(\w+)\b/.exec(t[0]),c=s&&"keyframes"==s[1];if(s&&null==e)return o.push(t[0]+";");for(let n in e){let a=e[n];if(/&/.test(n))i(n.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),a,o);else if(a&&"object"==typeof a){if(!s)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,u,c)}else null!=a&&u.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+": "+a+";")}(u.length||c)&&o.push((!n||s||a?t:t.map(n)).join(", ")+" {"+u.join(" ")+"}")}for(let e in t)i(r(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=o[r]||1;return o[r]=t+1,"ͼ"+t.toString(36)}static mount(t,e,n){let r=t[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new s(t,o),r.mount(Array.isArray(e)?e:[e],t)}}let u=new Map;class s{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let e=u.get(n);if(e)return t[i]=e;this.sheet=new r.CSSStyleSheet,u.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[i]=this}mount(t,e){let n=this.sheet,r=0,i=0;for(let e=0;e<t.length;e++){let o=t[e],a=this.modules.indexOf(o);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),n)for(let t=0;t<o.rules.length;t++)n.insertRule(o.rules[t],r++)}else{for(;i<a;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)e.adoptedStyleSheets.indexOf(this.sheet)<0&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
Binary file
|